mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Use class instead of ID.
git-svn-id: http://svn.automattic.com/wordpress/trunk@450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a0607c3d01
commit
71209520da
@ -11,7 +11,7 @@ foreach ($menu as $item) {
|
||||
if ($continue) {
|
||||
$item = explode("\t", $item);
|
||||
// 0 = user level, 1 = file, 2 = name
|
||||
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' class="current"';
|
||||
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' id="current"';
|
||||
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
||||
}
|
||||
}
|
||||
@ -20,7 +20,7 @@ foreach ($menu as $item) {
|
||||
|
||||
<li><a href="javascript:profile(<?php echo $user_ID ?>)">My Profile</a></li>
|
||||
<li><a href="<?php echo "$siteurl/$blogfilename"; ?>">View site</a></li>
|
||||
<li id="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li>
|
||||
<li class="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="top"><?php echo $title; ?></h2>
|
Loading…
Reference in New Issue
Block a user