PATH:
root
/
alutechniktemplates
<?php include_once 'lib/funkcje.php'; $class = isset($class) ? $class : "main"; if ((preg_match('/realizations/', $_GET['sel']) )){ $class ='page'; } $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 header--<?php echo $class; ?>"><?php if (($class == "main") and !(preg_match('/realizations/', $_GET['sel']) )){ ?> <?php } ?> <div class="header__bar"> <div id="top-bar" class="bar__container container-wide"> <div class="bar__logo"> <a href="#"><img src="userfiles/logos/alutechnik-logo.jpg" alt="<?php echo COMPANY_NAME; ?>"></a> </div> <div class="bar__contact"> <a href="#">Strona główna</a> <a href="mailto:alutechnik@op.pl">Kontakt E-mail</a> </div> </div> <div class="bar__container container-wide"> <div class="bar__rel"> <div class="w1"> Realizacje: </div> <div class="w2"> <marquee> <?php echo $teksty[22]; ?> </marquee> </div> </div> </div> </div> <div class="bar__container container-wide"> <ul id="light-slider"> <?php $slider = $db->select("video$lang",NULL, NULL, "WHERE `pokaz` = 1 ORDER BY id ASC"); foreach ($slider as $cKey => $cVal) { $postID = $cVal['id']; if ($cVal['id']) { ?> <li <?php if ($cVal['logo']) echo "style=\"background-image: url('{$cVal['logo']}')\""; ?> > <div class="txt-slider"> <?php echo $cVal['url']; ?></div> </li> <?php }} ?> </ul> </div> <div class="bar__container container-wide"> <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%}\"><span>{%nazwa%}</span></a>{{listHTML}}</li>" ]); ?> </nav> </div> </div> </div><?php if (($class == "main") and !(preg_match('/realizations/', $_GET['sel']) )){ ?> <?php } else { ?> <?php } ?> </header>
[-] page-cry.php
[edit]
[-] gallery.php
[edit]
[-] contact.php
[edit]
[-] paginator.php
[edit]
[+]
..
[-] form.php
[edit]
[-] page-multi.php
[edit]
[-] header.php
[edit]
[-] top.php
[edit]
[-] page-sales.php
[edit]
[-] form-send.php
[edit]
[-] page-testimonials.php
[edit]
[-] category.php
[edit]
[-] home.php
[edit]
[-] footer.php
[edit]
[-] page-m.php
[edit]
[-] page.php
[edit]
[-] page-video.php
[edit]
[-] news.php
[edit]
[-] page-m2.php
[edit]
[-] page-work.php
[edit]
[-] ajax_more.php
[edit]
[-] begin.php
[edit]
[-] realizations.php
[edit]
[-] page-press.php
[edit]