From 6f60ed4f97bdebd05ebd9fc9dc241604ac376faf Mon Sep 17 00:00:00 2001 From: Patrick Malley Date: Wed, 30 Jun 2010 15:59:28 +0000 Subject: [PATCH] MDL-23028 - adding standard README content to all existing themes --- theme/anomaly/lang/en/theme_anomaly.php | 33 +------- theme/anomaly/style/base.css | 83 ++++++++++++++----- theme/boxxie/lang/en/theme_boxxie.php | 2 +- theme/formfactor/lang/en/theme_formfactor.php | 4 +- .../lang/en/theme_leatherbound.php | 2 +- theme/nonzero/lang/en/theme_nonzero.php | 3 +- theme/serenity/lang/en/theme_serenity.php | 2 +- 7 files changed, 69 insertions(+), 60 deletions(-) diff --git a/theme/anomaly/lang/en/theme_anomaly.php b/theme/anomaly/lang/en/theme_anomaly.php index cbd127a998f..42032948205 100644 --- a/theme/anomaly/lang/en/theme_anomaly.php +++ b/theme/anomaly/lang/en/theme_anomaly.php @@ -23,34 +23,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string['choosereadme'] = '
-

Anomaly Theme Pack

-

by Patrick Malley

-

Version: 20090119

-
-
  -
-

Changing Your Color Preference

-

To assist you in making color changes, I have separated all color attributes into separate CSS documents named styles_[color].css where [color] is actually the name of the different color variants.

-

The default color for this theme is green. To select a different color variant:

-
    -
  1. Remane styles_select.css to styles_green.css.
  2. -
  3. Rename the styles_[color].css variant that you would like to use to styles_select.css.
  4. -
  5. That\'s it. Where you expecting something trickier?
  6. -
-

Editing your Site Tagline

-

This theme uses PHP code in header.html that automatically pulls the site description that you have entered in Admin > Front page > Front page settings and places it directly below your site name at the top of the front page.

-

Here\'s the code in header.html that is responsible for this (highlighted in red; found on line 58):

- - <h1 class="headermain"><?php echo $heading ?><br /><span><?php echo $COURSE->summary //Retrieves Site Description from Front Page -> Front Page Settings ?></span></h1> - -

If you don\'t want to show a tagline, simply delete the code highlighted in red above from header.html and save.

-

If you want to show a tagline, BUT would prefer your tagline to be something other than your site description, you can manually enter your Tagline into header.html in the same sort of way.

-

For example, if I wanted to display my tagline - Standards Based Moodle Designs - I would edit the above code as follows:

- -<h1 class="headermain"><?php echo $heading ?><br /><span>Standards Based Moodle Designs</span></h1> - -

Licensing

-

This theme is licensed under Moodle\'s GNU General Public License. Feel free to use it, share it and edit it as you see fit. All that I ask is that you give me credit for the work, and do not ever take credit for making it yourself.

-

Please enjoy the theme.

'; $string['pluginname'] = 'Anomaly'; +$string['region-side-post'] = 'Right'; +$string['region-side-pre'] = 'Left'; +$string['choosereadme'] = '

About

Anomaly is a fluid-width, three-column Moodle 2.0 theme with rounded corners.

Tweaks

