Merge branch 'MDL-39626_master' of git://github.com/kordan/moodle
Conflicts: theme/formal_white/style/course.css
@ -29,6 +29,7 @@ $string['blockcontentbgc'] = 'Blocks content background colour';
|
||||
$string['blockcontentbgcdesc'] = 'This sets the blocks content background colour for the theme.';
|
||||
$string['blockpadding'] = 'Margin around blocks';
|
||||
$string['blockpaddingdesc'] = 'This sets the margin between each block and the containing column.';
|
||||
$string['blueberry'] = 'blueberry';
|
||||
$string['choosereadme'] = '
|
||||
<div class="clearfix">
|
||||
<div class="theme_screenshot">
|
||||
@ -69,7 +70,7 @@ $string['customcssdesc'] = 'Any CSS you enter here will be added to every page a
|
||||
<pre>a:link, a:visited, a:hover, a:active, a:focus {color:blue;}</pre>
|
||||
Please adjust colors and CSS rules to fit your needs.';
|
||||
$string['customlogourl'] = 'Custom logo';
|
||||
$string['customlogourldesc'] = 'Change the logo for this theme by entering the full or relative URL to an image you wish to use (i.e. http://www.yoursite.tld/mylogo.png or ../path/to/your/logo.png). As a reference, the default logo is 200px wide, 50px high and a transparent png will work best.';
|
||||
$string['customlogourldesc'] = 'Change the logo for this theme by entering the full or relative URL to an image you wish to use (i.e. http://www.yoursite.tld/mylogo.png or ../path/to/your/logo.png). As a reference the default logo is 200px wide, 50px high and a transparent png will work best.';
|
||||
$string['displayheading'] = 'Display page heading';
|
||||
$string['displaylogo'] = 'Display logo';
|
||||
$string['fontsizereference'] = 'Font size reference';
|
||||
@ -79,17 +80,25 @@ $string['footnotedesc'] = 'The content from this textarea will be displayed in t
|
||||
$string['framemargin'] = 'Frame margin';
|
||||
$string['framemargindesc'] = 'Room between the frame and the edge of the browser window. (This setting will be ignored if "{$a}" is requested).';
|
||||
$string['frontpagelogourl'] = 'Custom front page logo';
|
||||
$string['frontpagelogourldesc'] = 'Change the logo that is displayed on the front page of your site by entering the full or relative URL to the image you wish to use. This setting overrides the custom logo setting. As a reference the default logo is 300px wide, 80px high and a transparent png will work best.';
|
||||
$string['frontpagelogourldesc'] = 'Change the logo that is displayed on the front page of your site by entering the full or relative URL to the image you wish to use (i.e. http://www.yoursite.tld/myfrontpagelogo.png or ../path/to/your/logo.png). This setting overrides the custom logo setting. As a reference the default logo is 300px wide, 80px high and a transparent png will work best.';
|
||||
$string['headerbgc'] = 'Header background colour';
|
||||
$string['headerbgcdesc'] = 'This sets the blocks header background colour for the theme.';
|
||||
$string['headercontent'] = 'Header content';
|
||||
$string['headercontentdesc'] = 'Choose whether display moodle logo or page heading text in the header.';
|
||||
$string['lblockcolumnbgc'] = 'Left column background colour';
|
||||
$string['lblockcolumnbgcdesc'] = 'This sets the left column background colour for the theme.';
|
||||
$string['lemon'] = 'lemon';
|
||||
$string['lime'] = 'lime';
|
||||
$string['mink'] = 'mink';
|
||||
$string['noframe'] = 'Formal white 1.9 look';
|
||||
$string['noframedesc'] = 'Select this option to require your moodle page to look like moodle 1.*, alias, without the surrounding frame.';
|
||||
$string['orange'] = 'orange';
|
||||
$string['peach'] = 'peach';
|
||||
$string['pluginname'] = 'Formal white';
|
||||
$string['rblockcolumnbgc'] = 'Right column background colour';
|
||||
$string['rblockcolumnbgcdesc'] = 'This sets the right column background colour for the theme. If you leave this empty the left column background colour will be used.';
|
||||
$string['region-side-post'] = 'Right';
|
||||
$string['region-side-pre'] = 'Left';
|
||||
$string['silver'] = 'silver';
|
||||
$string['trendcolor'] = 'Trend color';
|
||||
$string['trendcolordesc'] = 'Choose the general trend for the color of the theme.';
|
||||
|
@ -220,7 +220,7 @@ if ($hasfooter) {
|
||||
<?php echo page_doc_link(get_string('moodledocslink')); ?>
|
||||
</div>
|
||||
</div> <!-- </page-footer> -->
|
||||
</div> <!-- </page"> -->
|
||||
</div> <!-- </page> -->
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
@ -250,7 +250,7 @@ if ($hasfooter) {
|
||||
?>
|
||||
</div>
|
||||
</div> <!-- </page-footer> -->
|
||||
</div> <!-- </page"> -->
|
||||
</div> <!-- </page> -->
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
@ -219,7 +219,7 @@ if ($hasfooter) {
|
||||
<?php echo page_doc_link(get_string('moodledocslink')); ?>
|
||||
</div>
|
||||
</div> <!-- </page-footer> -->
|
||||
</div> <!-- </page"> -->
|
||||
</div> <!-- </page> -->
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
@ -27,6 +27,14 @@ function formal_white_user_settings($css, $theme) {
|
||||
}
|
||||
$css = formal_white_set_framemargin($css, $framemargin);
|
||||
|
||||
// Set the images according to color trend
|
||||
if (!isset($theme->settings->trendcolor)) {
|
||||
$trendcolor = 'mink'; // default
|
||||
} else {
|
||||
$trendcolor = $theme->settings->trendcolor;
|
||||
}
|
||||
$css = formal_white_set_trendcolor($css, $trendcolor);
|
||||
|
||||
// Set the page header background color
|
||||
if (empty($theme->settings->headerbgc)) {
|
||||
$headerbgc = '#E3DFD4'; // default
|
||||
@ -86,8 +94,6 @@ function formal_white_user_settings($css, $theme) {
|
||||
return $css;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the link color variable in CSS
|
||||
*
|
||||
@ -110,6 +116,83 @@ function formal_white_set_framemargin($css, $framemargin) {
|
||||
return $css;
|
||||
}
|
||||
|
||||
function formal_white_set_trendcolor($css, $trendcolor) {
|
||||
// __setting_trendcolor__ is part of URLS so it is already between double square bracket.
|
||||
// I can not enclose it between double square bracket once again otherwise images path parser get confused.
|
||||
$tag = urlencode('__setting_trendcolor__'); // urlencode is useless but it is correct to put it here
|
||||
$css = str_replace($tag, $trendcolor, $css);
|
||||
|
||||
// of the basis of the general choosed trend, I need the right background color.
|
||||
switch ($trendcolor) {
|
||||
case 'blueberry':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#DAF1FF', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#CDE2F3', $css);
|
||||
break;
|
||||
case 'lemon':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#FFEB9A', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#F7DA41', $css);
|
||||
break;
|
||||
case 'lime':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#F0F5BB', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#E2E499', $css);
|
||||
break;
|
||||
case 'mink':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#EFEFEF', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#E3DFD4', $css);
|
||||
break;
|
||||
case 'orange':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#FFD46C', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#FDC06D', $css);
|
||||
break;
|
||||
case 'peach':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#FCD3BC', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#F7C099', $css);
|
||||
break;
|
||||
case 'silver':
|
||||
// page background
|
||||
$tag = '[[setting:pagebackground]]';
|
||||
$css = str_replace($tag, '#EFF0F2', $css);
|
||||
|
||||
// block header background
|
||||
$tag = '[[setting:blockheaderbackground]]';
|
||||
$css = str_replace($tag, '#E0DFDD', $css);
|
||||
break;
|
||||
default:
|
||||
debugging('It seems a colour has been added to the formal_white trend colours folder but was not fully managed. The code must be updated by a developer.');
|
||||
}
|
||||
return $css;
|
||||
}
|
||||
|
||||
function formal_white_set_headerbgc($css, $headerbgc) {
|
||||
$tag = '[[setting:headerbgc]]';
|
||||
$css = str_replace($tag, $headerbgc, $css);
|
||||
|
BIN
theme/formal_white/pix/trend/blueberry/bg_bread.jpg
Executable file
After Width: | Height: | Size: 324 B |
BIN
theme/formal_white/pix/trend/blueberry/blueberry.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
theme/formal_white/pix/trend/blueberry/custommenubg.jpg
Executable file
After Width: | Height: | Size: 317 B |
BIN
theme/formal_white/pix/trend/blueberry/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 325 B |
BIN
theme/formal_white/pix/trend/blueberry/gradient_h.jpg
Executable file
After Width: | Height: | Size: 305 B |
BIN
theme/formal_white/pix/trend/blueberry/hgradient.jpg
Executable file
After Width: | Height: | Size: 302 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 312 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 317 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 322 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 403 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 389 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 314 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/header_l.jpg
Executable file
After Width: | Height: | Size: 415 B |
BIN
theme/formal_white/pix/trend/blueberry/roundcorner/header_r.jpg
Executable file
After Width: | Height: | Size: 407 B |
BIN
theme/formal_white/pix/trend/lemon/bg_bread.jpg
Executable file
After Width: | Height: | Size: 330 B |
BIN
theme/formal_white/pix/trend/lemon/custommenubg.jpg
Executable file
After Width: | Height: | Size: 323 B |
BIN
theme/formal_white/pix/trend/lemon/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 335 B |
BIN
theme/formal_white/pix/trend/lemon/gradient_h.jpg
Executable file
After Width: | Height: | Size: 304 B |
BIN
theme/formal_white/pix/trend/lemon/hgradient.jpg
Executable file
After Width: | Height: | Size: 305 B |
BIN
theme/formal_white/pix/trend/lemon/lemon.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 324 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 328 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 339 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 458 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 427 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 323 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/header_l.jpg
Executable file
After Width: | Height: | Size: 472 B |
BIN
theme/formal_white/pix/trend/lemon/roundcorner/header_r.jpg
Executable file
After Width: | Height: | Size: 459 B |
BIN
theme/formal_white/pix/trend/lime/bg_bread.jpg
Executable file
After Width: | Height: | Size: 329 B |
BIN
theme/formal_white/pix/trend/lime/custommenubg.jpg
Executable file
After Width: | Height: | Size: 315 B |
BIN
theme/formal_white/pix/trend/lime/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 335 B |
BIN
theme/formal_white/pix/trend/lime/gradient_h.jpg
Executable file
After Width: | Height: | Size: 304 B |
BIN
theme/formal_white/pix/trend/lime/hgradient.jpg
Executable file
After Width: | Height: | Size: 304 B |
BIN
theme/formal_white/pix/trend/lime/lime.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
theme/formal_white/pix/trend/lime/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 657 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 658 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 672 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 735 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 719 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 656 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/header_l.jpg
Executable file
After Width: | Height: | Size: 742 B |
BIN
theme/formal_white/pix/trend/lime/roundcorner/header_r.jpg
Executable file
After Width: | Height: | Size: 736 B |
0
theme/formal_white/pix/bg_bread.jpg → theme/formal_white/pix/trend/mink/bg_bread.jpg
Normal file → Executable file
Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 325 B |
0
theme/formal_white/pix/custommenubg.jpg → theme/formal_white/pix/trend/mink/custommenubg.jpg
Normal file → Executable file
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
0
theme/formal_white/pix/gradient-sb.jpg → theme/formal_white/pix/trend/mink/gradient-sb.jpg
Normal file → Executable file
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
theme/formal_white/pix/gradient_h.jpg → theme/formal_white/pix/trend/mink/gradient_h.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/hgradient.jpg → theme/formal_white/pix/trend/mink/hgradient.jpg
Normal file → Executable file
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
theme/formal_white/pix/trend/mink/mink.jpg
Executable file
After Width: | Height: | Size: 14 KiB |
0
theme/formal_white/pix/roundcorner/body_l.jpg → theme/formal_white/pix/trend/mink/roundcorner/body_l.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/body_r.jpg → theme/formal_white/pix/trend/mink/roundcorner/body_r.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/footer.jpg → theme/formal_white/pix/trend/mink/roundcorner/footer.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/footer_l.jpg → theme/formal_white/pix/trend/mink/roundcorner/footer_l.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/footer_r.jpg → theme/formal_white/pix/trend/mink/roundcorner/footer_r.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/header.jpg → theme/formal_white/pix/trend/mink/roundcorner/header.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/header_l.jpg → theme/formal_white/pix/trend/mink/roundcorner/header_l.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
0
theme/formal_white/pix/roundcorner/header_r.jpg → theme/formal_white/pix/trend/mink/roundcorner/header_r.jpg
Normal file → Executable file
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
BIN
theme/formal_white/pix/trend/orange/bg_bread.jpg
Executable file
After Width: | Height: | Size: 329 B |
BIN
theme/formal_white/pix/trend/orange/custommenubg.jpg
Executable file
After Width: | Height: | Size: 325 B |
BIN
theme/formal_white/pix/trend/orange/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 338 B |
BIN
theme/formal_white/pix/trend/orange/gradient_h.jpg
Executable file
After Width: | Height: | Size: 308 B |
BIN
theme/formal_white/pix/trend/orange/hgradient.jpg
Executable file
After Width: | Height: | Size: 301 B |
BIN
theme/formal_white/pix/trend/orange/orange.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
theme/formal_white/pix/trend/orange/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 317 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 325 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 338 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 443 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 424 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 319 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/header_l.jpg
Executable file
After Width: | Height: | Size: 450 B |
BIN
theme/formal_white/pix/trend/orange/roundcorner/header_r.jpg
Executable file
After Width: | Height: | Size: 436 B |
BIN
theme/formal_white/pix/trend/peach/bg_bread.jpg
Executable file
After Width: | Height: | Size: 335 B |
BIN
theme/formal_white/pix/trend/peach/custommenubg.jpg
Executable file
After Width: | Height: | Size: 325 B |
BIN
theme/formal_white/pix/trend/peach/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 333 B |
BIN
theme/formal_white/pix/trend/peach/gradient_h.jpg
Executable file
After Width: | Height: | Size: 302 B |
BIN
theme/formal_white/pix/trend/peach/hgradient.jpg
Executable file
After Width: | Height: | Size: 301 B |
BIN
theme/formal_white/pix/trend/peach/peach.jpg
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
theme/formal_white/pix/trend/peach/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 317 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 323 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 331 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 437 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 420 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 317 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/header_l.jpg
Executable file
After Width: | Height: | Size: 452 B |
BIN
theme/formal_white/pix/trend/peach/roundcorner/header_r.jpg
Executable file
After Width: | Height: | Size: 437 B |
BIN
theme/formal_white/pix/trend/silver/bg_bread.jpg
Executable file
After Width: | Height: | Size: 323 B |
BIN
theme/formal_white/pix/trend/silver/custommenubg.jpg
Executable file
After Width: | Height: | Size: 309 B |
BIN
theme/formal_white/pix/trend/silver/gradient-sb.jpg
Executable file
After Width: | Height: | Size: 314 B |
BIN
theme/formal_white/pix/trend/silver/gradient_h.jpg
Executable file
After Width: | Height: | Size: 302 B |
BIN
theme/formal_white/pix/trend/silver/hgradient.jpg
Executable file
After Width: | Height: | Size: 300 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/body_l.jpg
Executable file
After Width: | Height: | Size: 302 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/body_r.jpg
Executable file
After Width: | Height: | Size: 303 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/footer.jpg
Executable file
After Width: | Height: | Size: 311 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/footer_l.jpg
Executable file
After Width: | Height: | Size: 389 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/footer_r.jpg
Executable file
After Width: | Height: | Size: 376 B |
BIN
theme/formal_white/pix/trend/silver/roundcorner/header.jpg
Executable file
After Width: | Height: | Size: 302 B |