Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/themes/foxiz/templates/single/review-comment.php
Arrière
<?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } global $post; $foxiz_class_name = 'comment-holder'; if ( foxiz_get_option( 'single_post_comment_button' ) ) { $foxiz_class_name .= ' is-hidden'; } if ( ! get_comments_number() ) { $foxiz_class_name .= ' no-comment'; } ?><div id="rb-user-reviews-<?php echo esc_attr( get_the_ID() ); ?>" class="comment-box-wrap entry-sec rb-user-reviews"> <div class="comment-box-header"> <?php if ( foxiz_get_option( 'single_post_comment_button' ) || foxiz_is_amp() ) : $review_link = '#'; if ( foxiz_is_amp() ) { $review_link = get_comments_link( $post ); $review_link = add_query_arg( 'noamp', 'mobile', $review_link ); } ?><span class="comment-box-title h3"><?php foxiz_render_svg( 'feedback' ); ?><span class="is-invisible"><?php echo foxiz_get_review_heading( get_the_ID() ); ?></span></span> <a href="<?php echo esc_url($review_link); ?>" class="show-post-comment"><?php foxiz_render_svg( 'feedback' ); ?><?php echo foxiz_get_review_heading( get_the_ID() ); ?></a> <?php else: ?> <span class="h3"><?php foxiz_render_svg( 'feedback' ); ?><?php echo foxiz_get_review_heading( get_the_ID() ); ?></span> <?php endif; ?> </div> <?php if ( ! foxiz_is_amp() ) : ?> <div class="<?php echo esc_attr( $foxiz_class_name ); ?>"> <?php if ( comments_open() || pings_open() ) : ?> <div id="comments" class="comments-area rb-reviews-area"> <?php if ( have_comments() ) : ?> <div class="rb-review-list rb-section"> <ul class="comment-list entry"><?php wp_list_comments( array( 'callback' => 'foxiz_user_review_list' ) ); ?></ul> <?php the_comments_pagination( array( 'prev_text' => '<span class="nav-previous">' . foxiz_html__( 'Older Reviews', 'foxiz' ) . '</span>', 'next_text' => '<span class="nav-next">' . foxiz_html__( 'Newer Reviews', 'foxiz' ) . '</span>', ) ); ?> </div> <?php endif; if ( ! comments_open() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php echo foxiz_html__( 'Review Closed!', 'foxiz' ); ?></p> <?php endif; ?> <div class="comment-box-content rb-reviews-form"> <?php $commenter = wp_get_current_commenter(); $comment_form = array( 'title_reply' => foxiz_html__( 'Leave a review', 'foxiz' ), 'title_reply_to' => foxiz_html__( 'Leave a reply', 'foxiz' ), 'label_submit' => foxiz_html__( 'Post a Review', 'foxiz' ), ); $name_email_required = (bool) get_option( 'require_name_email', 1 ); $fields = array( 'author' => array( 'label' => foxiz_html__( 'Your name', 'foxiz' ), 'type' => 'text', 'value' => $commenter['comment_author'], 'required' => $name_email_required, ), 'email' => array( 'label' => foxiz_html__( 'Your Email', 'foxiz' ), 'type' => 'email', 'value' => $commenter['comment_author_email'], 'required' => $name_email_required, ), 'url' => array( 'label' => foxiz_html__( 'Your website', 'foxiz' ), 'type' => 'email', 'value' => $commenter['comment_author_url'] ), ); $fields = apply_filters( 'comment_form_default_fields', $fields, 10 ); $comment_form['fields'] = array(); foreach ( $fields as $key => $field ) { $field_html = '<p class="comment-form-' . esc_attr( $key ) . '">'; $field_html .= '<label for="' . esc_attr( $key ) . '">' . esc_html( $field['label'] ); if ( ! empty( $field['required'] ) && $field['required'] ) { $field_html .= ' <span class="required">*</span>'; } $field_html .= '</label><input placeholder="' . esc_attr( $field['label'] ) . '" id="' . esc_attr( $key ) . '" name="' . esc_attr( $key ) . '" type="' . esc_attr( $field['type'] ) . '" value="' . esc_attr( $field['value'] ) . '" size="30" ' . ( ( ! empty( $field['required'] ) && $field['required'] ) ? 'required' : '' ) . ' /></p>'; $comment_form['fields'][ $key ] = $field_html; $comment_form['comment_field'] = '<div class="rb-form-rating"> <span class="rating-alert is-hidden">' . foxiz_html__( 'Please select a rating!', 'foxiz' ) . '</span> <label for="rating-' . get_the_ID() . '">' . foxiz_html__( 'Your Rating', 'foxiz' ) . '</label> <select name="rbrating" id="rating-' . get_the_ID() . '" class="rb-rating-selection"> <option value="" selected>' . esc_html__( 'Rate…', 'foxiz' ) . '</option> <option value="5">' . esc_html__( 'Perfect', 'foxiz' ) . '</option> <option value="4">' . esc_html__( 'Good', 'foxiz' ) . '</option> <option value="3">' . esc_html__( 'Average', 'foxiz' ) . '</option> <option value="2">' . esc_html__( 'Not that Bad', 'foxiz' ) . '</option> <option value="1">' . esc_html__( 'Very Poor', 'foxiz' ) . '</option> </select> </div>'; $comment_form['comment_field'] .= '<p class="comment-form-comment"><label for="comment">' . foxiz_html__( 'Your comment', 'foxiz' ) . ' <span class="required">*</span></label><textarea id="comment" name="comment" placeholder="' . foxiz_html__( 'Leave a comment', 'foxiz' ) . '" cols="45" rows="8" required></textarea></p>'; } comment_form( $comment_form ); ?> </div> </div> <?php endif; ?> </div> <?php endif; ?> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.03 |
proxy
|
phpinfo
|
Réglages