Added "selectedMenuItem" as a class to all of the menus.
This commit is contained in:
parent
bb0fff4f8b
commit
60eebfd0df
4 changed files with 28 additions and 7 deletions
|
|
@ -35,8 +35,13 @@ sub _replacement {
|
|||
} else {
|
||||
$temp .= $delimeter;
|
||||
}
|
||||
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1])
|
||||
.'">'.$data[0].'</a>';
|
||||
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
|
||||
if ($session{page}{pageId} == $data[2]) {
|
||||
$temp .= '<span class="selectedMenuItem">'.$data[1].'</span>';
|
||||
} else {
|
||||
$temp .= $data[1];
|
||||
}
|
||||
$temp .= '</a>';
|
||||
}
|
||||
}
|
||||
$sth->finish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue