return showdate($this->dateparts);
}
- function body()
+ function story()
{
$this->title;
$rest = fread($this->file, filesize($this->page));
if ( preg_match('{
\n (?: < (?: p | figure [^>]* ) >\s* )+ (<img\ [^>]*>) | \n <hr\ />
}x', $rest, $img, PREG_OFFSET_CAPTURE) ) {
+ # strip part after matching divider (image)
if (isset($img[1])) {
$this->img = $img[1][0];
}
function teaser()
{
- if (preg_match('{<p>(.*?)</p>}s', $this->body, $bodyp)) {
+ if (preg_match('{<p>(.*?)</p>}s', $this->story, $bodyp)) {
return $bodyp[1];
}
}
function img()
{
$this->img = NULL;
- $this->body;
+ $this->story;
return $this->img;
}