File manager - Edit - /home/rangceb/diohome.com/wp-includes6790ed/pomo/comments.php.tar
Back
home/rangceb/diohome.com/wp-includes6790ed/theme-compat/comments.php 0000644 00000004144 15222543134 0021314 0 ustar 00 <?php /** * @package WordPress * @subpackage Theme_Compat * @deprecated 3.0.0 * * This file is here for backward compatibility with old themes and will be removed in a future version */ _deprecated_file( /* translators: %s: Template name. */ sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), '3.0.0', null, /* translators: %s: Template name. */ sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) ) ); // Do not delete these lines. if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ) { die( 'Please do not load this page directly. Thanks!' ); } if ( post_password_required() ) { ?> <p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.' ); ?></p> <?php return; } ?> <!-- You can start editing here. --> <?php if ( have_comments() ) : ?> <h3 id="comments"> <?php if ( '1' === get_comments_number() ) { printf( /* translators: %s: Post title. */ __( 'One response to %s' ), '“' . get_the_title() . '”' ); } else { printf( /* translators: 1: Number of comments, 2: Post title. */ _n( '%1$s response to %2$s', '%1$s responses to %2$s', get_comments_number() ), number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' ); } ?> </h3> <div class="navigation"> <div class="alignleft"><?php previous_comments_link(); ?></div> <div class="alignright"><?php next_comments_link(); ?></div> </div> <ol class="commentlist"> <?php wp_list_comments(); ?> </ol> <div class="navigation"> <div class="alignleft"><?php previous_comments_link(); ?></div> <div class="alignright"><?php next_comments_link(); ?></div> </div> <?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 : // Comments are closed. ?> <!-- If comments are closed. --> <p class="nocomments"><?php _e( 'Comments are closed.' ); ?></p> <?php endif; ?> <?php endif; ?> <?php comment_form(); ?> home/rangceb/diohome.com/wp-content468461/themes/Divi/comments.php 0000644 00000005672 15222574544 0020633 0 ustar 00 <?php if ( post_password_required() ) : ?> <p class="nocomments container"><?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'Divi' ); ?></p> <?php return; endif; ?> <?php if ( empty( $comments_by_type ) ) { $comments_by_type = separate_comments( $comments ); } ?> <section id="comment-wrap"> <?php if ( have_comments() && ! empty( $comments_by_type['comment'] ) ) : ?> <h1 id="comments" class="page_title"><?php comments_number( esc_html__( '0 Comments', 'Divi' ), esc_html__( '1 Comment', 'Divi' ), '% ' . esc_html__( 'Comments', 'Divi' ) ); ?></h1> <?php endif; ?> <?php if ( have_comments() ) : ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="comment_navigation_top clearfix"> <div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">←</span> Older Comments', 'Divi' ) ) ); ?></div> <div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">→</span>', 'Divi' ) ) ); ?></div> </div> <?php endif; // check for comment navigation ?> <?php if ( ! empty($comments_by_type['comment']) ) : ?> <ol class="commentlist clearfix"> <?php wp_list_comments( array('type'=>'comment','callback'=>'et_custom_comments_display') ); ?> </ol> <?php endif; ?> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="comment_navigation_bottom clearfix"> <div class="nav-previous"><?php previous_comments_link( et_get_safe_localization( __( '<span class="meta-nav">←</span> Older Comments', 'Divi' ) ) ); ?></div> <div class="nav-next"><?php next_comments_link( et_get_safe_localization( __( 'Newer Comments <span class="meta-nav">→</span>', 'Divi' ) ) ); ?></div> </div> <?php endif; // check for comment navigation ?> <?php if ( ! empty($comments_by_type['pings']) ) : ?> <div id="trackbacks"> <h3 id="trackbacks-title"><?php esc_html_e('Trackbacks/Pingbacks','Divi'); ?></h3> <ol class="pinglist"> <?php wp_list_comments('type=pings&callback=et_list_pings'); ?> </ol> </div> <?php endif; ?> <?php else : // this is displayed if there are no comments so far ?> <div id="comment-section" class="nocomments"> <?php if ('open' === $post->comment_status) : ?> <?php else : // comments are closed ?> <?php endif; ?> </div> <?php endif; ?> <?php if ('open' === $post->comment_status) : ?> <?php comment_form( array('label_submit' => esc_attr__( 'Submit Comment', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Submit a Comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button' ) ); ?> <?php else: ?> <?php endif; // if you delete this the sky will fall on your head ?> </section>