* modified to enable image icon for search form @author Paul Minifie
*/
function tpl_searchform_mod(){
global $lang;
global $ACT;
print '';
print '';
print '';
}
/**
* Print the addpage form
*
* @author Paul Minifie
*/
function tpl_addpage(){
global $lang;
global $ACT;
global $ID;
global $INFO;
global $conf;
if(($ACT == 'show' || $ACT == 'search')&&$INFO['writable']&&$conf['amanuensis']['addpagemod']=='true'&&$conf['amanuensis']['addpage']=='true'){
print '';
print 'new: ' ;
print '';
print '';
}
}
/**
* Like the action buttons but links
*
* Available links are
*
* edit - edit/create/show button
* history - old revisions
* recent - recent changes
* login - login/logout button - if ACL enabled
* index - The index
* admin - admin page - if enough rights
* top - a back to top button
* back - a back to parent button - if available
* profile -adds a link to the password mod page
* help -adds a link to the help page button
* about -adds a link to the about button
*
* @author Andreas Gohr
* @author Matthias Grimm
* @see tpl_button
*/
function tpl_actionlink_mod($type,$pre='',$suf=''){
global $ID;
global $INFO;
global $REV;
global $ACT;
global $conf;
global $lang;
switch($type){
case 'edit':
#most complicated type - we need to decide on current action
if($ACT == 'show' || $ACT == 'search'){
if($INFO['writable']){
if($INFO['exists']){
tpl_link(wl($ID,'do=edit&rev='.$REV),
$pre.$lang['btn_edit'].$suf,
'class="action" accesskey="e" rel="nofollow"');
}else{
tpl_link(wl($ID,'do=edit&rev='.$REV),
$pre.$lang['btn_create'].$suf,
'class="action" accesskey="e" rel="nofollow"');
}
}/*else{
tpl_link(wl($ID,'do=edit&rev='.$REV),
$pre.$lang['btn_source'].$suf,
'class="action" accesskey="v" rel="nofollow"');
} */
}else{
tpl_link(wl($ID,'do=show'),
$pre.$lang['btn_show'].$suf,
'class="action" accesskey="v" rel="nofollow"');
}
break;
case 'help':
tpl_link(wl('wiki:help','do=show'),$pre.$lang['btn_help'].$suf,'class="action" accesskey="h"');
break;
case 'about':
tpl_link(wl('wiki:about','do=show'),$pre.$lang['btn_about'].$suf,'class="action" ');
break;
case 'top':
print ''.$pre.$lang['btn_top'].$suf.'';
break;
case 'back':
tpl_link(wl($ID,'do=backlink'),$pre.$lang['btn_back'].$suf,'class="action" accesskey="b"');
break;
case 'login':
if($conf['useacl']){
if($_SERVER['REMOTE_USER']){
tpl_link(wl($ID,'do=logout'),$pre.$lang['btn_logout'].$suf,'class="action"');
}else{
tpl_link(wl($ID,'do=login'),$pre.$lang['btn_login'].$suf,'class="action"');
}
}
break;
case 'admin':
if($INFO['perm'] == AUTH_ADMIN)
tpl_link(wl($ID,'do=admin'),$pre.$lang['btn_admin'].$suf,'class="action"');
break;
// !! ADDED FOR PROFILE !!
case 'profile':
if($conf['useacl']){
if($_SERVER['REMOTE_USER']){
tpl_link(wl($ID,'do=profile'),$pre.$lang['btn_profile'].$suf,'class="action"');
}
}
break;
// !! ADDED FOR PROFILE !!
default:
print '[unknown link type]';
}
}
?>