ok

Mini Shell

Direktori : /home2/selectio/public_html/application/views/product/
Upload File :
Current File : /home2/selectio/public_html/application/views/product/_product_item1.php

<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<style>
@media (min-width: 1260px){
.product-item .img-product{
        border-radius: 50%;
        height: 233px;
        width: 250px; 
        border: 4px solid black;
    }
}
 @media (max-width: 410px){
  .product-item .img-product {
        border-radius: 50%;
        height: 144px;
        width: 144px;
        border: 4px solid black;
        }
    }
</style>
<div class="product-item">
    <div class="row-custom<?php echo (!empty($product->image_second)) ? ' product-multiple-image' : ''; ?>">
        <a class="item-wishlist-button item-wishlist-enable <?php echo (is_product_in_wishlist($product) == 1) ? 'item-wishlist' : ''; ?>" data-product-id="<?php echo $product->id; ?>"></a>
        <div class="img-product-container">
            <?php if (!empty($is_slider)): ?>
                <a href="<?php echo generate_product_url($product); ?>">
                    <img src="<?php echo base_url() . IMG_BG_PRODUCT_SMALL; ?>" data-lazy="<?php echo get_product_item_image($product); ?>" alt="<?php echo get_product_title($product); ?>" class="img-fluid img-product imagestyle11">
                    <?php if (!empty($product->image_second)): ?>
                        <img src="<?php echo base_url() . IMG_BG_PRODUCT_SMALL; ?>" data-lazy="<?php echo get_product_item_image($product, true); ?>" alt="<?php echo get_product_title($product); ?>" class="img-fluid img-product img-second">
                    <?php endif; ?>
                </a>
            <?php else: ?>
                <a href="<?php echo generate_product_url($product); ?>">
                    <img src="<?php echo base_url() . IMG_BG_PRODUCT_SMALL; ?>" data-src="<?php echo get_product_item_image($product); ?>" alt="<?php echo get_product_title($product); ?>" class="img-fluid img-product imagestyle11" id="imagestyle11" style="border-radius:50% !important;">
                    <?php if (!empty($product->image_second)): ?>
                        <img src="<?php echo base_url() . IMG_BG_PRODUCT_SMALL; ?>" data-src="<?php echo get_product_item_image($product, true); ?>" alt="<?php echo get_product_title($product); ?>" class="img-fluid img-product img-second imagestyle11" id="imagestyle11" style="border-radius:50% !important;">
                    <?php endif; ?>
                </a>
            <?php endif; ?>
            
            <?php if (!empty($product->discount_rate) && !empty($discount_label)): ?>
                <span class="badge badge-discount">-<?= $product->discount_rate; ?>%</span>
            <?php endif; ?>
        </div>
        <?php if ($product->is_promoted && $this->general_settings->promoted_products == 1 && isset($promoted_badge) && $promoted_badge == true): ?>
            <span class="badge badge-dark badge-promoted"><?php echo trans("featured"); ?></span>
        <?php endif; ?>
    </div>
    <div class="row-custom item-details">
        <h3 class="product-title" style="text-align: center;">
            <a href="<?php echo generate_product_url($product); ?>"><?= get_product_title($product); ?></a>
        </h3>
    </div>
</div>

Zerion Mini Shell 1.0