[dokuwiki] Re: Hide "show pagesource" button

Hi Attila

> I would like to hide the "show pagesource" button if the user is not loged on 
> or
> the user has only reader access to a page. How can I do this?

<?php if ($_SERVER['REMOTE_USER'] && $INFO['editable']){?>
tpl_button('edit') <?php }?>

see: http://wiki.splitbrain.org/wiki:tpl:info

-- Esther Brunner

Other related posts: