private static function register_sidebars()
 {
     if (Footer_Credits_Options::get_option('footer_hook')) {
         $tag = self::is_html5() ? 'section' : 'div';
         register_sidebar(array('id' => self::SIDEBAR_ID, 'name' => __('Credibility Footer', __CLASS__), 'description' => __('Custom footer section for copyright, trademarks, etc', __CLASS__), 'before_widget' => '<' . $tag . ' id="%1$s" class="widget %2$s"><div class="widget-wrap">', 'after_widget' => '</div></' . $tag . '>'));
     }
 }
Esempio n. 2
0
 public static function custom_footer()
 {
     if (is_active_sidebar(self::SIDEBAR_ID)) {
         $class = 'custom-footer' . (Footer_Credits_Options::get_option('hide_wordpress') ? ' hide-wordpress' : '');
         if (self::is_html5()) {
             printf('<footer class="%1$s" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter">', $class);
             dynamic_sidebar(self::SIDEBAR_ID);
             echo '</footer><!-- end .custom-footer -->';
         } else {
             printf('<div class="%1$s">', $class);
             dynamic_sidebar(self::SIDEBAR_ID);
             echo '</div><!-- end .custom-footer -->';
         }
     }
 }