Use class instead of ID.
git-svn-id: https://develop.svn.wordpress.org/trunk@448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
89b2a0d69f
commit
f32aa0e28c
@ -11,7 +11,7 @@ foreach ($menu as $item) {
|
|||||||
if ($continue) {
|
if ($continue) {
|
||||||
$item = explode("\t", $item);
|
$item = explode("\t", $item);
|
||||||
// 0 = user level, 1 = file, 2 = name
|
// 0 = user level, 1 = file, 2 = name
|
||||||
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' id="current"';
|
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' class="current"';
|
||||||
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user