<?php /** * @package WooCommerce/Templates * @subpackage Everything * @since 1.0 * @version 1.6.4 */ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } // ----------------------------------------------------------------------------- if (!$messages) { return; } foreach ($messages as $message) { Everything::shortcodeOutput('message', array(), '<i class="icon-info-circled"></i> ' . wp_kses_post($message)); }
*/ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } // ----------------------------------------------------------------------------- global $product; if (get_option('woocommerce_enable_review_rating') == 'no') { return; } $count = $product->get_rating_count(); $average = $product->get_average_rating(); ?> <?php if ($count > 0) { ?> <p title="<?php printf(__('Rated %s out of 5', 'woocommerce'), $average); ?> " itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <?php Everything::shortcodeOutput('rating', array('rate' => $average . '/5', 'advanced_tag' => 'span')); ?> <a href="#reviews" rel="nofollow">(<?php printf(_n('%s customer review', '%s customer reviews', $count, 'woocommerce'), '<span itemprop="ratingCount" class="count">' . $count . '</span>'); ?> )</a> </p> <?php }
<?php /** * @package WooCommerce/Templates * @subpackage Everything * @since 1.0 * @version 2.0.0 */ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } // ----------------------------------------------------------------------------- Everything::shortcodeOutput('message', array(), '<i class="icon-info-circled"></i> ' . __('No products found which match your selection.', 'woocommerce'));
if (!$GLOBALS['comment']->comment_type) { ?> <figure class="alignleft fixed inset-border"> <?php echo get_avatar($comment, apply_filters('woocommerce_review_gravatar_size', 50), '', get_comment_author()); ?> </figure> <?php } ?> <p class="info"> <?php if ($rating && get_option('woocommerce_enable_review_rating') == 'yes') { ?> <?php Everything::shortcodeOutput('rating', array('rate' => $rating . '/5', 'advanced_tag' => 'small')); ?> <?php } ?> <?php if (get_option('woocommerce_review_rating_verification_label') == 'yes' && wc_customer_bought_product($comment->comment_author_email, $comment->user_id, $comment->comment_post_ID)) { ?> <small> <?php _e('verified owner', 'woocommerce'); ?> </small> <?php } ?>
<?php /** * @package WooCommerce/Templates * @subpackage Everything * @since 1.0 * @version 1.6.4 */ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } // ----------------------------------------------------------------------------- if (!$messages) { return; } foreach ($messages as $message) { Everything::shortcodeOutput('message', array('color' => 'green'), '<i class="icon-check"></i> ' . wp_kses_post($message)); }
<?php /** * @package WooCommerce/Templates * @subpackage Everything * @since 1.0 * @version 1.6.4 */ // ----------------------------------------------------------------------------- if (!defined('ABSPATH')) { exit; } // ----------------------------------------------------------------------------- if (!$messages) { return; } $html = ''; foreach ($messages as $message) { $html .= '<i class="icon-cancel"></i> ' . wp_kses_post($message) . '<br />'; } Everything::shortcodeOutput('message', array('color' => 'orange'), $html);