$xml = simplexml_load_string($atom); $s = "<ul>"; foreach ($xml->entry as $item) { if ($max-- == 0) { break; } $link = (string) $item->link['href']; $title = (string) $item->title; $s .= "<li><a href=\"{$link}\">{$title}</a></li>"; } $s .= "</ul>"; return render_widget("blog", "BrowserPlus: <a href=\"/blog/\">Blog</a>", $s); } // IRC Transcript $irc = new IRC(); $results = $irc->get_rows($irc->get_max_id(), $tableRowsToShow); $ircnav = l("#browserplus", "/discuss/"); $irctable = render_table($results, "stamp", "who", "utterance", array("show_long_dates" => true, "top_nav" => "<strong>IRC: {$ircnav}</strong>")); //$ircwidgets = $irc->render_widget("day") . $irc->render_widget("week") . $irc->render_widget("month"); $ircwidgets = $irc->render_widget("week"); // GIT Projects $git = new GIT(); $results = $git->get_rows($tableRowsToShow); $gitnav = "<strong>GitHub: <a href=\"http://www.github.com/browserplus/\">BrowserPlus</a></strong>"; $gittable = render_table($results, "tcommit", "project", "msg", array("show_long_dates" => true, "top_nav" => $gitnav, "url_key" => "url", "url_pat" => "%s")); $gitwidgets = $git->render_project_widget(); // bugzilla issues $bugzilla = new Bugzilla(); $issuewidget = $bugzilla->render_widget($listItemsToShow); // Links Widget $linkswidget = get_links_widget();
<?php include "../../php/site.php"; include "../../php/db.php"; include "../../php/irc.php"; $RowsToShow = 50; $results = null; $irc = new IRC(); $max = $irc->get_max_id(); if (isset($_GET['id']) && (int) $_GET['id'] > 0) { $results = $irc->get_rows_at($_GET['id'], $RowsToShow); } echo $irc->render_mobile($results, $max);