Exemple #1
0
 function getSubMenuLinks($key)
 {
     $links = array();
     $links['content'] = array(array('url' => 'index.php?option=com_sections&scope=content', 'text' => 'SECTIONS'), array('url' => 'index.php?option=com_categories&scope=content', 'text' => 'CATEGORIES'), array('url' => 'index.php?option=com_frontpage', 'text' => 'FRONTPAGE'));
     $links['templates'] = array(array('url' => 'index.php?option=com_templates&task=edit&cid[]=adminpraise3&client=1', 'text' => 'ADMIN TEMPLATE PARAMS'), array('url' => 'index.php?option=com_installer', 'text' => 'INSTALL TEMPLATES'), array('url' => 'index.php?option=com_installer&task=manage&type=templates', 'text' => 'MANAGE TEMPLATES'));
     $links['modules'] = array(array('url' => 'index.php?option=com_installer', 'text' => 'INSTALL MODULES'), array('url' => 'index.php?option=com_installer&task=manage&type=modules', 'text' => 'MANAGE MODULES'));
     $links['plugins'] = array(array('url' => 'index.php?option=com_installer', 'text' => 'INSTALL PLUGINS'), array('url' => 'index.php?option=com_installer&task=manage&type=plugins', 'text' => 'MANAGE PLUGINS'));
     $links['cpanel'] = array(array('url' => 'index.php?option=com_modules&client=1&task=add', 'text' => 'NEW DASHBOARD MODULE'), array('url' => 'index.php?option=com_modules&client=1', 'text' => 'MANAGE DASHBOARD MODULES'));
     $links['components'] = array(array('url' => 'index.php?option=com_installer', 'text' => 'INSTALL COMPONENTS'), array('url' => 'index.php?option=com_installer&task=manage&type=components', 'text' => 'MANAGE COMPONENTS'));
     $links['users'] = array(array('url' => 'index.php?option=com_users&filter_logged=1', 'text' => 'LOGGED IN USERS'));
     $adminLinks = AdminPraise3MenuHelper::getMainMenuLinks('admin');
     $links['admin'] = $adminLinks['children'];
     array_shift($links['admin']);
     $pfLinks = AdminPraise3MenuHelper::getCustomComponentLinks('projectfork');
     $pfChildren = $pfLinks['children'];
     $pfClasses = array('pf_button_controlpanel', 'pf_button_projects', 'pf_button_tasks', 'pf_button_time', 'pf_button_filemanager', 'pf_button_calendar', 'pf_button_board', 'pf_button_profile', 'pf_button_users', 'pf_button_groups', 'pf_button_config');
     for ($i = 0; $i < count($pfChildren); $i++) {
         $pfChildren[$i]['li-class'] = $pfClasses[$i];
     }
     $links['projectfork'] = $pfChildren;
     $vmLinks = AdminPraise3MenuHelper::getCustomComponentLinks('virtuemart');
     $vmChildren = $vmLinks['children'];
     $links['virtuemart'] = $vmChildren;
     if (isset($links[$key])) {
         return $links[$key];
     } else {
         return array();
     }
 }
Exemple #2
0
 function renderCustomComponentMenu($type, $active)
 {
     $links = AdminPraise3MenuHelper::getCustomComponentLinks($type);
     if (empty($links)) {
         return null;
     }
     return $this->renderDropdown($links, $active);
 }