mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
Add option to create no thumbnails
This commit is contained in:
parent
e225d258c0
commit
667c8bb634
4 changed files with 8 additions and 2 deletions
|
|
@ -816,7 +816,7 @@ class adminAdminController extends admin
|
|||
// Thumbnail settings
|
||||
$oDocumentModel = getModel('document');
|
||||
$document_config = $oDocumentModel->getDocumentConfig();
|
||||
$document_config->thumbnail_type = $vars->thumbnail_type === 'ratio' ? 'ratio' : 'crop';
|
||||
$document_config->thumbnail_type = $vars->thumbnail_type ?: 'crop';
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->insertModuleConfig('document', $document_config);
|
||||
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ $lang->input_footer_script = 'Footer script';
|
|||
$lang->detail_input_footer_script = 'The script is inserted into the bottom of body. It does not work at admin page.';
|
||||
$lang->corp = 'Crop (Cut)';
|
||||
$lang->ratio = 'Ratio (Keep Aspect Ratio)';
|
||||
$lang->thumbnail_none = 'Do not create thumbnails';
|
||||
$lang->admin_ip_allow = 'IP addresses allowed to log in as administrator';
|
||||
$lang->admin_ip_deny = 'IP addresses forbidden to log in as administrator';
|
||||
$lang->local_ip_address = 'Local IP address';
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ $lang->input_footer_script = '하단(footer) 스크립트';
|
|||
$lang->detail_input_footer_script = '최하단에 코드를 삽입합니다. 관리자 페이지에서는 수행되지 않습니다.';
|
||||
$lang->corp = 'Crop (잘라내기)';
|
||||
$lang->ratio = 'Ratio (비율 맞추기)';
|
||||
$lang->thumbnail_none = '썸네일 생성하지 않음';
|
||||
$lang->admin_ip_allow = '관리자 로그인 허용 IP';
|
||||
$lang->admin_ip_deny = '관리자 로그인 금지 IP';
|
||||
$lang->local_ip_address = '로컬 IP 주소';
|
||||
|
|
|
|||
|
|
@ -62,13 +62,17 @@
|
|||
<label class="x_control-label">{$lang->thumbnail_type}</label>
|
||||
<div class="x_controls">
|
||||
<label for="thumbnail_type_crop" class="x_inline">
|
||||
<input type="radio" name="thumbnail_type" id="thumbnail_type_crop" value="crop" checked="checked"|cond="$thumbnail_type != 'ratio'" />
|
||||
<input type="radio" name="thumbnail_type" id="thumbnail_type_crop" value="crop" checked="checked"|cond="$thumbnail_type == 'crop' || !$thumbnail_type" />
|
||||
{$lang->corp}
|
||||
</label>
|
||||
<label for="thumbnail_type_ratio" class="x_inline">
|
||||
<input type="radio" name="thumbnail_type" id="thumbnail_type_ratio" value="ratio" checked="checked"|cond="$thumbnail_type == 'ratio'" />
|
||||
{$lang->ratio}
|
||||
</label>
|
||||
<label for="thumbnail_type_none" class="x_inline">
|
||||
<input type="radio" name="thumbnail_type" id="thumbnail_type_none" value="none" checked="checked"|cond="$thumbnail_type == 'none'" />
|
||||
{$lang->thumbnail_none}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue