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 -->
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">
56 $host = sys::addTrailingSlash(settings::getSetting(
$db,
"host"));
66 template::loadGoogleFonts(
$db);
72 $template->loadActiveAssets(
$db, $template->id,
$host);
74 if (isset(
$_GET[
'language']) && (!empty(
$_GET[
'language'])))
76 $languageFolder = mb_substr(
$_GET[
'language'], 0,2);
78 echo
"<script>document.cookie = \"userSelectedLanguage=$languageFolder; expires=Thu, 04 Nov 2021 12:00:00 UTC\"; </script>";
80 $_COOKIE[
'userSelectedLanguage'] = $languageFolder;
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">
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>
96 <body style=
"<?php echo YAWK\template::getActiveBodyFont($db, $user, $template); ?>" ondragstart=
"return false">
103 <!-- LAYOUT START -->
104 <div
class=
"container-fluid">
116 <!-- <div
class=
"col-md-2 posbox" id=
"pos_outerLeft" style=
"height: 630px; margin-bottom:5px; text-align: center;">«outerLeft»</div> -->
118 if (
$positions[
'pos-outerLeft-enabled'] ===
"1" && (
$positions[
'pos-outerRight-enabled'] ===
"1"))
122 else if (
$positions[
'pos-outerLeft-enabled'] ===
"0" && (
$positions[
'pos-outerRight-enabled'] ===
"1")
123 || (
$positions[
'pos-outerLeft-enabled'] ===
"1" && (
$positions[
'pos-outerRight-enabled'] ===
"0")))
132 <div
class=
"<?php echo $col; ?>">
150 <!-- <div
class=
"col-md-2 posbox" id=
"pos_outerLeft" style=
"height: 630px; margin-bottom:5px; text-align: center;">«outerLeft»</div> -->
152 if (
$positions[
'pos-leftMenu-enabled'] ===
"1" && (
$positions[
'pos-rightMenu-enabled'] ===
"1"))
156 else if (
$positions[
'pos-leftMenu-enabled'] ===
"0" && (
$positions[
'pos-rightMenu-enabled'] ===
"1")
157 || (
$positions[
'pos-leftMenu-enabled'] ===
"1" && (
$positions[
'pos-rightMenu-enabled'] ===
"0")))
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;">«leftMenu»</div> -->
168 <!-- <div
class=
"col-md-8" style=
"height: auto; margin-bottom:5px; text-align: center;"> -->
174 <!-- <div
class=
"col-md-12 posbox" id=
"pos_mainTop" style=
"height: auto; margin-bottom:5px; text-align: center;">«mainTop»</div> -->
178 if (
$positions[
'pos-mainTopLeft-enabled'] ===
"1" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"1") && (
$positions[
'pos-mainTopRight-enabled'] ===
"1"))
187 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"1" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"0") && (
$positions[
'pos-mainTopRight-enabled'] ===
"0"))
192 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"0" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"1") && (
$positions[
'pos-mainTopRight-enabled'] ===
"0"))
197 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"0" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"0") && (
$positions[
'pos-mainTopRight-enabled'] ===
"1"))
202 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"1" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"1") && (
$positions[
'pos-mainTopRight-enabled'] ===
"0"))
209 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"0" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"1") && (
$positions[
'pos-mainTopRight-enabled'] ===
"1"))
216 else if (
$positions[
'pos-mainTopLeft-enabled'] ===
"1" && (
$positions[
'pos-mainTopCenter-enabled'] ===
"0") && (
$positions[
'pos-mainTopRight-enabled'] ===
"1"))
282 if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"1" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"1") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"1"))
291 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"1" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"0") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"0"))
296 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"0" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"1") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"0"))
301 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"0" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"0") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"1"))
306 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"1" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"1") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"0"))
313 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"0" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"1") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"1"))
320 else if (
$positions[
'pos-mainBottomLeft-enabled'] ===
"1" && (
$positions[
'pos-mainBottomCenter-enabled'] ===
"0") && (
$positions[
'pos-mainBottomRight-enabled'] ===
"1"))
337 if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"1" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"1") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"1"))
346 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"1" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"0") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"0"))
351 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"0" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"1") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"0"))
356 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"0" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"0") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"1"))
361 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"1" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"1") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"0"))
368 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"0" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"1") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"1"))
375 else if (
$positions[
'pos-mainFooterLeft-enabled'] ===
"1" && (
$positions[
'pos-mainFooterCenter-enabled'] ===
"0") && (
$positions[
'pos-mainFooterRight-enabled'] ===
"1"))
389 <!-- <div
class=
"col-md-2 posbox" id=
"pos_rightMenu" style=
"height: 410px; margin-bottom:5px; text-align: center;">«rightMenu»</div> -->
419 <!-- <div
class=
"navbar-fixed-bottom"> -->
426 </div> <!-- LAYOUT END -->
428 <!--
import yawk app: custom js -->
429 <script src=
"<?php echo $host; ?>system/templates/<?php echo $template->name; ?>/js/custom.min.js"></script>
print $lang['FILEMAN_UPLOAD']
Mysqli database class; returns db connection object.
The language class - support multilingual backend.
Settings class: get and set YaWK system settings.
The sys class - handles yawk's system core functions.
The template controller - get and set template settings.
The default user class. Provide all functions to handle the user object.