PATH:
root
/
wulkantemplates
<?php include_once 'lib/funkcje.php'; $class = isset($class) ? $class : "main"; $menu = Utils::getMenus($db); $menuLvl1 = array_filter($menu, function($check) { if ($check['level'] == 0) return true; }); $bread = Utils::generateBreadcrumbs($menu, $currentPageInfo['id']); array_shift($bread); $menuFooter = array_filter($menu, function($check) use ($menuLvl1) { if ($check['rodzic'] == $menuLvl1[1]['id']) return true; }); if (!isset($_GET['m']) || intval($_GET['m']) < 2) $isHomepage = true; else $isHomepage = false; if (!DEFINED("FLINK_CATEGORY_ID")) DEFINE("FLINK_CATEGORY_ID", 0); if (!isset($flinkCategoryID)) $flinkCategoryID = FLINK_CATEGORY_ID; $bread = Utils::generateBreadcrumbs($menu, $currentPageInfo['id']); array_shift($bread); if (isset($_GET['ContentId']) && $_GET['ContentId'] != "" && intval($_GET['ContentId']) > 0) { $id_tekstu = intval($_GET['ContentId']); if (!isset($tytuly[$id_tekstu])) header("Location: notfound"); $q = $db->select("menu{$lang}", "*", NULL, "WHERE `tekst` = {$id_tekstu}"); if (isset($q[0])) $currentPageInfo = $allMenu[$q[0]['id']]; $bread = Utils::generateBreadcrumbs($menu, $currentPageInfo['id']); array_shift($bread); $bread[count($bread) - 1]['nazwa'] = $tytuly[$id_tekstu]; } $hasTree = false; foreach ($allMenu as $a) { if ($a['rodzic'] == $currentPageInfo['id']) { $hasTree = true; break; } } ?> <header id="top" class="header"> <div <?php if ($currentPageInfo['tlo']) {?> style="background-image:url(<?php echo $currentPageInfo['tlo'] ?>)" <?php } ?> class="header__bg-anim-front"></div> <div class="header__bar"> <div class="bar__container container-wide"> <div class="bar__data"> <div class="data__container"> <div class="data__contact"> <?php echo $teksty[2]; ?> <div class="data__lang"> <?php $LANGS = preg_replace("/,[^,]*?/", ",", LANGS); $LANGS = explode(",", $LANGS); $fLang = $lang == "" ? $LANGS[0] : $lang; if ($fLang != 'pl'){ $langurl=$fLang.'/'; } if (count($LANGS) > 1) { ?> <ul class="lang"> <?php foreach ($LANGS as $lVal) { $link = $_SERVER['REQUEST_URI']; $link = "{$lVal}" . preg_replace("/^(\/(?:$|" . (implode("|", $LANGS)) . ")){1,}/i", ""); ?> <li class="<?php echo $lVal; if ($lVal == $fLang){echo ' active';} ?>"><a href=<?php echo $link ?> ></a></li> <?php } ?> </ul><?php } ?> </div> </div> </div> </div> <div class="bar__logo"> <a class="dark" href="#"><img src="userfiles/logos/logo-z-wulkan.svg" alt="<?php echo COMPANY_NAME; ?>"></a> </div> <nav class="bar__nav"> <?php $c = $currentPageInfo['id']; $menu1 = Utils::buildMenuIDsTree($allMenu, ["rodzic" => 1]); // echo "<pre>"; // ob_start(); // var_dump($menu1); // $x = ob_get_clean(); // echo htmlentities($x); // echo "</pre><br>"; //print_r($_GET); //echo $_GET[m]; //echo $c;; echo Utils::renderMenuTree($allMenu, $menu1, [], [ "itemActive" => function($menu, $parent, $index, $currentTree, $level) use ($c, $menu1, $qLang) { /* foreach ($menu1 as $k => $v) { if ($c == $k) { return " class=\"active\""; break; } } */ }, "itemHTML" => "<li{#itemActive#}><a href=\"{$qLang}{%link%}\">{%nazwa%}</a>{{listHTML}}</li>" ]); ?> </nav> </div> </div> <div class="header__slogan "> <div class="container-wide"> <?php if($currentPageInfo['slider']){ echo $currentPageInfo['slider']; }else{ echo $teksty[3]; } ?> </div> </div> </header> <?php if (preg_match('/news', $_GET['page'])){ include_once "news.php"; } ?>
[-] 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]