????JFIF??x?x????'
Server IP : 104.21.80.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/themes/slide/core/ |
Upload File : |
<?php /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own SLIDE_SWP_comment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. */ if (!function_exists('SLIDE_SWP_comment')) { function SLIDE_SWP_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) : case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php esc_html__('Pingback:', 'slide'); ?> <?php comment_author_link(); ?><?php edit_comment_link(esc_html__('(Edit)', 'slide'), ' '); ?></p> <?php break; case '' : default : ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar($comment, 40); ?> <span class="comment_author_details"> <?php $allowed_tags = array( 'span' => array( 'class' => array() ) ); printf( wp_kses(__('%s <span class="says">on</span>', 'slide'), $allowed_tags), sprintf('<cite class="fn">%s</cite>', get_comment_author_link()) ); ?> <span class="comment-meta commentmetadata"> <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"> <?php /* translators: 1: date, 2: time */ printf(esc_html__('%1$s at %2$s', 'slide'), get_comment_date(), get_comment_time()); ?> </a> <?php edit_comment_link(esc_html__('(Edit)', 'slide'), ' '); ?> </span><!-- .comment-meta .commentmetadata --> </span> </div><!-- .comment-author .vcard --> <?php if ($comment->comment_approved == '0') : ?> <em class="comment-awaiting-moderation"><?php echo esc_html__('Your comment is awaiting moderation.', 'slide'); ?></em> <br /> <?php endif; ?> <div class="comment-body"><?php comment_text(); ?></div> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div><!-- .reply --> </div><!-- #comment-## --> <?php break; endswitch; } } function SLIDE_SWP_comment_fields($arg) { $arg['comment_notes_before'] = ""; $arg['comment_notes_after'] = ""; return $arg; } add_filter('comment_form_defaults', 'SLIDE_SWP_comment_fields'); /* Customize comment form fields and textarea */ function SLIDE_SWP_change_comment_form_default_fields($fields) { $commenter = wp_get_current_commenter(); $req = get_option('require_name_email'); $aria_req = ($req ? " aria-required='true'" : ''); $fields['author'] = '<p class="comment-form-author"><label for="author"></label> <input id="author" name="author" placeholder="'.esc_html__('Your name', 'slide').($req ? ' *' : '').'" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' /></p>'; $fields['email'] = '<p class="comment-form-email"><label for="email"></label> <input id="email" name="email" placeholder="'.esc_html__('E-mail address', 'slide').($req ? ' *' : '').'" type="text" value="' . esc_attr($commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>'; $fields['url'] = '<p class="comment-form-url"><label for="url"></label>' . '<input id="url" name="url" placeholder="'.esc_html__('Website', 'slide').'" type="text" value="' . esc_attr($commenter['comment_author_url'] ) . '" size="30" /></p>'; return $fields; } add_filter('comment_form_default_fields', 'SLIDE_SWP_change_comment_form_default_fields'); function SLIDE_SWP_change_comment_field_textarea($comment_field) { $comment_field = '<p class="comment-form-comment"> <label for="comment"></label> <textarea placeholder="'.esc_html__('Write your comment here', 'slide').'" id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required"></textarea> </p>'; return $comment_field; } add_filter('comment_form_field_comment', 'SLIDE_SWP_change_comment_field_textarea'); /* Move textarea to bottom */ function SLIDE_SWP_move_textarea_bottom($fields) { $comment_field = $fields['comment']; unset($fields['comment']); $fields['comment'] = $comment_field; return $fields; } add_filter('comment_form_fields', 'SLIDE_SWP_move_textarea_bottom'); /* Add a wrapper to keep the input fields (name, email and website) */ function SLIDE_SWP_before_comment_fields() { echo '<div class="before_comment_input clearfix">'; } function SLIDE_SWP_after_comment_fields() { echo '</div>'; } add_action('comment_form_before_fields', 'SLIDE_SWP_before_comment_fields'); add_action('comment_form_after_fields', 'SLIDE_SWP_after_comment_fields');