Server : Apache/2 System : Linux vps.sdns.vn 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 User : phatdatpq ( 1022) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/phatdatpq/public_html/wp-content/plugins/devvn-woocommerce-reviews/templates/ |
Upload File : |
<?php /** * The template to display the reviewers meta data (name, verified owner, review date) * * This template can be overridden by copying it to yourtheme/woocommerce/single-product/review-meta.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates * @version 3.4.0 */ defined( 'ABSPATH' ) || exit; global $comment; $verified = wc_review_is_from_verified_owner( $comment->comment_ID ); global $devvn_review_settings; $label_review = $devvn_review_settings['label_review']; if ( '0' === $comment->comment_approved ) { ?> <p class="meta"> <strong class="woocommerce-review__author"><?php comment_author(); ?> </strong> <em class="woocommerce-review__awaiting-approval"> <?php esc_html_e( 'Your review is awaiting approval', 'woocommerce' ); ?> </em> </p> <?php } else { ?> <p class="meta"> <strong class="woocommerce-review__author"><?php comment_author(); ?> </strong> <?php if ( 'yes' === get_option( 'woocommerce_review_rating_verification_label' ) && $verified ) { if($label_review){ echo '<em class="woocommerce-review__verified verified">' . $label_review . '</em> '; }else { echo '<em class="woocommerce-review__verified verified">' . sprintf(esc_attr__('Bought at %s', 'devvn-reviews'), $_SERVER['SERVER_NAME']) . '</em> '; } } $user_roles = array(); $user_id = $comment->user_id; if($user_id) { $user = get_userdata($user_id); $user_roles = $user->roles; $qtv = devv_check_reviews_admin($user_roles); if ( $qtv && $comment->comment_parent != 0) {?> <span class="review_qtv"><?php _e('Administrator','devvn-reviews')?></span> <?php } } ?> </p> <?php }