103 |
- |
1 |
<!doctype html>
|
|
|
2 |
<html lang="en">
|
|
|
3 |
<head>
|
|
|
4 |
<meta charset="utf-8">
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
6 |
<?php
|
|
|
7 |
$custSiteInfo = getCustomizerDetails();
|
|
|
8 |
$spTitle = empty($spTitle) ? SP_TITLE : $spTitle;
|
|
|
9 |
$spDescription = empty($spDescription) ? SP_DESCRIPTION : $spDescription;
|
|
|
10 |
$spKeywords = empty($spKeywords) ? SP_KEYWORDS : $spKeywords;
|
|
|
11 |
$spKey = "v" . substr(SP_INSTALLED, 2);
|
|
|
12 |
$userInfo = @Session::readSession('userInfo');
|
|
|
13 |
$userType = empty($userInfo['userType']) ? "guest" : $userInfo['userType'];
|
|
|
14 |
|
|
|
15 |
$menuName = ($userType != "guest" && $userType != "admin") ? "user" : $userType;
|
|
|
16 |
$menuInfo = getCustomizerMenu($menuName);
|
|
|
17 |
|
|
|
18 |
if (!empty($menuInfo['bg_color'])) {
|
|
|
19 |
$siteBgClass = $menuInfo['bg_color'];
|
|
|
20 |
$siteFooterBgClass = $menuInfo['bg_color'];
|
|
|
21 |
} else {
|
|
|
22 |
|
|
|
23 |
// theme wise changes
|
|
|
24 |
if (stristr(SP_VIEWPATH, '/simple/')) {
|
|
|
25 |
$siteBgClass = "bg-primary";
|
|
|
26 |
$siteFooterBgClass = "bg-primary";
|
|
|
27 |
} else {
|
|
|
28 |
$siteBgClass = "bg-dark";
|
|
|
29 |
$siteFooterBgClass = "bg-dark text-muted";
|
|
|
30 |
}
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
$siteNavFontClass = !empty($menuInfo['font_color']) ? $menuInfo['font_color'] : "navbar-dark";
|
|
|
34 |
?>
|
|
|
35 |
<title><?php echo stripslashes($spTitle)?></title>
|
|
|
36 |
<meta name="description" content="<?php echo $spDescription?>" />
|
|
|
37 |
<meta name="keywords" content="<?php echo $spKeywords?>" />
|
|
|
38 |
<link rel="shortcut icon" href="<?php echo !empty($custSiteInfo['site_favicon']) ? $custSiteInfo['site_favicon'] : SP_IMGPATH . "/favicon.ico"?>" />
|
|
|
39 |
|
|
|
40 |
<!-- Css files -->
|
|
|
41 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_WEBPATH?>/css/bootstrap.min.css?<?php echo $spKey?>" media="all" />
|
|
|
42 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_WEBPATH?>/jquery-ui/jquery-ui.min.css?<?php echo $spKey?>" />
|
|
|
43 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_CSSPATH?>/datepicker.css?<?php echo $spKey?>" media="all" />
|
|
|
44 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_WEBPATH?>/css/fontawesome/css/all.min.css?<?php echo $spKey?>" media="all" />
|
|
|
45 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_WEBPATH?>/css/simplemde.min.css?<?php echo $spKey?>" media="all" />
|
|
|
46 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_CSSPATH?>/screen.css?<?php echo $spKey?>" media="all" />
|
|
|
47 |
|
|
|
48 |
<?php if (in_array($_SESSION['lang_code'], array('ar', 'he', 'fa'))) {?>
|
|
|
49 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_CSSPATH?>/screen_rtl.css?<?php echo $spKey?>" media="all" />
|
|
|
50 |
<?php }?>
|
|
|
51 |
|
|
|
52 |
<!-- JS Files -->
|
|
|
53 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/jquery-3.3.1.min.js?<?php echo $spKey?>"></script>
|
|
|
54 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/popper.min.js?<?php echo $spKey?>"></script>
|
|
|
55 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/bootstrap.min.js?<?php echo $spKey?>"></script>
|
|
|
56 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/datepicker.js?<?php echo $spKey?>"></script>
|
|
|
57 |
<script type="text/javascript" src="<?php echo SP_WEBPATH?>/jquery-ui/jquery-ui.min.js?<?php echo $spKey?>"></script>
|
|
|
58 |
<script type="text/javascript" src="<?php echo SP_JSPATH; ?>/loader.js?<?php echo $spKey?>"></script>
|
|
|
59 |
<script type="text/javascript" src="<?php echo SP_JSPATH; ?>/jquery.tablesorter.min.js?<?php echo $spKey?>"></script>
|
|
|
60 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/simplemde.min.js?<?php echo $spKey?>"></script>
|
|
|
61 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/common.js?<?php echo $spKey?>"></script>
|
|
|
62 |
<script type="text/javascript" src="<?php echo SP_JSPATH?>/popup.js?<?php echo $spKey?>"></script>
|
|
|
63 |
|
|
|
64 |
<?php if (isPluginActivated("customizer")) {?>
|
|
|
65 |
<link rel="stylesheet" type="text/css" href="<?php echo SP_WEBPATH?>/custom_style.php?<?php echo $spKey?>" media="all" />
|
|
|
66 |
<script type="text/javascript" src="<?php echo SP_WEBPATH?>/custom_js.php?<?php echo $spKey?>"></script>
|
|
|
67 |
<?php }?>
|
|
|
68 |
|
|
|
69 |
</head>
|
|
|
70 |
<body class="bg-light">
|
|
|
71 |
<script type="text/javascript">
|
|
|
72 |
var spdemo = <?php echo SP_DEMO; ?>;
|
|
|
73 |
var wantproceed = '<?php echo $spText['label']['wantproceed']; ?>';
|
|
|
74 |
</script>
|
|
|
75 |
|
|
|
76 |
<nav class="navbar navbar-expand-md <?php echo $siteNavFontClass?> <?php echo $siteBgClass;?>">
|
|
|
77 |
<a class="navbar-brand" href="<?php echo SP_WEBPATH?>">
|
|
|
78 |
<img src="<?php echo !empty($custSiteInfo['site_logo']) ? $custSiteInfo['site_logo'] : SP_IMGPATH . "/logo_red_sm.png";?>">
|
|
|
79 |
</a>
|
|
|
80 |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
|
|
81 |
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
82 |
<span class="navbar-toggler-icon"></span>
|
|
|
83 |
</button>
|
|
|
84 |
|
|
|
85 |
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
86 |
<ul class="navbar-nav mr-auto">
|
|
|
87 |
<?php include(SP_VIEWPATH.'/menu/main_menu.ctp.php');?>
|
|
|
88 |
</ul>
|
|
|
89 |
<form class="form-inline mt-2 mt-md-0">
|
|
|
90 |
<?php include_once(SP_VIEWPATH."/menu/topmenu.ctp.php");?>
|
|
|
91 |
</form>
|
|
|
92 |
|
|
|
93 |
<?php
|
|
|
94 |
if (isLoggedIn()) {
|
|
|
95 |
include_once(SP_VIEWPATH."/menu/notifications_menu.ctp.php");
|
|
|
96 |
}
|
|
|
97 |
?>
|
|
|
98 |
</div>
|
|
|
99 |
</nav>
|
|
|
100 |
|
|
|
101 |
<?php include_once(SP_VIEWPATH."/common/top_notification.ctp.php");?>
|
|
|
102 |
|
|
|
103 |
<div class="container-fluid" style="margin-bottom: 50px;">
|
|
|
104 |
<div class="row">
|
|
|
105 |
<?php echo $viewContent?>
|
|
|
106 |
</div>
|
|
|
107 |
</div>
|
|
|
108 |
|
|
|
109 |
<div class="container-fluid fixed-bottom <?php echo $siteNavFontClass?> <?php echo $siteFooterBgClass;?> center footer-sp">
|
|
|
110 |
<?php include_once(SP_VIEWPATH."/common/footer.ctp.php"); ?>
|
|
|
111 |
</div>
|
|
|
112 |
|
|
|
113 |
<div id="tmp"><form name="tmp" id="tmp"></form></div>
|
|
|
114 |
<div id="dialogContent" style="display:none;"></div>
|
|
|
115 |
<?php
|
|
|
116 |
// add google analytics code to verify the site hits
|
|
|
117 |
if ( defined('SP_GOOGLE_ANALYTICS_TRACK_CODE')) {
|
|
|
118 |
if (!stristr(SP_GOOGLE_ANALYTICS_TRACK_CODE, '<script')) {
|
|
|
119 |
?>
|
|
|
120 |
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
|
121 |
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo SP_GOOGLE_ANALYTICS_TRACK_CODE?>"></script>
|
|
|
122 |
<script>
|
|
|
123 |
window.dataLayer = window.dataLayer || [];
|
|
|
124 |
function gtag(){dataLayer.push(arguments);}
|
|
|
125 |
gtag('js', new Date());
|
|
|
126 |
|
|
|
127 |
gtag('config', '<?php echo SP_GOOGLE_ANALYTICS_TRACK_CODE?>');
|
|
|
128 |
</script>
|
|
|
129 |
<?php
|
|
|
130 |
} else {
|
|
|
131 |
echo SP_GOOGLE_ANALYTICS_TRACK_CODE;
|
|
|
132 |
}
|
|
|
133 |
}
|
|
|
134 |
?>
|
|
|
135 |
</body>
|
|
|
136 |
</html>
|