application/modules/g/views/helpers/Chapter.php
public function renderContentNode(array $contentNode, array $params = array()) {
        if (empty($contentNode)) {
            return '';
        }
        $model = strtolower($contentNode['model']);
        $type  = $contentNode['type'] ?: 'default';
        $partial = "partials/chapters/$model/$type.phtml";
        $params['contentNode'] = $contentNode;
        return $this->view->partial($partial, 'default', $params);
    }
public function renderContentNode(array $contentNode, array $params = array()) {
        if (empty($contentNode)) {
            return '';
        }
        $model = strtolower($contentNode['model']);
        $type  = $contentNode['type'] ?: 'default';
        $partial = "partials/chapters/$model/$type.phtml";
        $params['contentNode'] = $contentNode;
        return $this->view->partial($partial, 'default', $params);
    }
public function renderContentNode ( array $ contentNode , array $ params = array ( ) ) { if ( empty ( $ contentNode ) ) { return '' ; } $ model = strtolower ( $ contentNode [ 'model' ] ) ; $ type = $ contentNode [ 'type' ] ? : 'default' ; $ partial = "partials/chapters/$model/$type.phtml" ; $ params [ 'contentNode' ] = $ contentNode ; return $ this -> view -> partial ( $ partial , 'default' , $ params ) ; }
Render a content node

@param array $contentNode
@param array $params Additional parameters for the partial
@return string
Render a content node