38 if ($this->isEmbeddedMode) {
42 return parent::getProfileBackUrl();
50 parent::setDefaultLinkXml();
52 if ($this->isEmbeddedMode) {
56 $linkXml = str_replace(
'<LinkTargets></LinkTargets>',
'', $linkXml);
58 $domDoc =
new DOMDocument();
59 $domDoc->loadXML(
'<?xml version="1.0" encoding="UTF-8"?>' . $linkXml);
61 $xpath =
new DOMXPath($domDoc);
62 $links = $xpath->query(
'//IntLinkInfos/IntLinkInfo');
64 if ($links->length > 0) {
65 foreach ($links as $link) {
67 $link->attributes->getNamedItem(
'LinkTarget')->nodeValue =
'_blank';
71 $linkXmlWithBlankTargets = $domDoc->saveXML();
73 $this->setLinkXML(str_replace(
'<?xml version="1.0" encoding="UTF-8"?>',
'', $linkXmlWithBlankTargets));
75 $this->log->error(sprintf(
76 'Could not manipulate page editor link XML: %s / Error Message: %s',
87 $this->ctrl->redirectByClass(ilObjContentPageGUI::class,
'view');
92 $this->ctrl->setParameterByClass(ilObjContentPageGUI::class,
'page_editor_style',
'1');
95 $this->
ui->factory()->link()->standard(
96 $this->lng->txt(
'obj_sty'),
97 $this->ctrl->getLinkTargetByClass([
98 ilRepositoryGUI::class,
99 ilObjContentPageGUI::class
100 ],
'editStyleProperties')
104 $this->ctrl->setParameterByClass(ilObjContentPageGUI::class,
'page_editor_style', null);
getAdditionalPageActions()
setTemplateOutput($a_output=true)
setDefaultLinkXml()
Set standard link xml.
__construct($a_id=0, $a_old_nr=0, $isEmbeddedMode=false, $language='')
ilContentPagePageGUI constructor.
setTemplateTargetVar($a_variable)
__construct(Container $dic, ilPlugin $plugin)