Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30243 theme - whitespace fixes to afterburner

  • Loading branch information...
commit 900d5fd61c0fde473915af8c2143b454060d6142 1 parent 00347b3
@nebgor nebgor authored
View
6 theme/afterburner/layout/default.php
@@ -111,9 +111,9 @@
<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" />
View
35 theme/afterburner/lib.php
@@ -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;
}
View
42 theme/afterburner/settings.php
@@ -4,28 +4,28 @@
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.