X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/58445e7f5d88512e4b558fc1b9658e9ce49e273a..v3.8-15-g628a397729:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 1565c63..6d84d1a 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -86,6 +86,13 @@ class ArchiveArticle return $rest; } + function teaser() + { + if (preg_match('{

(.*?)

}s', $this->body, $bodyp)) { + return $bodyp[1]; + } + } + function img() { $this->body; @@ -130,14 +137,24 @@ function shownews($input, $limit = 1000) } } -function printtoc($input) +function printtoc($input, $class = FALSE) { if (!is_array($input)) $input = glob("$input/*.html"); - print '