if (array_search($post['autor_link'], $previous) === false) { $previous[] = $post['autor_link']; $blog_list .= "<li><a href='" . $post['autor_link'] . "'><img src='/gfx/feed-icon-10x10.png' " . "alt='RSS feed' /></a>" . "<a href='" . $post['blog_url'] . "'>" . $post['blog_title'] . "</a></li>\n"; $fOutput->writeOpml(File::ReadAndParse('xml/opml_item.xml', $post)); } } $fOutput->writeOpml(File::ReadAndParse('xml/opml_foot.xml')); $blog_list .= "</ul>\n"; define('BLOG_LIST', $blog_list); unset($blog_list); # Other similar planets: $planets = $Config->getPlanetas(); $planet_list = "<ul>\n"; foreach ($planets as $planet) { $planet_list .= "<li><a href='" . $planet['rss'] . "'><img src='/gfx/feed-icon-10x10.png' alt='Feed RSS' /></a>" . "<a href='" . $planet['url'] . "'>" . $planet['name'] . "</a></li>\n"; } $planet_list .= "</ul>\n"; define('PLANET_LIST', $planet_list); unset($planet_list); # Sidebar generation: $fOutput->write(File::ReadAndParse('html/sidebar.html')); # Extended content initially hidden: $fOutput->write('<script type="text/javascript">$(".content").hide();</script>'); # Statistics: Debug::info("HTML: Statistics code"); $fOutput->write(File::ReadAndParse('html/stats.html')); # Closure: Debug::info("Closures"); $fOutput->write(File::ReadAndParse('html/footer.html')); $fOutput->writeRss(File::Read('xml/rss20_foot.xml')); Debug::info("EOF");