';
}
else{
echo '
';
return;
}
/* IF EXISTS WORDPRESS COMMENTS */
if ( have_comments() ) {
$nr = absint( get_comments_number() );
echo '';
echo '';
wp_list_comments( array(
'callback' => array( 'mythemes_comments' , 'classic' ),
'style' => 'ul'
));
echo '
';
/* WORDPRESS PAGINATION FOR COMMENTS */
echo '';
}
/* FORM SUBMIT COMMENTS */
$commenter = wp_get_current_commenter();
/* CHECK VALUES */
if( esc_attr( $commenter[ 'comment_author' ] ) )
$name = esc_attr( $commenter[ 'comment_author' ] );
else
$name = __( 'Nickname ( required )' , 'treeson' );
if( esc_attr( $commenter[ 'comment_author_email' ] ) )
$email = esc_attr( $commenter[ 'comment_author_email' ] );
else
$email = __( 'E-mail ( required )' , 'treeson' );
if( esc_attr( $commenter[ 'comment_author_url' ] ) )
$web = esc_attr( $commenter[ 'comment_author_url' ] );
else
$web = __( 'Website' , 'treeson' );
/* FIELDS */
$fields = array(
'author' => ''.
'',
'email' => '',
'url' => '
',
);
$rett = '';
global $wp_customize;
if( isset( $wp_customize ) ) {
$html = true;
$classes = !(bool)mythemes_mod( 'html-suggestions', true ) ? 'hidden' : '';
}
else{
$html = (bool)mythemes_mod( 'html-suggestions', true );
$classes = '';
}
if( $html ){
$rett .= '';
$rett .= '';
$rett .= '
';
$rett .= htmlspecialchars( ' ' );
$rett .= '
';
$rett .= '
';
}
$args = array(
'title_reply' => __( "Leave a reply" , 'treeson' ),
'comment_notes_after' => '',
'comment_notes_before' => '',
'logged_in_as' => '' . __( 'Logged in as' , 'treeson' ) . ' ' . get_the_author_meta( 'nickname' , get_current_user_id() ) . '. ' . __( 'Log out?' , 'treeson' ) . '
',
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => $rett,
'label_submit' => __( 'Comment' , 'treeson' )
);
comment_form( $args );
echo '';
echo '';
}
?>
'; _e( 'This post is password protected. Enter the password to view any comments.' , 'treeson' ); echo '
'; echo '