Permalink
Browse files

MDL-23028 - adding standard README content to all existing themes

  • Loading branch information...
1 parent 6585e9f commit 6f60ed4f97bdebd05ebd9fc9dc241604ac376faf Patrick Malley committed Jun 30, 2010
@@ -23,34 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['choosereadme'] = '<div style="text-align:center;">
-<h2 style="margin-bottom:2px;">Anomaly Theme Pack</h2>
-<h3 style="margin:0">by Patrick Malley</h3>
-<h4 style="margin:3px">Version: 20090119</h4>
-</div>
-<div>&nbsp;
-</div>
-<h3 style="margin-bottom:5px; margin-top:5px;">Changing Your Color Preference</h3>
-<p>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.</p>
-<p>The default color for this theme is green. To select a different color variant: </p>
-<ol>
-<li>Remane styles_select.css to styles_green.css.</li>
-<li>Rename the styles_[color].css variant that you would like to use to styles_select.css.</li>
-<li>That\'s it. Where you expecting something trickier?</li>
-</ol>
-<h3 style="margin-bottom:5px; margin-top:5px;">Editing your Site Tagline</h3>
-<p>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.</p>
-<p>Here\'s the code in header.html that is responsible for this (highlighted in red; found on line 58):</p>
-<code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
- &lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;<span style="color:#ff0000">&lt;br /&gt;&lt;span&gt;&lt;?php echo $COURSE-&gt;summary //Retrieves Site Description from Front Page -&gt; Front Page Settings ?&gt;&lt;/span&gt;</span>&lt;/h1&gt;
-</code>
-<p>If you don\'t want to show a tagline, simply delete the code highlighted in red above from header.html and save.</p>
-<p>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.</p>
-<p>For example, if I wanted to display my tagline - Standards Based Moodle Designs - I would edit the above code as follows:</p>
-<code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
-&lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;&lt;br /&gt;&lt;span&gt;<span style="color:#ff0000;">Standards Based Moodle Designs</span>&lt;/span&gt;&lt;/h1&gt;
-</code>
-<h3 style="margin-bottom:5px; margin-top:5px;">Licensing</h3>
-<p>This theme is licensed under <a href="http://docs.moodle.org/en/License">Moodle\'s GNU General Public License</a>. 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.</p>
-<p>Please enjoy the theme.</p>';
$string['pluginname'] = 'Anomaly';
+$string['region-side-post'] = 'Right';
+$string['region-side-pre'] = 'Left';
+$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Anomaly</h2><img src="anomaly/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Anomaly is a fluid-width, three-column Moodle 2.0 theme with rounded corners. <h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';
@@ -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;}
+
+/* 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;}
-.groupmanagementtable {width:90%;}
-.groupmanagementtable td {vertical-align:top;border-width:0px;}
-.groupmanagementtable td p {margin:0px;}
+.theme_description h2 {padding-top: 0.5em;}
@@ -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'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Boxxie</h2><img src="boxxie/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Boxxie is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';
@@ -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'] = '<div class="clearfix"><div class="theme_screenshot"><h2>FormFactor</h2><img src="formfactor/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>FormFactor is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';
@@ -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'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Leatherbound</h2><img src="leatherbound/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Leatherbound is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';
@@ -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'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Nonzero</h2><img src="nonzero/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>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.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p><!--<h2>Credits</h2>This Moodle 2.0 theme was developed by Patrick Malley (<a href="http://newschoollearning.com/">NewSchool Learning</a>). Credit for the original design of this theme belongs to <a href="http://nodethirtythree.com/">NodeThirtyThree</a>.--></div></div>';
+$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Nonzero</h2><img src="nonzero/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>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.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';
@@ -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'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Serenity</h2><img src="serenity/pix/screenshot.png" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Serenity is a fluid-width, three-column theme for Moodle 2.0 that was created by Patrick Malley.<h2>Tweaks</h2><p>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 <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p></div></div>';

0 comments on commit 6f60ed4

Please sign in to comment.