<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?><?php if($cacheRow['slider_orta'] == '1' ) {?><?php $CacheIPKontrol = $db->prepare("select * from ziyaretciler where ipadres=:ipadres ");$CacheIPKontrol->execute(array('ipadres' => $ipAdres));if($CacheIPKontrol->rowCount()>'0'  ) {error_reporting(0);$slidercac2 = md5("slider_orta").md5($ipAdres).".html";$cache = "i/cache/s/" . $slidercac2;$sure = $cacheRow['slider_orta_zaman'];if (time() - $sure < filemtime($cache) && isset($cache)) {readfile($cache);} else {ob_start(); ?><?php $slider2Ayar = $db->prepare("select * from slider2_ayar where id='1'");$slider2Ayar->execute();$slid2ayar = $slider2Ayar->fetch(PDO::FETCH_ASSOC); ?><?php $slider = $db->prepare("select * from slider2 where dil='$_SESSION[dil]' and durum='1' order by sira asc");$slider->execute(); ?><?php if ($slider->rowCount() > 0) { ?><div class="slider-main-div" style="width: 100%; background-color: #<?= $slid2ayar['arkaplan'] ?>; overflow: hidden; margin:<?= $slid2ayar['margin'] ?>px 0; border-top:1px solid #<?= $slid2ayar['border_color'] ?>; border-bottom:1px solid #<?= $slid2ayar['border_color'] ?>;"><div class="swiper-middle-container"><div class="swiper-wrapper"><?php foreach ($slider as $row) { ?><div class="swiper-slide"><?php if ($row['link_url'] == !null) { ?><a href="<?= $row['link_url'] ?>" <?php if ($row['yeni_sekme'] == '1') { ?>target="_blank" <?php } ?>style="position: absolute; width: 100% ; height: 100%;"></a><?php } ?><div class="middle-slider-img"><?php if ($ayar['lazy'] == '1') { ?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?= $row['baslik'] ?>" style="width: 100%"><?php } else { ?><img src="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?= $row['baslik'] ?>" style="width: 100%"><?php } ?></div><div class="middle-slider-img-mobile"><?php if ($row['gorsel_mobil'] == !null) { ?><?php if ($ayar['lazy'] == '1') { ?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel_mobil']; ?>" alt="<?= $row['baslik'] ?>"><?php } else { ?><img src="i/uploads/<?php echo $row['gorsel_mobil']; ?>" alt="<?= $row['baslik'] ?>"><?php } ?><?php } else { ?><?php if ($ayar['lazy'] == '1') { ?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?= $row['baslik'] ?>"><?php } else { ?><img src="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?= $row['baslik'] ?>"><?php } ?><?php } ?></div></div><?php } ?></div><div class="swiper-button-next"></div><div class="swiper-button-prev"></div></div></div><?php } else { ?><?php } ?><?php $ac = fopen($cache, "w+");fwrite($ac, ob_get_contents());fclose($ac);ob_end_flush();}} ?><?php }else { ?><?php $slider2Ayar = $db->prepare("select * from slider2_ayar where id='1'");$slider2Ayar ->execute();$slid2ayar = $slider2Ayar->fetch(PDO::FETCH_ASSOC); ?><?php $slider = $db->prepare("select * from slider2 where dil='$_SESSION[dil]' and durum='1' order by sira asc");$slider->execute(); ?><?php if($slider->rowCount() > 0) { ?><div class="slider-main-div" style="width: 100%; background-color: #<?=$slid2ayar['arkaplan']?>; overflow: hidden; margin:<?=$slid2ayar['margin']?>px 0; border-top:1px solid #<?=$slid2ayar['border_color']?>; border-bottom:1px solid #<?=$slid2ayar['border_color']?>;"><div class="swiper-middle-container"><div class="swiper-wrapper"><?php foreach ($slider as $row) { ?><div class="swiper-slide"><?php if($row['link_url'] == !null ) {?><a href="<?=$row['link_url']?>" <?php if($row['yeni_sekme'] == '1' ) { ?>target="_blank" <?php }?> style="position: absolute; width: 100% ; height: 100%;"></a><?php }?><div class="middle-slider-img"><?php if($ayar['lazy'] == '1' ) {?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?=$row['baslik']?>"  style="width: 100%"><?php }else { ?><img src="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?=$row['baslik']?>" style="width: 100%"><?php }?></div><div class="middle-slider-img-mobile"><?php if($row['gorsel_mobil'] == !null ) {?><?php if($ayar['lazy'] == '1' ) {?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel_mobil']; ?>" alt="<?=$row['baslik']?>"><?php }else { ?><img src="i/uploads/<?php echo $row['gorsel_mobil']; ?>" alt="<?=$row['baslik']?>"><?php }?><?php }else { ?><?php if($ayar['lazy'] == '1' ) {?><img class="lazy" src="images/load.gif" data-original="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?=$row['baslik']?>"><?php }else { ?><img src="i/uploads/<?php echo $row['gorsel']; ?>" alt="<?=$row['baslik']?>"><?php }?><?php }?></div></div><?php } ?></div><div class="swiper-button-next"></div><div class="swiper-button-prev"></div></div></div><?php } else { ?><?php } ?><?php } ?>