本文整理匯總了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);
}