-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
144 lines (117 loc) · 4.32 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
/**
* DokUI v0.2.0 - (c) 2014 Francesco Bianco
*
* @link https://sourceforge.net/p/dokui/
* @author Francesco Bianco <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) die();
?><!DOCTYPE html>
<html lang="en-gb" dir="ltr" class="uk-notouch"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php tpl_pagetitle() ?> | <?php echo strip_tags($conf['title']) ?></title>
<link rel="shortcut icon" href="<?=DOKU_TPL?>favicon/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400">
<?php tpl_metaheaders() ?>
</head>
<body class="tm-background">
<?php include(__DIR__.'/analytics.php') ?>
<nav class="tm-navbar uk-navbar uk-navbar-attached">
<div class="uk-container uk-container-center">
<a href="<?=DOKU_URL?>"
class="uk-navbar-brand dw-navbar-brand uk-hidden-small"
><i class="uk-icon-logo"></i> <?=$conf['title']?></a>
<ul id="dw-navbar-menu" class="uk-navbar-nav uk-hidden-small">
<?php
$html = strip_tags(tpl_include_page('menu',0,0),'<li><a>');
echo $html;
if(!$html){echo '<li class="level1">'.strip_tags(html_wikilink('menu','Create main menu'),'<a>').'</li>'; }
?>
</ul>
<a href="#tm-offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas=""></a>
<div class="uk-navbar-brand uk-navbar-center uk-visible-small">
<a href="<?=DOKU_URL?>" class="dw-navbar-brand"
><i class="uk-icon-logo"></i> <?=$conf['title']?>
</a>
</div>
<?php if (!empty($_SERVER['REMOTE_USER'])) { ?>
<div class="uk-navbar-flip uk-hidden-small">
<ul class="uk-navbar-nav">
<li data-uk-dropdown>
<a href=""><?=userlink()?> <i class="uk-icon-caret-down"></i></a>
<div class="uk-dropdown uk-dropdown-flip uk-dropdown-navbar">
<ul class="uk-nav uk-nav-navbar">
<?php tpl_action('profile', 1, 'li') ?>
<?php tpl_action('login', 1, 'li') ?>
</ul>
</div>
</li>
</ul>
</div>
<?php } ?>
</div>
</nav>
<div class="tm-middle">
<div class="uk-container uk-container-center">
<div class="uk-grid">
<div class="tm-sidebar uk-width-medium-1-4 uk-hidden-small">
<ul class="tm-nav uk-nav">
<?php
$page = explode(':',tpl_pagetitle(NULL,true));
array_pop($page);
$page = count($page)>0 ? implode(':',$page).':navigation' : 'navigation';
$html = strip_tags(tpl_include_page($page,0,0),'<li><a>');
echo $html;
if (!$html) { echo '<li>'.strip_tags(html_wikilink($page,'Create navigation menu'),'<a>').'</li>'; }
?>
</ul>
</div>
<div class="tm-main uk-width-medium-3-4">
<article class="uk-article dw-article">
<?php tpl_content() ?>
<?php echo tpl_action('edit',1,'li',1,'<span>','</span>'); ?>
</article>
</div>
</div>
</div>
</div>
<div class="tm-footer">
<div class="uk-container uk-container-center uk-text-center">
<ul class="uk-subnav uk-subnav-line">
<?php echo strip_tags(tpl_include_page('link',0,0),'<li><a>'); ?>
<?php
tpl_action('admin', 1, 'li');
tpl_action('register', 1, 'li');
tpl_action('login', 1, 'li');
?>
</ul>
<div class="uk-panel">
<?php echo tpl_include_page('footer',0,0) ?>
<a href="<?=DOKU_URL?>"
class="dw-brand"
><i class="uk-icon-logo"></i> <?=$conf['title']?></a>
</div>
</div>
</div>
<div id="tm-offcanvas" class="uk-offcanvas">
<div class="uk-offcanvas-bar uk-offcanvas-bar-show">
<ul class="uk-nav uk-nav-offcanvas">
<?php
$nav = explode(':',tpl_pagetitle(NULL,true));
array_pop($nav);
$nav = count($nav)>0 ? implode(':',$nav).':navigation' : 'navigation';
echo strip_tags(tpl_include_page($nav,0,0),'<li><a>');
if ($nav) {echo '';}
?>
</ul>
</div>
</div>
<div class="uk-tooltip"></div>
<form action="#">
<input class="fixjs" type="hidden" name="title" value="<?=tpl_pagetitle(NULL,true)?>">
<?php tpl_indexerWebBug(); ?>
</form>
</body>
</html>