diff --git a/Modules/LearningSequence/classes/class.ilObjLearningSequenceGUI.php b/Modules/LearningSequence/classes/class.ilObjLearningSequenceGUI.php index 7e4c7874dd6a..739553734c9a 100644 --- a/Modules/LearningSequence/classes/class.ilObjLearningSequenceGUI.php +++ b/Modules/LearningSequence/classes/class.ilObjLearningSequenceGUI.php @@ -106,6 +106,7 @@ class ilObjLearningSequenceGUI extends ilContainerGUI implements ilCtrlBaseClass public const ACCESS_READ = 'read'; public const ACCESS_VISIBLE = 'visible'; + protected \ILIAS\Style\Content\Service $content_style; protected string $obj_type; protected ilNavigationHistory $navigation_history; @@ -222,6 +223,7 @@ public function __construct() $this->request_wrapper = $DIC->http()->wrapper()->query(); $this->post_wrapper = $DIC->http()->wrapper()->post(); $this->refinery = $DIC->refinery(); + $this->content_style = $DIC->contentStyle(); $this->help->setScreenIdComponent($this->obj_type); $this->lng->loadLanguageModule($this->obj_type); @@ -327,6 +329,7 @@ public function executeCommand(): void $gui_class = 'ilObjLearningSequenceEditExtroGUI'; } + $this->addContentStyleCss(); $this->addSubTabsForContent($which_tab); $page_id = $this->object->getContentPageId($which_page); @@ -453,6 +456,14 @@ public function executeCommand(): void } } + public function addContentStyleCss(): void + { + $this->content_style->gui()->addCss( + $this->tpl, + $this->object->getRefId() + ); + } + public function addToNavigationHistory(): void { if ( @@ -537,6 +548,7 @@ protected function manageContent(string $cmd = self::CMD_CONTENT): void protected function learnerView(string $cmd = self::CMD_LEARNER_VIEW): void { + $this->addContentStyleCss(); $this->tabs->activateTab(self::TAB_CONTENT_MAIN); $this->addSubTabsForContent(self::TAB_VIEW_CONTENT);