모바일 뷰어 사용중에만 모바일에 최적화 화면 버튼을 실행하도록 개선.

모바일 뷰어 사용중에만 모바일에 최적화된 화면 버튼을 실행 하도록 개선.
This commit is contained in:
BJRambo 2015-01-10 14:28:59 +09:00
parent e7836e6e17
commit 1f9844ed08

View file

@ -667,7 +667,8 @@ class ModuleHandler extends Handler
'dispEditorConfigPreview' => 1,
'dispLayoutPreviewWithModule' => 1
);
if($type == "view" && $this->module_info->use_mobile == "Y" && Mobile::isMobileCheckByAgent() && !isset($skipAct[Context::get('act')]))
$db_info = Context::getDBInfo();
if($type == "view" && $this->module_info->use_mobile == "Y" && Mobile::isMobileCheckByAgent() && !isset($skipAct[Context::get('act')]) && $db_info->use_mobile_view == "Y")
{
global $lang;
$header = '<style>div.xe_mobile{opacity:0.7;margin:1em 0;padding:.5em;background:#333;border:1px solid #666;border-left:0;border-right:0}p.xe_mobile{text-align:center;margin:1em 0}a.xe_mobile{color:#ff0;font-weight:bold;font-size:24px}@media only screen and (min-width:500px){a.xe_mobile{font-size:15px}}</style>';