HEX
Server: LiteSpeed
System: Linux pulsar191.sitesanctuary.org 5.14.0-284.30.1.el9.tuxcare.els9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 10 17:34:05 UTC 2025 x86_64
User: lgooir (1604)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,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
Upload Files
File: /home/lgooir/www/wp-content/plugins/woodmart-plus/template/product-style/layout-1.php
<?php 

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $product;
$colors = wplus_helper::generate_colors_on_cart($product);
$category = isset( $settings['category'] ) ? $settings['category'] : [];
$new_args = [
    'include' => $category
];

?>
<div class="product_card side_button tag_image align_center product_carousel_layout_1">
    <div class="product_cover">
        <div class="product_cover__image">
            <a href="<?php echo get_the_permalink(); ?>">
                <?php echo $product->get_image( isset( $settings['product_size'] ) ? $settings['product_size'] : 'woocommerce_thumbnail' ); ?>
            </a>
            <?php if( 'yes' === $settings['show_sale'] ): ?>
                <?php if($product->is_on_sale()): ?>
                    <div class="product_offer__box"><?php echo esc_html(wplus_helper::_price_discount($product)); ?>%</div>
                <?php endif; ?>
            <?php endif; ?>

            <?php if( 'yes' === $settings['show_colors'] &&  !empty( $colors ) ): ?>
              <div class="product_colors">
                <?php foreach( $colors as $color ): if( empty( $color ) ) continue; ?>
                    <div class="product_color" style="<?php echo "background-color:$color"; ?>" ></div>
                <?php endforeach; ?>
              </div>
            <?php endif; ?>


            <?php if( 'yes' === $settings['show_category'] ): ?>
                <?php wplus_helper::load_custom_template_category_carousel_slider( $product, 'custom-categories.category-layout-1',$new_args ); ?>
            <?php endif; ?>
        </div>
    </div>
    <div class="product_body woocommerce">

        <?php wplus_helper::title_in_product_cart_carousel(); ?>
        <?php if( 'yes' === $settings['show_rating'] ): ?>
            <?php  core_load_template('loop.rating'); ?>
        <?php endif; ?>
        <?php wplus_helper::shop_price_in_cart_product_carousel(); ?>
        
        <?php if( 'yes' === $settings['show_timer'] && ( wplus_helper::progress_bar_carts( $product,true ) || wplus_helper::woodplus_count_down($product, '',true) ) ): ?>

        <div class="product_timing">

                <?php echo wplus_helper::woodplus_count_down($product, 'carousel-slider product_timer'); ?>
                
                <?php wplus_helper::progress_bar_carts( $product ) ; ?>

        </div>
        <?php endif; ?>
    </div>
</div>