-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2 - Support Breadcrumbs/You are here
- Loading branch information
Showing
4 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,66 @@ | ||
<?php | ||
|
||
global $conf; | ||
global $_SERVER; | ||
$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] ); | ||
|
||
?> | ||
<div id="header"> | ||
</div> | ||
<div id="top"> | ||
<?php | ||
tpl_include_page(tpl_getConf('menuID')); | ||
?> | ||
</div> | ||
<div id="searchform"><?php tpl_searchform() ?></div> | ||
<!-- ********** HEADER ********** --> | ||
<div id="aranheader"><div id="dokuwiki__header"> | ||
<div class="pad"> | ||
|
||
<div class="headings"> | ||
<ul class="a11y skip"> | ||
<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> | ||
</ul> | ||
<div class="clearer"></div> | ||
</div> | ||
|
||
<div class="tools"> | ||
<?php if ($conf['useacl'] && $showTools): ?> | ||
<!-- USER TOOLS --> | ||
<div id="dokuwiki__usertools"> | ||
<h3 class="a11y"><?php echo $lang['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('recent', 1, 'li'); | ||
tpl_action('media', 1, 'li'); | ||
tpl_action('index', 1, 'li'); | ||
tpl_action('admin', 1, 'li'); | ||
_tpl_action('userpage', 1, 'li'); | ||
tpl_action('profile', 1, 'li'); | ||
tpl_action('register', 1, 'li'); /* DW versions < 2011-02-20 need to use _tpl_action('register', 1, 'li') */ | ||
tpl_action('login', 1, 'li'); | ||
?> | ||
</ul> | ||
</div> | ||
|
||
<?php endif ?> | ||
|
||
</div> | ||
|
||
<!-- BREADCRUMBS --> | ||
<?php if($conf['breadcrumbs']){ ?> | ||
<div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> | ||
<?php } ?> | ||
<?php if($conf['youarehere']){ ?> | ||
<div class="breadcrumbs"><?php tpl_youarehere() ?></div> | ||
<?php } ?> | ||
|
||
<div class="clearer"></div> | ||
<hr class="a11y" /> | ||
</div></div></div><!-- /header --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters