* @copyright Copyright (c) 2013, Nicolas GUILLAUME * @link http://themesandco.com/customizr * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ if ( ! class_exists( 'TC_footer_main' ) ) : class TC_footer_main { static $instance; function __construct () { self::$instance =& $this; //html > footer actions add_action ( '__after_main_wrapper' , 'get_footer'); //footer actions add_action ( '__footer' , array( $this , 'tc_widgets_footer' ), 10 ); add_action ( '__footer' , array( $this , 'tc_colophon_display' ), 20 ); add_action ( '__colophon' , array( $this , 'tc_colophon_left_block' ), 10 ); add_action ( '__colophon' , array( $this , 'tc_colophon_center_block' ), 20 ); add_action ( '__colophon' , array( $this , 'tc_colophon_right_block' ), 30 ); } /** * Displays the footer widgets areas * * * @package Customizr * @since Customizr 3.0.10 */ function tc_widgets_footer() { //checks if there's at least one active widget area in footer.php.php $status = false; $footer_widgets = apply_filters( 'tc_footer_widgets', TC_init::$instance -> footer_widgets ); foreach ( $footer_widgets as $key => $area ) { $status = is_active_sidebar( $key ) ? true : $status; } if ( !$status ) return; //hack to render white color icons if skin is grey or black $skin_class = ( in_array( tc__f('__get_option' , 'tc_skin') , array('grey.css' , 'black.css')) ) ? 'white-icons' : ''; ob_start(); ?>
· © %1$s %3$s · Designed by %4$s ·
', esc_attr( date( 'Y' ) ), esc_url( home_url() ), esc_attr(get_bloginfo()), 'Themes & Co' ) ) ); } /** * Displays the back to top block * * * @package Customizr * @since Customizr 3.0.10 */ function tc_colophon_right_block() { echo apply_filters( 'tc_colophon_right_block', sprintf('', apply_filters( 'tc_colophon_right_block_class', 'span4 backtop' ), __( 'Back to top' , 'customizr' ) ) ); } }//end of class endif;