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

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

@ -1188,9 +1188,23 @@ class documentItem extends Object
*/
function printExtraImages($time_check = 43200)
{
if(!$this->document_srl) return;
// Get the icon directory
$path = sprintf('%s%s',getUrl(), 'modules/document/tpl/icons/');
if (!$this->document_srl)
{
return;
}
$oDocumentModel = getModel('document');
$documentConfig = $oDocumentModel->getDocumentConfig();
if(Mobile::isFromMobilePhone())
{
$iconSkin = $documentConfig->micons;
}
else
{
$iconSkin = $documentConfig->icons;
}
$path = sprintf('%s%s',getUrl(), "modules/document/tpl/icons/$iconSkin/");
$buffs = $this->getExtraImages($time_check);
if(!count($buffs)) return;