22 return $this->context_collection->
main()->repository();
32 $additional_data = $called_contexts->
current()->getAdditionalData();
33 if ($additional_data->is(self::SHOW_EDITOR,
true)) {
34 $title = $this->dic->language()->txt(
'editor');
35 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_edtr.svg"), $title);
37 $iff =
function ($id) {
38 return $this->identification_provider->contextAwareIdentifier($id);
40 $l =
function (
string $content) {
41 return $this->dic->ui()->factory()->legacy($content);
43 $tools[] = $this->factory->tool($iff(
"copg_editor"))
60 $lng = $this->dic->language();
61 $lng->loadLanguageModule(
"content");
62 $tpl =
new ilTemplate(
"tpl.editor_slate.html",
true,
true,
"Services/COPage");
63 $tpl->setCurrentBlock(
"help");
64 $tpl->setVariable(
"TXT_ADD_EL",
$lng->txt(
"cont_add_elements"));
67 $tpl->setVariable(
"TXT_DRAG",
$lng->txt(
"cont_drag_and_drop_elements"));
68 $tpl->setVariable(
"TXT_SEL",
$lng->txt(
"cont_double_click_to_delete"));
69 $tpl->parseCurrentBlock();
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
static get($a_glyph, $a_text="")
Get glyph html.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Page editing GS tool provider.
getToolsForContextStack(CalledContexts $called_contexts)