' , '' ); ?>
* @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_comments' ) ) : class TC_comments { static $instance; function __construct () { self::$instance =& $this; add_action ( '__after_loop' , array( $this , 'tc_comments' ), 10 ); add_action ( '__comment' , array( $this , 'tc_comment_title' ), 10 ); add_action ( '__comment' , array( $this , 'tc_comment_list' ), 20 ); add_action ( '__comment' , array( $this , 'tc_comment_navigation' ), 30 ); add_action ( '__comment' , array( $this , 'tc_comment_close' ), 40 ); } /** * Main commments template * * @package Customizr * @since Customizr 3.0.10 */ function tc_comments() { //By default not displayed on home, for protected posts, and if no comments for page option is checked $comments_bool = ( post_password_required() || tc__f( '__is_home' ) || ( is_page() && 1 != esc_attr( tc__f( '__get_option' , 'tc_page_comments' )) ) ) ? false : true; if ( !apply_filters('tc_show_comments', $comments_bool ) ) return; comments_template( '' , true ); } /** * Comment title rendering * * @package Customizr * @since Customizr 3.0 */ function tc_comment_title() { echo apply_filters( 'tc_comment_title' , sprintf( '
' , '' ); ?>
' . __( 'Edit' , 'customizr' ) . '
' : '' ), sprintf( '' , esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s' , 'customizr' ), get_comment_date(), get_comment_time() ) ) ), ( '0' == $comment->comment_approved ) ? sprintf('%1$s
', __( 'Your comment is awaiting moderation.' , 'customizr' ) ) : '', sprintf('