1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

css validity

This commit is contained in:
sweetas
2007-07-11 13:49:27 +00:00
parent 6c43a859bb
commit 16d398b69d

View File

@@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
| $Revision: 1.11 $
| $Date: 2007-07-06 22:02:29 $
| $Author: e107steved $
| $Revision: 1.12 $
| $Date: 2007-07-11 13:49:27 $
| $Author: sweetas $
+---------------------------------------------------------------+
*/
@@ -122,8 +122,8 @@ class sitelinks
// if there's a submenu. :
if (isset($this->eLinkList[$main_linkid]) && is_array($this->eLinkList[$main_linkid])){
$substyle = (strpos(e_SELF, $link['link_url']) !== FALSE || strpos(e_SELF, $link['link_name']) !== FALSE || $link['link_expand'] == FALSE) ? "compact" : "none"; // expanding sub-menus.
$render_link[$key] .= "\n\n<div id='{$main_linkid}' style='display:$substyle' class='d_sublink'>\n";
$substyle = (strpos(e_SELF, $link['link_url']) !== FALSE || strpos(e_SELF, $link['link_name']) !== FALSE || $link['link_expand'] == FALSE) ? "" : " style='display:none'"; // expanding sub-menus.
$render_link[$key] .= "\n\n<div id='{$main_linkid}'".$substyle." class='d_sublink'>\n";
foreach ($this->eLinkList[$main_linkid] as $sub){
$render_link[$key] .= $this->makeLink($sub, TRUE, $aSubStyle, $css_class);
}