45 return $this->context_collection->
repository();
53 $additional_data = $called_contexts->
current()->getAdditionalData();
54 if ($additional_data->is(self::LM_HTML_EXPORT_RENDERING,
true)) {
61 })->withHighPriority();
71 $additional_data = $called_contexts->
current()->getAdditionalData();
72 if ($additional_data->is(self::LM_HTML_EXPORT_RENDERING,
true)) {
77 ->withModification(
function (?
MainBar $current = null) : ?
MainBar {
78 if ($current === null) {
83 $lng = $DIC->language();
84 $f = $DIC->ui()->factory();
87 $offline_main_bar = new \ILIAS\UI\Implementation\Component\MainControls\MainBar(
91 $tools_button =
$f->button()->bulky($grid_icon,
$lng->txt(
"tools"),
"#")->withEngagedState(
true);
92 $offline_main_bar = $offline_main_bar->withToolsButton($tools_button);
96 $ids = $lm_tools->getOfflineToolIds();
99 foreach ($current->getToolEntries() as $id => $te) {
100 if (in_array($id, $ids)) {
101 $offline_main_bar = $offline_main_bar->withAdditionalToolEntry(
108 return $offline_main_bar;
109 })->withHighPriority();
120 $additional_data = $called_contexts->
current()->getAdditionalData();
121 if ($additional_data->is(self::LM_HTML_EXPORT_RENDERING,
true)) {
128 })->withHighPriority();
LM HTML export view layout provider, hides main and meta bar.
This describes the MainBar.
const LM_HTML_EXPORT_RENDERING
Class ChatMainBarProvider .
Class AbstractModificationProvider.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getBreadCrumbsModification(CalledContexts $called_contexts)
No breadcrumbs in HTML exports.
This describes the MetaBar.
getMetaBarModification(CalledContexts $called_contexts)
No meta bar in HTML exports.
Interface ModificationProvider.
getMainBarModification(CalledContexts $called_contexts)
No main bar in HTML exports.