summaryrefslogtreecommitdiff
path: root/lib/tpl/dokuwiki/tpl_header.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-02-06 18:16:54 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-02-06 18:16:54 +0100
commit8e86529b279209dd94a08d6c300e3c8c219d7095 (patch)
tree5dbc9663bdd74231b468f91a6aed08f1f41fffe2 /lib/tpl/dokuwiki/tpl_header.php
parentc7b28ffda48d3e6e225940a74b00ee5011f45b4b (diff)
parent0e336ca8d49c813f535e69d9e727aa58356d5197 (diff)
downloadrpg-8e86529b279209dd94a08d6c300e3c8c219d7095.tar.gz
rpg-8e86529b279209dd94a08d6c300e3c8c219d7095.tar.bz2
Merge remote-tracking branch 'localtemplate/initial_commit_from_starter' into new-template
* localtemplate/initial_commit_from_starter: (159 commits) moved files to template hierarchy for merging with core deleted obsolete files added styles for screen resolutions between 480 and 768px (#26) minor improvements improved minor edits in recent changes increased site width a bit (#45) fixed search input issue caused by previous commit improved search box and action dropdown spacing in mobile view made large tables scrollable (fixes #40) typo added includes for sidebar header and footer (closes #41) and moved page header and footer inside .page div toned down active colour of pagetools a bit (#22) changed link colours (#22) removed outline from links (focus and active states are set differently anyway) added license for pagetool icons remove bold from link to current page inside the main content (closes #31) removed needless relative position on content (fixes #35) initialize variable first attempt to fix media queries on modern smartphones fixed logo size setting. closes #36 ...
Diffstat (limited to 'lib/tpl/dokuwiki/tpl_header.php')
-rw-r--r--lib/tpl/dokuwiki/tpl_header.php83
1 files changed, 83 insertions, 0 deletions
diff --git a/lib/tpl/dokuwiki/tpl_header.php b/lib/tpl/dokuwiki/tpl_header.php
new file mode 100644
index 000000000..91d8876b9
--- /dev/null
+++ b/lib/tpl/dokuwiki/tpl_header.php
@@ -0,0 +1,83 @@
+<!-- ********** HEADER ********** -->
+<div id="dokuwiki__header"><div class="pad group">
+
+ <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
+ <?php _tpl_include('header.html') ?>
+
+ <div class="headings group">
+ <ul class="a11y skip">
+ <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
+ </ul>
+
+ <h1><?php
+ // get logo either out of the template images folder or data/media folder
+ $logoSize = array();
+ $logo = tpl_getMediaFile(array(':wiki:logo.png','images/logo.png'),false,$logoSize);
+
+ // display logo and wiki title in a link to the home page
+ tpl_link(
+ wl(),
+ '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>',
+ 'accesskey="h" title="[H]"'
+ );
+ ?></h1>
+ <?php if ($conf['tagline']): ?>
+ <p class="claim"><?php echo $conf['tagline']; ?></p>
+ <?php endif ?>
+ </div>
+
+ <div class="tools group">
+ <!-- USER TOOLS -->
+ <?php if ($conf['useacl']): ?>
+ <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('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 $lang['site_tools']; ?></h3>
+ <?php tpl_searchform(); ?>
+ <?php /* all the tools in one dropdown (good for mobile view): */ ?>
+ <div class="mobileTools">
+ <?php tpl_actiondropdown($lang['tools']); ?>
+ </div>
+ <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 -->