<?php
if (!function_exists('shownews')) {
-function shownews($input, $limit = 1000)
+function shownews($input, $limit = 1000, $abbr = FALSE)
{
if (!is_array($input)) $input = glob("$input/*.html");
print "<div>\n";
'<h3><a href="/%s">%s <small class="date">%s</small></a></h3>',
$article->link, $article->title, showdate($article->dateparts)
);
- print $article->story;
+ print $abbr ? "<p>{$article->teaser}</p>\n" : $article->story;
print '</div>';
print "</article>\n\n";
return;
}
ob_start();
-shownews($articles, @$Page->place['n'] ?: 5);
+shownews($articles, @$Page->place['n'] ?: 5, !empty($Page->place['teaser']));
$Page->raw = ob_get_clean();
print $Page->render();