This theme is built upon the Base theme inside the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file diff --git a/theme/anomaly/style/base.css b/theme/anomaly/style/base.css index 35f677e2668..e2a6683a358 100644 --- a/theme/anomaly/style/base.css +++ b/theme/anomaly/style/base.css @@ -1,35 +1,72 @@ -body, div, p, li, input, option, textarea {font-size:10pt;line-height:1.5em;} -body, div, p, li, input, option, textarea, h1, h2, h3, h4, h5 {font-family:Georgia,Times,"Times New Roman",serif;} +body, div, p, li, input, option, textarea {font-size: 10pt; line-height: 1.5em;} -h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {text-align:center;} +body, div, p, li, input, option, textarea, h1, h2, h3, h4, h5 {font-family: Georgia,Times,"Times New Roman",serif;} -.generalbox {padding:10px;margin-bottom:15px;} -.generaltable, .userinfobox {margin-left:auto;margin-right:auto;} -#notice.generalbox {margin-left: auto;margin-right: auto;width: 60%;} -.notifyproblem {padding:10px;color:#660000;text-align:center;} -.notifysuccess {padding:10px;color:#006600;text-align:center;} +h1.main, h2.main, h3.main, h4.main, h5.main, h6.main {text-align: center;} -.paging {text-align:center;} +.generalbox {padding: 10px; margin-bottom: 15px;} + +.generaltable, .userinfobox {margin-left: auto; margin-right: auto;} + +#notice.generalbox {margin-left: auto; margin-right: auto; width: 60%;} + +.notifyproblem {padding: 10px; color: #660000; text-align: center;} + +.notifysuccess {padding: 10px; color: #006600; text-align: center;} + +.paging {text-align: center;} /** * Tabs */ -.tabtree {position:relative;margin-bottom:3.5em;} -.tabtree .tabrow0 {text-align:center;width:100%;margin:1em 0px;} -.tabtree .tabrow0 li {display:inline;margin-right:-4px;} -.tabtree .tabrow0 li.here a {position:relative;z-index:102;} -.tabtree .tabrow0 li a {background-image:url([[pix:theme|tab/left]]);padding-left:14px;padding-top:10px;background-repeat:no-repeat;padding-bottom:3px;margin-bottom:-1px;} -.tabtree .tabrow0 li a:hover {background-image:url([[pix:theme|tab/left_hover]]);} -.tabtree .tabrow0 li a span { background-image:url([[pix:theme|tab/right]]);background-repeat:no-repeat;background-position:100% 0%;padding-right:14px;padding-top:10px;padding-bottom:3px;} -.tabtree .tabrow0 li a:hover span {background-image:url([[pix:theme|tab/right_hover]]);} + +.tabtree {position: relative; margin-bottom: 3.5em;} + +.tabtree .tabrow0 {text-align: center; width: 100%; margin: 1em 0px;} + +.tabtree .tabrow0 li {display: inline; margin-right: -4px;} + +.tabtree .tabrow0 li.here a {position: relative; z-index: 102;} + +.tabtree .tabrow0 li a {background-image: url([[pix:theme|tab/left]]); padding-left: 14px; padding-top: 10px; background-repeat: no-repeat; padding-bottom: 3px; margin-bottom: -1px;} + +.tabtree .tabrow0 li a:hover {background-image: url([[pix:theme|tab/left_hover]]);} + +.tabtree .tabrow0 li a span {background-image: url([[pix:theme|tab/right]]); background-repeat: no-repeat; background-position: 100% 0%; padding-right: 14px; padding-top: 10px; padding-bottom: 3px;} + +.tabtree .tabrow0 li a:hover span {background-image: url([[pix:theme|tab/right_hover]]);} + .tabtree .tabrow0 ul, -.tabtree .tabrow0 div {background-image:url([[pix:theme|tab/tabrow1]]);background-position:0% 50%;position:absolute;width:100%;border-top:1px solid #aaa;padding:0.25em 0px;top:100%;margin:0px;} -.tabtree .tabrow0 .empty {height:1px;overflow:hidden;padding:0px;position:absolute;} +.tabtree .tabrow0 div {background-image: url([[pix:theme|tab/tabrow1]]); background-position: 0% 50%; position: absolute; width: 100%; border-top: 1px solid #aaa; padding: 0.25em 0px; top: 100%; margin: 0px;} + +.tabtree .tabrow0 .empty {height: 1px; overflow: hidden; padding: 0px; position: absolute;} + .tabtree .tabrow1 li a, .tabtree .tabrow1 li a:hover, .tabtree .tabrow1 li a span, -.tabtree .tabrow1 li a:hover span {background-image:none !important;} +.tabtree .tabrow1 li a:hover span {background-image: none !important;} -.groupmanagementtable {width:90%;} -.groupmanagementtable td {vertical-align:top;border-width:0px;} -.groupmanagementtable td p {margin:0px;} \ No newline at end of file +.groupmanagementtable {width: 90%;} + +.groupmanagementtable td {vertical-align: top; border-width: 0px;} + +.groupmanagementtable td p {margin: 0px;} + +/* Themes +----------------------------*/ + +#page-admin-theme-index .generalbox {border: none;background: none;} + +.theme_screenshot {float: left; width: 300px;} + +.theme_screenshot img {width: 275px;} + +.theme_screenshot h2 {font-size: 2em; margin-top: 0;} + +.theme_screenshot h3 {font-size: 0.9em; margin: 1em 0 0;} + +.theme_screenshot p {font-size: 0.9em; margin: 0 0 1em;} + +.theme_description {margin-left: 300px;} + +.theme_description h2 {padding-top: 0.5em;} \ No newline at end of file diff --git a/theme/boxxie/lang/en/theme_boxxie.php b/theme/boxxie/lang/en/theme_boxxie.php index b1b4fe70f9d..fc3591cb972 100644 --- a/theme/boxxie/lang/en/theme_boxxie.php +++ b/theme/boxxie/lang/en/theme_boxxie.php @@ -26,4 +26,4 @@ $string['pluginname'] = 'Boxxie'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; -$string['choosereadme'] = 'Boxxie, a Moodle 2.0 theme by Patrick Malley'; +$string['choosereadme'] = '

