<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <?php $StorySetting = $db->prepare("select * from story_ayar where id='1' ");$StorySetting->execute();$storyayar = $StorySetting->fetch(PDO::FETCH_ASSOC); ?> <?php if($storyayar['tur'] == '1' ) {$storyGroup = $db->prepare("select * from story_grup where dil=:dil and durum=:durum order by sira asc ");$storyGroup->execute(array('dil' => $_SESSION['dil'], 'durum' => '1'));?><?php if($storyGroup->rowCount()>'0'  ) {?><link rel="stylesheet" href="assets/css/story/zuck.min.css"><link rel="stylesheet" href="assets/css/story/snapgram.css"><div class="story-main-div"><div class="story-in-div"><div id="stories" class="storiesWrapper" ></div></div></div><?php $timestamp = date('Y-m-d G:i:s'); ?><script src="assets/js/story/story.js"></script><script src="assets/js/story/script.js"></script><script> var currentSkin = getCurrentSkin();var stories = new Zuck('stories', {backNative: true, previousTap: true, skin: currentSkin['name'], autoFullScreen: currentSkin['params']['autoFullScreen'], avatars: currentSkin['params']['avatars'], paginationArrows: currentSkin['params']['paginationArrows'], list: currentSkin['params']['list'], cubeEffect: currentSkin['params']['cubeEffect'], localStorage: true, stories: [ <?php foreach ($storyGroup as $storygrupRow) { $storyCek = $db->prepare("select * from story where grup_id=:grup_id and durum=:durum order by sira asc "); $storyCek->execute(array('grup_id' => $storygrupRow['grup_id'], 'durum' => '1',)); ?> <?php if($storyCek->rowCount()>'0'  ) {?> Zuck.buildTimelineItem("<?=$storygrupRow['baslik']?><?=$storygrupRow['grup_id']?>", "i/stories/<?=$storygrupRow['gorsel']?>", "<?=$storygrupRow['baslik']?>", "", timestamp(), [ <?php foreach ($storyCek as $story) {?> ["<?=$story['baslik']?>", "photo", <?=$story['saniye']?>, "i/stories/<?=$story['gorsel']?>", "i/stories/<?=$story['gorsel']?>", '<?=$story['url_adres']?>', '<?=$story['url_baslik']?>', false, timestamp()], <?php }?> ]), <?php }?> <?php }?> ]});</script><?php }?><?php }else {$storyGroup = $db->prepare("select * from story_grup where dil=:dil and durum=:durum order by sira asc ");$storyGroup->execute(array('dil' => $_SESSION['dil'], 'durum' => '1')); ?><?php if($storyGroup->rowCount()>'0'  ) {?><div class="story-main-div"><div class="story-in-div-standart"><div class="story-slider"><div class="swiper-wrapper" ><?php foreach ($storyGroup as $story) {?><div class="swiper-slide"><a class=" story-group-box" <?php if($story['url_adres'] == !null ) { ?>href="<?=$story['url_adres']?>" <?php if($storyayar['story_target'] == '1'  ) { ?>target="_blank"<?php }?> <?php }?>><div class="story-group-box-img" ><img src="i/stories/<?=$story['gorsel']?>" alt="<?=$story['baslik']?>" class="rounded-circle" style="border: 2px solid #<?=$storyayar['story_border']?>;"></div><?php if($story['baslik'] == !null  ) {?><div class="story-group-box-h"><?=$story['baslik']?></div><?php }?></a></div><?php }?></div><div class="swiper-button-next"></div></div></div></div><?php }?><?php }?>
