* @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_404' ) ) : class TC_404 { //Access any method or var of the class with classname::$instance -> var or method(): static $instance; function __construct () { self::$instance =& $this; //404 content add_action ( '__loop' , array( $this , 'tc_404_content' )); } /** * The template part for displaying error 404 page content * * @package Customizr * @since Customizr 3.0 */ function tc_404_content() { if ( !is_404() ) return; $content_404 = apply_filters( 'tc_404', TC_init::$instance -> content_404 ); echo apply_filters( 'tc_404_content', sprintf('
%1$s
%2$s
%3$s
%4$s', call_user_func( '__' , $content_404['quote'] , 'customizr' ), call_user_func( '__' , $content_404['author'] , 'customizr' ), call_user_func( '__' , $content_404['text'] , 'customizr' ), get_search_form( $echo = false ) ), apply_filters( 'tc_no_results_separator', '