application/modules/g/views/helpers/Chapter.php
public function render(array $chapter, array $params = array()) {
        $partial = 'partials/chapters/' . ($chapter['type'] ?: 'default') . '.phtml';
        $params['content'] = $chapter['content'];
        return $this->view->partial($partial, 'default', $params);
    }
public function render(array $chapter, array $params = array()) {
        $partial = 'partials/chapters/' . ($chapter['type'] ?: 'default') . '.phtml';
        $params['content'] = $chapter['content'];
        return $this->view->partial($partial, 'default', $params);
    }
public function render ( array $ chapter , array $ params = array ( ) ) { $ partial = 'partials/chapters/' . ( $ chapter [ 'type' ] ? : 'default' ) . '.phtml' ; $ params [ 'content' ] = $ chapter [ 'content' ] ; return $ this -> view -> partial ( $ partial , 'default' , $ params ) ; }
Render the chapter

@param array $chapter
@param array $params Additional parameters for the partial.
@return string
Render the chapter