Include <a> links for menu items. This is necessary for browsers without JavaScript and it
makes it possible to see the url the link is pointing to
This commit is contained in:
committed by
WineHQ
parent
cf9cba4093
commit
171a8c01c4
@@ -33,7 +33,7 @@ class htmlmenu {
|
|||||||
<tr class="topMenu"><td>
|
<tr class="topMenu"><td>
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||||
';
|
';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add a table row */
|
/* add a table row */
|
||||||
@@ -41,14 +41,16 @@ class htmlmenu {
|
|||||||
{
|
{
|
||||||
if($shUrl)
|
if($shUrl)
|
||||||
{
|
{
|
||||||
// we have a valid url, make the entire table row clickable and provide some highlighting
|
// we have a valid url, make the entire table row clickable and provide
|
||||||
// for visual feedback
|
// some highlighting for visual feedback
|
||||||
html_tr_highlight_clickable($shUrl, "sideMenu", "#e0e6ff", "#ffffff");
|
html_tr_highlight_clickable($shUrl, "sideMenu", "#e0e6ff", "#ffffff");
|
||||||
echo "<td width='100%' align=$sAlign><span class=MenuItem> <u>$sName</u></span></td>";
|
echo "<td width='100%' align=$sAlign><span class=MenuItem> <u>".
|
||||||
|
"<a href=\"$shUrl\">$sName</a></u></span></td>";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
echo " <tr class=sideMenu><td width='100%' align=$sAlign><span class=menuItem> $sName</span></td></tr>\n";
|
echo " <tr class=sideMenu><td width='100%' align=$sAlign><span ".
|
||||||
|
"class=menuItem> $sName</span></td></tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user