X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/4fa1d9c17950b2f436a42c3dd1ad158506c6501e..HEAD:/widget/nieuws.php diff --git a/widget/nieuws.php b/widget/nieuws.php index dd019a3..10e31a3 100644 --- a/widget/nieuws.php +++ b/widget/nieuws.php @@ -1,6 +1,6 @@ \n"; @@ -19,7 +19,16 @@ function shownews($input, $limit = 1000) '

%s %s

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

' . $article->teaser; + if ($article->story != "

{$article->teaser}

\n\n") { + print ' (Meer op de site)'; + } + print "

\n"; + } + else { + print $article->story; + } print ''; print "\n\n"; @@ -73,6 +82,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();