mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 10:52:14 +09:00
문서 모듈의 아이콘을 스킨으로 설정할 수 있도록 개선
https://github.com/xpressengine/xe-core/pull/2172
This commit is contained in:
parent
1a81fd43f3
commit
75ea89e203
13 changed files with 85 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue