当前位置: 首页>>代码示例>>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;未经允许,请勿转载。