Submit
Path:
~
/
home
/
getwphos
/
public_html
/
techniquetechs
/
wp-content
/
themes
/
plexify
/
woocommerce
/
loop
/
File Content:
pxl-sale-flash.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $post, $product; $html = ''; if ( ! $product->is_in_stock() ){ $html .= '<span class="out-of-stock"><span>'. esc_html__('Sold out', 'plexify') .'</span></span>'; }else{ if ( $product->is_on_sale() ) { $html .= '<span class="onsale"><span>'.esc_html__( 'Sale', 'plexify' ).'</span></span>'; } } if ( $product->is_featured() ) { $html .= '<span class="hot"><span>'.esc_html__( 'Hot', 'plexify' ).'</span></span>'; } $newness_days = (int)plexify()->get_theme_opt('shop_new_badges_days','8'); $created = strtotime( $product->get_date_created() ); if ( ( time() - ( 60 * 60 * 24 * $newness_days ) ) < $created ) { $html .= '<span class="new"><span>'.esc_html__( 'New', 'plexify' ).'</span></span>'; } if(!empty($html)){ echo '<div class="pxl-loop-badges product-badges">'.$html.'</div>'; }
Submit
FILE
FOLDER
Name
Size
Permission
Action
pxl-add-to-cart.php
871 bytes
0644
pxl-rating.php
343 bytes
0644
pxl-result-count.php
644 bytes
0644
pxl-sale-flash.php
914 bytes
0644
toolbar.php
3658 bytes
0644
N4ST4R_ID | Naxtarrr