PATH:
root
/
wulkantemplates
<?php $class = "page"; include_once "begin.php"; ob_start(); ?> <section class="container container-margin home__rel"> <h1 class="section__heading"><?php echo REALIZATIONS; ?></h1> <?php if (preg_match('/realizations-[0-9]/', $_GET['sel'])){ preg_match('/([\d]+)/', $_GET['sel'], $match); $id = ($match[0]); $realizacje = $db->select("realizacje$lang", NULL, NULL, "WHERE `pokaz` = 1 and ID =".$id." limit 1"); ?> <div class="container-rel realizacja"> <div class="w-35"> <?php foreach ($realizacje as $cKey => $cVal) { ?> <h2><?php echo $cVal['tytul'] ?></h2> <p class="item_city"><?php echo $cVal['miasto'] ?></p> <div class="item-desc"> <?php echo $cVal['tresc'] ?> </div> </div> <div class="w-65"> <img src="<?php echo $cVal['galeria'] ?>" alt="<?php echo $cVal['tytul'] ?>"> </div> <div class="clr"></div> <div class="rel-gallery owl-carousel owl-theme owl-loaded "> <?php $g = Utils::dirFiles($cVal['galeria']); ?> <?php foreach ($g as $cKey => $cVal) { ?> <a href="<?php echo $cVal ?>" style="background-image: url('<?php echo $cVal ?>')"> </a> <?php } ?> </div> <?php } ?> </div> <div class="page-nav"> <?php $n = $id + 1; $next = $db->select("realizacje$lang", NULL, NULL, "WHERE `pokaz` = 1 and ID =".$n." limit 1"); foreach ($next as $cKey => $cVal) { $cLink = isset($cVal['url']) && $cVal['url'] != "" ? $cVal['url'] : "realizations-{$cVal['id']}-" . Utils::makeLink($cVal['tytul']); ?> <a class="btn next" href="<?php echo $langurl.$cLink; ?>"><?php echo NEXT; ?></a> <?php } $id --; $prev = $db->select("realizacje$lang", NULL, NULL, "WHERE `pokaz` = 1 and ID =".$id." limit 1"); foreach ($prev as $cKey => $cVal) { $cLink = isset($cVal['url']) && $cVal['url'] != "" ? $cVal['url'] : "realizations-{$cVal['id']}-" . Utils::makeLink($cVal['tytul']); ?> <a class="btn prev" href="<?php echo $langurl.$cLink; ?>"><?php echo PREV ?></a> <?php } ?> </div> <?php } else{ ?> <div class="container-rel realizacje"> <?php $realizacje = $db->select("realizacje$lang",NULL, NULL, "WHERE `pokaz` = 1 ORDER BY id DESC LIMIT 12"); foreach ($realizacje as $cKey => $cVal) { $postID = $cVal['id']; if ($cVal['tytul']) { $cLink = isset($cVal['url']) && $cVal['url'] != "" ? $cVal['url'] : "realizations-{$cVal['id']}-" . Utils::makeLink($cVal['tytul']); ?> <div class="item"> <a href="<?php echo $langurl.$cLink; ?>" class="item__name"> <?php if ($cVal['galeria']) echo "<span class=\"item__image\" style=\"background-image: url('{$cVal['galeria']}')\"></span>"; ?> <span class="item-desc"> <span class="h2"> <?php echo Utils::shortenText($cVal['tytul'], 2, 9, 25);?> </span> <p class="item_city"><?php echo $cVal['miasto']; ?></p> </span> <span class="item_bg"> <h2><?php echo $cVal['tytul']; ?></h2> <p class="item_city"><?php echo $cVal['miasto']; ?></p> <span class="item_desc"><?php echo Utils::shortenText($cVal['tresc']); ; ?></span> </span> </a> </div> <?php }} ?> </div> <span id="show_more_main<?php echo $postID; ?>" class="text-center" style="display:inline-block; width:100%;"> <span id="<?php echo $postID;?>" class="btn show_more" > <?php echo MORE ?></span> </span> <?php } ?> </section> <?php include_once "footer.php"; ?> <script type="text/javascript"> $(document).ready(function(){ $(document).on('click','.show_more',function(){ var ID = $(this).attr('id'); var L ='<?php echo $langurl;?>'; var LANG ='<?php echo $lang;?>'; var MORE ='<?php echo MORE ?>'; $.ajax({ beforeSend : function(xhr) { xhr.overrideMimeType('text/html; charset=UTF-8'); }, type:'POST', url:'templates/ajax_more.php', data:{id:ID, lang:L, l:LANG, more:MORE}, success:function(html){ $('#show_more_main'+ID).remove(); $('.realizacje').append(html); } }); Cookies.set('rel', ID, { expires: 1 }) }); }); </script> </body> </html>
[-] gallery.php
[edit]
[-] form-send2.php
[edit]
[-] paginator.php
[edit]
[+]
..
[-] form.php
[edit]
[-] page-multi.php
[edit]
[-] header.php
[edit]
[-] produkty.php
[edit]
[-] top.php
[edit]
[-] form-send.php
[edit]
[-] category.php
[edit]
[-] home.php
[edit]
[-] footer.php
[edit]
[-] page-m.php
[edit]
[-] page.php
[edit]
[-] jakosc.php
[edit]
[-] news.php
[edit]
[-] page-m2.php
[edit]
[-] page-work.php
[edit]
[-] ajax_more.php
[edit]
[-] begin.php
[edit]
[-] realizations.php
[edit]