public function teaser($text, $enable_filter = true, $filter_id = null)
    {
        $summary = '';

        if ($text !== '') {
            $parts = $this->explodeText($text);
            $summary = reset($parts);
        }

        if ($summary !== '' && $enable_filter) {
            $summary = $this->filter($summary, $filter_id);
        }

        return $summary;
    }
public function teaser($text, $enable_filter = true, $filter_id = null)
    {
        $summary = '';

        if ($text !== '') {
            $parts = $this->explodeText($text);
            $summary = reset($parts);
        }

        if ($summary !== '' && $enable_filter) {
            $summary = $this->filter($summary, $filter_id);
        }

        return $summary;
    }
public function teaser ( $ text , $ enable_filter = true , $ filter_id = null ) { $ summary = '' ; if ( $ text !== '' ) { $ parts = $ this -> explodeText ( $ text ) ; $ summary = reset ( $ parts ) ; } if ( $ summary !== '' && $ enable_filter ) { $ summary = $ this -> filter ( $ summary , $ filter_id ) ; } return $ summary ; }
Returns a string from a text before the teaser delimiter
@param string $text
@param boolean $enable_filter
@param mixed $filter_id
@return string
Returns a string from a text before the teaser delimiter