Posted by Bob
2015-07-31

Tom
How do I do to display the delete button if is admin in /staff/tpl.example.search.inc.php ?

an idea:
<!-- ?php include( 'include/tpl.sr.top_bar.inc.php' ); ? -->
<?php include( 'include/no.botton.php' ); ?>

within no.botton.php
IF IsAdmin() = admin
require( 'include/tpl.sr.top_bar.inc.php' );

It would work?

or maybe within include/tpl.sr.top_bar.inc.php
... how?
Posted by Tom
2015-08-05

include/tpl.sr.top_bar.inc.php contains more than the delete button, so you should open the file and edit the delete button only. Use the following the code snippet to create admin-only lines in the file.
<?php if ( $sys->IsAmdin() ) { ?>

... What you put here will be shown to admin only...

<?php } ?>