-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
189 lines (172 loc) · 8.15 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
<?php
include_once 'config.php';
include_once 'functions.php';
if (!isset($sections)) {
$sections = getSections();
}
?>
<!DOCTYPE html>
<head>
<title><?php echo $doc_title; ?></title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no"/>
<link rel="icon" href="<?php echo $path; ?>/img/favicon.ico" 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 $path; ?>/css/grid.css">
<link rel="stylesheet" href="<?php echo $path; ?>/css/style.css?v=1">
<link href='//fonts.googleapis.com/css?family=Roboto:400,500,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php echo $path; ?>/css/prettify.css">
<link rel="stylesheet" href="<?php echo $path; ?>/css/jquery.fancybox.css">
<script src="<?php echo $path; ?>/js/jquery.js"></script>
<script src="<?php echo $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 $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 $path; ?>/js/device.min.js'></script>
</head>
<body data-section="<?php echo $section_param; ?>" onload="prettyPrint()">
<?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; ?>
<!-- Chat ======================================================== -->
<div class="zemez-chat-wrap">
<form class="zemez-chat" id="zemez-chat" method="GET">
<i id="zemez-chat-close" onclick="closeChat()"></i>
<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">
<a href="<?php echo $path; ?>/"><img src="<?php echo $path; ?>/img/logo.png" alt=""></a>
</div>
<div class="panel">
<div class="select select-version">
<select>
<<<<<<< HEAD
<option data-href="#" selected>Version v1-3</option>
<option data-href="/help/quick-start-guide/opencart-templates/v1-1/index_en.html">Version v1-2</option>
<option data-href="/help/quick-start-guide/opencart-templates/v1-1/index_en.html">Version v1-1</option>
=======
<option data-href="/help/quick-start-guide/opencart-templates/v1-4/" selected>Version v1-4</option>
<option data-href="/help/quick-start-guide/opencart-templates/v1-2/">Version v1-2</option>
<option data-href="/help/quick-start-guide/opencart-templates/v1-1/index_en.html" >Version v1-1</option>
>>>>>>> origin/master
<option data-href="/help/quick-start-guide/opencart-templates/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; ?>" <?php echo $lang == "en" ? "selected" : ""; ?>>
EN
</option>
<option
data-href="<?php echo $path; ?>/index.php?lang=ru§ion=<?php echo $section_param; ?>" <?php echo $lang == "ru" ? "selected" : ""; ?>>
RU
</option>
</select>
</div>
</div>
<p class="copyright">Jetimpex ©
<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">
<h1 class="rd-mobilepanel_title">
<span><?php echo $product_name; ?></span> <?php echo $product_desc; ?>
</h1>
</div>
<div class="page">
<!--========================================================
HEADER
=========================================================-->
<header>
<nav class="nav">
<ul class="menu" data-type="navbar">
<?php echo generateNavigation($sections, $lang, $section_param); ?>
</ul>
</nav>
</header>
<!--========================================================
CONTENT
=========================================================-->
<main id="main">
<div class="container">
<?php include_once 'section.php'; ?>
</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 $path; ?>/js/jquery.easing.1.3.js"></script>
<script src="<?php echo $path; ?>/js/jquery.rd-navbar.js"></script>
<script src="<?php echo $path; ?>/js/prettify.js"></script>
<script src="<?php echo $path; ?>/js/jquery.fancybox.js"></script>
<script src="<?php echo $path; ?>/js/jquery.ui.totop.js"></script>
<script src="<?php echo $path; ?>/js/owl.carousel.min.js"></script>
<script>
/* Section Class
========================================================*/
function sectionClass(item_key) {
$.getJSON('<?php echo $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 $path; ?>/js/script.js?v=1"></script>
</body>
</html>