YaWK  24.1
Yet another WebKit
index.php
Go to the documentation of this file.
1 <!DOCTYPE html>
2 <html lang="de">
3 <head>
4  <?php /* INDEX.PHP - UNIVERSAL TEMPLATE 1.0 */
5  /* template positions from top to bottom
6  # globalmenu
7  # top
8  # main
9  # bottom
10  # footer
11  # hiddentoolbar
12  # debug
13  db-positions:
14  globalmenu:top:main:bottom:footer:hiddentoolbar:debug
15  */
16  /** @vars
17  * these vars are declared in yourdomain/index.php before inclusion of this document
18  * $template // template object
19  * $controller // controller object
20  * $page // page object
21  * $user // user object
22  * $stats // stats object
23  */
24  /* db object */
25  /** @var $db db */
26  /* language object */
27  /** @var $lang language */
28  /* user object */
29  /** @var $user user */
30  /* template object */
31  /** @var $template template */
32 
33  use YAWK\db;
34  use YAWK\language;
35  use YAWK\settings;
36  use YAWK\sys;
37  use YAWK\template;
38  use YAWK\user;
39 
40  // \YAWK\sys::outputObjects($template, $controller, $page, $user, $stats);
41  ?>
42  <!-- To ensure proper rendering and touch zooming on phones and tablets -->
43  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
44  <!-- set Meta Tags for this page -->
45  <?php $metaTags = $page::getMetaTagsArray($db, $page->id); ?>
46  <meta name="keywords" content="<?php echo $metaTags['meta_keywords']; ?>">
47  <meta name="description" content="<?php echo $metaTags['meta_local']; ?>">
48  <meta name="generator" content="<?php echo settings::getSetting($db, "siteauthor"); ?>">
49  <meta charset="utf-8">
50  <!-- apple touch icons
51  <link rel="apple-touch-icon" sizes="120x120" href="media/images/apple-touch-icon-120x120-precomposed.png">
52  <link rel="apple-touch-icon" sizes="152x152" href="media/images/apple-touch-icon-152x152-precomposed.png">
53  -->
54  <?php
55  // get current host
56  $host = sys::addTrailingSlash(settings::getSetting($db, "host"));
57  $dirprefix = settings::getSetting($db, "dirprefix");
58  // if dirprefix is set, add it to host
59  if (!empty($dirprefix))
60  { // this ensures that the templates will work, if yawk is installed in a subdirectory
61  $host = $host.$dirprefix = sys::addTrailingSlash($dirprefix);
62  }
63  // include additional html header stuff & local meta tags
64  sys::includeHeader($db, $host);
65  // load active google font code
66  template::loadGoogleFonts($db);
67  // load position stats (0|1)
68  $positions = template::getPositionStatesArray($db, $template->id);
69  // load position indicators
70  $indicators = template::getPositionIndicatorStatusArray($db, $template->id);
71  // load active css assets for this template
72  $template->loadActiveAssets($db, $template->id, $host);
73  // check if language is set
74  if (isset($_GET['language']) && (!empty($_GET['language'])))
75  { // take just the first 2 chars (use global language tag)
76  $languageFolder = mb_substr($_GET['language'], 0,2);
77  // set language cookie via JS
78  echo "<script>document.cookie = \"userSelectedLanguage=$languageFolder; expires=Thu, 04 Nov 2021 12:00:00 UTC\"; </script>";
79  // set PHP cookie var
80  $_COOKIE['userSelectedLanguage'] = $languageFolder;
81  }
82  ?>
83 
84  <!-- SETTINGS.MIN.CSS YaWK template settings: Bootstrap core CSS override -->
85  <link rel="stylesheet" type="text/css" href="<?php echo $host; ?>system/templates/<?php echo $template->name; ?>/css/settings.min.css">
86  <!-- CUSTOM.MIN.CSS User defined CSS Rules -->
87  <link rel="stylesheet" type="text/css" href="<?php echo $host; ?>system/templates/<?php echo $template->name; ?>/css/custom.min.css">
88 
89  <!--[if lt IE 9]>
90 <script src="<?php echo $host; ?>system/engines/jquery/html5shiv.min.js"></script>
91 <script src="<?php echo $host; ?>system/engines/jquery/1.3.0-respond.min.js"></script>
92 <![endif]-->
93 
94 </head>
95 
96 <body style="<?php echo YAWK\template::getActiveBodyFont($db, $user, $template); ?>" ondragstart="return false">
97 
98 <?php
99 $col = '';
100 // \YAWK\sys::outputObjects($template, $controller, $page, $user, $stats);
101 // exit;
102 ?>
103 <!-- LAYOUT START -->
104 <div class="container-fluid">
105  <div class="row">
106  <?php
107  // POSITION: outerTop
108  template::getPositionDivBox($db, $lang, "outerTop", 1, "col-md-12", $positions, $indicators, $user, $template);
109  ?>
110  </div>
111  <div class="row">
112  <?php
113  // POSITION: outerLeft
114  template::getPositionDivBox($db, $lang, "outerLeft", 0, "col-md-2", $positions, $indicators, $user, $template);
115  ?>
116  <!-- <div class="col-md-2 posbox" id="pos_outerLeft" style="height: 630px; margin-bottom:5px; text-align: center;">&laquo;outerLeft&raquo;</div> -->
117  <?php
118  if ($positions['pos-outerLeft-enabled'] === "1" && ($positions['pos-outerRight-enabled'] === "1"))
119  {
120  $col = "col-md-8";
121  }
122  else if ($positions['pos-outerLeft-enabled'] === "0" && ($positions['pos-outerRight-enabled'] === "1")
123  || ($positions['pos-outerLeft-enabled'] === "1" && ($positions['pos-outerRight-enabled'] === "0")))
124  {
125  $col = "col-md-10";
126  }
127  else if ($positions['pos-outerLeft-enabled'] === "0" && ($positions['pos-outerRight-enabled'] === "0"))
128  {
129  $col = "col-md-12";
130  }
131  ?>
132  <div class="<?php echo $col; ?>">
133  <div class="row">
134  <?php
135  // POSITION: intro
136  template::getPositionDivBox($db, $lang, "intro", 1, "col-md-12", $positions, $indicators, $user, $template);
137 
138  // POSITION: globalmenu
139  template::getPositionDivBox($db, $lang, "globalmenu", 1, "col-md-12", $positions, $indicators, $user, $template);
140 
141  // POSITION: top
142  template::getPositionDivBox($db, $lang, "top", 1, "col-md-12", $positions, $indicators, $user, $template);
143  ?>
144  </div>
145  <div class="row">
146  <?php
147  // POSITION: leftMenu
148  template::getPositionDivBox($db, $lang, "leftMenu", 0, "col-md-2", $positions, $indicators, $user, $template);
149  ?>
150  <!-- <div class="col-md-2 posbox" id="pos_outerLeft" style="height: 630px; margin-bottom:5px; text-align: center;">&laquo;outerLeft&raquo;</div> -->
151  <?php
152  if ($positions['pos-leftMenu-enabled'] === "1" && ($positions['pos-rightMenu-enabled'] === "1"))
153  {
154  $col = "col-md-8";
155  }
156  else if ($positions['pos-leftMenu-enabled'] === "0" && ($positions['pos-rightMenu-enabled'] === "1")
157  || ($positions['pos-leftMenu-enabled'] === "1" && ($positions['pos-rightMenu-enabled'] === "0")))
158  {
159  $col = "col-md-10";
160  }
161  else if ($positions['pos-leftMenu-enabled'] === "0" && ($positions['pos-rightMenu-enabled'] === "0"))
162  {
163  $col = "col-md-12";
164  }
165  ?>
166  <div class="<?php echo $col; ?>">
167  <!-- <div class="col-md-2 posbox" id="pos_leftMenu" style="height: 410px; margin-bottom:5px; text-align: center;">&laquo;leftMenu&raquo;</div> -->
168  <!-- <div class="col-md-8" style="height: auto; margin-bottom:5px; text-align: center;"> -->
169  <div class="row">
170  <?php
171  // POSITION: mainTop
172  template::getPositionDivBox($db, $lang, "mainTop", 1, "col-md-12", $positions, $indicators, $user, $template);
173  ?>
174  <!-- <div class="col-md-12 posbox" id="pos_mainTop" style="height: auto; margin-bottom:5px; text-align: center;">&laquo;mainTop&raquo;</div> -->
175  </div>
176  <div class="row">
177  <?php
178  if ($positions['pos-mainTopLeft-enabled'] === "1" && ($positions['pos-mainTopCenter-enabled'] === "1") && ($positions['pos-mainTopRight-enabled'] === "1"))
179  {
180  // POSITION: mainTopLeft
181  template::getPositionDivBox($db, $lang, "mainTopLeft", 0, "col-md-4", $positions, $indicators, $user, $template);
182  // POSITION: mainTopCenter
183  template::getPositionDivBox($db, $lang, "mainTopCenter", 0, "col-md-4", $positions, $indicators, $user, $template);
184  // POSITION: mainTopRight
185  template::getPositionDivBox($db, $lang, "mainTopRight", 0, "col-md-4", $positions, $indicators, $user, $template);
186  }
187  else if ($positions['pos-mainTopLeft-enabled'] === "1" && ($positions['pos-mainTopCenter-enabled'] === "0") && ($positions['pos-mainTopRight-enabled'] === "0"))
188  {
189  // POSITION: mainTopLeft
190  template::getPositionDivBox($db, $lang, "mainTopLeft", 0, "col-md-12", $positions, $indicators, $user, $template);
191  }
192  else if ($positions['pos-mainTopLeft-enabled'] === "0" && ($positions['pos-mainTopCenter-enabled'] === "1") && ($positions['pos-mainTopRight-enabled'] === "0"))
193  {
194  // POSITION: mainTopCenter
195  template::getPositionDivBox($db, $lang, "mainTopCenter", 0, "col-md-12", $positions, $indicators, $user, $template);
196  }
197  else if ($positions['pos-mainTopLeft-enabled'] === "0" && ($positions['pos-mainTopCenter-enabled'] === "0") && ($positions['pos-mainTopRight-enabled'] === "1"))
198  {
199  // POSITION: mainTopRight
200  template::getPositionDivBox($db, $lang, "mainTopRight", 0, "col-md-12", $positions, $indicators, $user, $template);
201  }
202  else if ($positions['pos-mainTopLeft-enabled'] === "1" && ($positions['pos-mainTopCenter-enabled'] === "1") && ($positions['pos-mainTopRight-enabled'] === "0"))
203  {
204  // POSITION: mainTopLeft
205  template::getPositionDivBox($db, $lang, "mainTopLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
206  // POSITION: mainTopCenter
207  template::getPositionDivBox($db, $lang, "mainTopCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
208  }
209  else if ($positions['pos-mainTopLeft-enabled'] === "0" && ($positions['pos-mainTopCenter-enabled'] === "1") && ($positions['pos-mainTopRight-enabled'] === "1"))
210  {
211  // POSITION: mainTopCenter
212  template::getPositionDivBox($db, $lang, "mainTopCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
213  // POSITION: mainTopRight
214  template::getPositionDivBox($db, $lang, "mainTopRight", 0, "col-md-6", $positions, $indicators, $user, $template);
215  }
216  else if ($positions['pos-mainTopLeft-enabled'] === "1" && ($positions['pos-mainTopCenter-enabled'] === "0") && ($positions['pos-mainTopRight-enabled'] === "1"))
217  {
218  // POSITION: mainTopCenter
219  template::getPositionDivBox($db, $lang, "mainTopLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
220  // POSITION: mainTopRight
221  template::getPositionDivBox($db, $lang, "mainTopRight", 0, "col-md-6", $positions, $indicators, $user, $template);
222  }
223  ?>
224  </div>
225  <div class="row">
226  <?php
227  if ($positions['pos-mainLeft-enabled'] === "1" && ($positions['pos-main-enabled'] === "1") && ($positions['pos-mainRight-enabled'] === "1"))
228  {
229  // POSITION: mainLeft
230  template::getPositionDivBox($db, $lang, "mainLeft", 0, "col-md-1", $positions, $indicators, $user, $template);
231  // POSITION: main
232  template::getPositionDivBox($db, $lang, "main", 0, "col-md-10", $positions, $indicators, $user, $template);
233  // POSITION: mainRight
234  template::getPositionDivBox($db, $lang, "mainRight", 0, "col-md-1", $positions, $indicators, $user, $template);
235  }
236  else if ($positions['pos-mainLeft-enabled'] === "1" && ($positions['pos-main-enabled'] === "0") && ($positions['pos-mainRight-enabled'] === "0"))
237  {
238  // POSITION: mainLeft
239  template::getPositionDivBox($db, $lang, "mainLeft", 0, "col-md-12", $positions, $indicators, $user, $template);
240  }
241  else if ($positions['pos-mainLeft-enabled'] === "0" && ($positions['pos-main-enabled'] === "1") && ($positions['pos-mainRight-enabled'] === "0"))
242  {
243  // POSITION: main
244  template::getPositionDivBox($db, $lang, "main", 0, "col-md-12", $positions, $indicators, $user, $template);
245  }
246  else if ($positions['pos-mainLeft-enabled'] === "0" && ($positions['pos-main-enabled'] === "0") && ($positions['pos-mainRight-enabled'] === "1"))
247  {
248  // POSITION: mainRight
249  template::getPositionDivBox($db, $lang, "mainRight", 0, "col-md-12", $positions, $indicators, $user, $template);
250  }
251  else if ($positions['pos-mainLeft-enabled'] === "1" && ($positions['pos-main-enabled'] === "1") && ($positions['pos-mainRight-enabled'] === "0"))
252  {
253  // POSITION: mainLeft
254  template::getPositionDivBox($db, $lang, "mainLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
255  // POSITION: main
256  template::getPositionDivBox($db, $lang, "main", 0, "col-md-6", $positions, $indicators, $user, $template);
257  }
258  else if ($positions['pos-mainLeft-enabled'] === "0" && ($positions['pos-main-enabled'] === "1") && ($positions['pos-mainRight-enabled'] === "1"))
259  {
260  // POSITION: main
261  template::getPositionDivBox($db, $lang, "main", 0, "col-md-6", $positions, $indicators, $user, $template);
262  // POSITION: mainRight
263  template::getPositionDivBox($db, $lang, "mainRight", 0, "col-md-6", $positions, $indicators, $user, $template);
264  }
265  else if ($positions['pos-mainLeft-enabled'] === "1" && ($positions['pos-main-enabled'] === "0") && ($positions['pos-mainRight-enabled'] === "1"))
266  {
267  // POSITION: main
268  template::getPositionDivBox($db, $lang, "mainLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
269  // POSITION: mainRight
270  template::getPositionDivBox($db, $lang, "mainRight", 0, "col-md-6", $positions, $indicators, $user, $template);
271  }
272  ?>
273  </div>
274  <div class="row">
275  <?php
276  // POSITION: mainBottom
277  template::getPositionDivBox($db, $lang, "mainBottom", 0, "col-md-12", $positions, $indicators, $user, $template);
278  ?>
279  </div>
280  <div class="row">
281  <?php
282  if ($positions['pos-mainBottomLeft-enabled'] === "1" && ($positions['pos-mainBottomCenter-enabled'] === "1") && ($positions['pos-mainBottomRight-enabled'] === "1"))
283  {
284  // POSITION: mainBottomLeft
285  template::getPositionDivBox($db, $lang, "mainBottomLeft", 0, "col-md-4", $positions, $indicators, $user, $template);
286  // POSITION: mainBottomCenter
287  template::getPositionDivBox($db, $lang, "mainBottomCenter", 0, "col-md-4", $positions, $indicators, $user, $template);
288  // POSITION: mainBottomRight
289  template::getPositionDivBox($db, $lang, "mainBottomRight", 0, "col-md-4", $positions, $indicators, $user, $template);
290  }
291  else if ($positions['pos-mainBottomLeft-enabled'] === "1" && ($positions['pos-mainBottomCenter-enabled'] === "0") && ($positions['pos-mainBottomRight-enabled'] === "0"))
292  {
293  // POSITION: mainTopLeft
294  template::getPositionDivBox($db, $lang, "mainBottomLeft", 0, "col-md-12", $positions, $indicators, $user, $template);
295  }
296  else if ($positions['pos-mainBottomLeft-enabled'] === "0" && ($positions['pos-mainBottomCenter-enabled'] === "1") && ($positions['pos-mainBottomRight-enabled'] === "0"))
297  {
298  // POSITION: mainTopCenter
299  template::getPositionDivBox($db, $lang, "mainBottomCenter", 0, "col-md-12", $positions, $indicators, $user, $template);
300  }
301  else if ($positions['pos-mainBottomLeft-enabled'] === "0" && ($positions['pos-mainBottomCenter-enabled'] === "0") && ($positions['pos-mainBottomRight-enabled'] === "1"))
302  {
303  // POSITION: mainTopRight
304  template::getPositionDivBox($db, $lang, "mainBottomRight", 0, "col-md-12", $positions, $indicators, $user, $template);
305  }
306  else if ($positions['pos-mainBottomLeft-enabled'] === "1" && ($positions['pos-mainBottomCenter-enabled'] === "1") && ($positions['pos-mainBottomRight-enabled'] === "0"))
307  {
308  // POSITION: mainTopLeft
309  template::getPositionDivBox($db, $lang, "mainBottomLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
310  // POSITION: mainTopCenter
311  template::getPositionDivBox($db, $lang, "mainBottomCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
312  }
313  else if ($positions['pos-mainBottomLeft-enabled'] === "0" && ($positions['pos-mainBottomCenter-enabled'] === "1") && ($positions['pos-mainBottomRight-enabled'] === "1"))
314  {
315  // POSITION: mainTopCenter
316  template::getPositionDivBox($db, $lang, "mainBottomCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
317  // POSITION: mainTopRight
318  template::getPositionDivBox($db, $lang, "mainBottomRight", 0, "col-md-6", $positions, $indicators, $user, $template);
319  }
320  else if ($positions['pos-mainBottomLeft-enabled'] === "1" && ($positions['pos-mainBottomCenter-enabled'] === "0") && ($positions['pos-mainBottomRight-enabled'] === "1"))
321  {
322  // POSITION: mainTopCenter
323  template::getPositionDivBox($db, $lang, "mainBottomLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
324  // POSITION: mainTopRight
325  template::getPositionDivBox($db, $lang, "mainBottomRight", 0, "col-md-6", $positions, $indicators, $user, $template);
326  }
327  ?>
328  </div>
329  <div class="row">
330  <?php
331  // POSITION: mainFooter
332  template::getPositionDivBox($db, $lang, "mainFooter", 0, "col-md-12", $positions, $indicators, $user, $template);
333  ?>
334  </div>
335  <div class="row">
336  <?php
337  if ($positions['pos-mainFooterLeft-enabled'] === "1" && ($positions['pos-mainFooterCenter-enabled'] === "1") && ($positions['pos-mainFooterRight-enabled'] === "1"))
338  {
339  // POSITION: mainFooterLeft
340  template::getPositionDivBox($db, $lang, "mainFooterLeft", 0, "col-md-4", $positions, $indicators, $user, $template);
341  // POSITION: mainFooterCenter
342  template::getPositionDivBox($db, $lang, "mainFooterCenter", 0, "col-md-4", $positions, $indicators, $user, $template);
343  // POSITION: mainFooterRight
344  template::getPositionDivBox($db, $lang, "mainFooterRight", 0, "col-md-4", $positions, $indicators, $user, $template);
345  }
346  else if ($positions['pos-mainFooterLeft-enabled'] === "1" && ($positions['pos-mainFooterCenter-enabled'] === "0") && ($positions['pos-mainFooterRight-enabled'] === "0"))
347  {
348  // POSITION: mainTopLeft
349  template::getPositionDivBox($db, $lang, "mainFooterLeft", 0, "col-md-12", $positions, $indicators, $user, $template);
350  }
351  else if ($positions['pos-mainFooterLeft-enabled'] === "0" && ($positions['pos-mainFooterCenter-enabled'] === "1") && ($positions['pos-mainFooterRight-enabled'] === "0"))
352  {
353  // POSITION: mainTopCenter
354  template::getPositionDivBox($db, $lang, "mainFooterCenter", 0, "col-md-12", $positions, $indicators, $user, $template);
355  }
356  else if ($positions['pos-mainFooterLeft-enabled'] === "0" && ($positions['pos-mainFooterCenter-enabled'] === "0") && ($positions['pos-mainFooterRight-enabled'] === "1"))
357  {
358  // POSITION: mainTopRight
359  template::getPositionDivBox($db, $lang, "mainFooterRight", 0, "col-md-12", $positions, $indicators, $user, $template);
360  }
361  else if ($positions['pos-mainFooterLeft-enabled'] === "1" && ($positions['pos-mainFooterCenter-enabled'] === "1") && ($positions['pos-mainFooterRight-enabled'] === "0"))
362  {
363  // POSITION: mainTopLeft
364  template::getPositionDivBox($db, $lang, "mainFooterLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
365  // POSITION: mainTopCenter
366  template::getPositionDivBox($db, $lang, "mainFooterCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
367  }
368  else if ($positions['pos-mainFooterLeft-enabled'] === "0" && ($positions['pos-mainFooterCenter-enabled'] === "1") && ($positions['pos-mainFooterRight-enabled'] === "1"))
369  {
370  // POSITION: mainTopCenter
371  template::getPositionDivBox($db, $lang, "mainFooterCenter", 0, "col-md-6", $positions, $indicators, $user, $template);
372  // POSITION: mainTopRight
373  template::getPositionDivBox($db, $lang, "mainFooterRight", 0, "col-md-6", $positions, $indicators, $user, $template);
374  }
375  else if ($positions['pos-mainFooterLeft-enabled'] === "1" && ($positions['pos-mainFooterCenter-enabled'] === "0") && ($positions['pos-mainFooterRight-enabled'] === "1"))
376  {
377  // POSITION: mainTopCenter
378  template::getPositionDivBox($db, $lang, "mainFooterLeft", 0, "col-md-6", $positions, $indicators, $user, $template);
379  // POSITION: mainTopRight
380  template::getPositionDivBox($db, $lang, "mainFooterRight", 0, "col-md-6", $positions, $indicators, $user, $template);
381  }
382  ?>
383  </div>
384  </div>
385  <?php
386  // POSITION: outerLeft
387  template::getPositionDivBox($db, $lang, "rightMenu", 0, "col-md-2", $positions, $indicators, $user, $template);
388  ?>
389  <!-- <div class="col-md-2 posbox" id="pos_rightMenu" style="height: 410px; margin-bottom:5px; text-align: center;">&laquo;rightMenu&raquo;</div> -->
390  </div>
391 
392  <div class="row">
393  <?php
394  // POSITION: footer
395  template::getPositionDivBox($db, $lang, "footer", 0, "col-md-12", $positions, $indicators, $user, $template);
396  ?>
397  </div>
398  <div class="row">
399  <?php
400  // POSITION: hiddenToolbar
401  template::getPositionDivBox($db, $lang, "hiddenToolbar", 0, "col-md-12", $positions, $indicators, $user, $template);
402  ?>
403  </div>
404  <div class="row">
405  <?php
406  // POSITION: debug
407  template::getPositionDivBox($db, $lang, "debug", 0, "col-md-12", $positions, $indicators, $user, $template);
408  ?>
409  </div>
410  </div>
411 
412  <?php
413  // POSITION: outerRight
414  template::getPositionDivBox($db, $lang, "outerRight", 0, "col-md-2", $positions, $indicators, $user, $template);
415  ?>
416 
417  </div>
418 
419  <!-- <div class="navbar-fixed-bottom"> -->
420  <div class="row">
421  <?php
422  // POSITION: outerBottom
423  template::getPositionDivBox($db, $lang, "outerBottom", 0, "col-md-12", $positions, $indicators, $user, $template);
424  ?>
425  </div>
426 </div> <!-- LAYOUT END -->
427 
428 <!-- import yawk app: custom js -->
429 <script src="<?php echo $host; ?>system/templates/<?php echo $template->name; ?>/js/custom.min.js"></script>
430 <script>
431 
432 
433 
434  /*
435  // Add smooth scrolling to all links in navbar + footer link
436  $(".submenu a, a[href='#home']").on('click', function(event) {
437  // Prevent default anchor click behavior
438  event.preventDefault();
439  // Store hash
440  var hash = this.hash;
441  // Using jQuery's animate() method to add smooth page scroll
442  // The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
443  $('html, body').animate({
444  scrollTop: $(hash).offset().top
445  }, 900, function(){
446  // Add hash (#) to URL when done scrolling (default click behavior)
447  window.location.hash = hash;
448  });
449  });
450 /*
451  // Slide in elements on scroll
452  $(window).scroll(function() {
453  $(".slideanim").each(function(){
454  var pos = $(this).offset().top;
455 
456  var winTop = $(window).scrollTop();
457  if (pos < winTop + 600) {
458  $(this).addClass("slide");
459  }
460  });
461  });
462 
463 })
464 */
465 </script>
466 </body>
467 </html>
print $lang['FILEMAN_UPLOAD']
Mysqli database class; returns db connection object.
Definition: db.php:16
The language class - support multilingual backend.
Definition: language.php:17
Settings class: get and set YaWK system settings.
Definition: settings.php:9
The sys class - handles yawk's system core functions.
Definition: sys.php:17
The template controller - get and set template settings.
Definition: template.php:16
The default user class. Provide all functions to handle the user object.
Definition: user.php:17
FuckAdBlock prototype on
Definition: fuckAdBlock.js:227
type
Definition: menu-new.php:35
print $_GET['id']
Definition: page-edit.php:357
$page
Definition: pages.php:355
$indicators
Definition: index.php:57
$host
Definition: index.php:49
$positions
Definition: index.php:55
$col
Definition: index.php:79
$metaTags
Definition: index.php:45
$dirprefix
Definition: index.php:57
$template name