X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/a6e2e74ced2c2a0aa816b2002c5d7d037b45f436..v3.8-15-g628a397729:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 40313e4..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;