Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/comments.php
Назад
<?php /** * The template for displaying Comments. */ if ( post_password_required() ) return; ?> <?php if(have_comments()){ ?> <div class="kode_comments margin"> <?php if(is_singular('album') ){ ?> <h4 class="comment_title"><?php echo esc_attr(get_comments_number()); ?> <?php esc_attr_e('Comments','music-night');?> </h4> <ul id="kode-comment" class="comment"> <?php wp_list_comments(array('callback' => 'musicnight_comment_list_album', 'style' => 'ul')); ?> </ul><!-- .commentlist --> <?php }else{ ?> <h4 class="comment_title"><?php echo esc_attr(get_comments_number()); ?> <?php esc_attr_e('Comments','music-night');?> </h4> <ul id="kode-comment" class="comment"> <?php wp_list_comments(array('callback' => 'musicnight_comment_list', 'style' => 'ul')); ?> </ul><!-- .commentlist --> <?php }?> <?php if (get_comment_pages_count() > 1 && get_option('page_comments')){ ?> <nav id="comment-nav-below" class="navigation"> <h3 class="assistive-text section-heading"><?php echo esc_html__( 'Comment navigation', 'music-night' ); ?></h3> <div class="nav-previous"><?php previous_comments_link( esc_html__( '← Older Comments', 'music-night' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments →', 'music-night' ) ); ?></div> </nav> <?php } ?> </div> <?php }?> <?php $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ($req ? " aria-required='true'" : ''); if(isset($commenter['comment_author_email']) && $commenter['comment_author_email'] <> ''){ ?> <div class="kode_comments margin comment-form-wrapper"> <?php if(isset($commenter['comment_author_email']) && $commenter['comment_author_email'] <> ''){ }else{ $commenter['comment_author_email'] = ''; } if(isset($commenter['comment_author_mobile']) && $commenter['comment_author_mobile'] <> ''){ }else{ $commenter['comment_author_mobile'] = ''; } if(isset($commenter['comment_author_url']) && $commenter['comment_author_url'] <> ''){ }else{ $commenter['comment_author_url'] = ''; } if(isset($commenter['comment_author']) && $commenter['comment_author'] <> ''){ }else{ $commenter['comment_author'] = ''; } $args = array( 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => esc_html__('Leave Comments', 'music-night'), 'title_reply_to' => esc_html__('LEAVE COMMENT TO %s', 'music-night'), 'cancel_reply_link' => esc_html__('Cancel Comment', 'music-night'), 'label_submit' => esc_html__('Send Now', 'music-night'), 'title_reply_before' => '<h4 class="comment_title">', 'title_reply_after' => '</h4>', 'comment_notes_before' => '', 'comment_notes_after' => '', 'must_log_in' => '<p class="must-log-in">' . sprintf( musicnight_wp_kses_strip_tags(__('You must be <a href="%s">logged in</a> to post a comment.', 'music-night')), esc_url(wp_login_url(apply_filters( 'the_permalink', get_permalink()))) ) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( musicnight_wp_kses_strip_tags(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'music-night')), esc_url(admin_url('profile.php')), $user_identity, esc_url(wp_logout_url(apply_filters('the_permalink', get_permalink( )))) ) . '</p>', 'fields' => apply_filters('comment_form_default_fields', array( 'author' => '<div class="kode-left-comment-sec"><div class="kf_commet_field"><input id="kode-author" placeholder="' . esc_html__('Enter Name', 'music-night') . '" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" data-default="' . esc_html__('Enter Name', 'music-night') . '"/></div>', 'email' => '<div class="kf_commet_field"><input id="kode-email" placeholder="' . esc_html__('Email', 'music-night') . '" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" data-default="' . esc_html__('Email', 'music-night') . '"/></div>', 'mobile' => '<div class="kf_commet_field"><input id="kode-mobile" placeholder="' . esc_html__('Mobile', 'music-night') . '" name="mobile" type="text" value="' . esc_attr( $commenter['comment_author_mobile'] ) . '" data-default="' . esc_html__('Email', 'music-night') . '"/></div>', 'website' => '<div class="kf_commet_field"><input id="kode-url" placeholder="' . esc_html__('Website', 'music-night') . '" name="website" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" data-default="' . esc_html__('Website', 'music-night') . '"/></div></div>', )), 'comment_field' => '<div class="kode_textarea">' . '<textarea id="kode-comment" placeholder="' . esc_html__('Comment', 'music-night') . '" name="comment" cols="45" rows="8">' . '</textarea></div>' ); comment_form($args); ?> </div> <?php }?> <!-- kode-comment-area -->
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка