-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
61 lines (55 loc) · 1.96 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
<?php
/**
* Nuropa Template
*
* @link http://dokuwiki.org/template
* @author Sascha Leib <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
require_once('my_template.php');
?><!DOCTYPE html>
<html lang="<?php echo $conf['lang'] ?>">
<head>
<meta charset="utf-8">
<title><?php tpl_pagetitle() ?> - <?php echo strip_tags($conf['title']) ?></title>
<?php tpl_metaheaders() ?>
<meta name="viewport" content="width=device-width,initial-scale=1">
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html') ?>
</head>
<body class="site <?php echo my_bodyclasses(); ?>" data-pageid="<?php echo htmlentities($ID); ?>">
<div id="skip-link">
<a href="#main-content"><?php echo htmlentities($lang['skip_to_content']); ?></a>
</div>
<div id="toolbar-layout">
<!-- BEGIN TOOLBAR -->
<?php include('tpl_toolbar.php') ?>
<!-- END OF TOOLBAR -->
</div>
<div id="header-layout">
<!-- BEGIN HEADER -->
<?php include('tpl_header.php') ?>
<!-- END HEADER -->
</div>
<div id="main-layout">
<?php $hasSidebar = page_findnearest($conf['sidebar']);
?> <div id="main-sidebar-layout" class="toggle_<?php echo ( ($hasSidebar && ($ACT=='show')) ? 'auto' : 'hide' ); ?>">
<!-- BEGIN SIDEBAR -->
<?php include('tpl_sidebar.php') ?>
<!-- END OF SIDEBAR -->
<main id="main-content"<?php echo ( my_headerstyle() == 'pagename' ? ' class="nopageheadline"' : '' ); ?>>
<?php my_toc(str_repeat("\t", 5));
?><!-- - - - - - - - - ARTICLE CONTENT - - - - - - - -->
<?php tpl_content(false) ?>
<!-- - - - - - - - - END OF ARTICLE - - - - - - - -->
<?php echo my_topbtn(str_repeat("\t", 5)); ?>
</main>
</div>
</div>
<div id="footer-layout">
<?php include('tpl_footer.php') ?>
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
</div>
</body>
</html>