19declare(strict_types=1);
32 protected const string FALLBACK_IMG =
'copyrights\all_rights_reserved.svg';
52 if (!is_null($image = $this->
buildIcon($copyright))) {
55 if (!is_null($link = $this->
buildLink($copyright))) {
59 if ($copyright->
fullName() && !$has_link) {
68 $link = $copyright->
link();
71 if ($full_name !==
'') {
75 $res[] = (string) $link;
78 return implode(
' ',
$res);
128 return \ilUtil::getImagePath(self::FALLBACK_IMG);
133 if (!$copyright->
link()) {
138 (
string) $copyright->
link()
139 )->withAdditionalRelationshipToReferencedResource(Relationship::LICENSE);
149 return $this->
factory->link()->standard($label, $action);
154 return $this->
factory->legacy()->content($text);
159 if ($identifier = $this->irss->manage()->find($string_id)) {
160 return $this->irss->consume()->src($identifier)->getSrc();
Builds a Color from either hex- or rgb values.
This describes how an icon could be modified during construction of UI.
This is how the factory for UI elements looks.
Relationship
Note that not all valid values of the rel-attribute of anchor tags are included here (see https://htm...