mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-27588 Fixed up several bugs with the formal_white theme
-> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
- Loading branch information
kordan
authored and
Sam Hemelryk
committed
Jun 8, 2011
1 parent
d1c96f6
commit b396e16
Showing
18 changed files
with
447 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
// This file is part of Moodle - http://moodle.org/ | ||
// | ||
// Moodle is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Moodle is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* formal_white module upgrade code | ||
* | ||
* This file keeps track of upgrades to | ||
* the theme plugin | ||
* | ||
* Sometimes, changes between versions involve | ||
* alterations to database structures and other | ||
* major things that may lose the effort they've put | ||
* into customising and setting up your theme. | ||
* | ||
* The upgrade function in this file will attempt | ||
* to perform all the necessary actions to upgrade | ||
* your older installation to the current version. | ||
* | ||
* If there's something it cannot do itself, it | ||
* will tell you what you need to do. | ||
* | ||
* The commands in here will all be database-neutral, | ||
* using the methods of database_manager class | ||
* | ||
* Please do not forget to use upgrade_set_timeout() | ||
* before any action that may take longer time to finish. | ||
* | ||
* @package theme | ||
* @subpackage formal_white | ||
* @copyright Mediatouch 2000 (http://mediatouch.it/) | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
function xmldb_theme_formal_white_install() { | ||
$currentsetting = get_config('theme_formal_white'); | ||
|
||
// Remove all the useless settings of the first pre-release | ||
// Remove backgroundcolor | ||
unset_config('backgroundcolor', 'theme_formal_white'); | ||
// Remove regionwidth | ||
unset_config('regionwidth', 'theme_formal_white'); | ||
// Remove alwayslangmenu | ||
unset_config('alwayslangmenu', 'theme_formal_white'); | ||
|
||
// Create a new config setting called lblockcolumnbgc and give it blockcolumnbgc's value. | ||
set_config('lblockcolumnbgc', $currentsetting->blockcolumnbgc, 'theme_formal_white'); | ||
// Remove blockcolumnbgc | ||
unset_config('blockcolumnbgc', 'theme_formal_white'); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.