PATH:
root
/
wulkantemplates
<?php define("PAGES_TO_DISPLAY", 3); define("PER_PAGE", 10); include_once "templates/begin.php"; $BACK = BACK; $MORE = MORE; ob_start(); ?> <main class="main main--<?php echo $class; ?>"> <div class="page-padding"> <section class="main__container container-margin container container-narrow "> <?php if (isset($_GET['a']) && $_GET['a'] > 0) { $artykul = $db->select("aktualnosci$lang", "*, DATE_FORMAT(`data`, '%d.%m.%y') AS `dataf`", NULL, "WHERE `id` = " . $_GET['a'])[0]; $tytul = mb_strtoupper($artykul['tytul']); echo <<<DOC <h1 class="heading">{$tytul}</h1> <article class="article-content"> <h6 class="date">{$artykul['dataf']}</h6> <div class="content">{$artykul['tresc']}</div> <p class="link-back"><a href="javascript:window.history.back()">$BACK</a></p> </article> DOC; } else { include_once "paginator.php"; echo "<div class=\"news-list\">"; $aktualnosci = $db->select("aktualnosci$lang", "*, DATE_FORMAT(`data`, '%d.%m.%y') AS `dataf`", NULL, "ORDER BY `data` DESC, `id` DESC LIMIT $start, $limit"); $counter = 1; foreach ($aktualnosci as $value) { $tytul = mb_strtoupper($value['tytul']); $tresc = $value['tresc']; $num = Utils::leadingZeros($counter, count($aktualnosci)); $link = Utils::makeLink($value['tytul']); if ($link != "") $link = mb_strtolower("-{$link}"); echo <<<DOC <div id="news-{$num}"> <hr/> <div class="article-short-content"> <h3 class="title">{$tytul}</h3> <p class="news-all data">{$value['dataf']} r.</p> <div class="content">{$tresc}</div> </div> <div class="clear"></div> </div> DOC; $counter++; } echo $pagination; } ?> </div> </div> </section> </main><?php include_once 'footer.php'; ?> </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]