*Fix bug#8180
This commit is contained in:
@@ -53,11 +53,20 @@
|
||||
<?php $active = empty($menu) ? 'btn-active-text' : '';?>
|
||||
<?php echo html::a(inlink('managePriv', sprintf($params, '')), "<span class='text'>{$lang->group->all}</span>", '', "class='btn btn-link $active'")?>
|
||||
|
||||
<?php foreach($lang->mainNav as $module => $title):?>
|
||||
<?php if(!is_string($title)) continue;?>
|
||||
<?php $active = $menu == $module ? 'btn-active-text' : '';?>
|
||||
<?php echo html::a(inlink('managePriv', sprintf($params, $module)), "<span class='text'>" . strip_tags(substr($title, 0, strpos($title, '|'))) . '</span>', '', "class='btn btn-link $active'")?>
|
||||
<?php endforeach;?>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($lang->mainNav as $module => $title)
|
||||
{
|
||||
$i++;
|
||||
if(!is_string($title)) continue;
|
||||
if($i == 13) echo '<div class="btn-group"><a href="javascript:;" data-toggle="dropdown" class="btn btn-link">更多 <span class="caret"></span></a><ul class="dropdown-menu">';
|
||||
$active = $menu == $module ? 'btn-active-text' : '';
|
||||
if($i >= 13) echo '<li>';
|
||||
echo html::a(inlink('managePriv', sprintf($params, $module)), "<span class='text'>" . strip_tags(substr($title, 0, strpos($title, '|'))) . '</span>', '', "class='btn btn-link $active'");
|
||||
if($i >= 13) echo '</li>';
|
||||
if($i == count($lang->mainNav->menuOrder) and $i >= 13) echo '</ul></div>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $active = $menu == 'other' ? 'btn-active-text' : '';?>
|
||||
<?php echo html::a(inlink('managePriv', sprintf($params, 'other')), "<span class='text'>{$lang->group->other}</span>", '', "class='btn btn-link $active'");?>
|
||||
|
||||
Reference in New Issue
Block a user