From 9e767e885c22c1df312e3de49b99a82bc6d39c97 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 16 Jul 2016 14:34:53 +0200 Subject: [PATCH] added htmlContentLink --- lam/lib/html.inc | 87 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 83 insertions(+), 4 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 24bba64e..42b97d37 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -2671,7 +2671,7 @@ class htmlSubTitle extends htmlElement { echo "
\n"; echo "

\n"; if ($this->image != null) { - echo '' . $this->label . ' '; + echo '' . $this->label . ' '; } echo $this->label; echo "

\n"; @@ -2733,7 +2733,7 @@ class htmlLink extends htmlElement { /** link text */ private $text = null; /** link target */ - private $target = null; + protected $target = null; /** optional image */ private $image = null; /** title */ @@ -2774,7 +2774,7 @@ class htmlLink extends htmlElement { function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { $image = ''; if ($this->image != null) { - $image = '' . $this->text . ' '; + $image = '' . $this->getAlt() . ' '; } $title = ''; if ($this->title != null) { @@ -2797,7 +2797,7 @@ class htmlLink extends htmlElement { if (sizeof($this->cssClasses) > 0) { $classAttr = ' class="' . implode(' ', $this->cssClasses) . '"'; } - echo '' . $image . $this->text . ''; + echo '' . $image . $this->getContent() . ''; if ($this->showAsButton) { echo '