Fix typo
This commit is contained in:
@@ -6,20 +6,6 @@
|
|||||||
|
|
||||||
// must be run from within DokuWiki
|
// must be run from within DokuWiki
|
||||||
if (!defined('DOKU_INC')) die();
|
if (!defined('DOKU_INC')) die();
|
||||||
|
|
||||||
$siteToolsHtml = (new \dokuwiki\Menu\SiteMenu())->getListItems('action ');
|
|
||||||
$userToolsHtml = '';
|
|
||||||
if ($conf['useacl']) {
|
|
||||||
$userToolsHtml = (new \dokuwiki\Menu\UserMenu())->getListItems('action ');
|
|
||||||
}
|
|
||||||
|
|
||||||
$breadcrumbsHtml = '';
|
|
||||||
if ($conf['youarehere']) {
|
|
||||||
$breadcrumbsHtml = tpl_youarehere(null, true);
|
|
||||||
}
|
|
||||||
if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
|
||||||
$breadcrumbsHtml = tpl_breadcrumbs(null, true);
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- ********** HEADER ********** -->
|
<!-- ********** HEADER ********** -->
|
||||||
@@ -27,12 +13,11 @@ if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
|||||||
|
|
||||||
<?php tpl_includeFile('header.html') ?>
|
<?php tpl_includeFile('header.html') ?>
|
||||||
|
|
||||||
|
<div class="headings group">
|
||||||
<ul class="a11y skip">
|
<ul class="a11y skip">
|
||||||
<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
|
<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="header__bar">
|
|
||||||
<div class="headings header__brand">
|
|
||||||
<h1 class="logo"><?php
|
<h1 class="logo"><?php
|
||||||
// get logo either out of the template images folder or data/media folder
|
// get logo either out of the template images folder or data/media folder
|
||||||
$logoSize = [];
|
$logoSize = [];
|
||||||
@@ -50,50 +35,54 @@ if (!$breadcrumbsHtml && $conf['breadcrumbs']) {
|
|||||||
'accesskey="h" title="' . tpl_getLang('home') . ' [h]"'
|
'accesskey="h" title="' . tpl_getLang('home') . ' [h]"'
|
||||||
);
|
);
|
||||||
?></h1>
|
?></h1>
|
||||||
|
<?php if ($conf['tagline']) : ?>
|
||||||
<?php if ($breadcrumbsHtml) : ?>
|
<p class="claim"><?php echo $conf['tagline']; ?></p>
|
||||||
<div class="breadcrumbs header__breadcrumbs"><?php echo $bread crumbsHtml; ?></div>
|
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="dokuwiki__sitetools" class="tools header__actions">
|
<div class="tools group">
|
||||||
<h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
|
<!-- USER TOOLS -->
|
||||||
<?php tpl_searchform(true, false); ?>
|
<?php if ($conf['useacl']) : ?>
|
||||||
|
|
||||||
<?php if ($siteToolsHtml || $userToolsHtml) : ?>
|
|
||||||
<details class="header__menu">
|
|
||||||
<summary aria-label="<?php echo hsc($lang['tools']); ?>" title="<?php echo hsc($lang['tools']); ?>">
|
|
||||||
<span aria-hidden="true">⋮</span>
|
|
||||||
</summary>
|
|
||||||
|
|
||||||
<div class="header__menu-panel">
|
|
||||||
<?php if ($siteToolsHtml) : ?>
|
|
||||||
<ul class="header__menu-list header__menu-list--site">
|
|
||||||
<?php echo $siteToolsHtml; ?>
|
|
||||||
</ul>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php if ($siteToolsHtml && $userToolsHtml) : ?>
|
|
||||||
<div class="header__menu-separator" role="separator"></div>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php if ($userToolsHtml) : ?>
|
|
||||||
<div id="dokuwiki__usertools">
|
<div id="dokuwiki__usertools">
|
||||||
<h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
|
<h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
|
||||||
<ul class="header__menu-list header__menu-list--user">
|
<ul>
|
||||||
<?php echo $userToolsHtml; ?>
|
<?php
|
||||||
|
if (!empty($_SERVER['REMOTE_USER'])) {
|
||||||
|
echo '<li class="user">';
|
||||||
|
tpl_userinfo(); /* 'Logged in as ...' */
|
||||||
|
echo '</li>';
|
||||||
|
}
|
||||||
|
echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ');
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
|
||||||
</details>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
|
<!-- SITE TOOLS -->
|
||||||
|
<div id="dokuwiki__sitetools">
|
||||||
|
<h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
|
||||||
|
<?php tpl_searchform(true, false); ?>
|
||||||
<div class="mobileTools">
|
<div class="mobileTools">
|
||||||
<?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
|
<?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<ul>
|
||||||
|
<?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action '); ?>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</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" />
|
<hr class="a11y" />
|
||||||
</div></header><!-- /header -->
|
</div></header><!-- /header -->
|
||||||
|
|||||||
Reference in New Issue
Block a user