mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
Move unrelated thumbnail setting out of the general config page
This commit is contained in:
parent
ffa90345d0
commit
49a42abddb
6 changed files with 28 additions and 27 deletions
|
|
@ -521,11 +521,6 @@ class adminAdminController extends admin
|
|||
$site_args->default_language = $vars->default_lang;
|
||||
$oModuleController->updateSite($site_args);
|
||||
|
||||
// Thumbnail settings
|
||||
$args = new stdClass;
|
||||
$args->thumbnail_type = $vars->thumbnail_type === 'ratio' ? 'ratio' : 'crop';
|
||||
$oModuleController->insertModuleConfig('document', $args);
|
||||
|
||||
// Default and enabled languages
|
||||
$enabled_lang = $vars->enabled_lang;
|
||||
if (!in_array($vars->default_lang, $enabled_lang))
|
||||
|
|
@ -694,6 +689,12 @@ class adminAdminController extends admin
|
|||
Rhymix\Framework\Config::set('cache', array());
|
||||
}
|
||||
|
||||
// Thumbnail settings
|
||||
$args = new stdClass;
|
||||
$args->thumbnail_type = $vars->thumbnail_type === 'ratio' ? 'ratio' : 'crop';
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->insertModuleConfig('document', $args);
|
||||
|
||||
// Other settings
|
||||
Rhymix\Framework\Config::set('use_rewrite', $vars->use_rewrite === 'Y');
|
||||
Rhymix\Framework\Config::set('use_sso', $vars->use_sso === 'Y');
|
||||
|
|
|
|||
|
|
@ -424,11 +424,6 @@ class adminAdminView extends admin
|
|||
$start_module = $oModuleModel->getSiteInfo(0, $columnList);
|
||||
Context::set('start_module', $start_module);
|
||||
|
||||
// Thumbnail settings
|
||||
$oDocumentModel = getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
Context::set('thumbnail_type', $config->thumbnail_type ?: 'crop');
|
||||
|
||||
// Default time zone
|
||||
Context::set('timezones', Rhymix\Framework\DateTime::getTimezoneList());
|
||||
Context::set('selected_timezone', Rhymix\Framework\Config::get('locale.default_timezone'));
|
||||
|
|
@ -525,6 +520,11 @@ class adminAdminView extends admin
|
|||
Context::set('object_cache_port', null);
|
||||
}
|
||||
|
||||
// Thumbnail settings
|
||||
$oDocumentModel = getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
Context::set('thumbnail_type', $config->thumbnail_type ?: 'crop');
|
||||
|
||||
// Other settings
|
||||
Context::set('use_mobile_view', Rhymix\Framework\Config::get('use_mobile_view'));
|
||||
Context::set('use_rewrite', Rhymix\Framework\Config::get('use_rewrite'));
|
||||
|
|
|
|||
|
|
@ -157,8 +157,8 @@ $lang->about_use_mobile_view = 'Show mobile page when visitors access with mobil
|
|||
$lang->thumbnail_type = 'Select thumbnail type.';
|
||||
$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)';
|
||||
$lang->corp = 'Crop (Cut)';
|
||||
$lang->ratio = 'Ratio (Keep Aspect Ratio)';
|
||||
$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';
|
||||
|
|
|
|||
|
|
@ -160,8 +160,8 @@ $lang->about_use_mobile_view = '모바일 기기로 접속시 모바일 페이
|
|||
$lang->thumbnail_type = '썸네일 생성 방식';
|
||||
$lang->input_footer_script = '하단(footer) 스크립트';
|
||||
$lang->detail_input_footer_script = '최하단에 코드를 삽입합니다. 관리자 페이지에서는 수행되지 않습니다.';
|
||||
$lang->corp = 'Crop(잘라내기)';
|
||||
$lang->ratio = 'Ratio(비율 맞추기)';
|
||||
$lang->corp = 'Crop (잘라내기)';
|
||||
$lang->ratio = 'Ratio (비율 맞추기)';
|
||||
$lang->admin_ip_allow = '관리자 로그인 허용 IP';
|
||||
$lang->admin_ip_deny = '관리자 로그인 금지 IP';
|
||||
$lang->local_ip_address = '로컬 IP 주소';
|
||||
|
|
|
|||
|
|
@ -58,6 +58,19 @@
|
|||
<label for="use_db_session_n" class="x_inline"><input type="radio" name="use_db_session" id="use_db_session_n" value="N" checked="checked"|cond="!$use_db_session" /> {$lang->cmd_no}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<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'" />
|
||||
{$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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->use_object_cache}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
|
|
@ -81,19 +81,6 @@
|
|||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<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="corp" checked="checked"|cond="$thumbnail_type != 'ratio'" />
|
||||
{$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>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label">{$lang->allow_use_favicon}</label>
|
||||
<div class="x_controls">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue