Re-enabled page actions for not logged in users. added backink and source view to non-fluid.
This commit is contained in:
parent
83dff4db66
commit
ae1d414dae
10
main.php
10
main.php
@ -56,7 +56,7 @@ $loggedIn = $INPUT->server->str('REMOTE_USER');
|
|||||||
<?php echo $editForm ?>
|
<?php echo $editForm ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if(in_array($ACT, ['login', 'profile', 'revisions', 'admin', 'diff', 'draft', 'resendpwd', 'register', 'subscribe', 'index'])): ?>
|
<?php if(in_array($ACT, ['login', 'profile', 'revisions', 'admin', 'diff', 'draft', 'resendpwd', 'register', 'subscribe', 'index', 'backink', 'source'])): ?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<?php tpl_link(wl($ID), "Back", 'class="btn btn-default"'); ?>
|
<?php tpl_link(wl($ID), "Back", 'class="btn btn-default"'); ?>
|
||||||
<?php echo $content ?>
|
<?php echo $content ?>
|
||||||
@ -72,16 +72,16 @@ $loggedIn = $INPUT->server->str('REMOTE_USER');
|
|||||||
</article>
|
</article>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if(in_array($ACT, ['show', 'profile', 'admin', 'revisions', 'admin', 'diff', 'draft', 'resendpwd'])): ?>
|
<?php if(in_array($ACT, ['show', 'profile', 'admin', 'revisions', 'diff', 'draft', 'resendpwd'])): ?>
|
||||||
<aside id="dokuwiki__pagetools">
|
<aside id="dokuwiki__pagetools">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
|
<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
|
<?php if(in_array($ACT, ['show', 'revisions'])): ?>
|
||||||
|
<?php echo (new \dokuwiki\Menu\PageMenu())->getListItems("action-page list-group-item "); ?>
|
||||||
|
<?php endif ?>
|
||||||
<?php if($loggedIn): ?>
|
<?php if($loggedIn): ?>
|
||||||
<?php if(in_array($ACT, ['show', 'revisions'])): ?>
|
|
||||||
<?php echo (new \dokuwiki\Menu\PageMenu())->getListItems("action-page list-group-item "); ?>
|
|
||||||
<?php endif ?>
|
|
||||||
<?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems("action-site list-group-item "); ?>
|
<?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems("action-site list-group-item "); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php echo (new \dokuwiki\Menu\UserMenu())->getListItems('action-user list-group-item '); ?>
|
<?php echo (new \dokuwiki\Menu\UserMenu())->getListItems('action-user list-group-item '); ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user