summaryrefslogtreecommitdiff
path: root/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'main.php')
-rwxr-xr-xmain.php79
1 files changed, 2 insertions, 77 deletions
diff --git a/main.php b/main.php
index d843a18e4..5ec7f72d4 100755
--- a/main.php
+++ b/main.php
@@ -38,78 +38,8 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
<?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
<div id="dokuwiki__site"><div id="dokuwiki__top"
class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
- <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
- <?php _tpl_include('header.html') ?>
-
- <!-- ********** HEADER ********** -->
- <div id="dokuwiki__header"><div class="pad group">
-
- <div class="headings group">
- <h1><?php tpl_link(
- wl(),
- '<img src="'.tpl_getFavicon(false, 'logo.png').'" width="64" height="64" alt="" /> <span>'.$conf['title'].'</span>',
- 'accesskey="h" title="[H]"'
- ) /* @todo: obviously don't use tpl_getFavicon, but make a new function (or use a config option?) */ ?></h1>
- <?php if (tpl_getConf('tagline')): ?>
- <p class="claim"><?php echo tpl_getConf('tagline') ?></p>
- <?php endif ?>
-
- <ul class="a11y">
- <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li>
- </ul>
- </div>
-
- <div class="tools group">
- <!-- USER TOOLS -->
- <?php if ($conf['useacl'] && $showTools): ?>
- <div id="dokuwiki__usertools">
- <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3>
- <ul>
- <?php /* the optional second parameter of tpl_action() switches between a link and a button,
- e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
- if ($_SERVER['REMOTE_USER']) {
- echo '<li class="user">';
- tpl_userinfo(); /* 'Logged in as ...' */
- echo '</li>';
- }
- tpl_action('admin', 1, 'li');
- tpl_action('profile', 1, 'li');
- tpl_action('register', 1, 'li');
- tpl_action('login', 1, 'li');
- ?>
- </ul>
- </div>
- <?php endif ?>
-
- <!-- SITE TOOLS -->
- <div id="dokuwiki__sitetools">
- <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3>
- <?php tpl_searchform() ?>
- <ul>
- <?php
- tpl_action('recent', 1, 'li');
- tpl_action('media', 1, 'li');
- tpl_action('index', 1, 'li');
- ?>
- </ul>
- </div>
- </div>
-
- <!-- BREADCRUMBS -->
- <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
- <div class="breadcrumbs">
- <?php if($conf['youarehere']): ?>
- <div class="youarehere"><?php tpl_youarehere() ?></div>
- <?php endif ?>
- <?php if($conf['breadcrumbs']): ?>
- <div class="trace"><?php tpl_breadcrumbs() ?></div>
- <?php endif ?>
- </div>
- <?php endif ?>
-
- <hr class="a11y" />
- </div></div><!-- /header -->
+ <?php include('tpl_header.php') ?>
<div class="wrapper group">
@@ -161,12 +91,7 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
<?php endif; ?>
</div><!-- /wrapper -->
- <!-- ********** FOOTER ********** -->
- <div id="dokuwiki__footer"><div class="pad">
- <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
- </div></div><!-- /footer -->
-
- <?php _tpl_include('footer.html') ?>
+ <?php include('tpl_footer.php') ?>
</div></div><!-- /site -->
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>