Advertisement
Guest User

Untitled

a guest
May 6th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | None | 0 0
  1. <?php
  2. /* -------------------------------------------------------- */
  3. // Must include code to stop this file being accessed directly
  4. if (!defined('SYSTEM_RUN')) {header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); echo '404 File not found'; flush(); exit;}
  5. /* -------------------------------------------------------- */
  6. ob_start(); //fetch MainContent
  7. page_content(1);
  8. $page_contentMain = ob_get_clean();
  9. ob_start(); //fetch original header content
  10. page_content(2);
  11. $page_contentTeaser = ob_get_clean();
  12. ob_start(); //fetch original header content
  13. page_content(3);
  14. $page_contentSidebar = ob_get_clean();
  15. $sPageLang = strtolower(isset($wb->page) || ($wb instanceof frontend) ? $wb->page['language'] : 'BG');
  16. $iPageId = (defined('PAGE_ID') ? PAGE_ID : 0);
  17.  
  18. // TEMPLATE CODE STARTS BELOW
  19. ?>
  20. <!DOCTYPE html>
  21. <html lang="<?php echo $sPageLang; ?>">
  22.  
  23. <head>
  24. <meta charset="utf-8" />
  25. <title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
  26. <meta name="description" content="<?php page_description(); ?>" />
  27. <meta name="keywords" content="<?php page_keywords(); ?>" />
  28. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  29. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  30.  
  31. <!-- Favicon -->
  32. <link rel="shortcut icon" href="<?php echo WB_URL; ?>/logo_24.png" />
  33.  
  34. <!-- Core Stylesheet -->
  35. <link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/style.css" media="screen" />
  36.  
  37.  
  38. <?php
  39. if (!function_exists('LangPadeId')) {function LangPadeId(){return $iPageId;}}
  40. // to show flags in frontend
  41. $iMultiLang = 0;$sMultiLang = ''; if (function_exists('language_menu')){$sMultiLang = language_menu('png',false); $iMultiLang = intval(!empty($sMultiLang) ? 1 : 0);}
  42. if (function_exists('LangPadeId')&&$iMultiLang) {
  43. ?>
  44. <!--
  45. <link rel="alternate" hreflang="x-default" href="[wblink<?php echo LangPadeId($sPageLang);?>]" />
  46. <link rel="alternate" hreflang="de" href="[wblink<?php echo LangPadeId('BG');?>]" />
  47. <link rel="alternate" hreflang="en" href="[wblink<?php echo LangPadeId('EN');?>]" />
  48. -->
  49. <?php
  50. }
  51. // automatically include optional WB module files (frontend.css)
  52. register_frontend_modfiles('css');
  53. // if function LangPadeId doesn't exists, you have to upgrade WBLingual Switcher Add-on to latest version'
  54. // automatically include optional WB module files (frontend.js, jQuery) enable OldModFiles in OutputFilter
  55. register_frontend_modfiles('jquery');?>
  56. <?php register_frontend_modfiles('js'); ?>
  57.  
  58. <!--
  59. <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
  60. <script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script> -->
  61. <!-- <script>
  62. window.addEventListener("load", function(){
  63. window.cookieconsent.initialise({
  64. "palette": {
  65. "popup": {
  66. // "background": "#0a5699"
  67. "background": "#e2e2e2"
  68. },
  69. "button": {
  70. "background": "#d1d1d1"
  71. }
  72. },
  73. "theme": "edgeless",
  74. "position": "top",
  75. "static": true,
  76. "content": {
  77. "message": "<?php echo $TEXT['COOKIES']; ?>",
  78. "dismiss": "<?php echo $TEXT['CLOSE']; ?>",
  79. "link": "<?php echo $TEXT['READ_MORE']; ?>",
  80. "href": "https://#"
  81. }
  82. })});
  83. </script>-->
  84. <![endif]-->
  85.  
  86. <!-- FACEBOOK -->
  87. <?php echo openGraph(); ?>
  88.  
  89.  
  90.  
  91. <!--<link rel="stylesheet" type="text/css" href="//wpcc.io/lib/1.0.2/cookieconsent.min.css"/>
  92. <script src="//wpcc.io/lib/1.0.2/cookieconsent.min.js"></script>
  93. <script>window.addEventListener("load", function(){window.wpcc.init({"border":"thin","corners":"small","colors":{"popup":{"background":"#222222","text":"#ffffff","border":"#b3d0e4"},"button":{"background":"#b3d0e4","text":"#000000"}},"fontsize":"tiny","transparency":"15","margin":"none","padding":"none","content":{"href":"https://yaneviconsult.com/pages/bg/biskvitki.php","message":"Тази страница използва бисквитки!","link":"https://yaneviconsult.com/pages/bg/biskvitki.php","button":"Съгласен съм!"}})});</script> -->
  94.  
  95.  
  96.  
  97. </head>
  98.  
  99. <body>
  100. <!-- Preloader -->
  101. <!--<div id="preloader">
  102. <div class="wrapper">
  103. <div class="cssload-loader"></div>
  104. </div>
  105. </div>-->
  106.  
  107. <!-- ***** Top Search Area Start ***** -->
  108. <div class="top-search-area">
  109. <!-- Search Modal -->
  110. <div class="modal fade" id="searchModal" tabindex="-1" role="dialog" aria-hidden="true">
  111. <div class="modal-dialog modal-dialog-centered" role="document">
  112. <div class="modal-content">
  113. <div class="modal-body">
  114. <!-- Close Button -->
  115. <button type="button" class="btn close-btn" data-dismiss="modal"><i class="fa fa-times"></i></button>
  116. <!-- Form -->
  117. <form action="index.html" method="post">
  118. <input type="search" name="top-search-bar" class="form-control" placeholder="Search and hit enter...">
  119. <button type="submit">Search</button>
  120. </form>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. <!-- ***** Top Search Area End ***** -->
  127.  
  128. <!-- ***** Header Area Start ***** -->
  129. <header class="header-area">
  130. <!-- Main Header Start -->
  131. <div class="main-header-area">
  132. <div class="classy-nav-container breakpoint-off">
  133. <!-- Classy Menu -->
  134. <nav class="classy-navbar justify-content-between" id="uzaNav">
  135.  
  136. <!-- Logo -->
  137. <a class="nav-brand" href="https://yaneviconsult.com/pages/bg/nachalo.php"><img src="https://yaneviconsult.com/templates/yc/img/core-img/logo_90.png" alt=""></a>
  138.  
  139. <!-- Navbar Toggler -->
  140. <div class="classy-navbar-toggler">
  141. <span class="navbarToggler"><span></span><span></span><span></span></span>
  142. </div>
  143.  
  144. <!-- Menu -->
  145. <div class="classy-menu">
  146. <!-- Menu Close Button -->
  147. <div class="classycloseIcon">
  148. <div class="cross-wrap"><span class="top"></span><span class="bottom"></span></div>
  149. </div>
  150.  
  151. <!-- Nav Start -->
  152. <div class="classynav">
  153. <?php
  154. $open = '<li class="[if(class=menu-parent){active}][if(class==menu-expand){hassubs}]">'
  155. . '[if(class==menu-expand){<a href="[url]" class="">[menu_title]<b class="caret"></b></a>}'
  156. . 'else {<a href="[url]">[menu_title]</a>}]';
  157. echo show_menu2(
  158. $aMenu = 1,
  159. $aStart = SM2_ROOT+$iMultiLang,
  160. $aMaxLevel = SM2_CURR+2,
  161. $aOptions = SM2_ALL|SM2_PRETTY,
  162. $aItemOpen = $open,
  163. $aItemClose = '</li>',
  164. $aMenuOpen = '<ul class="[if(level!=0){dropdown}]">',
  165. $aMenuClose = '</ul>',
  166. $aTopItemOpen = false,
  167. $aTopMenuOpen = '<ul class="dropdown">'
  168. );?>
  169.  
  170.  
  171. <!-- Get A Quote -->
  172. <div class="get-a-quote ml-4 mr-3">
  173. <a href="https://yaneviconsult.com/pages/bg/zapitvane.php" class="btn uza-btn"><?php echo $TEXT['REQUEST']; ?></a>
  174. </div>
  175.  
  176. <!-- Login / Register -->
  177. <div class="login-register-btn mx-3">
  178. <!--<a href="#">Login <span>/ Register</span></a>-->
  179. <a><?php if(trim($sMultiLang)!=''){ ?>
  180. <?php echo $sMultiLang; ?>
  181. <?php } ?></a>
  182. </div>
  183.  
  184. <!-- Search Icon -->
  185. <div class="search-icon" data-toggle="modal" data-target="#searchModal">
  186. <i class="icon_search"></i>
  187. </div>
  188. </div>
  189. <!-- Nav End -->
  190.  
  191. </div>
  192. </nav>
  193. </div>
  194. </div>
  195. </header>
  196. <!-- ***** Header Area End ***** -->
  197.  
  198.  
  199.  
  200. <?php page_content(2); ?>
  201. <section class="uza-portfolio-single-area section-padding-80">
  202. <div class="container">
  203. <!--<div class="row justify-content-between align-items-end"> -->
  204.  
  205.  
  206. <div class="row">
  207. <div class="col-12">
  208. <?php page_content(1); ?>
  209. </div>
  210.  
  211.  
  212. <div class="col-8">
  213. <?php page_content(3); ?>
  214. </div>
  215.  
  216. <div class="col-4">
  217. <?php page_content(4); ?>
  218. </div></div>
  219. <!-- </div> -->
  220. </div>
  221. </section>
  222.  
  223. <!-- ***** Footer Area Start ***** -->
  224. <footer class="footer-area section-padding-80-0" style="background-color:aliceblue;">
  225. <?php page_footer(); ?>
  226. </footer>
  227. <!-- ***** Footer Area End ***** -->
  228.  
  229. <!-- ******* All JS Files ******* -->
  230. <!-- jQuery js -->
  231. <!-- <script src="<?php echo TEMPLATE_DIR; ?>/js/jquery.min.js" type="text/javascript"></script> -->
  232. <!-- Popper js -->
  233. <!-- <script src="<?php echo TEMPLATE_DIR; ?>/js/popper.min.js" type="text/javascript"></script> -->
  234. <!-- Bootstrap js -->
  235. <script src="<?php echo TEMPLATE_DIR; ?>/js/bootstrap.min.js" type="text/javascript"></script>
  236. <!-- All js -->
  237. <!-- <script src="<?php echo TEMPLATE_DIR; ?>/js/uza.bundle.js" type="text/javascript"></script> -->
  238. <!-- Active js -->
  239. <!-- <script src="<?php echo TEMPLATE_DIR; ?>/js/default-assets/active.js" type="text/javascript"></script> -->
  240.  
  241. </body>
  242.  
  243. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement