本文整理汇总了PHP中qa_html_theme_base::nav_item方法的典型用法代码示例。如果您正苦于以下问题:PHP qa_html_theme_base::nav_item方法的具体用法?PHP qa_html_theme_base::nav_item怎么用?PHP qa_html_theme_base::nav_item使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::nav_item方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: nav_item
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: nav_item
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);
}