🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:comments.php
<?php /** * Comments Template * * @package Ophiro_Ventures */ if ( post_password_required() ) { return; } ?> <div id="o-comments" class="o-comments" style="border-top:1px solid rgba(200,164,74,0.12);padding-top:var(--space-3xl);margin-top:var(--space-3xl);"> <?php if ( have_comments() ) : ?> <h3 class="o-comments__title" style="font-family:var(--font-display);font-size:var(--text-2xl);color:var(--ophiro-text-primary);margin-bottom:var(--space-2xl);"> <?php $comment_count = get_comments_number(); printf( /* translators: 1: comment count */ esc_html( _n( '%1$s Response', '%1$s Responses', $comment_count, 'ophiro' ) ), number_format_i18n( $comment_count ) ); ?> </h3> <ol class="o-comments__list" style="list-style:none;padding:0;margin:0;"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 48, 'callback' => 'ophiro_comment_template', ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav class="o-comments__nav o-pagination"> <?php paginate_comments_links( array( 'prev_text' => '←', 'next_text' => '→', ) ); ?> </nav> <?php endif; ?> <?php endif; ?> <?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p style="font-size:var(--text-sm);color:var(--ophiro-text-tertiary);"><?php esc_html_e( 'Comments are closed.', 'ophiro' ); ?></p> <?php endif; ?> <?php comment_form( array( 'class_form' => 'o-comment-form', 'title_reply' => esc_html__( 'Leave a Response', 'ophiro' ), 'comment_notes_after' => '', 'comment_field' => '<div class="o-form-group"><label class="o-form-label" for="comment">' . esc_html__( 'Your Thoughts', 'ophiro' ) . '</label><textarea id="comment" name="comment" class="o-form-textarea" rows="5" required></textarea></div>', 'fields' => array( 'author' => '<div class="o-form-group"><label class="o-form-label" for="author">' . esc_html__( 'Name', 'ophiro' ) . ' *</label><input id="author" name="author" class="o-form-input" type="text" required></div>', 'email' => '<div class="o-form-group"><label class="o-form-label" for="email">' . esc_html__( 'Email', 'ophiro' ) . ' *</label><input id="email" name="email" class="o-form-input" type="email" required></div>', 'url' => '', ), ) ); ?> </div> <?php /** * Custom comment template */ function ophiro_comment_template( $comment, $args, $depth ) { $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; ?> <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" class="o-comment" style="padding:var(--space-xl) 0;border-bottom:1px solid rgba(200,164,74,0.08);"> <div class="o-comment__header" style="display:flex;align-items:center;gap:var(--space-md);margin-bottom:var(--space-md);"> <?php echo get_avatar( $comment, $args['avatar_size'], '', '', array( 'class' => 'o-comment__avatar', 'extra_attr' => 'style="border-radius:50%;opacity:0.8;"' ) ); ?> <div> <span class="o-comment__author" style="font-size:var(--text-sm);font-weight:600;color:var(--ophiro-text-primary);"><?php comment_author(); ?></span> <time class="o-comment__date" style="font-size:var(--text-xs);color:var(--ophiro-text-muted);margin-left:var(--space-sm);" datetime="<?php comment_time( 'c' ); ?>"><?php printf( esc_html__( '%1$s at %2$s', 'ophiro' ), get_comment_date( '', $comment ), get_comment_time() ); ?></time> </div> </div> <div class="o-comment__body" style="font-size:var(--text-sm);color:var(--ophiro-text-secondary);line-height:var(--leading-body);"> <?php comment_text(); ?> </div> <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<div class="o-comment__reply" style="margin-top:var(--space-md);">', 'after' => '</div>', ) ) ); ?> </<?php echo $tag; ?>> <?php }
Save Changes
Cancel
Create New File
Create New Folder