MDL-30243 theme - whitespace fixes to afterburner
authorAparup Banerjee <aparup@moodle.com>
Thu, 24 Nov 2011 03:31:11 +0000 (11:31 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 28 Nov 2011 06:47:15 +0000 (14:47 +0800)
theme/afterburner/layout/default.php
theme/afterburner/lib.php
theme/afterburner/settings.php

index d462c17..a6b39d0 100644 (file)
@@ -111,9 +111,9 @@ echo $OUTPUT->doctype() ?>
 
         <div class="footer-left">
 
-                       <?php if ($hasfootnote) { ?>
-                               <div id="footnote"><?php echo $PAGE->theme->settings->footnote;?></div>
-                       <?php } ?>
+            <?php if ($hasfootnote) { ?>
+                    <div id="footnote"><?php echo $PAGE->theme->settings->footnote;?></div>
+            <?php } ?>
 
             <a href="http://moodle.org" title="Moodle">
                 <img src="<?php echo $OUTPUT->pix_url('footer/moodle-logo','theme')?>" alt="Moodle logo" />
index afcc49a..11a4ec4 100644 (file)
@@ -2,13 +2,13 @@
 
 function afterburner_process_css($css, $theme) {
 
-       // Set the background image for the logo
-       if (!empty($theme->settings->logo)) {
-               $logo = $theme->settings->logo;
-       } else {
-               $logo = null;
-       }
-       $css = afterburner_set_logo($css, $logo);
+    // Set the background image for the logo
+    if (!empty($theme->settings->logo)) {
+        $logo = $theme->settings->logo;
+    } else {
+        $logo = null;
+    }
+    $css = afterburner_set_logo($css, $logo);
 
     // Set custom CSS
     if (!empty($theme->settings->customcss)) {
@@ -22,17 +22,16 @@ function afterburner_process_css($css, $theme) {
 }
 
 function afterburner_set_logo($css, $logo) {
-       global $OUTPUT;
-       $tag = '[[setting:logo]]';
-       $replacement = $logo;
-       if (is_null($replacement)) {
-               $replacement = $OUTPUT->pix_url('images/logo','theme');
-       }
-
-       $css = str_replace($tag, $replacement, $css);
+    global $OUTPUT;
+    $tag = '[[setting:logo]]';
+    $replacement = $logo;
+    if (is_null($replacement)) {
+        $replacement = $OUTPUT->pix_url('images/logo','theme');
+    }
 
-       return $css;
+    $css = str_replace($tag, $replacement, $css);
 
+    return $css;
 }
 
 function afterburner_set_customcss($css, $customcss) {
@@ -42,7 +41,7 @@ function afterburner_set_customcss($css, $customcss) {
         $replacement = '';
     }
 
-       $css = str_replace($tag, $replacement, $css);
+    $css = str_replace($tag, $replacement, $css);
 
-       return $css;
+    return $css;
 }
\ No newline at end of file
index 3316625..c68a599 100644 (file)
@@ -4,28 +4,28 @@ defined('MOODLE_INTERNAL') || die;
 
 if ($ADMIN->fulltree) {
 
-       // Logo file setting
-       $name = 'theme_afterburner/logo';
-       $title = get_string('logo','theme_afterburner');
-       $description = get_string('logodesc', 'theme_afterburner');
-       $default = '';
-       $setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL);
-       $settings->add($setting);
+    // Logo file setting
+    $name = 'theme_afterburner/logo';
+    $title = get_string('logo','theme_afterburner');
+    $description = get_string('logodesc', 'theme_afterburner');
+    $default = '';
+    $setting = new admin_setting_configtext($name, $title, $description, $default, PARAM_URL);
+    $settings->add($setting);
 
-       // Foot note setting
-       $name = 'theme_afterburner/footnote';
-       $title = get_string('footnote','theme_afterburner');
-       $description = get_string('footnotedesc', 'theme_afterburner');
-       $default = '';
-       $setting = new admin_setting_confightmleditor($name, $title, $description, $default);
-       $settings->add($setting);
+    // Foot note setting
+    $name = 'theme_afterburner/footnote';
+    $title = get_string('footnote','theme_afterburner');
+    $description = get_string('footnotedesc', 'theme_afterburner');
+    $default = '';
+    $setting = new admin_setting_confightmleditor($name, $title, $description, $default);
+    $settings->add($setting);
 
-       // Custom CSS file
-       $name = 'theme_afterburner/customcss';
-       $title = get_string('customcss','theme_afterburner');
-       $description = get_string('customcssdesc', 'theme_afterburner');
-       $default = '';
-       $setting = new admin_setting_configtextarea($name, $title, $description, $default);
-       $settings->add($setting);
+    // Custom CSS file
+    $name = 'theme_afterburner/customcss';
+    $title = get_string('customcss','theme_afterburner');
+    $description = get_string('customcssdesc', 'theme_afterburner');
+    $default = '';
+    $setting = new admin_setting_configtextarea($name, $title, $description, $default);
+    $settings->add($setting);
 
 }
\ No newline at end of file