This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.php
121 lines (110 loc) · 4.62 KB
/
main.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
<?php
require_once(dirname(__FILE__) . '/FYKOSTemplate.php'); /* include hook for template functions */
require_once(dirname(__FILE__) . '/inc/Jumbotron.php');
require_once(dirname(__FILE__) . '/inc/BootstrapNavBar.php');
require_once(dirname(__FILE__) . '/inc/NavBarItem.php');
global $conf, $ACT, $lang, $ID;
$FksTemplate = new FYKOS\dokuwiki\template\FYKOSTemplate\FYKOSTemplate();
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $conf['lang']; ?>"
lang="<?php echo $conf['lang']; ?>"
dir="<?php echo $lang['direction']; ?>"
class="no-js">
<head>
<meta charset="UTF-8"/>
<meta name="google-site-verification" content="e-g_LupmwCL5101dZbWTqtRaRfvmqFRNjZVDEzIHj_Y" />
<meta name="theme-color" content="#1175da"/>
<meta name="keywords" content="fyzika, fyzikální, fyzikalni, FYKOS, seminář, seminar, soutěž, soutez"/>
<meta name="category" content="physics"/>
<meta name="robots" content="index,follow"/>
<meta name="googlebot" content="index,follow,snippet,archive"/>
<meta name="ICBM" content="50.1152, 14.448"/>
<meta name="DC.title" content="FYKOS"/>
<meta name="author" content="Michal Červeňák"/>
<title>
<?php tpl_pagetitle() ?> - <?php echo strip_tags($conf['title']) ?>
</title>
<script>(function (H) {
H.className = H.className.replace(/\bno-js\b/, 'js');
})(document.documentElement);</script>
<?php tpl_metaheaders() ?>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<?php echo tpl_favicon(array('favicon')) ?>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"
integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
crossorigin="anonymous"></script>
<?php if (tpl_getConf('ga_trackcode')): ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo tpl_getConf('ga_trackcode'); ?>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<?php echo tpl_getConf('ga_trackcode'); ?>');
</script>
<?php endif; ?>
</head>
<body data-act="<?php echo $ACT; ?>"
data-namespace="<?php echo getNS($ID); ?>"
data-page_id="<?php echo $ID; ?>"
>
<div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?>"
>
<?php echo $FksTemplate->printHeader($ID); ?>
<?php
$sidebarPage = p_read_metadata($ID)['current']['sidebar'];
$sidebarContent = null;
if ($sidebarPage === null) {
$sidebarContent = tpl_include_page(getNS($ID) . ':sidebar_' . $conf['lang'], 0, 0);
} elseif ($sidebarPage !== '') {
$sidebarContent = tpl_include_page($sidebarPage, 0, 0);
}
?>
<?php ?>
<div class="container">
<div class="row">
<?php
if ($ACT == 'show' && $sidebarContent) {
?>
<aside class="sidebar col-lg-3 col-md-12 col-sm-12 container-fluid">
<?php
echo $sidebarContent;
?>
</aside>
<?php
} ?>
<main id="dokuwiki__content"
class="content dokuwiki__content container-fluid <?php echo ($ACT == 'show' &&
$sidebarContent) ? 'col-lg-9' : 'col-lg-12'; ?> col-md-12 col-sm-12 col-xs-12"
data-spy="scroll"
>
<?php
tpl_flush();
html_msgarea();
tpl_content(false);
tpl_flush();
?>
</main>
<hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12"/>
<footer class="dokuwiki_footbar col-lg-12 col-md-12 col-sm-12 col-xs-12">
<?php tpl_include_page('footbar_' . $conf['lang'], 1, 1); ?>
<div class="clearer"></div>
</footer>
</div>
</div>
<hr/>
<address class="container">
Created with <love/> by ©FYKOS – <a
href="mailto:<?php echo tpl_getConf('email_webmaster') ?>"
title="Kontaktní email"><?php echo tpl_getConf('email_webmaster') ?></a>
</address>
</div>
<div class="no">
<?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?>
</div>
</body>
</html>
<?php
exit();