HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /opt/wpsites/gsudice.dataconn.net/wp-content/themes/colibri-wp/inc/src/Components/PageContent.php
<?php

namespace ColibriWP\Theme\Components;


use ColibriWP\Theme\Core\ComponentBase;
use ColibriWP\Theme\Core\Hooks;
use ColibriWP\Theme\Translations;
use ColibriWP\Theme\View;

class PageContent extends ComponentBase {

    public static function selectiveRefreshSelector() {
        return '.colibri-page-content';
    }

    /**
     * @return array();
     */
    protected static function getOptions() {
        $prefix = 'page_content_';

        return array(
            "sections" => 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() {
        $self = $this;
        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();
                            get_template_part( 'template-parts/content/content', 'page' );
                        endwhile;
                    } );
                } );
            }, $self->getPageSectionClass() );

            colibriwp_render_page_comments();

        }, array(
            "class" => array( 'page-content', 'colibri-page-content' )
        ) );
    }
    private function getPageSectionClass() {

        $classes = Hooks::colibri_apply_filters( 'page_section_class', array(
            'outer_class' => array(),
            'inner_class' => array( 'h-section-boxed-container' )
        ) );


        return $classes;
    }
}