next up previous contents
Next: 版本名稱修改 Up: CSS 顯示樣版 Previous: 前言   Contents

準備套件

  1. 自由軟體之開放源碼的特性,可以讓您省去很多時間。開始佈景主題設計,並不需要一個字元一個字元撰寫程式碼,只要先複製任一適合的佈景主題,再進行修改即可。
    [root@dywang ~]# cd /var/www/html/moodle23/theme/
    [root@dywang theme]# cp -a leatherbound dywang
    
  2. 先列出修改前後,有那些檔案不同,再逐一說明。
    [root@dywang theme]# diff -qrwbBE leatherbound dywang
    Files leatherbound/config.php and dywang/config.php differ
    Only in dywang/lang/en: theme_dywang.php
    Only in leatherbound/lang/en: theme_leatherbound.php
    Files leatherbound/layout/frontpage.php and dywang/layout/frontpage.php differ
    Files leatherbound/layout/general.php and dywang/layout/general.php differ
    Files leatherbound/layout/report.php and dywang/layout/report.php differ
    Files leatherbound/pix/header.jpg and dywang/pix/header.jpg differ
    Only in dywang/pix: mycsiebanner4.jpg
    Files leatherbound/pix/screenshot.jpg and dywang/pix/screenshot.jpg differ
    Files leatherbound/style/core.css and dywang/style/core.css differ
    Files leatherbound/version.php and dywang/version.php differ
    
  3. 更改版本說明檔名稱,必須與樣版名稱相同。
    [root@dywang theme]# mv dywang/lang/en/theme_leatherbound.php dywang/lang/en/theme_dywang.php
    



2017-08-04