HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/blanc/thumbnail-box.php
<?php
/**
 * The template for displaying thumbnail boxes in item archive pages and related item list in single page
 * for Welcart e-commerce plugin.
 * @link       http://welcustom.net/
 * @author      Mamekko
 * @copyright   Copyright (c)2014 welcustom.net
 */
?>

<?php if(function_exists('usces_the_item')): ?>
<li>
<article <?php post_class('thumbnail-box'); ?>>

    <?php usces_the_item(); usces_have_skus(); ?>
    <a href="<?php the_permalink(); ?>">
        <?php if( has_post_thumbnail()) {
            the_post_thumbnail( 'medium' );
        } else {
            usces_the_itemImage($number=0, $width=228, $height=228);
        } ?>
        <h2 class="thumb-title entry-title"><?php usces_the_itemName(); ?></h2>
	       <?php usces_the_itemPriceCr(); ?><?php usces_guid_tax(); ?>
        <?php if(!usces_have_zaiko_anyone()): ?>
            <?php
            $status = usces_get_itemZaiko( 'id' ); 
            switch( $status ){
                case 2:
                    echo '<span class="soldout">'.__("Sold Out", "usces").'</span>';
                    break;
                case 3:
                    echo '<span class="outofstock">'.__("Out Of Stock", "usces").'</span>';
                    break;
            }
            ?>
        <?php endif; ?>
	</a>

</article>
</li>
<?php endif; ?>