MDL-29614 theme_formal_white: Change the way Formal White theme shrinks pages
[moodle.git] / theme / formal_white / settings.php
index a12cce8..d7f252f 100644 (file)
@@ -24,6 +24,15 @@ if ($ADMIN->fulltree) {
     $setting = new admin_setting_configcheckbox($name, $title, $description, $default);
     $settings->add($setting);
 
+    // Frame margin
+    $name = 'theme_formal_white/framemargin';
+    $title = get_string('framemargin','theme_formal_white');
+    $description = get_string('framemargindesc', 'theme_formal_white');
+    $default = '15';
+    $choices = array(0=>'0px', 5=>'5px', 10=>'10px', 15=>'15px', 20=>'20px', 25=>'25px', 30=>'30px', 35=>'35px', 40=>'40px', 45=>'45px', 50=>'50px');
+    $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
+    $settings->add($setting);
+
     // Display logo or heading
     $name = 'theme_formal_white/displaylogo';
     $title = get_string('displaylogo','theme_formal_white');