Käyttäjän työkalut

Sivuston työkalut


Change the code after pagefoore line in your template dir main.php to something like this.

Header without any buttons

<?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
<?php if($INFO['perm'] > AUTH_READ){?>
  <div class="bar" id="bar_top">
    <div class="bar-left" id="bar_topleft">
      <?php tpl_button('edit')?>
      <?php tpl_button('history')?>
    </div>
    <div class="bar-right" id="bar_topright">
      <?php tpl_button('recent')?>
      <?php tpl_searchform()?>&nbsp;
    </div>
  </div>
<?php } ?>

Footer with only login button

<?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
<?php if($INFO['perm'] > AUTH_READ){?>
  <div class="bar" id="bar_bottom">
    <div class="bar-left" id="bar_bottomleft">
      <?php tpl_button('edit')?>
      <?php tpl_button('history')?>
    </div>
    <div class="bar-right" id="bar_bottomright">
      <?php tpl_button('admin')?>
      <?php tpl_button('login')?>
      <?php tpl_button('index')?>
      <?php tpl_button('top')?>&nbsp;
    </div>
  </div>
<?php } else {?>
  <div class="bar" id="bar_bottom">
    <div class="bar-right" id="bar_bottomright">
      <?php tpl_button('login')?>
    </div>
  </div>
<?php }?>
docuwiki/logged-in_sniplet.txt · Viimeksi muutettu: 2016/07/25 19:42 (ulkoinen muokkaus)