Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/comments.php
Назад
<?php if (post_password_required()) { return; } if (comments_open() || get_comments_number()) { ?> <div class="eltd-comment-holder clearfix" id="comments"> <?php if (have_comments()) { ?> <div class="eltd-comment-holder-inner"> <div class="eltd-comments-title"> <h2><?php esc_html_e('Comments', 'trackstore'); ?></h2> </div> <div class="eltd-comments"> <ul class="eltd-comment-list"> <?php wp_list_comments(array_unique(array_merge(array('callback' => 'trackstore_elated_comment'), apply_filters('trackstore_elated_comments_callback', array())))); ?> </ul> </div> </div> <?php } ?> <?php if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) { ?> <p><?php esc_html_e('Sorry, the comment form is closed at this time.', 'trackstore'); ?></p> <?php } ?> </div> <?php $eltd_commenter = wp_get_current_commenter(); $eltd_req = get_option('require_name_email'); $eltd_aria_req = ($eltd_req ? " aria-required='true'" : ''); $eltd_consent = empty($eltd_commenter['comment_author_email']) ? '' : ' checked="checked"'; $eltd_args = array( 'id_form' => 'commentform', 'id_submit' => 'submit_comment', 'title_reply' => esc_html__('Leave a Comment', 'trackstore'), 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 'title_reply_after' => '</h2>', 'title_reply_to' => esc_html__('Post a Reply to %s', 'trackstore'), 'cancel_reply_link' => esc_html__('cancel reply', 'trackstore'), 'label_submit' => esc_html__('Submit', 'trackstore'), 'comment_field' => apply_filters('trackstore_elated_comment_form_textarea_field', '<textarea id="comment" placeholder="' . esc_html__('Write a comment', 'trackstore') . '" name="comment" cols="45" rows="6" aria-required="true"></textarea>'), 'comment_notes_before' => '', 'comment_notes_after' => '', 'fields' => apply_filters('trackstore_elated_comment_form_default_fields', array( 'author' => '<input id="author" name="author" placeholder="' . esc_html__('Name', 'trackstore') . '" type="text" value="' . esc_attr($eltd_commenter['comment_author']) . '"' . $eltd_aria_req . ' />', 'email' => '<input id="email" name="email" placeholder="' . esc_html__('Email', 'trackstore') . '" type="text" value="' . esc_attr($eltd_commenter['comment_author_email']) . '"' . $eltd_aria_req . ' />', 'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" ' . $eltd_consent . ' />' . '<label for="wp-comment-cookies-consent">' . esc_html__('Save my name, email, and website in this browser for the next time I comment.', 'trackstore') . '</label></p>', )), ); if (get_comment_pages_count() > 1) { ?> <div class="eltd-comment-pager"> <p><?php paginate_comments_links(); ?></p> </div> <?php } ?> <?php $eltd_show_comment_form = apply_filters('trackstore_elated_show_comment_form_filter', true); if ($eltd_show_comment_form) { ?> <div class="eltd-grid-col-7"> <div class="eltd-comment-form"> <div class="eltd-comment-form-inner"> <?php comment_form($eltd_args); ?> </div> </div> </div> <?php } ?> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка