- added language page setting
- fixed a code error - updated screenshot.gif
This commit is contained in:
@@ -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<br />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.';
|
||||
|
||||
@@ -60,7 +60,7 @@ echo $OUTPUT->doctype() ?>
|
||||
<?php echo '<div id="logo"><img class="sitelogo" src="'.$logourl.'" alt="Custom logo here" /></div>';
|
||||
echo '<div class="headermenu">';
|
||||
echo $OUTPUT->login_info();
|
||||
if (!empty($PAGE->layout_options['langmenu'])) {
|
||||
if (!empty($PAGE->theme->settings->alwayslangmenu)) {
|
||||
echo $OUTPUT->lang_menu();
|
||||
}
|
||||
echo $PAGE->headingmenu;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 48 KiB |
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user