src/shortcodes/ShortcodeParser.php
public function doShortcode($content)
    {
        if (false === strpos($content, '[')) {
            return $content;
        }

        if (empty($this->_shortcodes) || !is_array($this->_shortcodes))
            return $content;

        /**
         * Clear content from ignore blocks
         */
        $pattern = $this->getIgnorePattern();
        $content = preg_replace_callback("~$pattern~isu", ['self', '_stack'], $content);

        /**
         * parse nested
         */
        $content = $this->parseContent($content);

        /**
         * Replase shorcodes in content
         */
        $content = strtr($content, self::_stack());

        return $content;
    }
public function doShortcode($content)
    {
        if (false === strpos($content, '[')) {
            return $content;
        }

        if (empty($this->_shortcodes) || !is_array($this->_shortcodes))
            return $content;

        /**
         * Clear content from ignore blocks
         */
        $pattern = $this->getIgnorePattern();
        $content = preg_replace_callback("~$pattern~isu", ['self', '_stack'], $content);

        /**
         * parse nested
         */
        $content = $this->parseContent($content);

        /**
         * Replase shorcodes in content
         */
        $content = strtr($content, self::_stack());

        return $content;
    }
public function doShortcode ( $ content ) { if ( false === strpos ( $ content , '[' ) ) { return $ content ; } if ( empty ( $ this -> _shortcodes ) || ! is_array ( $ this -> _shortcodes ) ) return $ content ; /**
         * Clear content from ignore blocks
         */ $ pattern = $ this -> getIgnorePattern ( ) ; $ content = preg_replace_callback ( "~$pattern~isu" , [ 'self' , '_stack' ] , $ content ) ; /**
         * parse nested
         */ $ content = $ this -> parseContent ( $ content ) ; /**
         * Replase shorcodes in content
         */ $ content = strtr ( $ content , self :: _stack ( ) ) ; return $ content ; }
Parse shortcodes in given content
@param string $content Content to parse for shortcodes
@return string
Parse shortcodes in given content