35 include_once
"./classes/class.ilObjectGUI.php";
48 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
50 $lng->loadLanguageModule(
"style");
55 $next_class = $this->ctrl->getNextClass($this);
56 $cmd = $this->ctrl->getCmd();
63 case 'ilpermissiongui':
64 include_once(
"./classes/class.ilPermissionGUI.php");
66 $ret =& $this->ctrl->forwardCommand($perm_gui);
72 $cmd =
"editBasicSettings";
114 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
116 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
119 $this->tpl->addBlockfile(
"ADM_CONTENT",
"style_basic_settings",
"tpl.stys_basic_settings.html");
120 $this->tpl->setCurrentBlock(
"style_settings");
122 $settings = $this->ilias->getAllSettings();
124 $this->tpl->setVariable(
"FORMACTION_STYLESETTINGS", $this->ctrl->getFormAction($this));
126 $this->tpl->setVariable(
"TXT_TREE_FRAME", $this->lng->txt(
"tree_frame"));
127 $this->tpl->setVariable(
"TXT_TREE_FRAME_INFO", $this->lng->txt(
"tree_frame_info"));
128 $this->tpl->setVariable(
"TXT_FRAME_LEFT", $this->lng->txt(
"tree_left"));
129 $this->tpl->setVariable(
"TXT_FRAME_RIGHT", $this->lng->txt(
"tree_right"));
131 $this->tpl->setVariable(
"TXT_STYLE_SETTINGS", $this->lng->txt(
"basic_settings"));
132 $this->tpl->setVariable(
"TXT_ICONS_IN_TYPED_LISTS", $this->lng->txt(
"icons_in_typed_lists"));
133 $this->tpl->setVariable(
"TXT_ICONS_IN_HEADER", $this->lng->txt(
"icons_in_header"));
134 $this->tpl->setVariable(
"TXT_ICONS_IN_ITEM_ROWS", $this->lng->txt(
"icons_in_item_rows"));
135 $this->tpl->setVariable(
"TXT_ICONS_IN_TYPED_LISTS_INFO", $this->lng->txt(
"icons_in_typed_lists_info"));
137 $this->tpl->setVariable(
"TXT_ENABLE_CUSTOM_ICONS", $this->lng->txt(
"enable_custom_icons"));
138 $this->tpl->setVariable(
"TXT_ENABLE_CUSTOM_ICONS_INFO", $this->lng->txt(
"enable_custom_icons_info"));
139 $this->tpl->setVariable(
"TXT_CUSTOM_ICON_SIZE_BIG", $this->lng->txt(
"custom_icon_size_big"));
140 $this->tpl->setVariable(
"TXT_CUSTOM_ICON_SIZE_SMALL", $this->lng->txt(
"custom_icon_size_standard"));
141 $this->tpl->setVariable(
"TXT_CUSTOM_ICON_SIZE_TINY", $this->lng->txt(
"custom_icon_size_tiny"));
142 $this->tpl->setVariable(
"TXT_WIDTH_X_HEIGHT", $this->lng->txt(
"width_x_height"));
143 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
146 if ($settings[
"tree_frame"] ==
"right")
148 $this->tpl->setVariable(
"SEL_FRAME_RIGHT",
"selected=\"selected\"");
152 $this->tpl->setVariable(
"SEL_FRAME_LEFT",
"selected=\"selected\"");
155 if ($settings[
"custom_icons"])
157 $this->tpl->setVariable(
"CHK_CUSTOM_ICONS",
"checked=\"checked\"");
159 if ($settings[
"icon_position_in_lists"] ==
"item_rows")
161 $this->tpl->setVariable(
"SEL_ICON_POS_ITEM_ROWS",
"selected=\"selected\"");
165 $this->tpl->setVariable(
"SEL_ICON_POS_HEADER",
"selected=\"selected\"");
167 $this->tpl->setVariable(
"CUST_ICON_BIG_WIDTH", $settings[
"custom_icon_big_width"]);
168 $this->tpl->setVariable(
"CUST_ICON_BIG_HEIGHT", $settings[
"custom_icon_big_height"]);
169 $this->tpl->setVariable(
"CUST_ICON_SMALL_WIDTH", $settings[
"custom_icon_small_width"]);
170 $this->tpl->setVariable(
"CUST_ICON_SMALL_HEIGHT", $settings[
"custom_icon_small_height"]);
171 $this->tpl->setVariable(
"CUST_ICON_TINY_WIDTH", $settings[
"custom_icon_tiny_width"]);
172 $this->tpl->setVariable(
"CUST_ICON_TINY_HEIGHT", $settings[
"custom_icon_tiny_height"]);
182 $this->ilias->setSetting(
"tree_frame", $_POST[
"tree_frame"]);
183 $this->ilias->setSetting(
"icon_position_in_lists", $_POST[
"icon_position_in_lists"]);
184 $this->ilias->setSetting(
"custom_icons", $_POST[
"custom_icons"]);
185 $this->ilias->setSetting(
"custom_icon_big_width", (
int) $_POST[
"custom_icon_big_width"]);
186 $this->ilias->setSetting(
"custom_icon_big_height", (
int) $_POST[
"custom_icon_big_height"]);
187 $this->ilias->setSetting(
"custom_icon_small_width", (
int) $_POST[
"custom_icon_small_width"]);
188 $this->ilias->setSetting(
"custom_icon_small_height", (
int) $_POST[
"custom_icon_small_height"]);
189 $this->ilias->setSetting(
"custom_icon_tiny_width", (
int) $_POST[
"custom_icon_tiny_width"]);
190 $this->ilias->setSetting(
"custom_icon_tiny_height", (
int) $_POST[
"custom_icon_tiny_height"]);
200 global $rbacsystem,
$ilias;
202 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
204 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
207 include_once
"./Services/Table/classes/class.ilTableGUI.php";
210 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.styf_content_styles.html");
213 $this->tpl->addBlockfile(
"STYLE_TABLE",
"style_table",
"tpl.table.html");
216 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.styf_row.html");
220 $this->tpl->setVariable(
"FORMACTION",
221 $this->ctrl->getFormAction($this));
227 $tbl->setTitle($this->lng->txt(
"content_styles"),
"icon_sty.gif",
228 $this->lng->txt(
"content_styles"));
233 $header_names = array(
"", $this->lng->txt(
"title"),
234 $this->lng->txt(
"sty_nr_learning_modules"),
235 $this->lng->txt(
"purpose"), $this->lng->txt(
"sty_scope"),
236 $this->lng->txt(
"active"));
237 $tbl->setHeaderNames($header_names);
239 $header_params = array(
"ref_id" => $this->ref_id);
240 $tbl->setHeaderVars(array(
"",
"title",
"nr_lms",
"purpose",
"scope",
"active"), $header_params);
241 $tbl->setColumnWidth(array(
"1px",
"",
"",
"",
""));
244 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
245 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
246 $tbl->setLimit(
$_GET[
"limit"]);
247 $tbl->setOffset(
$_GET[
"offset"]);
248 $tbl->disable(
"sort");
251 $style_entries = array();
252 $styles = $this->
object->getStyles();
253 foreach($styles as $style)
255 $style_entries[$style[
"title"].
":".$style[
"id"]]
258 ksort($style_entries);
259 $from_styles = $to_styles = array();
261 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
264 if ($fixed_style <= 0)
267 array(
"title" => $this->lng->txt(
"sty_individual_styles"),
269 $from_styles[-1] = $this->lng->txt(
"sty_individual_styles");
273 if ($default_style <= 0 && $fixed_style <= 0)
276 array(
"title" => $this->lng->txt(
"sty_default_style"),
278 $from_styles[0] = $this->lng->txt(
"sty_default_style");
279 $to_styles[0] = $this->lng->txt(
"sty_default_style");
283 $tbl->setMaxCount(count($style_entries));
285 $this->tpl->setVariable(
"COLUMN_COUNTS", 6);
288 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
293 include_once (
"./Services/Style/classes/class.ilObjStyleSheet.php");
295 $fixed_style = $ilias->getSetting(
"fixed_content_style_id");
296 $default_style = $ilias->getSetting(
"default_content_style_id");
298 foreach ($style_entries as $style)
301 $css_row = ($css_row ==
"tblrow2")
306 if ($style[
"id"] > 0)
308 $this->tpl->setCurrentBlock(
"check_box");
309 $this->tpl->setVariable(
"CHECKBOX_ID", $style[
"id"]);
310 $this->tpl->parseCurrentBlock();
314 if ($fixed_style <= 0 && $style[
"id"] > 0)
316 $this->tpl->setCurrentBlock(
"active_box");
319 $this->tpl->setVariable(
"CHECKED_STY",
'checked="checked"');
321 $this->tpl->setVariable(
"ACTIVE_ID", $style[
"id"]);
322 $this->tpl->parseCurrentBlock();
326 if ($style[
"id"] > 0)
328 $this->ctrl->setParameterByClass(
"ilobjstylesheetgui",
"obj_id", $style[
"id"]);
329 $this->tpl->setCurrentBlock(
"linka");
330 $this->tpl->setVariable(
"TXT_TITLE", $style[
"title"]);
331 $this->tpl->setVariable(
"LINK_STYLE",
332 $this->ctrl->getLinkTargetByClass(
"ilobjstylesheetgui"),
"view");
333 $this->tpl->parseCurrentBlock();
337 $this->tpl->setCurrentBlock(
"texta");
338 $this->tpl->setVariable(
"TXT_TEXT", $style[
"title"]);
339 $this->tpl->parseCurrentBlock();
342 $this->tpl->setCurrentBlock(
"style_row");
345 if ($style[
"id"] > 0)
352 $from_styles[$style[
"id"]] = $style[
"title"];
356 $to_styles[$style[
"id"]] = $style[
"title"];
359 $this->tpl->setVariable(
"TXT_NR_LEARNING_MODULES", $nr_lm);
364 $this->tpl->setVariable(
"TXT_NR_LEARNING_MODULES", $style[
"nr"]);
367 $this->tpl->setVariable(
"ROWCOL", $css_row);
370 if ($style[
"id"] > 0)
372 if ($style[
"id"] == $fixed_style)
374 $this->tpl->setVariable(
"TXT_PURPOSE", $this->lng->txt(
"global_fixed"));
376 if ($style[
"id"] == $default_style)
378 $this->tpl->setVariable(
"TXT_PURPOSE", $this->lng->txt(
"global_default"));
380 if ($style[
"category"] > 0)
382 $this->tpl->setVariable(
"TXT_SCOPE",
388 $this->tpl->parseCurrentBlock();
390 $this->tpl->setCurrentBlock(
"tbl_content");
391 $this->tpl->parseCurrentBlock();
395 if (count($style_entries) == 0)
397 $tbl->disable(
"header");
398 $tbl->disable(
"footer");
400 $this->tpl->setCurrentBlock(
"text");
401 $this->tpl->setVariable(
"TXT_CONTENT", $this->lng->txt(
"obj_not_found"));
402 $this->tpl->parseCurrentBlock();
404 $this->tpl->setCurrentBlock(
"tbl_content");
405 $this->tpl->parseCurrentBlock();
413 $this->tpl->setCurrentBlock(
"adm_content");
414 $this->tpl->setVariable(
"TXT_MOVE_LM_STYLE", $this->lng->txt(
"sty_move_lm_styles"));
415 $this->tpl->setVariable(
"TXT_FROM", $this->lng->txt(
"from"));
416 $this->tpl->setVariable(
"TXT_TO", $this->lng->txt(
"to"));
417 $this->tpl->setVariable(
"TXT_MOVE_LM_STYLE", $this->lng->txt(
"sty_move_lm_styles"));
418 $this->tpl->setVariable(
"TXT_MOVE_STYLE", $this->lng->txt(
"sty_move_style"));
419 $this->tpl->setVariable(
"SELECT_FROM",
421 $this->tpl->setVariable(
"SELECT_TO",
423 $this->tpl->setVariable(
"FORMACTION2", $this->ctrl->getFormAction($this));
424 $this->tpl->parseCurrentBlock();
432 if ($_POST[
"from_style"] == -1)
438 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
440 $this->ctrl->redirect($this,
"editContentStyles");
449 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
451 $this->ctrl->redirect($this,
"editContentStyles");
461 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.confirm.html");
462 $this->tpl->setVariable(
"CMD_OK",
"moveIndividualStyles");
463 $this->tpl->setVariable(
"TXT_OK", $this->lng->txt(
"ok"));
464 $this->tpl->setVariable(
"CMD_CANCEL",
"editContentStyles");
465 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
466 $this->tpl->setVariable(
"TXT_CONFIRM", $this->lng->txt(
"sty_confirm_del_ind_styles"));
467 $this->tpl->setVariable(
"TXT_CONTENT",
468 sprintf($this->lng->txt(
"sty_confirm_del_ind_styles_desc"),
470 $this->ctrl->setParameter($this,
"to_style", $_POST[
"to_style"]);
471 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormaction($this));
472 $this->tpl->parseCurrentBlock();
481 global $rbacsystem,
$ilias, $styleDefinition;;
483 if (!$rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
485 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->MESSAGE);
488 $this->tpl->addBlockfile(
"ADM_CONTENT",
"style_settings",
"tpl.stys_settings.html");
489 $this->tpl->setCurrentBlock(
"style_settings");
491 $settings = $this->ilias->getAllSettings();
493 $this->tpl->setVariable(
"FORMACTION_STYLESETTINGS", $this->ctrl->getFormAction($this));
494 $this->tpl->setVariable(
"TXT_STYLE_SETTINGS", $this->lng->txt(
"system_style_settings"));
495 $this->tpl->setVariable(
"TXT_SAVE", $this->lng->txt(
"save"));
496 $this->tpl->setVariable(
"TXT_DEFAULT_SKIN_STYLE", $this->lng->txt(
"default_skin_style"));
497 $this->tpl->setVariable(
"TXT_SKIN_STYLE_ACTIVATION", $this->lng->txt(
"style_activation"));
498 $this->tpl->setVariable(
"TXT_NUMBER_OF_USERS", $this->lng->txt(
"num_users"));
499 $this->tpl->setVariable(
"TXT_MOVE_USERS_TO_STYLE", $this->lng->txt(
"move_users_to_style"));
502 $templates = $styleDefinition->getAllTemplates();
504 $all_styles = array();
506 foreach ($templates as $template)
510 $styleDef->startParsing();
511 $styles = $styleDef->getStyles();
513 foreach ($styles as $style)
515 if ($this->ilias->ini->readVariable(
"layout",
"skin") == $template[
"id"] &&
516 $this->ilias->ini->readVariable(
"layout",
"style") == $style[
"id"])
518 $this->tpl->setVariable(
"SKINSELECTED",
"selected=\"selected\"");
522 $this->tpl->setCurrentBlock(
"selectskin");
523 $this->tpl->setVariable(
"SKINVALUE", $template[
"id"].
":".$style[
"id"]);
524 $this->tpl->setVariable(
"SKINOPTION", $styleDef->getTemplateName().
" / ".$style[
"name"]);
525 $this->tpl->parseCurrentBlock();
528 foreach ($templates as $template2)
532 $styleDef2->startParsing();
533 $styles2 = $styleDef2->getStyles();
535 foreach ($styles2 as $style2)
539 $this->tpl->setCurrentBlock(
"move_to_skin");
540 $this->tpl->setVariable(
"TOSKINVALUE", $template2[
"id"].
":".$style2[
"id"]);
541 $this->tpl->setVariable(
"TOSKINOPTION", $styleDef2->getTemplateName().
" / ".$style2[
"name"]);
542 $this->tpl->parseCurrentBlock();
548 $this->tpl->setCurrentBlock(
"activation_checkbox");
549 $this->tpl->setVariable(
"VAL_SKIN_STYLE", $template[
"id"].
":".$style[
"id"]);
552 $this->tpl->setVariable(
"CHK_SKIN_STYLE",
" checked=\"1\" ");
554 $this->tpl->parseCurrentBlock();
557 $this->tpl->setCurrentBlock(
"style_activation");
558 $this->tpl->setVariable(
"VAL_MOVE_SKIN_STYLE", $template[
"id"].
":".$style[
"id"]);
559 $this->tpl->setVariable(
"TXT_SKIN_STYLE_TITLE",
560 $styleDef->getTemplateName().
" / ".$style[
"name"]);
562 $this->tpl->setVariable(
"VAL_NUM_USERS", $num_users);
563 $this->tpl->parseCurrentBlock();
565 $all_styles[] = $template[
"id"].
":".$style[
"id"];
574 $users_missing_styles = 0;
575 foreach($all_user_styles as $style)
577 if (!in_array($style, $all_styles))
579 $style_arr = explode(
":", $style);
584 if ($users_missing_styles > 0)
587 foreach ($templates as $template2)
591 $styleDef2->startParsing();
592 $styles2 = $styleDef2->getStyles();
594 foreach ($styles2 as $style2)
598 $this->tpl->setCurrentBlock(
"move_to_skin");
599 $this->tpl->setVariable(
"TOSKINVALUE", $template2[
"id"].
":".$style2[
"id"]);
600 $this->tpl->setVariable(
"TOSKINOPTION", $styleDef2->getTemplateName().
" / ".$style2[
"name"]);
601 $this->tpl->parseCurrentBlock();
606 $this->tpl->setCurrentBlock(
"style_activation");
607 $this->tpl->setVariable(
"TXT_SKIN_STYLE_TITLE",
608 $this->lng->txt(
"other"));
609 $this->tpl->setVariable(
"VAL_NUM_USERS",
610 $users_missing_styles);
611 $this->tpl->setVariable(
"VAL_MOVE_SKIN_STYLE",
"other");
612 $this->tpl->parseCurrentBlock();
615 $this->tpl->parseCurrentBlock();
624 global $styleDefinition;
627 if (count($_POST[
"st_act"]) < 1)
629 $this->ilias->raiseError($this->lng->txt(
"at_least_one_style"), $this->ilias->error_obj->MESSAGE);
634 $templates = $styleDefinition->getAllTemplates();
635 $all_styles = array();
636 foreach ($templates as $template)
640 $styleDef->startParsing();
641 $styles = $styleDef->getStyles();
642 foreach ($styles as $style)
644 if (!isset($_POST[
"st_act"][$template[
"id"].
":".$style[
"id"]]))
648 $this->ilias->raiseError($this->lng->txt(
"cant_deactivate_if_users_assigned"), $this->ilias->error_obj->MESSAGE);
659 $all_styles[] = $template[
"id"].
":".$style[
"id"];
664 foreach($_POST[
"move_users"] as $key => $value)
668 $to = explode(
":", $value);
672 $from = explode(
":", $key);
682 foreach($all_user_styles as $style)
684 if (!in_array($style, $all_styles))
686 $style_arr = explode(
":", $style);
695 if ($_POST[
"default_skin_style"] !=
"")
697 $sknst = explode(
":", $_POST[
"default_skin_style"]);
699 if ($this->ilias->ini->readVariable(
"layout",
"style") != $sknst[1] ||
700 $this->ilias->ini->readVariable(
"layout",
"skin") != $sknst[0])
702 $this->ilias->ini->setVariable(
"layout",
"skin", $sknst[0]);
703 $this->ilias->ini->setVariable(
"layout",
"style",$sknst[1]);
706 $this->ilias->ini->write();
719 if (!isset($_POST[
"id"]))
721 $this->ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
727 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.confirm_deletion.html");
734 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
737 $this->tpl->setCurrentBlock(
"table_header");
738 $this->tpl->setVariable(
"TEXT", $this->lng->txt(
"objects"));
739 $this->tpl->parseCurrentBlock();
746 foreach ($_POST[
"id"] as $id)
748 $this->tpl->setCurrentBlock(
"table_row");
752 $this->tpl->parseCurrentBlock();
758 $buttons = array(
"confirmedDelete" => $this->lng->txt(
"confirm"),
759 "cancelDelete" => $this->lng->txt(
"cancel"));
760 foreach ($buttons as $name => $value)
762 $this->tpl->setCurrentBlock(
"operation_btn");
764 $this->tpl->setVariable(
"BTN_NAME",$name);
765 $this->tpl->setVariable(
"BTN_VALUE",$value);
766 $this->tpl->parseCurrentBlock();
780 $this->
object->removeStyle($id);
781 $style_obj =& $ilias->obj_factory->getInstanceByObjId($id);
782 $style_obj->delete();
784 $this->
object->update();
787 $this->ctrl->getLinkTarget($this,
"editContentStyles")));
800 if (!isset($_POST[
"id"]))
802 $this->ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
804 if(count($_POST[
"id"]) > 1)
806 $this->ilias->raiseError($this->lng->txt(
"cont_select_max_one_item"),$this->ilias->error_obj->MESSAGE);
809 $ilias->deleteSetting(
"fixed_content_style_id");
810 $def_style = $ilias->getSetting(
"default_content_style_id");
812 if ($def_style != $_POST[
"id"][0])
814 $ilias->setSetting(
"default_content_style_id", $_POST[
"id"][0]);
818 $ilias->deleteSetting(
"default_content_style_id");
833 if (!isset($_POST[
"id"]))
835 $this->ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
837 if(count($_POST[
"id"]) > 1)
839 $this->ilias->raiseError($this->lng->txt(
"cont_select_max_one_item"),$this->ilias->error_obj->MESSAGE);
842 $ilias->deleteSetting(
"default_content_style_id");
843 $fixed_style = $ilias->getSetting(
"fixed_content_style_id");
844 if ($fixed_style == $_POST[
"id"][0])
846 $ilias->deleteSetting(
"fixed_content_style_id");
850 $ilias->setSetting(
"fixed_content_style_id", $_POST[
"id"][0]);
861 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
862 $styles = $this->
object->getStyles();
863 foreach($styles as $style)
865 if ($_POST[
"std_".$style[
"id"]] == 1)
887 $this->tpl->setCurrentBlock(
"tbl_action_btn");
888 $this->tpl->setVariable(
"BTN_NAME",
"deleteStyle");
889 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"delete"));
890 $this->tpl->parseCurrentBlock();
893 $this->tpl->setCurrentBlock(
"tbl_action_btn");
894 $this->tpl->setVariable(
"BTN_NAME",
"toggleGlobalDefault");
895 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"toggleGlobalDefault"));
896 $this->tpl->parseCurrentBlock();
899 $this->tpl->setCurrentBlock(
"tbl_action_btn");
900 $this->tpl->setVariable(
"BTN_NAME",
"toggleGlobalFixed");
901 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"toggleGlobalFixed"));
902 $this->tpl->parseCurrentBlock();
905 $this->tpl->setCurrentBlock(
"tbl_action_btn");
906 $this->tpl->setVariable(
"BTN_NAME",
"setScope");
907 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"sty_set_scope"));
908 $this->tpl->parseCurrentBlock();
911 $this->tpl->setCurrentBlock(
"tbl_action_btn");
912 $this->tpl->setVariable(
"BTN_NAME",
"saveActiveStyles");
913 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt(
"sty_save_active_styles"));
914 $this->tpl->parseCurrentBlock();
916 if ($with_subobjects ===
true)
921 $this->tpl->setCurrentBlock(
"tbl_action_row");
923 $this->tpl->parseCurrentBlock();
933 session_unregister(
"saved_post");
936 $this->ctrl->redirect($this,
"editContentStyles");
945 include_once (
"./Services/Style/classes/class.ilStyleScopeExplorer.php");
947 $exp->setExpandTarget(
"repository.php?cmd=showTree");
948 $exp->setTargetGet(
"ref_id");
950 $exp->forceExpandAll(
true,
false);
951 $exp->addFilter(
"root");
952 $exp->addFilter(
"cat");
954 if (
$_GET[
"expand"] ==
"")
956 $expanded = $this->tree->readRootId();
960 $expanded =
$_GET[
"expand"];
963 $exp->setExpand($expanded);
967 $output = $exp->getOutput();
969 $this->tpl->setVariable(
"ADM_CONTENT", $output);
979 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
980 if (
$_GET[
"cat"] == 0)
992 echo
"settings_setTabs";
1009 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
1011 $tabs_gui->addTarget(
"basic_settings",
1012 $this->ctrl->getLinkTarget($this,
"editBasicSettings"), array(
"editBasicSettings",
"",
"view"),
"",
"");
1014 $tabs_gui->addTarget(
"system_styles",
1015 $this->ctrl->getLinkTarget($this,
"editSystemStyles"),
"editSystemStyles",
"",
"");
1017 $tabs_gui->addTarget(
"content_styles",
1018 $this->ctrl->getLinkTarget($this,
"editContentStyles"),
"editContentStyles",
"",
"");
1021 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
1023 $tabs_gui->addTarget(
"perm_settings",
1024 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');