<div class="box"> <section class="content wrap" id="article-<?php echo article_id(); ?> "> <h1><?php echo article_title(); ?> </h1> <small class="muted"> <time datetime="<?php echo date(DATE_W3C, article_time()); ?> "><?php echo article_date(); ?> </time> </small> <article> <?php echo article_markdown(); ?> </article> </section> </div>
*/ // various copy includes require_once "../../config.gen.inc.php"; require_once "data/data.inc.php"; // records stats require_once "../page_builder/page_header.php"; // libs require_once "../../lib/simple-rss/simple-rss.inc.php"; require_once "lib/textformat.lib.php"; $rss_url = $news_srcs[$_REQUEST['src']]['url']; $feed = new SimpleRss($rss_url, 300); $items = $feed->GetRssObject(); foreach ($items->aItems as $item) { $description = explode("\n", strip_tags($item->sDescription, "<a>")); $link = $item->sLink; $title = $item->sTitle; $date = article_date($item->sDate); if (stripslashes($_REQUEST['title']) == $title) { break; } } $paragraphs = array(); foreach ($description as $paragraph) { if ($paragraph) { $paragraphs[] = str_replace('Read more ...', '', $paragraph); } } $read_more = $news_srcs[$_REQUEST['src']]['read_more']; $section = $news_srcs[$_REQUEST['src']]['title']; require "templates/{$prefix}/detail.html"; $page->output();