File manager - Edit - /home2/ajansonline/public_html/wp-content/themes/mokko/comments.php
Back
<?php /** * @author: MadSparrow * @version: 1.0 */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } if ( post_password_required() ) { return; } ?> <div id="comments" class="ms-comments-area"> <div class="ms-section__comments"> <?php if ( have_comments() ) : ?> <div class="ms-comments-title"><?php mokko_comments_number(); ?></div> <ul class="ms-comment-list"> <?php wp_list_comments( array ( 'callback' => 'mokko_comments', 'style' => 'ul', 'short_ping' => true, 'format' => 'html5', ) ); ?> </ul> <?php the_comments_navigation(); if ( ! comments_open() ) : ?> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'mokko' ); ?></p> <?php endif; endif; ?> <?php $commenter = wp_get_current_commenter(); $args = array( 'class_form' => 'row', 'label_submit' => esc_html__( 'Post Comment', 'mokko'), 'title_reply' => esc_html__('Leave a Reply', 'mokko') , 'title_reply_before' => '<h2 id="reply-title">', 'title_reply_after' => '</h2>', 'cancel_reply_before' => ' ', 'cancel_reply_after' => '', 'title_reply_to' => esc_html__('Leave a reply to', 'mokko') . ' %s', 'cancel_reply_link' => esc_html__('Cancel Reply', 'mokko'), 'class_submit' => 'btn--comments', 'submit_button' => '<button type="submit" id="%2$s" class="%3$s" data-title="%4$s"><span>%4$s</span></button>', 'fields' => apply_filters('comment_form_default_fields', array( 'author' => '<div class="form-group form-comment col-md-6"><input id="ms-author" name="author" type="text" class="form-control" placeholder="' . esc_attr__( 'Name', 'mokko' ) . '" value="' . esc_attr( $commenter['comment_author'] ) . '" required="required"/></div>', 'email' => '<div class="form-group form-comment col-md-6"><input id="ms-email" name="email" class="form-control" placeholder="' . esc_attr__( 'Email', 'mokko' ) . '" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" required="required"/></div>',) ), 'comment_field' => '<div class="form-group form-comment col-12"><textarea id="ms-comment" class="form-control" placeholder="' . esc_attr__( 'Your Comment', 'mokko' ) . '" name="comment" rows="8" required="required"></textarea></div>', ); ?> <?php comment_form($args); ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.1.30 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings