assign('title' , $mod_strings['LBL_DEVELOPER_TOOLS']); $smarty->assign('question', $mod_strings['LBL_QUESTION_EDITOR']); $smarty->assign('defaultHelp', 'mainHelp'); $this->generateHomeButtons(); $smarty->assign('buttons', $this->buttons); $assistant=array('group'=>'main', 'key'=>'welcome'); $smarty->assign('assistant',$assistant); //initialize Assistant's display property. $userPref = $current_user->getPreference('mb_assist', 'Assistant'); if(!$userPref) $userPref="na"; $smarty->assign('userPref',$userPref); $ajax = new AjaxCompose(); $ajax->addSection('center', $mod_strings['LBL_HOME'],$smarty->fetch('modules/ModuleBuilder/tpls/wizard.tpl')); echo $ajax->getJavascript(); } function generateHomeButtons() { global $current_user; if(displayStudioForCurrentUser() == true) { //$this->buttons['Application'] = array ('action' => '', 'imageTitle' => 'Application', 'size' => '128', 'help'=>'appBtn'); $this->buttons[$GLOBALS['mod_strings']['LBL_STUDIO']] = array ('action' => 'javascript:ModuleBuilder.main("studio")', 'imageTitle' => 'Studio', 'size' => '128', 'help'=>'studioBtn'); } if(is_admin($current_user)) { $this->buttons[$GLOBALS['mod_strings']['LBL_MODULEBUILDER']] = array ('action' => 'javascript:ModuleBuilder.main("mb")', 'imageTitle' => 'ModuleBuilder', 'size' => '128', 'help'=>'mbBtn'); } $this->buttons[$GLOBALS['mod_strings']['LBL_DROPDOWNEDITOR']] = array ('action' => 'javascript:ModuleBuilder.main("dropdowns")', 'imageTitle' => $GLOBALS['mod_strings']['LBL_HOME_EDIT_DROPDOWNS'], 'imageName' => 'DropDownEditor', 'size' => '128', 'help'=>'dropDownEditorBtn'); } }