4 require_once
"Services/UIComponent/Button/classes/class.ilButtonBase.php";
20 return new self(self::TYPE_LINK);
35 $this->url = trim($a_value);
55 $this->target = trim($a_value);
80 return ' '.$this->getCaption().
' ';
89 if (isset($a_additional_attr[
'rel'])) {
90 if (strpos($a_additional_attr[
'rel'],
'noopener') ===
false) {
91 $a_additional_attr[
'rel'] .=
' noopener';
94 $a_additional_attr[
'rel'] =
'noopener';
98 return parent::renderAttributes($a_additional_attr);
106 $attr[
"href"] = $this->
getUrl() ? $this->
getUrl() :
"#";
109 return '<a'.$this->renderAttributes($attr).
'>'.
Create styles array
The data for the language used.