openrat-cms

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

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

Links statischer.

Diffstat:
themes/default/include/html/link.el.php | 19+++++++++++++++++++
themes/default/include/html/link.inc.php | 9++++-----
2 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/themes/default/include/html/link.el.php b/themes/default/include/html/link.el.php @@ -0,0 +1,18 @@ +<?php + $value = ''; + if(!empty($config)) + { + global $conf; + $c = $conf; + $path = explode('/',$config); + $url = '<?php echo $'."conf['".implode("']['",$path)."'] ?>"; + + $value = "<a href=\"$url\" class=\"$class\" target=\"$target\" title=\"$title\">"; + } + elseif(!empty($url)) + $value = "<a href=\"$url\" class=\"$class\" target=\"$target\" title=\"$title\">"; + elseif(!empty($var)) + $value = "<a href=\"<?php echo $$var ?>\" class=\"$class\" target=\"$target\" title=\"$title\">"; + else + $value = ''; +?>+ \ No newline at end of file diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -1,6 +1,5 @@ <?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; - else + if (!empty($attr_action)) + { $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>">- \ No newline at end of file +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php } ?>+ \ No newline at end of file