woocommerce/templates/loop/sale-flash.php

18 lines
419 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;
?>
2014-01-15 05:53:37 +00:00
<?php if ( $product->is_on_sale() ) : ?>
2012-08-14 18:05:45 +00:00
2014-01-23 04:36:24 +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; ?>