next up previous contents
Next: Layout 修改 Up: CSS 顯示樣版 Previous: 準備套件   Contents

版本名稱修改

  1. 修改版本宣告。
    [root@dywang theme]# diff -urNwbBE leatherbound/version.php dywang/version.php 
    --- leatherbound/version.php	2012-06-26 01:15:37.000000000 +0800
    +++ dywang/version.php	2013-10-09 22:58:24.000000000 +0800
    @@ -18,13 +18,13 @@
      * Theme version info
      *
      * @package    theme
    - * @subpackage leatherbound
    - * @copyright  2010 Patrick Malley
    + * @subpackage dywang
    + * @copyright  2010 De-Yu Wang
      * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
     defined('MOODLE_INTERNAL') || die;
     
    -$plugin->version   = 2012061700; // The current module version (Date: YYYYMMDDXX)
    -$plugin->requires  = 2012061700; // Requires this Moodle version
    -$plugin->component = 'theme_leatherbound'; // Full name of the plugin (used for diagnostics)
    +$plugin->version   = 2011082400; // The current module version (Date: YYYYMMDDXX)
    +$plugin->requires  = 2011081700; // Requires this Moodle version
    +$plugin->component = 'theme_dywang'; // Full name of the plugin (used for diagnostics)
    
  2. 修改版本說明。
    [root@dywang theme]# diff -urNwbBE leatherbound/lang/en/theme_leatherbound.php dywang/lang/en/theme_dywang.php
    --- leatherbound/lang/en/theme_leatherbound.php	2010-11-15 08:01:29.000000000 +0800
    +++ dywang/lang/en/theme_dywang.php	2013-10-09 22:58:39.000000000 +0800
    @@ -16,14 +16,14 @@
     // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
     
     /**
    - * Strings for component 'theme_leatherbound', language 'en', branch 'MOODLE_20_STABLE'
    + * Strings for component 'theme_dywang', language 'en', branch 'MOODLE_20_STABLE'
      *
      * @package   moodlecore
    - * @copyright 2010 Patrick Malley
    + * @copyright 2010 De-Yu Wang
      * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
    -$string['pluginname'] = 'Leatherbound';
    +$string['pluginname'] = 'Dywang';
     $string['region-side-post'] = 'Right';
     $string['region-side-pre'] = 'Left';
    -$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><h2>Credits</h2><p>This theme was coded and is maintained by Patrick Malley of NewSchool Learning. He can be contacted by email at contact@newschoollearning.com. </p><h2>License</h2><p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.</div></div>';
    \ No newline at end of file
    +$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Dywang</h2><img src="dywang/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>Dywang is a fluid-width, three-column theme for Moodle 2.0 that was created by De-Yu Wang.<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><h2>Credits</h2><p>This theme was coded and is maintained by De-Yu Wang. He can be contacted by email at dywang@csie.cyut.edu.tw. </p><h2>License</h2><p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.</div></div>';
    



2017-08-04