mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
Make minify option configurable by the site administrator
This commit is contained in:
parent
a4d944f23d
commit
bfaa2c170b
6 changed files with 32 additions and 2 deletions
|
|
@ -71,6 +71,7 @@ class adminAdminView extends admin
|
|||
Context::set('use_html5', $db_info->use_html5 == 'Y' ? 'Y' : 'N');
|
||||
Context::set('use_spaceremover', $db_info->use_spaceremover ? $db_info->use_spaceremover : 'Y'); //not use
|
||||
Context::set('qmail_compatibility', $db_info->qmail_compatibility == 'Y' ? 'Y' : 'N');
|
||||
Context::set('minify_scripts', $db_info->minify_scripts == 'N' ? 'N' : 'Y');
|
||||
Context::set('cache_friendly', $db_info->cache_friendly == 'Y' ? 'Y' : 'N');
|
||||
Context::set('use_db_session', $db_info->use_db_session == 'N' ? 'N' : 'Y');
|
||||
Context::set('use_mobile_view', $db_info->use_mobile_view == 'Y' ? 'Y' : 'N');
|
||||
|
|
|
|||
|
|
@ -760,6 +760,16 @@
|
|||
<value xml:lang="zh-CN"><![CDATA[启用Qmail]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Qmail etkinleştirin]]></value>
|
||||
</item>
|
||||
<item name="minify_scripts">
|
||||
<value xml:lang="ko"><![CDATA[스크립트 자동 압축]]></value>
|
||||
<value xml:lang="en"><![CDATA[Auto-minify scripts]]></value>
|
||||
<value xml:lang="jp"><![CDATA[スクリプト自動圧縮]]></value>
|
||||
</item>
|
||||
<item name="about_minify_scripts">
|
||||
<value xml:lang="ko"><![CDATA[코어와 모든 모듈에 포함된 CSS, JS 파일들을 자동으로 압축(minify)하여 전송합니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Automatically minify all CSS and JS scripts in the Core and all modules.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[コアとすべてのモジュールに含まれたCSS、JSファイルを自動的に圧縮(minify)して配信します。]]></value>
|
||||
</item>
|
||||
<item name="cache_friendly">
|
||||
<value xml:lang="ko"><![CDATA[캐싱 최적화]]></value>
|
||||
<value xml:lang="en"><![CDATA[Optimize for caching]]></value>
|
||||
|
|
|
|||
|
|
@ -225,6 +225,15 @@
|
|||
<label for="qmail_compatibility_n" class="x_inline"><input type="radio" name="qmail_compatibility" id="qmail_compatibility_n" value="N" checked="checked"|cond="$qmail_compatibility!='Y'" /> {$lang->cmd_no}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->minify_scripts}</label>
|
||||
<div class="x_controls">
|
||||
<label for="minify_scripts_y" class="x_inline"><input type="radio" name="minify_scripts" id="minify_scripts_y" value="Y" checked="checked"|cond="$minify_scripts=='Y'" /> {$lang->cmd_yes}</label>
|
||||
<label for="minify_scripts_n" class="x_inline"><input type="radio" name="minify_scripts" id="minify_scripts_n" value="N" checked="checked"|cond="$minify_scripts!='Y'" /> {$lang->cmd_no}</label>
|
||||
<br />
|
||||
<p class="x_help-block">{$lang->about_minify_scripts}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->cache_friendly}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue