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,
false))) {
59 if ($copyright->
fullName() && !$has_link) {
72 return $this->
buildLink($copyright,
true);
78 $link = $copyright->
link();
81 if ($full_name !==
'') {
85 $res[] = (string) $link;
88 return implode(
' ',
$res);
138 return \ilUtil::getImagePath(self::FALLBACK_IMG);
144 !$copyright->
link() &&
145 (!$allow_empty_link || $copyright->
fullName() ===
'')
151 (
string) $copyright->
link(),
152 $copyright->
link() !==
null ? Relationship::LICENSE :
null,
153 $copyright->
link() ===
null
169 if ($relationship !==
null) {
170 $link = $link->withAdditionalRelationshipToReferencedResource($relationship);
173 $link = $link->withDisabled();
180 return $this->
factory->legacy()->content($text);
185 if ($identifier = $this->irss->manage()->find($string_id)) {
186 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.
link(string $caption, string $href, bool $new_viewport=false)
Relationship
Note that not all valid values of the rel-attribute of anchor tags are included here (see https://htm...