0) ) { // -------------------------------------------------------- // Output title with the comments ammount // -------------------------------------------------------- if( $counts_amout == 1 ) { echo "

" . __('One comment', 'yydevelopment-basic') . "

"; } //if( $counts_amout == 1 ) { if( $counts_amout > 1 ) { echo "

" . $counts_amout . " " . __('Comments', 'yydevelopment-basic') . "

"; } // if( $counts_amout > 1 ) { // -------------------------------------------------------- // Creating the rest of the comments output // -------------------------------------------------------- echo "
"; echo "
    "; wp_list_comments( array( 'callback' => 'mytheme_comment', 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 55, 'reply_text' => __('Comment', 'yydevelopment-basic'), ) ); echo "
"; // -------------------------------------------------------- // checking if the comments are opened // -------------------------------------------------------- if ( comments_open() && !post_password_required() ) { // -------------------------------------------------------- // Checking if the comments has pages // -------------------------------------------------------- if( get_option('comments_per_page') < get_comments_number() ) { echo "
"; paginate_comments_links( array( 'prev_text' => '«', 'next_text' => '»' ) ); echo "
"; } // if( get_option('comments_per_page') < get_comments_number() ) { // -------------------------------------------------------- // creating the comment form // -------------------------------------------------------- $comments_args = array( 'label_submit'=> __('Post Comment', 'yydevelopment-basic'), // the submit button text for the form 'title_reply'=>__('Leave a Reply', 'yydevelopment-basic'), // the main title for the reply form 'comment_notes_after' => '', 'comment_field' => '

', 'comment_notes_before' => '

' . __('Fill in all fields to leave a comment (your email will not be shown on the website).', 'yydevelopment-basic') . '

', ); comment_form($comments_args); } // if (comments_open() && !post_password_required() ) { // -------------------------------------------------------- // Checking if there is more than one comment and the comments are closed // -------------------------------------------------------- if( !comments_open() && get_comments_number() > 1 ) { echo "

" . __('Comments are closed', 'yydevelopment-basic') . "

"; } // if( ! comments_open() && get_comments_number() ) { echo "
"; } // if ( comments_open() || ($counts_amout > 0) ) { ?>