Merge pull request #1169 from SoneYours/mobilesetting

모바일뷰를 사용하지 않는 페이지에서 모바일최적화 버튼이 노출되는 문제점 개선.
This commit is contained in:
bnu 2015-04-14 15:10:06 +09:00
commit d1a1dd0673
3 changed files with 9 additions and 6 deletions

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_use_mobile = Mobile::isMobileEnabled();
if($type == "view" && $this->module_info->use_mobile == "Y" && Mobile::isMobileCheckByAgent() && !isset($skipAct[Context::get('act')]) && $db_use_mobile === true)
{
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>';