About

Boxxie is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file diff --git a/theme/formfactor/lang/en/theme_formfactor.php b/theme/formfactor/lang/en/theme_formfactor.php index 5f8f5cbc332..1d6fc55397e 100644 --- a/theme/formfactor/lang/en/theme_formfactor.php +++ b/theme/formfactor/lang/en/theme_formfactor.php @@ -23,7 +23,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string['pluginname'] = 'Form Factor'; +$string['pluginname'] = 'FormFactor'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; -$string['choosereadme'] = 'Form Factor, a Moodle 2.0 theme by Patrick Malley'; +$string['choosereadme'] = '

About

FormFactor is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file diff --git a/theme/leatherbound/lang/en/theme_leatherbound.php b/theme/leatherbound/lang/en/theme_leatherbound.php index 5becefa97dc..475a2e6602e 100644 --- a/theme/leatherbound/lang/en/theme_leatherbound.php +++ b/theme/leatherbound/lang/en/theme_leatherbound.php @@ -26,4 +26,4 @@ $string['pluginname'] = 'Leatherbound'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; -$string['choosereadme'] = 'Leatherbound, a Moodle 2.0 theme by Patrick Malley'; +$string['choosereadme'] = '

About

Leatherbound is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file diff --git a/theme/nonzero/lang/en/theme_nonzero.php b/theme/nonzero/lang/en/theme_nonzero.php index 61a0ffa1cb4..c53baf00860 100644 --- a/theme/nonzero/lang/en/theme_nonzero.php +++ b/theme/nonzero/lang/en/theme_nonzero.php @@ -23,8 +23,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$screenshot = $CFG->dirroot .'/theme/nonzero/pix/screenshot.jpg'; $string['pluginname'] = 'Nonzero'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; -$string['choosereadme'] = '

About

Nonzero is a nontraditional, three-column, fluid-width theme for Moodle. It\'s nontraditional in the sense that it uses a fresh three-column layout that displays the content to the left of both block columns.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you screw things up. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file +$string['choosereadme'] = '

About

Nonzero is a nontraditional, three-column, fluid-width theme for Moodle. It\'s nontraditional in the sense that it uses a fresh three-column layout that displays the content to the left of both block columns.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it, then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file diff --git a/theme/serenity/lang/en/theme_serenity.php b/theme/serenity/lang/en/theme_serenity.php index a2de262845c..1ffe68a99a1 100644 --- a/theme/serenity/lang/en/theme_serenity.php +++ b/theme/serenity/lang/en/theme_serenity.php @@ -26,4 +26,4 @@ $string['pluginname'] = 'Serenity'; $string['region-side-post'] = 'Right'; $string['region-side-pre'] = 'Left'; -$string['choosereadme'] = 'Serenity, a Moodle 2.0 theme by Patrick Malley.'; +$string['choosereadme'] = '

About

Serenity is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.

Tweaks

This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the MoodleDocs.

'; \ No newline at end of file