woocommerce/templates/loop/sale-flash.php

18 lines
411 B
PHP
Raw Normal View History

<?php
/**
2012-08-14 18:05:45 +00:00
* Product loop sale flash
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post, $product;
?>
<?php if ($product->is_on_sale()) : ?>
2012-08-14 18:05:45 +00:00
2012-10-16 09:45:33 +00:00
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__( 'Sale!', 'woocommerce' ).'</span>', $post, $product); ?>
2012-08-14 18:05:45 +00:00
<?php endif; ?>