56 : bool
57 {
59
60 if (!$this->
settings->isCopyrightSelectionActive() or
62 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->
lng->txt(
'meta_copyright'));
63 $this->tpl->setVariable(
64 'COPYRIGHT_VAL',
66 );
67 return true;
68 }
69
71
72 $found = false;
73 foreach ($entries as $entry) {
74 $this->tpl->setCurrentBlock('copyright_selection');
75
76 if ($entry->getEntryId() === $default_id) {
77 $found = true;
78 $this->tpl->setVariable('COPYRIGHT_CHECKED', 'checked="checked"');
79 }
80 $this->tpl->setVariable('COPYRIGHT_ID', $entry->getEntryId());
81 $this->tpl->setVariable('COPYRIGHT_TITLE', $entry->getTitle());
82 $this->tpl->setVariable('COPYRIGHT_DESCRIPTION', $entry->getDescription());
83 $this->tpl->parseCurrentBlock();
84 }
85
86 $this->tpl->setCurrentBlock('copyright_selection');
87 if (!$found) {
88 $this->tpl->setVariable('COPYRIGHT_CHECKED', 'checked="checked"');
89 }
90 $this->tpl->setVariable('COPYRIGHT_ID', 0);
91 $this->tpl->setVariable(
'COPYRIGHT_TITLE', $this->
lng->txt(
'meta_cp_own'));
92
93 $this->tpl->setVariable(
"TXT_COPYRIGHT", $this->
lng->txt(
'meta_copyright'));
94 if (!$found) {
95 $this->tpl->setVariable('COPYRIGHT_VAL', $desc);
96 }
97 return false;
98 }
static _extractEntryId(string $a_cp_string)
static _lookupDescription(int $a_rbac_id, int $a_obj_id)