comment_type ) :
case 'pingback' :
case 'trackback' :
?>
id="comment-">
>
comment_approved == '0' ) : ?>
closed by wp_comments_list()
} // esotera_comment()
endif;
/** Number of comments on loop post if comments are enabled. */
if ( ! function_exists( 'esotera_comments_on' ) ) :
function esotera_comments_on() {
$meta_blog_comment = cryout_get_option( 'theme_meta_blog_comment' );
// Only show comments if they're open, or are closed but with comments already posted, if the theme's meta comments are enabled and if it's not a single post
if ( ( comments_open() || get_comments_number() ) && ! post_password_required() && $meta_blog_comment && ! is_single() ) :
echo '';
endif;
} // esotera_comments_on()
endif;
/** Number of comments on single post if comments are enabled. */
if ( ! function_exists( 'esotera_comments_on_single' ) ) :
function esotera_comments_on_single() {
$meta_single_comment = cryout_get_option( 'theme_meta_single_comment' );
// Only show comments if they're open, or are closed but with comments already posted, if the theme's meta comments are enabled and if it's not a single post
if ( ( comments_open() || get_comments_number() ) && $meta_single_comment && is_single() ) :
echo '';
endif;
} // esotera_comments_on_single()
endif;
/** Adds microdata tags to comment link */
if ( ! function_exists( 'esotera_comments_microdata' ) ) :
function esotera_comments_microdata() {
cryout_schema_microdata('comment-meta');
} // esotera_comments_microdata()
endif;
add_filter( 'comments_popup_link_attributes', 'esotera_comments_microdata' );
/* Edit comments form inputs: removed labels and replaced them with placeholders */
function esotera_comments_form( $arg ) {
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$arg = array(
'author' => '',
'email' => '',
'url' => '',
'cookies' => '',
);
return $arg;
} // esotera_comments_form()
/* Edit comments form textarea: removed label and replaced it with a placeholder */
function esotera_comments_form_textarea( $arg ) {
$arg = '';
return $arg;
} // esotera_comments_form_textarea()
/* Hooks are located in cryout_master_hook() in core.php */
/* FIN */