-
Notifications
You must be signed in to change notification settings - Fork 46
/
main.tpl.php
328 lines (291 loc) · 14 KB
/
main.tpl.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<?php
/****************************************************************************
./lang/de/ocstyle/main.tpl.php
-------------------
begin : Mon June 14 2004
For license information see doc/license.txt
****************************************************************************/
/****************************************************************************
Unicode Reminder メモ
german main template
template replacement(s):
title HTML page title
lang language
style style
htmlheaders additional HTML headers
loginbox login status (login form or username)
functionsbox available function on this site
template template to display
runtime computing time
****************************************************************************/
//Menü laden
global $mnu_bgcolor, $mnu_selmenuitem, $develwarning, $tpl_subtitle, $opt, $rootpath, $usr;
require_once($stylepath . '/lib/menu.php');
if (function_exists('post_config'))
post_config();
require_once($rootpath . 'lib2/smarty/ocplugins/function.season.php');
$sUserCountry = getUserCountry();
$pageidx = mnu_MainMenuIndexFromPageId($menu, $tplname);
if (isset($menu[$pageidx]['navicolor']))
{
$mnu_bgcolor = $menu[$pageidx]['navicolor'];
}
else
{
$mnu_bgcolor = '#D5D9FF';
}
if ($tplname != 'start')
$tpl_subtitle .= htmlspecialchars($mnu_selmenuitem['title'] . ' - ', ENT_COMPAT, 'UTF-8');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $tpl_subtitle; ?>{title}</title>
<meta name="keywords" content="Geocaching, Geocache, Cache, Geocashing, Schnitzeljagd, Schatzsuche, GPS, Openstreetmap, kostenlos, GPX, GPX download, Koordinaten, Hobby, Natur" />
<meta name="description" content="Opencaching.de ist das freie Portal für Geocaching, ein GPS-Schatzsuche-Spiel: Es werden kleine Behälter versteckt, die anhand von GPS-Koordinaten zu finden sind." />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="{lang}" />
<meta http-equiv="gallerimg" content="no" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="SHORTCUT ICON" href="favicon.ico" />
<link rel="apple-touch-icon" href="resource2/{style}/images/oclogo/apple-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="resource2/{style}/images/oclogo/apple-touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="resource2/{style}/images/oclogo/apple-touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon" sizes="144x144" href="resource2/{style}/images/oclogo/apple-touch-icon-ipad-retina.png" />
<link rel="stylesheet" type="text/css" media="screen,projection" href="resource2/{style}/css/style_screen.css?ft={screen_css_time}" />
<script type="text/javascript">
<!--
<?php
$seasons = array('winter' => 'resource2/ocstyle/css/seasons/style_winter.css',
'spring' => 'resource2/ocstyle/css/seasons/style_spring.css',
'summer' => 'resource2/ocstyle/css/seasons/style_summer.css',
'autumn' => 'resource2/ocstyle/css/seasons/style_autumn.css');
$seasons_stripe
= array('winter' => 'resource2/ocstyle/css/seasons/style_langstripe_winter.css',
'spring' => 'resource2/ocstyle/css/seasons/style_langstripe_spring.css',
'summer' => 'resource2/ocstyle/css/seasons/style_langstripe_summer.css',
'autumn' => 'resource2/ocstyle/css/seasons/style_langstripe_autumn.css');
$smarty_dummy = 0;
?>
var nWindowWidth = 9999;
if (window.innerWidth)
nWindowWidth = window.innerWidth;
else if (screen.availWidth)
nWindowWidth = screen.availWidth;
if (nWindowWidth > 970)
document.writeln('<link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo smarty_function_season($seasons, $smarty_dummy); ?>" />');
document.writeln('<link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo smarty_function_season($seasons_stripe, $smarty_dummy); ?>" />');
function usercountry_change()
{
var sCurrentOption = "<?php echo $sUserCountry; ?>";
var oUserCountryCombo = document.getElementById('usercountry');
if (sCurrentOption!=oUserCountryCombo.value)
{
window.location = 'index.php?usercountry=' + oUserCountryCombo.value;
}
}
function submitbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton_active";
}
function resetbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton"
}
function flashbutton(bname)
{
document.getElementsByName(bname)[0].className = "formbutton_active";
window.setTimeout('resetbutton(\'' + bname + '\')', 350);
}
//-->
</script>
<link rel="stylesheet" type="text/css" media="print" href="resource2/{style}/css/style_print.css?ft={print_css_time}" />
<script type="text/javascript" src="resource2/{style}/js/enlargeit/enlargeit.js"></script>
{htmlheaders}
</head>
<body style="{bodystyle}">
<div id="overall">
<div id="langstripe">
<!-- Navigation Level 1 -->
<table class="nav1" cellspacing=0>
<tr>
<td width="100%">
{loginbox}
</td>
<td><strong>{t}Language:{/t} </strong></td>
<td>
<?php
foreach ($opt['template']['locales'] AS $k => $lang)
if ($lang['show'] == true)
echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" width="24px" height="18px" /></a> ';
?>
</td>
<td> <strong>{t}Country:{/t} </strong></td>
<td>
<select id="usercountry" onclick="usercountry_change()">
<?php
global $tpl_usercountries;
$nLastGroup = 0;
for ($i = 0; $i < count($tpl_usercountries); $i++)
{
if ($nLastGroup != $tpl_usercountries[$i]['group'])
{
echo '<option disabled="disabled">';
if ($tpl_usercountries[$i]['group'] == 1)
echo '- ' . t('This OC node') . ' -';
elseif ($tpl_usercountries[$i]['group'] == 2)
echo '- ' . t('Other OC nodes') . ' -';
elseif ($tpl_usercountries[$i]['group'] == 3)
echo '- ' . t('Others') . ' -';
else
echo '-';
echo '</option>';
}
$nLastGroup = $tpl_usercountries[$i]['group'];
echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>';
}
?>
</select>
</td>
</tr>
</table>
</div> <!-- langstripe -->
<div class="page-container-1" style="position: relative;">
{backgroundimage}
<!-- HEADER -->
<?php echo isset($develwarning) ? $develwarning : '' ?>
<!-- Header banner -->
<div class="header">
<div class="headerimage">
<img src="resource2/{style}/images/head/rotator.php?path=<?php echo $opt['page']['headimagepath']; ?>" class="headerimagecontent" />
</div>
<div class="headerlogo">
<img src="resource2/{style}/images/oclogo/<?php echo $opt['page']['headoverlay']; ?>.png" class="headerimagecontent" />
</div>
</div>
<!-- Navigation Level 2 -->
<div class="nav2">
<ul>
<?php
// $pageidx is -1 e.g. when calling newcache.php as logged-off-user (-> login.tpl.php)
if ($pageidx >= 0)
mnu_EchoMainMenu($menu[$pageidx]['siteid']);
else
mnu_EchoMainMenu(-1);
?>
</ul>
</div>
<!-- Breadcrumb & waypoint search -->
<div class="buffer" style="height: 30px; width:100%;">
<div id="breadcrumb">
<?php mnu_EchoBreadCrumb($tplname, $pageidx); ?>
</div>
<div id="suchbox">
<form action="searchplugin.php" method="post" style="display:inline;"><b>{t}Waypoint search:{/t}</b><input type="hidden" name="sourceid" value="waypoint-search" /> <input type="text" name="userinput" size="10" /> <input type="submit" value="Go" /></form>
</div>
</div>
<!-- NAVIGATION -->
<!-- Navigation Level 3 -->
<div class="nav3">
<?php
//SubNavigation
if (isset($menu[$pageidx]['submenu']))
{
?>
<ul>
<li class="title">{t}Main menu{/t}</li>
<?php
mnu_EchoSubMenu($menu[$pageidx]['submenu'], $tplname, 1, false);
?>
</ul>
<?php
}
?>
<!-- Länderknoten -->
<p class="sidebar-maintitle">{t}Country sites{/t}</p>
<div style="text-align: center;" class="nodeflags">
<a href="http://www.opencaching.cz" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-cz.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.de" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-de.png" width="100" height="22" /></a><br />
<a href="http://www.opencachingspain.es" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-es.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.it" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-it.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.no" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-no.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.nl" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-nl.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.pl" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-pl.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.se" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-se.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.org.uk" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-org-uk.png" width="100" height="22" /></a><br />
<a href="http://www.opencaching.us" target="_blank"><img src="resource2/ocstyle/images/nodes/oc-us.png" width="100" height="22" /></a>
</div>
<!-- Paypalbutton -->
<?php
if (isset($opt['page']['showdonations']) && $opt['page']['showdonations'])
{
?>
<p class="sidebar-maintitle">{t}Donations{/t}</p>
<div style="margin-top:20px;width:100%;text-align:center;">
<a href="http://www.opencaching.de/articles.php?page=donations">
<img src="https://www.paypal.com/de_DE/DE/i/btn/btn_donateCC_LG.gif" alt="{t}Donations{/t}" style="border:0px;" />
</a>
</div>
<p> </p>
<?php
}
?>
<!-- Social Media -->
<?php
if (isset($opt['page']['showsocialmedia']) && $opt['page']['showsocialmedia'])
{
?>
<p class="sidebar-maintitle">{t}Social Media{/t}</p>
<div style="margin-top: 10px; margin-bottom: 10px; margin-left: auto; margin-right: auto; text-align: center">
<p style="width: 100%">{t}Follow Us{/t}</p>
<table style="margin-left: auto; margin-right: auto;">
<tr>
<td><a href="http://blog.opencaching.de/feed"><img src="resource2/ocstyle/images/misc/32x32-feed.png" /></a></td>
<td><a href="https://twitter.com/opencaching"><img src="resource2/ocstyle/images/misc/32x32-twitter.png" /></a></td>
<td><a href="https://plus.google.com/104950249357104618315"><img src="resource2/ocstyle/images/misc/32x32-google+.png" /></a></td>
<td><a href="https://www.facebook.com/opencaching.de"><img src="resource2/ocstyle/images/misc/32x32-facebook.png" /></a></td>
</tr>
</table>
<p style="width: 100%">{t}Join Discussions{/t}</p>
<table style="margin-left: auto; margin-right: auto;">
<tr><td><a href="http://forum.opencaching-network.org/"><img src="resource2/ocstyle/images/oclogo/16x16-oc_logo.png" /></a></td><td style="text-align: left"><a href="http://forum.opencaching-network.org/">{t}Opencaching Forum{/t}</a></td></tr>
<tr><td><a href="https://plus.google.com/communities/106940399712236494701"><img src="resource2/ocstyle/images/misc/16x16-google+.png" /></a></td><td style="text-align: left"><a href="https://plus.google.com/communities/106940399712236494701">{t}Google+ Community{/t}</a></td></tr>
<tr><td><a href="https://www.facebook.com/groups/198752500146032/"><img src="resource2/ocstyle/images/misc/16x16-facebook.png" /></a></td><td style="text-align: left"><a href="https://www.facebook.com/groups/198752500146032/">{t}Facebook Group{/t}</a></td></tr>
</table>
</div>
<?php
}
?>
<!-- Datalicense -->
{license_disclaimer}
<!-- page statistics -->
<div class="sidebar-txtbox-noshade">
<p class="content-txtbox-noshade-size5">
<small>
{t}Page performance{/t}: {scripttime} {t}sec{/t}<br />
{t}Page creation{/t}: <?php $bTemplateBuild->Stop(); echo sprintf('%1.3f', $bTemplateBuild->Diff()); ?> {t}sec{/t}
</small>
</p>
</div>
</div> <!-- nav3 -->
<!-- CONTENT -->
<div class="content2">
<div class="tplhelp">
<?php mnu_EchoHelpLink($tplname); ?>
</div>
<div id="ocmain">
{template}
</div>
</div> <!-- content2 -->
<!-- FOOTER -->
<div class="footer">
<p><a href="articles.php?page=dsb">{t}Privacy statement{/t}</a> | <a href="articles.php?page=impressum">{t}Terms of use and legal information{/t}</a> | <a href="articles.php?page=contact">{t}Contact{/t}</a> | <a href="articles.php?page=changelog">{t}Changelog{/t}</a> | <a href="sitemap.php">{t}Sitemap{/t}</a></p>
<p><strong>{sponsorbottom}</strong></p>
</div>
</div> <!-- page-container-1 -->
</div> <!-- overall -->
</body>
</html>