X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/f547127c637332119b42329ca78d0e1a659d9739..dbca237bfe80d6479802b6089c9213aaece4ff6d:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index 73258b2..49f0453 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -1,6 +1,6 @@ \n"; @@ -19,7 +19,7 @@ function shownews($input, $limit = 1000) '

%s %s

', $article->link, $article->title, showdate($article->dateparts) ); - print $article->story; + print $abbr ? "

{$article->teaser}

\n" : $article->story; print ''; print "\n\n"; @@ -44,7 +44,7 @@ function printtoc($input, $class = FALSE) $html .= sprintf(' %s', showdate($dateparts)); if ($class == 'gallery' and $article->img) { $html = "
$html
"; - $html = sprintf('', $article->thumb(200)) . $html; + $html = sprintf('', $article->thumb(200)) . $html; } $html = sprintf('%s', $article->link, $html); print "
  • $html
  • \n"; @@ -73,6 +73,6 @@ if (@$Page->place['view'] === 'toc') { 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();