https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/rabbithabit.com/public_html/application/modules/featured/views/3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/rabbithabit.com/public_html/application/modules/featured/views/3/featured.php

<div class="section-title-container mb-50">
   <div class="container">
      <div class="row">
         <div class="col-lg-12">
            <!--=======  section title  =======-->
            <div class="section-title section-title--one text-center">
               <h1>Featured</h1>
            </div>
            <!--=======  End of section title  =======-->
         </div>
      </div>
   </div>
</div>
<!--=====  End of section title container ======-->
<!--=============================================
   =            product  area         =
   =============================================-->
<div class="product-area mb-70">
   <div class="container">
      <div class="row">

      <?php if(count($featured) > 0) : ?> 
        <?php foreach ($featured as $item) : ?>
        <div data-id="<?= $item->id_products; ?>" class="col-6 col-lg-3 col-md-6 col-sm-6 col-6 mb-45">
          <div class="single-product"> 
             <div class="single-product__image">
              <?php 
                $this->load->helper('product'); 
                $thumbnail = get_product_thumbnail($item->id_products);

                $product_detail_id = $this->db->select('id')->from('product_details')->where('product_id', $item->id_products)->where('price !=', 0)->order_by('price', 'ASC')->limit(1)->get()->row()->id;

                $product_combine = $this->db->group_by('attribute_id')->get_where("product_combination",array(
                  "product_id"=>$item->id_products,
                  "product_details_id"=>$product_detail_id,
                ))->result();

                $id_pc = '';
                foreach ($product_combine as $key_pc) {
                  $id_pc .= $key_pc->attribute_id.'->'.$key_pc->attribute_detail_id.';';
                }
                $id_pc = substr($id_pc, 0,-1);
              ?>  

              <a style="height: 270px;" data-id_pc="<?= $id_pc; ?>" class="eve_product_a image-wrap" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image1']; ?>" class="img-fluid" alt="">
                <img style="width: 100%;max-height: 100%;height: 100%;" src="<?= $thumbnail['image2']; ?>" class="img-fluid" alt="">
              </a> 
                <!-- <a class="image-wrap" href="product.php">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-19-600x600.jpg" class="img-fluid" alt="">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-18-600x600.jpg" class="img-fluid" alt="">
                </a> -->
                <div class="single-product__floating-badges">
                  <?php if ($item->new_arrival == 'yes'): ?>
                    <span class="hot">NEW</span>
                  <?php endif; ?>
                </div>
                <div class="single-product__floating-icons">
                  <span class="wishlist">
<?php 
$ses_customer = $this->session->userdata('customer');
$count_wishlist = $this->db->select('id_wishlist')
->from('wishlist')->where('customer_id', $ses_customer['customer_id'])
->where('product_id', $item->id_products)
->get()->num_rows(); 
?>                                        
<a href="javascript:void(0)" data-value="<?= $item->id_products; ?>" <?php if($this->session->userdata('customer')['customer_id']):?>
    class="add_wishlist_login" 
  <?php else: ?>
    class="add_wishlist_nonlogin" 
  <?php endif; ?>>
  <?php if ($count_wishlist > 0): ?> 
    <i style="color: #e04926 !important;" class="ion-android-favorite"></i> 
  <?php else: ?>
    <i class="ion-android-favorite-outline"></i> 
  <?php endif ?>
</a>
                  </span>
                </div>
             </div>

             <div class="single-product__content">
                <div>
                  <h5 style="font-weight: bold;">
                    <a class="li_product_a" data-id_pc="<?= $id_pc; ?>" href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                      <?= ucwords($item->title); ?><br>
                      <span><?= ucwords($item->brand); ?></span>
                    </a>
                  </h5>
                </div>
                <div class="price">
                  <?php
                    $reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id;

                    $t_normal_price = null;
                    $t_disc_price = null;

                    if($reseller_id == NULL) :

                      $lowest_price = get_lowest_price($item->id_products);
                      if($lowest_price->discounted_price == 0):
                        $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                      else : 
                        $t_normal_price = number_format($lowest_price->price, 0, ',', '.');
                        $t_disc_price = number_format($lowest_price->discounted_price, 0, ',', '.');
                      endif;

                    else :

                      $reseller_price = $this->db->select('price')->from('resellers_price')->where('product_detail_id', $product_detail_id)->where('reseller_id', $reseller_id)->get()->row()->price;

                      // reseller price
                      $t_normal_price = number_format($reseller_price, 0, ',', '.');
                    endif; 
                  ?> 
                  <?php if ($t_disc_price != null): ?>
                    <span class="main-price discounted">
                      Rp. <?= $t_normal_price; ?>
                    </span> 
                    <span class="discounted-price">
                      Rp. <?= $t_disc_price; ?>
                    </span>
                  <?php else: ?> 
                    <span class="discounted-price">
                      Rp. <?= $t_normal_price; ?>
                    </span>
                  <?php endif; ?>
                </div> 
             </div> 
          </div>
        </div> 
        <?php endforeach; ?>  
      <?php endif; ?>   
         <!-- <div class="col-6 col-lg-3 col-md-6 col-sm-6 col-6 mb-45">
            <div class="single-product"> 
               <div class="single-product__image">
                  <a class="image-wrap" href="product.php">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-22-600x600.jpg" class="img-fluid" alt="">
                  <img src="<?= base_url('themes/'.$theme.'/'); ?>assets/images/cosmetic/product-instagram-7-600x600.jpg" class="img-fluid" alt="">
                  </a>
                  <div class="single-product__floating-icons">
                     <span class="wishlist"><a href="index-cosmetics.html#" data-tippy="Add to wishlist" data-tippy-inertia="true" data-tippy-animation="shift-away" data-tippy-delay="50" data-tippy-arrow="true" data-tippy-theme = "sharpborder" data-tippy-placement = "left" ><i class="ion-android-favorite-outline"></i></a></span>
                  </div>
               </div>

               <div class="single-product__content">
                  <div>
                     <h5 style="font-weight: bold;"><a href="product.php">Coco rose body lotion</a></h5>
                  </div>
                  <div class="price">
                     <span class="main-price">Rp.130.000</span>
                  </div>
               </div> 
            </div>
         </div> -->
          
      </div>
      <div style="margin-top: 0px; text-align: right;" class="single-slider-post__content">
        <a href="<?= base_url(); ?>category/all-categories" class="blog-readmore-btn">
          read more
        </a>
      </div>
   </div>
</div>

https://t.me/RX1948 - 2025