本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例6: nav_list
function nav_list($navigation, $navtype)
{
unset($navigation['register']);
qa_html_theme_base::nav_list($navigation, $navtype);
}