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/Footer.php
<?php


namespace ColibriWP\Theme\Components;


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

class Footer extends ComponentBase {

    public static function selectiveRefreshSelector() {
        $footer_class = View::isFrontPage() ? "footer-front-page" : "footer-inner-page";

        return ".footer.{$footer_class}";
    }

    protected static function getOptions() {

        return array(
            "settings" => array(),
            "sections" => array(
                "footer" => array(
                    'title'    => Translations::get( 'footer_settings' ),
                    'priority' => 0,
                    'panel'    => 'footer_panel',
                    'type'     => 'colibri_section',

                ),
            ),

            "panels" => array(
                "footer_panel" => array(
                    'priority'       => 3,
                    'title'          => Translations::get( 'footer_sections' ),
                    'type'           => 'colibri_panel',
                    'footer_buttons' => array(
                        'change_header' => array(
                            'label'   => Translations::get( 'change_footer_design' ),
                            'name'    => 'colibriwp_footers_panel',
                            'classes' => array( 'colibri-button-large', 'button-primary' ),
                            'icon'    => 'dashicons-admin-customizer',
                        )
                    )
                ),
            ),
        );

    }

    public function printCopyright() {
        $colibr_theme_url = sprintf(
            '<a target="_blank" href="%s" class="mesmerize-theme-link">%s</a>',
            "https://colibriwp.com",
            __( 'Colibri Theme', 'colibri-wp' )
        );

        $copyrightText = sprintf(
            __( 'Built using WordPress and the %s', 'colibri-wp' ),
            $colibr_theme_url
        );

        $copyright = sprintf(
            '<p class="copyright">&copy;&nbsp;&nbsp;%s&nbsp;%s.&nbsp;%s</p>',
            date_i18n( __( 'Y', 'colibri-wp' ) ),
            esc_html( get_bloginfo( 'name' ) ),
            $copyrightText
        );

        echo $copyright;
    }

    public function renderContent() {

        Hooks::colibri_do_action( 'before_footer' );
        $footer_class = View::isFrontPage() ? "footer-front-page" : "footer-inner-page";

        ?>
        <div class="footer <?php echo $footer_class; ?>">
            <?php Theme::getInstance()->get( 'front-footer' )->render(); ?>
        </div>
        <?php
    }
}