198 $old_style = clone $old_skin->getStyle(
$_GET[
"style_id"]);
201 $new_skin->setId(
$_POST[
"skin_id"]);
202 $new_skin->setName(
$_POST[
"skin_name"]);
203 $new_skin->getVersionStep(
$_POST[
'skin_version']);
205 $new_style = $new_skin->getStyle(
$_GET[
"style_id"]);
206 $new_style->setId(
$_POST[
"style_id"]);
207 $new_style->setName(
$_POST[
"style_name"]);
208 $new_style->setCssFile(
$_POST[
"style_id"]);
209 $new_style->setImageDirectory(
$_POST[
"image_dir"]);
210 $new_style->setSoundDirectory(
$_POST[
"sound_dir"]);
211 $new_style->setFontDirectory(
$_POST[
"font_dir"]);
214 $container->updateStyle($new_style->getId(), $old_style);
217 if (
$_POST[
"active"] == 1) {
219 if (
$_POST[
"personal"] == 1) {
222 if (
$_POST[
"default"] == 1) {
228 $_POST[
"default"] = 0;
234 if (!
$_POST[
"personal"] && $DIC->user()->getPref(
"skin") == $new_skin->getId()) {
243 $system_style_conf->getDefaultSkinId(),
244 $system_style_conf->getDefaultStyleId()
256 $system_style_conf->getDefaultSkinId(),
257 $system_style_conf->getDefaultStyleId()
261 $this->lng->txt(
"default_style_set_to") .
" " . $system_style_conf->getDefaultSkinId() .
": " . $system_style_conf->getDefaultStyleId(),
266 $this->ctrl->setParameterByClass(
'ilSystemStyleSettingsGUI',
'skin_id', $new_skin->getId());
267 $this->ctrl->setParameterByClass(
'ilSystemStyleSettingsGUI',
'style_id', $new_style->getId());
static _deactivateStyle($a_skin, $a_style)
deactivate system style
static getCurrentUserPrefSkin()
Gets a users preferred skin by using the user object.
static getCurrentDefaultSkin()
Gets default Skin of the System.
static setCurrentDefaultStyle($skin_id, $style_id)
Sets the default style of the system.
static getCurrentUserPrefStyle()
Gets a users preferred style by using the user object.
addMessage(ilSystemStyleMessage $message)
Add a message to be displayed by the stack.
static setCurrentUserPrefStyle($skin_id, $style_id)
Sets a users preferred system skin/style by using the user object.
static generateFromId($skin_id, ilSystemStyleMessageStack $message_stack=null, ilSystemStyleConfig $system_styles_conf=null)
Generate the container class by parsing the corresponding XML.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
static _activateStyle($a_skin, $a_style)
activate system style
static getCurrentDefaultStyle()
Gets default style of the system.