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
@@ -41,14 +41,16 @@ class htmlmenu {
|
||||
{
|
||||
if($shUrl)
|
||||
{
|
||||
// we have a valid url, make the entire table row clickable and provide some highlighting
|
||||
// for visual feedback
|
||||
// we have a valid url, make the entire table row clickable and provide
|
||||
// some highlighting for visual feedback
|
||||
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";
|
||||
} 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