';
}
else{
echo '
';
return;
}
/* IF EXISTS WORDPRESS COMMENTS */
if ( have_comments() ) {
$nr = absint( get_comments_number() );
echo '';
$args = array(
'echo' => false,
'prev_text' => sprintf( __( '%s Prev' , 'cannyon' ) , '' ),
'next_text' => sprintf( __( 'Next %s' , 'cannyon' ) , '' )
);
$pgn = paginate_comments_links( $args );
/* WORDPRESS PAGINATION FOR COMMENTS */
if( !empty( $pgn ) ){
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 )' , 'cannyon' );
if( esc_attr( $commenter[ 'comment_author_email' ] ) )
$email = esc_attr( $commenter[ 'comment_author_email' ] );
else
$email = __( 'E-mail ( required )' , 'cannyon' );
if( esc_attr( $commenter[ 'comment_author_url' ] ) )
$web = esc_attr( $commenter[ 'comment_author_url' ] );
else
$web = __( 'Website' , 'cannyon' );
/* FIELDS */
$fields = array(
'author' => ''.
'',
'email' => '',
'url' => '
',
);
$rett = '';
if( (bool)get_theme_mod( 'mythemes-html-suggestions', true ) ){
$rett .= '';
$rett .= '';
$rett .= '
';
$rett .= htmlspecialchars( ' ' );
$rett .= '
';
$rett .= '
';
}
$args = array(
'title_reply' => __( "Leave a reply" , 'cannyon' ),
'comment_notes_after' => '',
'comment_notes_before' => '',
'logged_in_as' => '' . __( 'Logged in as' , 'cannyon' ) . ' ' . get_the_author_meta( 'nickname' , get_current_user_id() ) . '. ' . __( 'Log out?' , 'cannyon' ) . '
',
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => $rett,
'label_submit' => __( 'Comment' , 'cannyon' )
);
echo '';
echo '';
}
?>
'; _e( 'This post is password protected. Enter the password to view any comments.' , 'cannyon' ); echo '
'; echo '