'; } else{ echo '
'; } if ( post_password_required() ){ echo '

'; _e( 'This post is password protected. Enter the password to view any comments.' , 'cannyon' ); echo '

'; echo '
'; return; } /* IF EXISTS WORDPRESS COMMENTS */ if ( have_comments() ) { $nr = absint( get_comments_number() ); echo '
'; echo '

'; echo sprintf( _nx( 'Comment ( %s )' , 'Comments ( %s )' , $nr , 'Title before comment(s) list' , 'cannyon' ) , '' . number_format_i18n( $nr ) . '' ); echo '

'; echo '
    '; wp_list_comments( array( 'callback' => array( 'mythemes_comments' , 'classic' ), 'style' => 'ul' )); echo '
'; 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 = '

'; $rett .= ''; $rett .= '

'; if( (bool)get_theme_mod( 'mythemes-html-suggestions', true ) ){ $rett .= '
'; $rett .= '

' . __( 'You may use these HTML tags and attributes' , 'cannyon' ) . ':

'; $rett .= '
';
        $rett .= htmlspecialchars( '    
' ); $rett .= '
'; $rett .= '
'; } $args = array( 'title_reply' => __( "Leave a reply" , 'cannyon' ), 'comment_notes_after' => '', 'comment_notes_before' => '

' . __( 'Your email address will not be published.' , 'cannyon' ) . '

', '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 '
'; comment_form( $args ); echo '
'; echo '
'; echo ''; } ?>