示例#1
0
 function nav_item($key, $navlink, $class, $level = null)
 {
     if (qa_opt('admin_plus_dropdown')) {
         if ($class == 'nav-sub-dropdown') {
             $class = 'nav-sub';
         }
         if ($key == 'admin' && $class == 'nav-main') {
             $this->output('<LI CLASS="qa-' . $class . '-item' . (@$navlink['opposite'] ? '-opp' : '') . (@$navlink['state'] ? ' qa-' . $class . '-' . $navlink['state'] : '') . ' qa-' . $class . '-' . $key . '">');
             $this->nav_link($navlink, $class);
             require_once QA_INCLUDE_DIR . 'qa-app-admin.php';
             $this->nav_list(qa_admin_sub_navigation(), 'nav-sub-dropdown', 1 + $level);
             $this->output('</LI>');
         } else {
             qa_html_theme_base::nav_item($key, $navlink, $class, $level);
         }
     } else {
         qa_html_theme_base::nav_item($key, $navlink, $class, $level);
     }
 }
示例#2
0
 function nav_item($key, $navlink, $class, $level = null)
 {
     // main navigation items with sub navigations will have a new class
     if ($level >= 1) {
         $class .= '-sub';
     }
     // main navigation items with No sub navigations will have a new class
     if ($class == 'nav-main' && !count(@$navlink['subnav'])) {
         $class .= '-single';
     }
     // main navigation items which are current page will have a new class
     if (@$navlink['selected']) {
         $navlink['state'] = 'selected';
     }
     qa_html_theme_base::nav_item($key, $navlink, $class, $level = null);
 }