openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e9f6b15bc1ebd3b1ea276f1abe7f261bdb1a2541
parent ab6e31ed01688af69ab6023b407f09e65a0c1e3b
Author: dankert <devnull@localhost>
Date:   Thu, 27 Jul 2006 22:33:43 +0200

Attribute "config" auswerten.

Diffstat:
themes/default/include/html/image.inc.php | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/themes/default/include/html/image.inc.php b/themes/default/include/html/image.inc.php @@ -1,8 +1,19 @@ <?php if (!empty($attr_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (!empty($attr_type)) { +} elseif(!empty($attr_config)) { + global $conf; + $c = $conf; + $path = explode('/',$attr_config); + foreach($path as $part) + $c = $c[$part]; + $tmp_url = $c; +?><img src="<?php echo $tmp_url ?>" border="0" align="<?php echo $attr_align ?>"><?php + } +elseif (!empty($attr_type)) { ?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php +} elseif (!empty($attr_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } elseif (!empty($$attr_url)) { ?><img src="<?php echo $$attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php } elseif (!empty($attr_file)) {