1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Bugtracker #3919 - absolute URLs for images

This commit is contained in:
e107steved
2007-05-31 21:17:17 +00:00
parent eff762cd6f
commit 5c454571af
2 changed files with 7 additions and 7 deletions

View File

@@ -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.2 $
| $Date: 2007-03-25 08:49:54 $
| $Author: lisa_ $
| $Revision: 1.3 $
| $Date: 2007-05-31 21:17:17 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -94,7 +94,7 @@ foreach($mainLinkArray as $links) {
$url = "javascript:void(0);";
$spanName = $id;
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle;' />" : "&raquo;");
$image = ($image ? "<img src='".e_IMAGE_ABS."icons/".$image."' alt='' style='vertical-align:middle;' />" : "&raquo;");
$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 {
@@ -103,7 +103,7 @@ foreach($mainLinkArray as $links) {
{
$linkName = $url;
$spanName = "";
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle;' />" : "&middot;");
$image = ($image ? "<img src='".e_IMAGE_ABS."icons/".$image."' alt='' style='vertical-align:middle;' />" : "&middot;");
$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);
}
@@ -115,7 +115,7 @@ foreach($mainLinkArray as $links) {
$text .= "\n<span style=\"display:none\" id=\"span_".$spanName."\">\n";
foreach($sublink as $link) {
extract($link);
$image = ($image ? "<img src='".e_IMAGE."icons/".$image."' alt='' style='vertical-align:middle' /> " : "&middot; ");
$image = ($image ? "<img src='".e_IMAGE_ABS."icons/".$image."' alt='' style='vertical-align:middle' /> " : "&middot; ");
$spanName = $parent_name;
$plink = $image." ".setLink($name, $url, $openMethod, $description)."<br />\n";