| @@ 525-532 (lines=8) @@ | ||
| 522 | $label .= '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="' . $class . '"'; |
|
| 523 | ||
| 524 | // If a description is specified, use it to build a tooltip. |
|
| 525 | if (!empty($this->description)) |
|
| 526 | { |
|
| 527 | $label .= ' title="' |
|
| 528 | . htmlspecialchars( |
|
| 529 | trim($text, ':') . '::' . ($this->translateDescription ? Text::_($this->description) : $this->description), |
|
| 530 | ENT_COMPAT, 'UTF-8' |
|
| 531 | ) . '"'; |
|
| 532 | } |
|
| 533 | ||
| 534 | // Add the label text and closing tag. |
|
| 535 | if ($this->required) |
|
| @@ 81-88 (lines=8) @@ | ||
| 78 | $label .= '<label id="' . $this->id . '-lbl" class="' . $class . '"'; |
|
| 79 | ||
| 80 | // If a description is specified, use it to build a tooltip. |
|
| 81 | if (!empty($this->description)) |
|
| 82 | { |
|
| 83 | $label .= ' title="' |
|
| 84 | . htmlspecialchars( |
|
| 85 | trim($text, ':') . '::' . ($this->translateDescription ? Text::_($this->description) : $this->description), |
|
| 86 | ENT_COMPAT, 'UTF-8' |
|
| 87 | ) . '"'; |
|
| 88 | } |
|
| 89 | ||
| 90 | // Add the label text and closing tag. |
|
| 91 | $label .= '>' . $text . '</label>'; |
|