public function renderCmsBlock(BaseBlock $block, $username, array $options = array())
    {
        $blockTemplate = $this->fetchTemplateBlock($block);
        if ($blockTemplate == "") {
            return "";
        }

        $permalinks = $this->pagesParser
            ->contributor($username)
            ->parse()
            ->permalinksByLanguage();

        $options = array_merge(
            array(
                'block' => $block,
                'permalinks' => $permalinks,
            ),
            $options
        );

        return $this->templating->render($blockTemplate, $options);
    }
public function renderCmsBlock(BaseBlock $block, $username, array $options = array())
    {
        $blockTemplate = $this->fetchTemplateBlock($block);
        if ($blockTemplate == "") {
            return "";
        }

        $permalinks = $this->pagesParser
            ->contributor($username)
            ->parse()
            ->permalinksByLanguage();

        $options = array_merge(
            array(
                'block' => $block,
                'permalinks' => $permalinks,
            ),
            $options
        );

        return $this->templating->render($blockTemplate, $options);
    }
public function renderCmsBlock ( BaseBlock $ block , $ username , array $ options = array ( ) ) { $ blockTemplate = $ this -> fetchTemplateBlock ( $ block ) ; if ( $ blockTemplate == "" ) { return "" ; } $ permalinks = $ this -> pagesParser -> contributor ( $ username ) -> parse ( ) -> permalinksByLanguage ( ) ; $ options = array_merge ( array ( 'block' => $ block , 'permalinks' => $ permalinks , ) , $ options ) ; return $ this -> templating -> render ( $ blockTemplate , $ options ) ; }
Renders the given block

@param \RedKiteCms\Content\Block\BaseBlock $block
@param $username
@param array $options

@return string
Renders the given block