mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
bugfix #3801 : tree menu needed space between image and link
This commit is contained in:
parent
dbe9b07add
commit
026b1e3dc0
@ -12,9 +12,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/tree_menu/tree_menu.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:35:43 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-03-25 08:49:54 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@ -95,7 +95,7 @@ foreach($mainLinkArray as $links) {
|
||||
$url = "javascript:void(0);";
|
||||
$spanName = $id;
|
||||
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle;' />" : "»");
|
||||
$plink = "<div".($menu_pref['tm_class2'] ? " class='{$menu_pref['tm_class2']}'" : "")." style='width:100%; cursor: pointer;' onclick='expandit(\"span_".$spanName."\");updatecook(\"".$spanName."\");'>".$image.setLink($name, $url, $openMethod, $description)."</div>\n";
|
||||
$plink = "<div".($menu_pref['tm_class2'] ? " class='{$menu_pref['tm_class2']}'" : "")." style='width:100%; cursor: pointer;' onclick='expandit(\"span_".$spanName."\");updatecook(\"".$spanName."\");'>".$image." ".setLink($name, $url, $openMethod, $description)."</div>\n";
|
||||
$text .= ($menu_pref['tm_spacer'] ? "<div class='spacer'>\n".$plink."\n</div>\n" : $plink);
|
||||
} else {
|
||||
// no sublinks found ...
|
||||
@ -104,7 +104,7 @@ foreach($mainLinkArray as $links) {
|
||||
$linkName = $url;
|
||||
$spanName = "";
|
||||
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle;' />" : "·");
|
||||
$plink = "<div".($menu_pref['tm_class1'] ? " class='{$menu_pref['tm_class1']}'" : "")." style='width:100%; cursor: pointer;'>".$image.setLink($name, $url, $openMethod, $description)."</div>";
|
||||
$plink = "<div".($menu_pref['tm_class1'] ? " class='{$menu_pref['tm_class1']}'" : "")." style='width:100%; cursor: pointer;'>".$image." ".setLink($name, $url, $openMethod, $description)."</div>";
|
||||
$text .= ($menu_pref['tm_spacer'] ? "<div class='spacer'>\n".$plink."\n</div>\n" : $plink);
|
||||
}
|
||||
}
|
||||
@ -118,7 +118,7 @@ foreach($mainLinkArray as $links) {
|
||||
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle' /> " : "· ");
|
||||
$spanName = $parent_name;
|
||||
|
||||
$plink = $image.setLink($name, $url, $openMethod, $description)."<br />\n";
|
||||
$plink = $image." ".setLink($name, $url, $openMethod, $description)."<br />\n";
|
||||
$text .=($menu_pref['tm_class3'] ? "<span".($menu_pref['tm_class3'] ? " class='{$menu_pref['tm_class3']}'" : "").">".$plink."</span>\n\n" : $plink);
|
||||
}
|
||||
$text .= "</span>\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user