* @copyright Copyright (c) 2013-2015, Nicolas GUILLAUME * @link http://presscustomizr.com/customizr * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ if ( ! class_exists( 'TC_page' ) ) : class TC_page { static $instance; function __construct () { self::$instance =& $this; add_action( 'wp' , array( $this , 'tc_set_page_hooks' ) ); } /*************************** * PAGE HOOKS SETUP ****************************/ /** * hook : wp * * @package Customizr * @since Customizr 3.4+ */ function tc_set_page_hooks() { //add page content and footer to the __loop add_action( '__loop' , array( $this , 'tc_page_content' ) ); //page help blocks add_filter( 'the_content' , array( $this, 'tc_maybe_display_img_smartload_help') , PHP_INT_MAX ); } /** * The template part for displaying page content * * @package Customizr * @since Customizr 3.0 */ function tc_page_content() { if ( ! $this -> tc_page_display_controller() ) return; ob_start(); do_action( '__before_content' ); ?>