English version is HERE.
The "Chilo" Moodle Theme
・Moodleのメニューやリンクを削除してCHiLO Bookに適したレイアウトにするテーマです。
・このテーマは、CHiLOⓇ の一部として提供されています。
・このテーマは、Moodle3.0 Clean themeをカスタマイズして作成されています。
推奨環境
・ Moodle 3.0以上
・ UNIX 系 OS
テーマのインストール
- Moodle をインストールします。
- GitHubから Chiloテーマ( https://github.com/cccties/moodle-theme_chilo/archive/master.zip )をダウンロードし展開します。
- 展開後、ディレクトリ名を chilo に変更し、Moodleをインストールしたサーバーの moodle/theme/ に配置します。
- 以下のいずれかの方法でテーマを選択してください.
サイトのテーマがCleanの場合:Chiloテーマをサイト全体のテーマとして設定します。
サイトのテーマがCleanと異なる場合:CHiLO Bookを登録するコースにのみChiloテーマを設定します.設定方法は,コースの「アピアランス > テーマを強制する」です.
テーマのデフォルト設定
theme/chilo/javascript/styleSwitcher.js の ALLWAYS SIMPLE で、テーマのデフォルトレイアウトを定義します。
ALLWAYS_SIMPLE = false, デフォルトのレイアウトはMoodleの標準レイアウトとする
ALLWAYS_SIMPLE = true, デフォルトのレイアウトはChiloテーマのレイアウトとする
(function( window, document ){
var /* 初期値はfalseとなっています*/
ALLWAYS_SIMPLE = false,
パラメータと引数
moodleのURL に、chiloflag パラメータを設定することでレイアウトを適用できます(GET メソッド)。
表1 chiloflag パラメータ
ビット | 内容 |
---|---|
0 | ALLWAYS_SIMPLEで設定したディフォルトレイアウトにする |
1 | CHiLOテーマのレイアウトにする |
2 | Moodleの標準テーマのレイアウトにする |
以下に指定例を示します。
- CHiLOテーマのレイアウトにする http://example.net/course/view.php?id=2&chiloflag=1
課題・質問
このソフトの課題、質問、及び要望はこちらにご記載ください。 -> Issues
Licensing
The CHiLO theme is 'free' software under the terms of the GNU GPLv3 License. (see LICENSE.txt)
日本語版はこちら.
The "Chilo" Moodle Theme
In order to reduce operational errors, hide the menues and links of Moodle which would not be used after configuring Chilo theme.
This software is provided as a part of CHiLOⓇ.
This theme is created by customizing Moodle3.0 Clean theme.
- Recommended Environment
- Installation of the theme
- Default setting of the theme
- Parameter and argument
- Inquiries
- Licensing
Recommended Environment
- Moodle 3.0 or higher
- UNIX-like OS Configuration of Moodle for CHiLO
Installation of the theme
- Install Moodle.
- Download Chilo theme( https://github.com/cccties/moodle-theme_chilo/archive/master.zip )from GitHub then expand.
- After expanding, change the directory name to chilo and place it to moodle/theme/ of the sever where Moodle is installed
- Select the theme from either of the following ways:
When the site theme is set to "Clean": set the Chilo theme as the theme for the whole site.
When the site theme is set to other than "Clean": set the Chilo theme only to the course you are registering as CHiLO Book.The setting is "Appearance > Force theme."
Default setting of the theme
Difine the default layout of the theme by setting ALLWAYS SIMPLE of theme/chilo/javascript/styleSwitcher.js
ALLWAYS_SIMPLE = false, the default layout is set as Moodle standard layout
ALLWAYS_SIMPLE = true, the default setting is set as Chilo theme layout
(function( window, document ){
var /* the default value is false*/
ALLWAYS_SIMPLE = false,
Parameter and argument
In order to display the screen cusomized in chilo theme from iBooks and others, add on chiloflag parameter to the URL for accessing to normal moodle site (GET method).
Fig.1 Chiloflag parameter
Bit | Contents |
---|---|
0 | Set to the default layout set in ALLWAYS_SIMPLE |
1 | Set to the Chilo theme layout |
2 | Set to the standard theme layout of Moodle |
Following are the specified examples.
- Set to CHiLO theme layout http://example.net/course/view.php?id=2&chiloflag=1
Inquiries
Enter any inquiries, opinions, or requests concernig this software. -> Issues
Licensing
The CHiLO theme is a 'free' software under the terms of the GNU GPLv3 License. (see LICENSE.txt)