// Users bar // $hui_userstoolbar = new HuiToolBar('userstoolbar'); $users_action = new HuiEventsCall(); $users_action->AddEvent(new HuiEvent('main', 'users', '')); $hui_usersbutton = new HuiButton('usersbutton', array('label' => $amp_locale->GetStr('users_button'), 'themeimage' => 'view_detailed', 'horiz' => 'true', 'action' => $users_action->GetEventsCallString())); $hui_userstoolbar->AddChild($hui_usersbutton); $newuser_action = new HuiEventsCall(); $newuser_action->AddEvent(new HuiEvent('main', 'newuser', '')); $hui_newuserbutton = new HuiButton('newuserbutton', array('label' => $amp_locale->GetStr('newuser_button'), 'themeimage' => 'filenew', 'horiz' => 'true', 'action' => $newuser_action->GetEventsCallString())); $hui_userstoolbar->AddChild($hui_newuserbutton); // Help tool bar // $hui_helptoolbar = new HuiToolBar('helpbar'); $main_disp = new HuiDispatcher('main'); $event_name = $main_disp->GetEventName(); if (strcmp($event_name, 'help')) { $help_action = new HuiEventsCall(); $help_action->AddEvent(new HuiEvent('main', 'help', array('node' => $event_name))); $hui_helpbutton = new HuiButton('helpbutton', array('label' => $amp_locale->GetStr('help_button'), 'themeimage' => 'help', 'horiz' => 'true', 'action' => $help_action->GetEventsCallString())); $hui_helptoolbar->AddChild($hui_helpbutton); } // Toolbar frame // $hui_toolbarframe = new HuiHorizGroup('toolbarframe'); $hui_toolbarframe->AddChild($hui_profilestoolbar); $hui_toolbarframe->AddChild($hui_userstoolbar); if ($gEnv['site']['id'] == $gEnv['user']['id']) { $motd_tb = new HuiToolBar('motdtb'); $motd_action = new HuiEventsCall(); $motd_action->AddEvent(new HuiEvent('main', 'motd', ''));