This is the introduction text. +
| ||||||||||||||||||||||||||||||||||||
diff --git a/main/admin/style_preview.php b/main/admin/style_preview.php index 1252966f68..974a3ef08e 100755 --- a/main/admin/style_preview.php +++ b/main/admin/style_preview.php @@ -1,55 +1,61 @@ '') { - $style=Security::remove_XSS($_GET['style']); - $all_styles = api_get_themes(); - if (in_array($style, $all_styles[0])) { - echo ''; - } -} else { - $currentstyle = api_get_setting('stylesheets'); - echo ''; +// Setting the section (for the tabs). +$this_section = SECTION_PLATFORM_ADMIN; + +// Access restriction. +api_protect_admin_script(); + +// Manipulation of the platform-wide css setting. +if (isset($_GET['style']) && $_GET['style'] != '') { + $_setting['stylesheets'] = Security::remove_XSS($_GET['style']); } -//Display::display_header($tool_name); -require_once api_get_path(INCLUDE_PATH).'banner.inc.php'; +// Hiding the link "Teacher/Student view", it is not needed to be shown here. +$_setting['student_view_enabled'] = 'false'; + +require_once api_get_path(INCLUDE_PATH).'header.inc.php'; + +$week_days_short = api_get_week_days_short(); +$months_long = api_get_months_long(); ?> - - -
This is the introduction text. +
| ||||||||||||||||||||||||||||||||||||