Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/cwd/wp-content/themes/colibri-wp/inc/src/Components/ |
Current File : //proc/self/cwd/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">© %s %s. %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 } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare