1 |
2
|
Manuela
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* $Id$
|
4 |
|
|
* Website Baker template: allcss
|
5 |
|
|
* This template is one of four basis templates distributed with Website Baker.
|
6 |
|
|
* Feel free to modify or build up on this template.
|
7 |
|
|
*
|
8 |
|
|
* This file contains the overall template markup and the Website Baker
|
9 |
|
|
* template functions to add the contents from the database.
|
10 |
|
|
*
|
11 |
|
|
* LICENSE: GNU General Public License
|
12 |
|
|
*
|
13 |
|
|
* @author Ryan Djurovich, C. Sommer
|
14 |
|
|
* @copyright GNU General Public License
|
15 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
16 |
|
|
* @version 2.70
|
17 |
|
|
* @platform Website Baker 2.7
|
18 |
|
|
*
|
19 |
|
|
* Website Baker is free software; you can redistribute it and/or modify
|
20 |
|
|
* it under the terms of the GNU General Public License as published by
|
21 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
22 |
|
|
* (at your option) any later version.
|
23 |
|
|
*
|
24 |
|
|
* Website Baker is distributed in the hope that it will be useful,
|
25 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27 |
|
|
* GNU General Public License for more details.
|
28 |
|
|
*/
|
29 |
|
|
|
30 |
|
|
/* -------------------------------------------------------- */
|
31 |
|
|
// Must include code to stop this file being accessed directly
|
32 |
|
|
if(defined('WB_URL') == false) { die('Cannot access '.basename(__DIR__).'/'.basename(__FILE__).' directly'); }
|
33 |
|
|
/* -------------------------------------------------------- */
|
34 |
|
|
|
35 |
|
|
ob_start(); //fetch MainContent
|
36 |
|
|
page_content(1);
|
37 |
|
|
$page_contentMain = ob_get_clean();
|
38 |
|
|
ob_start(); //fetch original header content
|
39 |
|
|
page_content(2);
|
40 |
|
|
$page_contentTeaser = ob_get_clean();
|
41 |
|
|
ob_start(); //fetch original header content
|
42 |
|
|
page_content(3);
|
43 |
|
|
$page_contentSidebar = ob_get_clean();
|
44 |
|
|
|
45 |
|
|
$lang = (defined('LANGUAGE') && LANGUAGE ? LANGUAGE : 'EN');
|
46 |
|
|
$charset = (defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8');
|
47 |
|
|
// TEMPLATE CODE STARTS BELOW
|
48 |
|
|
?><!DOCTYPE HTML>
|
49 |
|
|
<html lang="<?php echo strtolower((defined('LANGUAGE') && LANGUAGE ? LANGUAGE : 'EN')); ?>">
|
50 |
|
|
<head>
|
51 |
|
|
<meta charset="<?php echo (defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'); ?>" />
|
52 |
|
|
<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
|
53 |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
54 |
|
|
<meta name="description" content="<?php page_description(); ?>" />
|
55 |
|
|
<meta name="keywords" content="<?php page_keywords(); ?>" />
|
56 |
|
|
<!-- Mobile viewport optimisation -->
|
57 |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"/>
|
58 |
|
|
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/screen.css" media="screen" />
|
59 |
|
|
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/CookieNotice.css" media="screen" />
|
60 |
|
|
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/css/print.css" media="print" />
|
61 |
|
|
<link rel="canonical" href="[wblink<?php echo $page_id;?>]"/>
|
62 |
|
|
<link rel="shortcut icon" href="<?php echo TEMPLATE_DIR; ?>/images/favicon.ico" type="image/x-icon">
|
63 |
|
|
<link rel="apple-touch-icon" href="<?php echo TEMPLATE_DIR; ?>/images/apple-touch-icon.png"/>
|
64 |
|
|
<link rel="alternate" type="application/rss+xml" title="Test RSS-Feed" href="<?php echo WB_URL; ?>/modules/news/rss.php?page_id=12" />
|
65 |
|
|
<?php
|
66 |
|
|
// automatically include optional WB module files (frontend.css)
|
67 |
|
|
echo register_frontend_modfiles('css', false);
|
68 |
|
|
?>
|
69 |
|
|
<?php
|
70 |
|
|
// automatically include optional WB module files (jquery-min.js, frontend.js)
|
71 |
|
|
echo register_frontend_modfiles('jquery', false);
|
72 |
|
|
echo register_frontend_modfiles('js', false);
|
73 |
|
|
?></head>
|
74 |
|
|
<?php if( is_readable( WB_PATH.'/modules/wbCounter/count.php' )) { include ( WB_PATH.'/modules/wbCounter/count.php' ); } ?>
|
75 |
|
|
<body class="allcssRes gradient-sweet-home">
|
76 |
|
|
<div id="allcssRes-wrapper" class="main outer-box ">
|
77 |
|
|
<header >
|
78 |
|
|
<div class="banner gradient">
|
79 |
|
|
<a class="h1" href="<?php echo WB_URL; ?>/" target="_top"><?php page_title('', '[WEBSITE_TITLE]'); ?></a>
|
80 |
|
|
<span class="h1">| <?php page_title('', '[PAGE_TITLE]'); ?></span>
|
81 |
|
|
</div>
|
82 |
|
|
<!-- frontend search -->
|
83 |
|
|
<div class="search_box gradient round-top-left round-top-right">
|
84 |
|
|
<?php
|
85 |
|
|
// CODE FOR WEBSITE BAKER FRONTEND SEARCH
|
86 |
|
|
if (SHOW_SEARCH) { ?>
|
87 |
|
|
<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get" >
|
88 |
|
|
<input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
|
89 |
|
|
<input type="text" name="string" class="search_string" />
|
90 |
|
|
<input type="submit" name="wb_search" id="wb_search" value="<?php echo $TEXT['SEARCH']; ?>" class="search_submit" />
|
91 |
|
|
</form>
|
92 |
|
|
<?php } ?>
|
93 |
|
|
</div>
|
94 |
|
|
</header>
|
95 |
|
|
<?php if(trim($page_contentTeaser)!=''){ ?>
|
96 |
|
|
<div class="teaser">
|
97 |
|
|
<div class="content">
|
98 |
|
|
<?php echo $page_contentTeaser; ?>
|
99 |
|
|
</div><!-- end content -->
|
100 |
|
|
</div><!-- end teaser -->
|
101 |
|
|
<?php } ?>
|
102 |
|
|
|
103 |
|
|
<input type="checkbox" id="open-menu" />
|
104 |
|
|
<label for="open-menu" class="open-menu-label">
|
105 |
|
|
<span class="title h4"> <?php page_title('', '[PAGE_TITLE]'); ?></span>
|
106 |
|
|
<span class="fa fa-bars" aria-hidden="true"> </span>
|
107 |
|
|
</label>
|
108 |
|
|
<div id="lang" style="height: 2.925em;">
|
109 |
|
|
<?php $iMultiLang = 0; if (function_exists('language_menu')) { $sMultiLang = language_menu(); $iMultiLang = intval($sMultiLang!='');} ?>
|
110 |
|
|
</div>
|
111 |
|
|
<div id="left-col">
|
112 |
|
|
<div class="content">
|
113 |
|
|
<!-- main navigation menu -->
|
114 |
|
|
<nav class="outer-box gradient-sweet-home">
|
115 |
|
|
<div class="menu" style="font-size: 86%;">
|
116 |
|
|
<?php
|
117 |
|
|
echo show_menu2(SM2_ALLMENU, SM2_ROOT+$iMultiLang, SM2_CURR+1, SM2_ALL|SM2_BUFFER|SM2_PRETTY|SM2_NUMCLASS,'<li><span class="menu-default">[ac][menu_title]</a></span>','</li>','<ul>','</ul>');
|
118 |
|
|
?>
|
119 |
|
|
</div>
|
120 |
|
|
</nav>
|
121 |
|
|
|
122 |
|
|
<?php if(trim($page_contentSidebar)!=''){ ?>
|
123 |
|
|
<div class="left-content outer-box gradient-sweet-home">
|
124 |
|
|
<?php echo $page_contentSidebar; ?>
|
125 |
|
|
</div>
|
126 |
|
|
<?php } ?>
|
127 |
|
|
<?php if (defined('FRONTEND_LOGIN') && FRONTEND_LOGIN){ ?>
|
128 |
|
|
<div class="outer-box gradient-sweet-home">
|
129 |
|
|
[[LoginBox]]
|
130 |
|
|
</div>
|
131 |
|
|
<?php } ?>
|
132 |
|
|
<?php if (function_exists('wbCounter')){ ?>
|
133 |
|
|
<div class="outer-box gradient-sweet-home">
|
134 |
|
|
<?php echo wbCounter();?>
|
135 |
|
|
</div>
|
136 |
|
|
<?php } ?>
|
137 |
|
|
</div><!-- end content -->
|
138 |
|
|
</div><!-- end left-col -->
|
139 |
|
|
|
140 |
|
|
<div class="main-content">
|
141 |
|
|
<?php echo $page_contentMain; ?>
|
142 |
|
|
</div>
|
143 |
|
|
|
144 |
|
|
<footer>
|
145 |
|
|
<div class="footer">
|
146 |
|
|
<?php page_footer(); ?>
|
147 |
|
|
</div>
|
148 |
|
|
</footer>
|
149 |
|
|
|
150 |
|
|
</div>
|
151 |
|
|
|
152 |
|
|
<div class="powered_by">
|
153 |
|
|
Powered by <a href="http://websitebaker.org" target="_blank">WebsiteBaker</a>
|
154 |
|
|
</div>
|
155 |
|
|
<div id="CookieNotice">
|
156 |
|
|
<div id="CookieNoticeBar">
|
157 |
|
|
<span id="CookieNoticeClose">OK</span>
|
158 |
|
|
<span id="CookieNoticeInfo">This website uses cookies. When you browse on this site, you agree to the use of cookies.</span>
|
159 |
|
|
</div>
|
160 |
|
|
</div>
|
161 |
|
|
<script src="<?php echo TEMPLATE_DIR; ?>/jquery_frontend.js" type="text/javascript"></script>
|
162 |
|
|
<script src="<?php echo TEMPLATE_DIR; ?>/js/CookieNotice.js" type="text/javascript"></script>
|
163 |
|
|
|
164 |
|
|
<?php
|
165 |
|
|
// automatically include optional WB module file frontend_body.js)
|
166 |
|
|
// register_frontend_modfiles_body('jquery');
|
167 |
|
|
register_frontend_modfiles_body('js');
|
168 |
|
|
?>
|
169 |
|
|
|
170 |
|
|
</body>
|
171 |
|
|
</html>
|