diff --git a/theme/formal_white/lang/en/theme_formal_white.php b/theme/formal_white/lang/en/theme_formal_white.php index 05795e90ed6..13d32ff6913 100644 --- a/theme/formal_white/lang/en/theme_formal_white.php +++ b/theme/formal_white/lang/en/theme_formal_white.php @@ -41,3 +41,5 @@ $string['logo'] = 'Logo'; $string['logodesc'] = 'Enter the URL to an image to use as the logo for this site. Should be http://www.yoursite.com/path/to/logo.png
Preferred picture height is 100 pixels'; $string['regionwidth'] = 'Column width'; $string['regionwidthdesc'] = 'This sets the width of the two block regions that form the left and right columns.'; +$string['alwayslangmenu'] = 'Display languages menu'; +$string['alwayslangmenudesc'] = 'Select this option to ALWAYS display lang menu. Take care that lang menu will be shown only if your site managess more than a single language.'; diff --git a/theme/formal_white/layout/general.php b/theme/formal_white/layout/general.php index cc780bc75a6..dde5944cace 100644 --- a/theme/formal_white/layout/general.php +++ b/theme/formal_white/layout/general.php @@ -60,7 +60,7 @@ echo $OUTPUT->doctype() ?> '; echo '
'; echo $OUTPUT->login_info(); - if (!empty($PAGE->layout_options['langmenu'])) { + if (!empty($PAGE->theme->settings->alwayslangmenu)) { echo $OUTPUT->lang_menu(); } echo $PAGE->headingmenu; diff --git a/theme/formal_white/pix/screenshot.gif b/theme/formal_white/pix/screenshot.gif index b22fdcb20ed..a9f98d0b58b 100644 Binary files a/theme/formal_white/pix/screenshot.gif and b/theme/formal_white/pix/screenshot.gif differ diff --git a/theme/formal_white/settings.php b/theme/formal_white/settings.php index c159e042273..f210c6ecf88 100644 --- a/theme/formal_white/settings.php +++ b/theme/formal_white/settings.php @@ -33,6 +33,13 @@ if ($ADMIN->fulltree) { $setting = new admin_setting_configselect($name, $title, $description, $default, $choices); $settings->add($setting); + // alwayslangmenu setting + $name = 'theme_formal_white/alwayslangmenu'; + $title = get_string('alwayslangmenu','theme_formal_white'); + $description = get_string('alwayslangmenudesc', 'theme_formal_white'); + $setting = new admin_setting_configcheckbox($name, $title, $description, 0); + $settings->add($setting); + // Foot note setting $name = 'theme_formal_white/footnote'; $title = get_string('footnote','theme_formal_white');