src/Traits/CopyBasedIntroduction.php
public function getIntroduction($ellipse = "...")
    {
        $intro = $this->internalGetIntroduction();

        if ($intro === null && ($copy = $this->getCopy()) !== null) {
            $copy = trim(strip_tags($this->getCopy()));

            if ( ! empty($copy)) {
                $intro = $this->truncateWords($copy, $ellipse);
            }
        }

        return $intro;
    }
public function getIntroduction($ellipse = "...")
    {
        $intro = $this->internalGetIntroduction();

        if ($intro === null && ($copy = $this->getCopy()) !== null) {
            $copy = trim(strip_tags($this->getCopy()));

            if ( ! empty($copy)) {
                $intro = $this->truncateWords($copy, $ellipse);
            }
        }

        return $intro;
    }
public function getIntroduction ( $ ellipse = "..." ) { $ intro = $ this -> internalGetIntroduction ( ) ; if ( $ intro === null && ( $ copy = $ this -> getCopy ( ) ) !== null ) { $ copy = trim ( strip_tags ( $ this -> getCopy ( ) ) ) ; if ( ! empty ( $ copy ) ) { $ intro = $ this -> truncateWords ( $ copy , $ ellipse ) ; } } return $ intro ; }
Get introduction.

If an introduction hasn't been set, the first {@see $copyIntroWordCount
X words} from the {@see getCopy copy} are returned.

@param string $ellipse
@return string
Get introduction .