PATH:
root
/
polmet2templates
<?php define("PAGES_TO_DISPLAY", 3); define("PER_PAGE", 5); include_once "templates/begin.php"; $BACK = BACK; $MORE = MORE; ?> <main id="news" class="page-1 news"><?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 "<h1 class=\"heading\">{$currentPageInfo['nazwa']}</h1>"; 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 = Utils::shortenText($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}"> <div class="date">{$value['dataf']}</div> <div class="article-short-content"> <h4 class="title">{$tytul}</h4> <div class="content">{$tresc}</div> <p class="read-more"><a href="news/{$value['id']}{$link}">$MORE</a></p> </div> <div class="clear"></div> </div> DOC; $counter++; } echo $pagination; } ?> </div> </main><?php include_once 'footer.php'; ?> </body> </html>
[-] paginator.php
[edit]
[+]
..
[-] form.php
[edit]
[-] page-multi.php
[edit]
[-] header.php
[edit]
[-] top.php
[edit]
[-] form-send.php
[edit]
[+]
css
[-] category.php
[edit]
[-] home.php
[edit]
[-] footer.php
[edit]
[-] page.php
[edit]
[-] news.php
[edit]
[-] funkcje.php
[edit]
[-] includes.php
[edit]
[+]
scss
[-] ajax_more.php
[edit]
[-] begin.php
[edit]
[-] product.php
[edit]