當前位置: 首頁>>代碼示例>>PHP>>正文


PHP qa_html_theme_base::nav_list方法代碼示例

本文整理匯總了PHP中qa_html_theme_base::nav_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::nav_list方法的具體用法?PHP qa_html_theme_base::nav_list怎麽用?PHP qa_html_theme_base::nav_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在qa_html_theme_base的用法示例。


在下文中一共展示了qa_html_theme_base::nav_list方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: nav_list

 function nav_list($navigation, $navtype, $level = null)
 {
     // remove the registration link unless normal login AND allow registration booleans are set in options
     if (!(qa_opt('ldap_login_allow_normal') && qa_opt('ldap_login_allow_registration'))) {
         unset($navigation['register']);
     }
     qa_html_theme_base::nav_list($navigation, $navtype);
 }
開發者ID:neobubbaloo82,項目名稱:qa-ldap-login,代碼行數:8,代碼來源:ldap-login-layer.php

示例2: nav_list

 function nav_list($navigation, $class, $level = null)
 {
     if ($this->template == 'admin') {
         if ($class == 'nav-sub') {
             $navigation['theme_options'] = array('label' => 'Theme Options', 'url' => qa_path_html('admin/theme_options'));
         }
         if ($this->request == 'admin/theme_options') {
             unset($navigation['special']);
             $newnav = qa_admin_sub_navigation();
             $navigation = array_merge($newnav, $navigation);
             $navigation['theme_options']['selected'] = true;
         }
     }
     if (count($navigation) > 1) {
         qa_html_theme_base::nav_list($navigation, $class, $level);
     }
 }
開發者ID:swuit,項目名稱:swuit-q2a,代碼行數:17,代碼來源:qa-admin-options.php

示例3: nav_list

 function nav_list($navigation, $class, $level = null)
 {
     if (qa_opt('admin_plus_dropdown')) {
         if ($class == 'nav-sub-dropdown') {
             $this->output('<UL CLASS="qa-' . $class . '-list' . (isset($level) ? ' qa-' . $class . '-list-' . $level : '') . '">');
             foreach ($navigation as $key => $navlink) {
                 $this->nav_item($key, $navlink, $class, $level);
             }
             $this->output('</UL>');
         } else {
             if (!is_array(@$navigation['admin$']) || $class != 'nav-sub') {
                 qa_html_theme_base::nav_list($navigation, $class, $level);
             }
         }
     } else {
         qa_html_theme_base::nav_list($navigation, $class, $level);
     }
 }
開發者ID:NoahY,項目名稱:q2a-admin-plus,代碼行數:18,代碼來源:qa-admin-layer.php

示例4: nav_list

 function nav_list($navigation, $class, $level = null)
 {
     if ($class == 'nav-sub' && in_array($this->template, array('plugin', 'questions')) && qa_opt('poll_enable') && qa_opt('poll_enable_subnav')) {
         $navigation['polls'] = array('label' => qa_lang('polls/page_title'), 'url' => qa_path_html('polls'));
         if ($this->request == 'polls') {
             unset($navigation['special']);
             $newnav = qa_qs_sub_navigation(null, null);
             $navigation = array_merge($newnav, $navigation);
             unset($navigation['recent']['selected']);
             $navigation['polls']['selected'] = true;
         }
     }
     if (count($navigation) > 1 || $class != 'nav-sub') {
         qa_html_theme_base::nav_list($navigation, $class, $level = null);
     }
 }
開發者ID:amiyasahu,項目名稱:q2a-poll,代碼行數:16,代碼來源:qa-poll-layer.php

示例5: nav_list

 function nav_list($navigation, $class, $level = null)
 {
     if ($class == 'nav-sub' && in_array($this->template, array('plugin', 'questions')) && qa_opt('expert_question_enable') && $this->is_expert_user()) {
         $navigation[qa_opt('expert_question_page_url')] = array('label' => qa_opt('expert_question_page_title'), 'url' => qa_path_html(qa_opt('expert_question_page_url')));
         if ($this->request == qa_opt('expert_question_page_url')) {
             unset($navigation['special']);
             $newnav = qa_qs_sub_navigation(null, null);
             $navigation = array_merge($newnav, $navigation);
             unset($navigation['recent']['selected']);
             $navigation[qa_opt('expert_question_page_url')]['selected'] = true;
         }
         if (@$this->expertcount) {
             $navigation[qa_opt('expert_question_page_url')]['label'] .= ' (' . $this->expertcount . ')';
         }
     }
     if (count($navigation) > 1 || $class != 'nav-sub') {
         qa_html_theme_base::nav_list($navigation, $class, $level = null);
     }
 }
開發者ID:rkarimabadi,項目名稱:q2a-expert-questions,代碼行數:19,代碼來源:qa-expert-layer.php

示例6: nav_list

 function nav_list($navigation, $navtype)
 {
     unset($navigation['register']);
     qa_html_theme_base::nav_list($navigation, $navtype);
 }
開發者ID:robkub,項目名稱:qa-ldap-login,代碼行數:5,代碼來源:ldap-login_layer.php


注:本文中的qa_html_theme_base::nav_list方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。