array( 'page_content_section' => array( 'title' => Translations::get( 'content_settings' ), 'panel' => 'content_panel', 'type' => 'colibri_section', ), ), 'settings' => array( 'page_content_pen' => array( 'control' => array( 'type' => 'pen', 'section' => "{$prefix}section", 'colibri_tab' => 'content', ), ), "{$prefix}plugin-content" => array( 'control' => array( 'type' => 'plugin-message', 'section' => "{$prefix}section", 'colibri_tab' => 'content', ), ), ), 'panels' => array( 'content_panel' => array( 'priority' => 2, 'title' => Translations::get( 'content_sections' ), 'type' => 'colibri_panel', 'footer_buttons' => array( 'change_header' => array( 'label' => Translations::get( 'add_section' ), 'name' => 'colibriwp_add_section', 'classes' => array( 'colibri-button-large', 'button-primary' ), 'icon' => 'dashicons-plus-alt', ), ), ), ), ); } public function renderContent( $parameters = array() ) { $self = $this; add_filter( 'the_content', array( $this, 'wrapPostContent' ), 100 ); View::printIn( View::CONTENT_ELEMENT, function () use ( $self ) { View::printIn( View::SECTION_ELEMENT, function () { View::printIn( View::ROW_ELEMENT, function () { View::printIn( View::COLUMN_ELEMENT, function () { while ( have_posts() ) : the_post(); \ColibriWP\Theme\View::partial( 'content', 'content-page' ); endwhile; } ); } ); }, $self->getPageSectionClass() ); get_template_part( 'comments-page' ); }, array( 'class' => array( 'page-content', 'colibri-page-content' ), ) ); remove_filter( 'the_content', array( $this, 'wrapPostContent' ), 100 ); } public function wrapPostContent( $content ) { ob_start(); wp_link_pages( array( 'before' => '