-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
228 lines (214 loc) · 11.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?php
include_once 'config.php';
include_once 'functions.php';
if (!isset($sections)) {
$sections = getSections($project, $defaultProject);
}
?><!DOCTYPE html>
<head>
<title><?php echo $projectTitle; ?></title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no"/>
<link rel="icon" href="<?php echo $projectFaviconPath; ?>" type="image/x-icon">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo get_path('/css/grid.css'); ?>">
<link rel="stylesheet" href="<?php echo get_path('/css/style.css?v=1'); ?>">
<link rel="stylesheet" href="<?php echo get_path("/projects/{$project}/project_styles.css"); ?>">
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700|Montserrat+Alternates:400,700'
rel='stylesheet' type='text/css'>
<!--<link href='//fonts.googleapis.com/css?family=Roboto:400,500,700' rel='stylesheet' type='text/css'>-->
<link rel="stylesheet" href="<?php echo get_path('/css/prettify.css'); ?>">
<link rel="stylesheet" href="<?php echo get_path('/css/jquery.fancybox.css'); ?>">
<script src="<?php echo get_path('/js/jquery.js'); ?>"></script>
<script src="<?php echo get_path('/js/jquery-migrate-1.2.1.js'); ?>"></script>
<!--[if lt IE 9]>
<html class="lt-ie9">
<div style='clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/">
<img src="<?php echo get_path( '/img/ie8-panel/warning_bar_0000_us.jpg' ); ?>" border="0" height="42"
width="820"
alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today."/>
</a>
</div>
<script src="/js/html5shiv.js"></script>
<![endif]-->
<script src='<?php echo get_path('/js/device.min.js'); ?>'></script>
</head>
<body data-section="<?php echo $section_param; ?>" onload="prettyPrint()" data-project="<?php echo $project; ?>">
<?php
$domain = $_SERVER['HTTP_HOST'];
if(strpos($domain, 'templatemonster.com') !== false): ?>
<!--Templatemonster GTM -->
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MS2BNB"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MS2BNB');</script>
<!-- End Google Tag Manager -->
<?php elseif(strpos($domain, 'info.template-help.com') !== false): ?>
<!--TemplateHelp GTM-->
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-WJX75J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WJX75J');</script>
<!-- End Google Tag Manager -->
<?php else: ?>
<!-- Domain doesn't match. Google Tag Manager no added -->
<?php endif; ?>
<!-- Google Tag Manager -->
<!--<noscript>-->
<!-- <iframe src="//www.googletagmanager.com/ns.html?id=GTM-5WB7JQ"-->
<!-- height="0" width="0" style="display:none;visibility:hidden"></iframe>-->
<!--</noscript>-->
<!--<script>(function (w, d, s, l, i) {-->
<!-- w[l] = w[l] || [];-->
<!-- w[l].push({-->
<!-- 'gtm.start': new Date().getTime(), event: 'gtm.js'-->
<!-- });-->
<!-- var f = d.getElementsByTagName(s)[0],-->
<!-- j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';-->
<!-- j.async = true;-->
<!-- j.src =-->
<!-- '//www.googletagmanager.com/gtm.js?id=' + i + dl;-->
<!-- f.parentNode.insertBefore(j, f);-->
<!-- })(window, document, 'script', 'dataLayer', 'GTM-5WB7JQ');</script>-->
<!-- End Google Tag Manager -->
<div class="zemez-chat-wrap">
<form class="zemez-chat" id="zemez-chat" method="GET">
<input type="text" placeholder="Name:" name="uname" id="uname">
<input type="email" placeholder="Email Address:" name="umail" id="umail">
<span onclick="startChat()">Start chat</span>
</form>
</div>
<div class="page-wrap">
<div class="rd-mobilemenu active">
<div class="logo logo__<?php echo $project; ?>">
<a href="<?php echo get_path("/index.php?project={$project}"); ?>">
<img src="<?php echo $projectImgLogoPath ?>" alt="<?php echo $projectTextLogo; ?>">
<?php echo $projectTextLogo; ?>
</a>
</div>
<div class="panel <?php if ($project != $defaultProject) { ?>shown<?php } ?>">
<div class="select select-version <?php if ($project != $defaultProject) { ?>hidden<?php } ?>">
<select>
<option data-href="/help/quick-start-guide/prestashop-themes/v1-5/index_en.html">Version v1-5
</option>
<option data-href="#" selected>Version v1-3</option>
<option data-href="/help/quick-start-guide/prestashop-themes/v1-2/index_en.html">Version v1-2
</option>
<option data-href="/help/quick-start-guide/prestashop-themes/v1-1/index_en.html">Version v1-1
</option>
<option data-href="/help/quick-start-guide/prestashop-themes/v1-0/index_en.html">Version v1-0
</option>
</select>
</div>
<div class="select select-lang">
<select>
<option
data-href="<?php echo $path; ?>index.php?lang=en§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "en" ? "selected" : ""; ?>>
EN
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=de§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "de" ? "selected" : ""; ?>>
DE
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=es§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "es" ? "selected" : ""; ?>>
ES
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=fr§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "fr" ? "selected" : ""; ?>>
FR
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=it§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "it" ? "selected" : ""; ?>>
IT
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=pl§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "pl" ? "selected" : ""; ?>>
PL
</option>
<option
data-href="<?php echo $path; ?>index.php?lang=ru§ion=<?php echo $section_param; ?>&project=<?php echo $project; ?>" <?php echo $lang == "ru" ? "selected" : ""; ?>>
RU
</option>
</select>
</div>
</div>
<p class="copyright">TemplateMonster ©
<a href="http://www.templatemonster.com/privacy-policy.php">Privacy Policy</a>
</p>
</div>
<div class="page-content active">
<button class="rd-mobilepanel_toggle active"><span></span></button>
<div class="rd-mobilepanel<?php if ('introduction' !== $section_param) : ?> fixed<?php endif; ?>">
<h1 class="rd-mobilepanel_title">
<?php echo $projectTitle; ?>
</h1>
<div class="tm-title-caption"><?php echo $projectTitleCaption; ?></div>
</div>
<div class="page">
<!--========================================================
HEADER
=========================================================-->
<header>
<nav class="nav">
<ul class="menu" data-type="navbar">
<?php echo generateNavigation($sections, $lang, $section_param, $project, $defaultProject); ?>
</ul>
</nav>
</header>
<!--========================================================
CONTENT
=========================================================-->
<main id="main">
<div class="container">
<?php include_once get_path('/section.php', true); ?>
</div>
</main>
<!--========================================================
FOOTER
=========================================================-->
<footer>
<!-- <div class="navigate">
<div class="next_wrapper navigated-section-2">
<div class="container">
<a href="/section/template-installatiamework-installation.html" class="next">
<span>Next</span>
<em>Template installation</em>
</a>
</div>
</div>
</div> -->
</footer>
</div>
</div>
</div>
<script src="<?php echo get_path('/js/jquery.easing.1.3.js'); ?>"></script>
<script src="<?php echo get_path('/js/jquery.rd-navbar.js'); ?>"></script>
<script src="<?php echo get_path('/js/prettify.js'); ?>"></script>
<script src="<?php echo get_path('/js/jquery.fancybox.js'); ?>"></script>
<script src="<?php echo get_path('/js/jquery.ui.totop.js'); ?>"></script>
<script src="<?php echo get_path('/js/responsive_tabs.min.js'); ?>"></script>
<script>
/* Section Class
========================================================*/
function sectionClass(item_key) {
$.getJSON('<?php echo get_path('/sections.json'); ?>', function (json) {
var body = $('body');
var section_class = 'scheme-' + item_key % 9;
body.attr('class', '');
body.addClass(section_class);
});
}
</script>
<script src="<?php echo get_path('/js/script.js?v=1'); ?>"></script>
</body>
</html>