Remove $showTools, because it is set to true

Since the config-option for hide-tools no longer exists, this variable
has become superflous.
This commit is contained in:
Michael Große 2017-04-18 13:48:52 +02:00
commit 270380eb00
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79
2 changed files with 17 additions and 18 deletions

View file

@ -1,24 +1,23 @@
<?php
if (!defined('DOKU_INC')) die();
if (!defined('DOKU_INC')) {
die();
}
?>
<?php if ($showTools): ?>
<nav id="dokuwiki__pagetools">
<div class="tools">
<?php include('nav-status.php');?>
<ul>
<?php
$data = dokuwiki\template\sprintdoc\tpl::assemblePageTools();
<nav id="dokuwiki__pagetools">
<div class="tools">
foreach ($data['items'] as $k => $html) {
echo $html;
}
<?php include('nav-status.php'); ?>
<ul>
<?php
$data = dokuwiki\template\sprintdoc\tpl::assemblePageTools();
foreach ($data['items'] as $k => $html) {
echo $html;
}
?>
</ul>
</div>
</nav>
<?php endif; ?>
?>
</ul>
</div>
</nav>

View file

@ -1,7 +1,7 @@
<?php
if (!defined('DOKU_INC')) die();
if ($conf['useacl'] && $showTools): ?>
if ($conf['useacl']): ?>
<nav id="dokuwiki__usertools" class="nav-usertools <?php echo $navClass?>">
<h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['user_tools']; ?></h6>