| Server IP : 217.160.0.15 / Your IP : 216.73.216.30 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u37981780 ( 1696858) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/43/d124547881/htdocs/app395378437/wp-content/themes/sonar/ |
Upload File : |
<?php /** * The template for displaying Comments. */ ?> <div id="comments"> <?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'sonar' ); ?></p> </div><!-- #comments --> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ return; endif; ?> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <p id="comments-title"> <?php printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'sonar' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?> </p> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <div class="pagination"> <?php paginate_comments_links(); ?> </div><!-- .navigation --> <?php endif; // check for comment navigation ?> <ol class="commentlist"> <?php /* Loop through and list the comments. Tell wp_list_comments() * to use sonar_comment() to format the comments. * If you want to overload this in a child theme then you can * define sonar_comment() and that will be used instead. * See sonar_comment() in sonar/functions.php for more. */ wp_list_comments( array( 'callback' => 'sonar_comment' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below"> <div class="comment-heading"><?php _e( 'Comment navigation', 'sonar' ); ?></h1> <div class="pagination" style="margin: -5px 0 25px -15px"> <?php paginate_comments_links(); ?> </div><!-- .navigation --> </nav> <?php endif; // check for comment navigation ?> <?php else : // this is displayed if there are no comments so far ?> <?php if ( comments_open() ) : // If comments are open, but there are no comments ?> <?php else : // or, if we don't have comments: /* If there are no comments and comments are closed, * let's leave a little note, shall we? * But only on posts! We don't want the note on pages. */ if ( ! comments_open() && ! is_page() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.', 'sonar' ); ?></p> <?php endif; // end ! comments_open() && ! is_page() ?> <?php endif; ?> <?php endif; ?> <?php comment_form(); ?> </div><!-- #comments -->