diff --git a/phpgwapi/templates/idots/navbar.inc.php b/phpgwapi/templates/idots/navbar.inc.php index 4a7645d368..78e214e5d5 100644 --- a/phpgwapi/templates/idots/navbar.inc.php +++ b/phpgwapi/templates/idots/navbar.inc.php @@ -20,7 +20,7 @@ 'navbar' => 'navbar.tpl' ) ); - + $GLOBALS['idots_tpl']->set_block('navbar','navbar_header','navbar_header'); $GLOBALS['idots_tpl']->set_block('navbar','extra_blocks_header','extra_block_header'); $GLOBALS['idots_tpl']->set_block('navbar','extra_block_row','extra_block_row'); @@ -35,7 +35,7 @@ $var['img_root'] = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/images'; $var['table_bg_color'] = $GLOBALS['egw_info']['theme']['navbar_bg']; - + if($GLOBALS['egw_info']['user']['preferences']['common']['click_or_onmouseover']=='onmouseover') { $show_menu_event = 'onMouseOver'; @@ -45,7 +45,20 @@ $show_menu_event = 'onClick'; } - + if($GLOBALS['egw_info']['user']['userid'] == 'anonymous') + { + $cnf_reg =& CreateObject('phpgwapi.config','registration'); + $cnf_reg->read_repository(); + $config_reg = $cnf_reg->config_data; + + $GLOBALS['idots_tpl']->set_var('upper_tabs',' + + '); + } + $applications = ''; // == 'icons_and_text') @@ -147,7 +160,7 @@ } } - if($GLOBALS['egw_info']['user']['preferences']['common']['start_and_logout_icons']!='no') + if($GLOBALS['egw_info']['user']['preferences']['common']['start_and_logout_icons']!='no' && $GLOBALS['egw_info']['user']['userid'] != 'anonymous') { $app_icons .= ''.$GLOBALS['egw_info']['navbar']['logout']['title'].''; $app_titles .= ''.$GLOBALS['egw_info']['navbar']['logout']['title'].''; @@ -267,7 +280,7 @@ 'no_lang' => True, 'link' => $GLOBALS['egw_info']['navbar']['about']['url'] ), - 'Logout'=>$GLOBALS['egw_info']['navbar']['logout']['url'] + $GLOBALS['egw_info']['user']['userid'] != 'anonymous' ? 'Logout' : 'Login' =>$GLOBALS['egw_info']['navbar']['logout']['url'] ); if($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox']==1) diff --git a/phpgwapi/templates/idots/navbar.tpl b/phpgwapi/templates/idots/navbar.tpl index 6836174a50..3b9b1407bb 100644 --- a/phpgwapi/templates/idots/navbar.tpl +++ b/phpgwapi/templates/idots/navbar.tpl @@ -5,6 +5,9 @@
+
+ {upper_tabs} +