From 85c9058c8fcd3f439852961ada31d71321944f16 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 24 Aug 2012 16:51:21 +0200 Subject: [PATCH] Moving course theme in the course settings not in the LP settings --- main/course_info/infocours.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index b9ae14b020..ee034677a0 100644 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -175,6 +175,10 @@ if (api_get_setting('pdf_export_watermark_by_course') == 'true') { $form->addRule('pdf_export_watermark_path', get_lang('OnlyImagesAllowed').' ('.implode(',', $allowed_picture_types).')', 'filetype', $allowed_picture_types); } +$group = array(); +$group[]=$form->createElement('select_theme', 'course_theme', null, array('class'=>' ', 'id'=>'course_theme_id')); +$form->addGroup($group, '', array(get_lang("Stylesheets")), ''); + $form->addElement('style_submit_button', null, get_lang('SaveSettings'), 'class="save"'); $form->addElement('html', ''); @@ -302,9 +306,6 @@ if (api_get_setting('allow_course_theme') == 'true') { $group[]=$form->createElement('radio', 'allow_learning_path_theme', null, get_lang('AllowLearningPathThemeDisallow'), 0); $form->addGroup($group, '', array(get_lang("AllowLearningPathTheme")), ''); - $group = array(); - $group[]=$form->createElement('select_theme', 'course_theme', null, array('class'=>' ', 'id'=>'course_theme_id')); - $form->addGroup($group, '', array(get_lang("Stylesheets")), ''); } if (is_settings_editable()) {