📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
home.php
← Geri Dön
<?php m_header(); ?> <style> .img-top { visibility: hidden; opacity: 0; position: absolute; width: 100%; height: 175px; top: 0; left: 0; z-index: 99;transition: visibility 0s, opacity 0.3s linear; } .img-top-ust:hover .img-top { visibility: visible; opacity: 1; } video::-webkit-media-controls { display: none; } .orangee { position: absolute; height: 80px; width: 80px; right: 10px; top: -10px; background: #fb782d; border-radius: 50%; box-shadow: 0 0 15px 0 #fb782d; } /* Could Use thise as well for Individual Controls */ video::-webkit-media-controls-play-button {} video::-webkit-media-controls-volume-slider {} video::-webkit-media-controls-mute-button {} video::-webkit-media-controls-timeline {} video::-webkit-media-controls-current-time-display {} </style> <section class="slider mt-3"> <div class="container-lg"> <div class="mainslider"> <div id="stories" class="storiesWrapper"></div> </div> </div> </section> <?php $sliders = $db->table('slider')->where('status','=',1)->order('s_rank','ASC')->get(); if($sliders['total_count'] != 0){ ?> <section class="slider mt-1"> <div class="container-lg"> <div class="sliderbox"> <div class="mainslider"> <?php foreach($sliders['data'] as $slider) { $product = $db->table('products')->where('id','=',$slider['product_id'])->get(); if($sliders['total_count'] == 0)continue; $product = $product['data'][0]; $product_image = m_image_url($slider['image']); $alt_product_image_status = 0; if($product['image_2'] != "" && m_setting('product_hover') == 1){ $alt_product_image = m_image_url($product['image_2']); $alt_product_image_status = 1; } $product_title = $slider['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $button_text = $slider['btn_text']; $slider_c = $slider['green_zone']; $slider_content = $slider['content']; $slider_subtitle = $slider['sub_title']; $llink = $slider['link']; $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<div class="oldprice">'.$undiscounted_price.' '.$product_currency_type.'</div>'; } $cart_control = cart_control($product['id']); ?> <div style="background: url('<?= $product_image?>') center center no-repeat; background-size: cover;"> <div class="row"> <div class="col-xl-4 col-lg-5"> <div class="box"> <span class="green"><?= $slider_c ?></span> <div class="subtitle"><?= $slider_subtitle ?></div> <div class="title"><?= $product_title ?></div> <div class="price"><?= $product_sale_price ?> <?= $product_currency_type ?></div> <p> <?= $slider_content ?> </p> <a href="<?= $llink ?>" class="btn-buy"><?= $button_text?></a> </div> </div> </div> </div> <?php } ?> </div> <div class="thumbslider"> <?php foreach($sliders['data'] as $slider) { $product = $db->table('products')->where('id','=',$slider['product_id'])->get(); if($sliders['total_count'] == 0)continue; $product = $product['data'][0]; $product_image = m_image_url($slider['image']); $alt_product_image_status = 0; if($product['image_2'] != "" && m_setting('product_hover') == 1){ $alt_product_image = m_image_url($product['image_2']); $alt_product_image_status = 1; } $product_title = $slider['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<div class="oldprice">'.$undiscounted_price.' '.$product_currency_type.'</div>'; } $cart_control = cart_control($product['id']); ?> <div style="background: url(<?= $product_image ?>) center center no-repeat; background-size: cover;"> <span><?= $product_title ?></span> </div> <?php } ?> </div> </div> </div> </section> <?php } ?> <?php $sliders = $db->table('boxes')->where('status','=',1)->order('b_rank','ASC')->get(); if($sliders['total_count'] != 0){ ?> <section class="banner mt-5"> <div class="container-lg"> <div class="title text-center mb-5">FIRSATLARI YAKALAYIN</div> <div class="row"> <?php foreach($sliders['data'] as $slider){ $slider_image = m_image_url($slider['image']); $slider_link = m_permalink($slider['link']); ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-12"> <a href="<?= $slider['link']?>"> <img src="<?= $slider_image?>" class="img-fluid" height="225" width="338" alt=""> </a> </div> <?php } ?> </div> </div> </section> <?php } ?> <section class="bestsellers mt-5 pt-5 pb-5"> <div class="container-lg"> <div class="group d-flex align-items-center justify-content-between"> <div class="title"><?php echo LG_TOP_SELLING; ?></div> <a href="/popular-products" class="btn-all">Tüm Ürünleri Göster</a> </div> <div class="row mt-5 row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 productlist"> <?php $products = $db->table('products')->where('status','=',1)->order('rand()','')->limit(20)->get(); foreach($products['data'] as $product) { $product_image = m_image_url($product['image']); $alt_product_image_status = 0; if($product['image_2'] != "" && m_setting('product_hover') == 1){ $alt_product_image = m_image_url($product['image_2']); $alt_product_image_status = 1; } $product_title = $product['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<div class="oldprice">'.$undiscounted_price.' '.$product_currency_type.'</div>'; } $cart_control = cart_control($product['id']); ?> <div class="col"> <div class="item"> <div class="img"> <?php if($product['cargo_price'] == "0.00"){ ?> <span class="d-flex bdgs"> <?php if($product['extra_text'] != ""){ ?> <span class="bdg green"><?= $product['extra_text']?></span> <?php } ?> <?php if($product['extra_text2'] != ""){ ?> <span class="bdg orange"><?= $product['extra_text2']?></span> <?php } ?> </span> <?php } ?> <a href="<?php echo $product_link; ?>" class="img-top-ust"> <img src="<?php echo $product_image; ?>" width="238" height="175" class="img-fluid" alt=""> <?php if($alt_product_image_status){ ?> <img src="<?= $alt_product_image?>" width="238" height="175" class="img-top img-fluid" alt="Card Front"> <?php } ?> <?php if($product['home_slider_image'] != ""){ ?> <div class="img-top" > <video muted="muted" id="myVid" controls autoplay width="100%" height="100%" controls="false"> <source src="<?= m_image_url($product['home_slider_image'])?>" type="video/mp4"> </video> </div> <?php } ?> </a> </div> <a href="<?php echo $product_link; ?>" class="title"><h3><?php echo $product_title; ?></h3></a> <div class="pb"> <?php echo $undiscounted_html ?> <div class="price"><?php echo $product_sale_price; ?> <?php echo $product_currency_type; ?></div> <?php echo $cart_control; ?> </div> </div> </div> <?php } ?> </div> </div> </section> <?php $boxes_mid = $db->table('boxes_mid')->get(); if($boxes_mid['total_count']> 0){ $boxes_mid = $boxes_mid['data'][0]; $boxes_mid_sol = $boxes_mid['category_id']!=""?json_decode($boxes_mid['category_id'],true):[]; $boxes_mid_sag = $boxes_mid['category_id_2']!=""?json_decode($boxes_mid['category_id_2'],true):[]; ?> <section class="dual pt-5 pb-5 d-xl-flex d-lg-flex d-md-none d-sm-none d-none"> <div class="container-lg"> <div class="row"> <div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12"> <div class="title"> <?= $boxes_mid['baslik']?> </div> <?php if(isset($boxes_mid_sol[1])){ foreach($boxes_mid_sol[0] as $key=>$value){ ?> <a href="<?= $boxes_mid_sol[1][$key]?>" class="tag"><?= $value ?></a> <?php } } //<a href="'.$link.'" class="tag">'.$b['title'].'</a> ?> </div> <div class="col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12 d-flex justify-content-end offset-xl-2 offset-lg-2 offset-md-2"> <div class="group"> <div class="title"> <?= $boxes_mid['baslik_2']?> </div> <?php if(isset($boxes_mid_sag[1])){ foreach($boxes_mid_sag[0] as $key=>$value){ ?> <a href="<?= $boxes_mid_sag[1][$key]?>" class="tag"><?= $value ?></a> <?php } } //<a href="'.$link.'" class="tag">'.$b['title'].'</a> ?> </div> </div> </div> </div> </section> <?php } ?> <section class="onsale pt-5 pb-5"> <div class="container-lg"> <div class="group d-flex align-items-center justify-content-between flex-xl-row flex-lg-row flex-md-column flex-sm-column flex-column"> <div class="title">İNDİRİMLER</div> <?php $products = $db->table('products')->where('undiscounted_price','>',0)->order('rand()','')->get(); $kategoriler = []; $product_cat = []; ?> <div class="scrolllr"> <ul class="nav nav-pills nav-filter mt-xl-0 mt-lg-0 mt-md-5 mt-sm-5 mt-5"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#hepsi">HEPSİ</a> </li> <?php foreach($products['data'] as $product){ $return = ''; $type="false"; preg_match_all('#\[(.*?)\]#si',$product['c_id'],$categories); foreach($categories[1] as $c_id) { $c_data = $db->table('categories')->where('id','=',$c_id)->get(); $c_title = $c_data['data'][0]['title']; $c_sef = $c_data['data'][0]['sef']; if(!in_array($c_title,$kategoriler)){ array_push($kategoriler,$c_title); $product_cat[$product['id']] = $c_sef; ?> <li class="nav-item"> <a class="nav-link" href="#<?= $c_sef ?>"><?= $c_title?></a> </li> <?php } } } ?> </ul> </div> <a href="/popular-products" class="btn-all d-xl-flex d-lg-flex d-md-none d-sm-none d-none">Tüm Ürünleri Göster</a> </div> <div class="row mt-5 row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 productlist"> <?php foreach($products['data'] as $product){ $product_image = m_image_url($product['image']); if($product['image_2'] != "" && m_setting('product_hover') == 1){ $alt_product_image = m_image_url($product['image_2']); $alt_product_image_status = 1; } $product_title = $product['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<div class="oldprice">'.$undiscounted_price.' '.$product_currency_type.'</div>'; } $cart_control = cart_control($product['id']); ?> <div class="col <?=$product_cat[$product['id']];?>"> <div class="item"> <div class="img"> <?php if($product['cargo_price'] == "0.00"){ ?> <span class="d-flex bdgs"> <span class="bdg green">Ücretsiz Kargo!</span> </span> <?php } ?> <a href="<?php echo $product_link; ?>" class="img-top-ust"> <img src="<?php echo $product_image; ?>" width="238" height="175" class="img-fluid" alt=""> <?php if($alt_product_image_status){ ?> <img src="<?= $alt_product_image?>" width="238" height="175" class="img-top img-fluid" alt="Card Front"> <?php } ?> </a> </div> <a href="<?php echo $product_link; ?>" class="title"><h3><?php echo $product_title; ?></h3></a> <div class="pb"> <?php echo $undiscounted_html ?> <div class="price"><?php echo $product_sale_price; ?> <?php echo $product_currency_type; ?></div> <?php echo $cart_control; ?> </div> </div> </div> <?php } ?> </div> </div> <div class="bar"></div> </section> <section class="whyus pt-5 pb-5"> <div class="container-lg"> <div class="title text-center">NEDEN <?php echo str_replace('https://','',SITE_DOMAIN); ?>?</div> <div class="row mt-5"> <?php $boxes_bottom = $db->table('boxes_bottom')->where('status','=',1)->order('b_rank','ASC')->get(); if($boxes_bottom['total_count'] != 0){ foreach($boxes_bottom['data'] as $boxes){ $title = $boxes['title']; $content = $boxes['content']; $color = $boxes['color']; $icon = $boxes['icon']; ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <style> .subtitle-<?= $boxes['id']?>:before { content: ""; position: absolute; bottom: 0; width: 24px; height: 4px; border-radius: 2px; background-color: <?= $color?>; } </style> <div class="item orange" > <div class="subtitle subtitle-<?= $boxes['id']?>" style="color:<?= $color?>!important;" ><?= $title ?></div> <p><?= $content ?></p> </div> </div> <?php } } ?> </div> </div> </section> <section class="seotext mb-5"> <div class="container"> <?php echo m_setting('boxes_bottom'); ?> </div> </section> <?php m_footer(); ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula