PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/news36.travelguides4you.com/video2/wp-content/themes/soledad/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/news36.travelguides4you.com/video2/wp-content/themes/soledad/comments.php |
<?php /** * Comments template * * @package Wordpress * @since 1.0 */ $enable_comment = apply_filters( 'penci_single_show_comment', true ); if ( ! $enable_comment ) { return false; } // Get numbers comments $comment_numbers = get_comments_number(); $hide_count = 0; if ( get_theme_mod( 'penci_single_comments_remove_name' ) ) { $hide_count += 1; } if ( get_theme_mod( 'penci_single_comments_remove_email' ) ) { $hide_count += 1; } if ( get_theme_mod( 'penci_single_comments_remove_website' ) ) { $hide_count += 1; } ?> <div class="post-comments<?php if ( $comment_numbers == 0 ): echo ' no-comment-yet'; endif; echo ' penci-comments-hide-' . $hide_count; ?>" id="comments"> <?php /* Custom field */ $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; $fields = array( 'author' => '<p class="comment-form-author"><input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" placeholder="' . penci_get_setting( 'penci_trans_name' ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email"><input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" placeholder="' . penci_get_setting( 'penci_trans_email' ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url"><input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" placeholder="' . penci_get_setting( 'penci_trans_website' ) . '" size="30" /></p>', ); if ( get_theme_mod( 'penci_single_comments_remove_name' ) ) { $fields['author'] = ''; } if ( get_theme_mod( 'penci_single_comments_remove_email' ) ) { $fields['email'] = ''; } if ( get_theme_mod( 'penci_single_comments_remove_website' ) ) { $fields['url'] = ''; } if ( ! get_theme_mod( 'penci_single_hide_save_fields' ) && version_compare( get_bloginfo( 'version' ), '4.9.6', '>=' ) ) { $fields['cookies'] = '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' . '<span class="comment-form-cookies-text" for="wp-comment-cookies-consent">' . penci_get_setting( 'penci_trans_save_fields' ) . '</span></p>'; } else { $fields['cookies'] = ''; } $custom_comment_field = '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" placeholder="' . penci_get_setting( 'penci_trans_your_comment' ) . '" aria-required="true"></textarea></p>'; //label removed for cleaner layout $gdrp_mess = ''; if ( get_theme_mod( 'penci_single_gdpr' ) ) { $mess_default = get_theme_mod( 'penci_single_gdpr_text' ) ? do_shortcode( get_theme_mod( 'penci_single_gdpr_text' ) ) : esc_html__( '* By using this form you agree with the storage and handling of your data by this website.', 'soledad' ); if ( $mess_default ) { $gdrp_mess .= '<div class="penci-gdpr-message">'; $gdrp_mess .= do_shortcode( $mess_default ); $gdrp_mess .= '</div>'; } } if ( get_theme_mod( 'penci_post_move_comment_box' ) ): comment_form( array( 'comment_field' => $custom_comment_field, 'comment_notes_after' => '', 'logged_in_as' => '', 'comment_notes_before' => '', 'title_reply' => '<span>' . penci_get_setting( 'penci_trans_leave_a_comment' ) . '</span>', 'cancel_reply_link' => penci_get_setting( 'penci_trans_cancel_reply' ), 'label_submit' => penci_get_setting( 'penci_trans_submit' ), 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'submit_field' => $gdrp_mess . '<p class="form-submit">%1$s %2$s</p>', ) ); endif; /* End check if move comment box to above */ if ( have_comments() ) : echo '<div class="post-title-box"><h4 class="post-box-title">'; comments_number( '0 ' . penci_get_setting( 'penci_trans_comment' ), '1 ' . penci_get_setting( 'penci_trans_comment' ), '% ' . penci_get_setting( 'penci_trans_comments' ) ); echo '</h4></div>'; echo "<div class='comments'>"; wp_list_comments( array( 'avatar_size' => 100, 'max_depth' => 5, 'style' => 'div', 'callback' => 'penci_comments_template', 'type' => 'all' ) ); echo "</div>"; echo "<div id='comments_pagination'>"; paginate_comments_links( array( 'prev_text' => '«', 'next_text' => '»' ) ); echo "</div>"; endif; // If comments are closed and there are comments, let's leave a little note. if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php echo penci_get_setting( 'penci_trans_comments_closed' ); ?></p> <?php endif; if ( ! get_theme_mod( 'penci_post_move_comment_box' ) ): comment_form( array( 'comment_field' => $custom_comment_field, 'comment_notes_after' => '', 'logged_in_as' => '', 'comment_notes_before' => '', 'title_reply' => '<span>' . penci_get_setting( 'penci_trans_leave_a_comment' ) . '</span>', 'cancel_reply_link' => penci_get_setting( 'penci_trans_cancel_reply' ), 'label_submit' => penci_get_setting( 'penci_trans_submit' ), 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'submit_field' => $gdrp_mess . '<p class="form-submit">%1$s %2$s</p>', ) ); endif; ?> </div> <!-- end comments div -->