문서 모듈의 아이콘을 스킨으로 설정할 수 있도록 개선

https://github.com/xpressengine/xe-core/pull/2172
This commit is contained in:
BJRambo 2017-11-28 17:48:38 +09:00
parent 1a81fd43f3
commit 75ea89e203
13 changed files with 85 additions and 7 deletions

View file

@ -148,6 +148,13 @@ class documentAdminView extends document
$config = $oDocumentModel->getDocumentConfig();
Context::set('config',$config);
$oModuleModel = getModel('module');
$pcIconSkinList = $oModuleModel->getSkins($this->module_path . 'tpl', 'icons');
$mobileIconSkinList = $oModuleModel->getSkins($this->module_path . 'tpl', 'micons');
Context::set('pcIconSkinList', $pcIconSkinList);
Context::set('mobileIconSkinList', $mobileIconSkinList);
// Set the template file
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('document_config');