Skip to content

Commit

Permalink
Merge branch 'release_8' of https://github.com/ILIAS-eLearning/ILIAS
Browse files Browse the repository at this point in the history
…into release_8
  • Loading branch information
alex40724 committed Nov 6, 2023
2 parents ed22848 + e6a7675 commit b973b6d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -327,6 +329,7 @@ public function executeCommand(): void
$gui_class = 'ilObjLearningSequenceEditExtroGUI';
}

$this->addContentStyleCss();
$this->addSubTabsForContent($which_tab);

$page_id = $this->object->getContentPageId($which_page);
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit b973b6d

Please sign in to comment.