bug-223.patch
| b/application/modules/menu/controllers/index.php | ||
|---|---|---|
| 73 | 73 |
$list = '<ul class="menu-category">'."\n\t"; |
| 74 | 74 |
foreach( $items as $item ) {
|
| 75 | 75 |
$item['url'] = ltrim( $item['url'], '/' ); |
| 76 |
$class = 'menu-'.$item['id']; |
|
| 76 | 77 |
if ( (strtoupper($item['url']) == '[FRONT_PAGE]' || !trim($item['url'], '/') ) && !$curUrl || $item['url'] == $curUrl ) {
|
| 77 |
$class = 'class="menu-current"'; |
|
| 78 |
} else {
|
|
| 79 |
$class = null; |
|
| 78 |
$class .= ' menu-current'; |
|
| 80 | 79 |
} |
| 81 | 80 |
// Create the correct URL for the menu item to use |
| 82 | 81 |
if ( $item['url'] == 'admin' ) {
|
| ... | ... | |
| 94 | 93 |
} |
| 95 | 94 |
// Gather children and append the list item |
| 96 | 95 |
$children = empty($item['children']) ? '' : $this->buildItems( $item['children'] ); |
| 97 |
$list .= sprintf( '<li id="menu-item-%1$s" %2$s><a href="%3$s" title="%4$s">%5$s</a>%6$s</li>'."\n", |
|
| 98 |
$item['id'], |
|
| 96 |
$list .= sprintf( '<li %1$s><a href="%2$s" title="%3$s">%4$s</a>%5$s</li>'."\n", |
|
| 99 | 97 |
$class, |
| 100 | 98 |
$item['url'], |
| 101 | 99 |
zula_htmlspecialchars( ($item['attr_title'] ? $item['attr_title'] : $item['name']) ), |