diff --git a/interface/common/blog/begin.php b/interface/common/blog/begin.php index 3b7aee5ea..dbed562bc 100644 --- a/interface/common/blog/begin.php +++ b/interface/common/blog/begin.php @@ -38,8 +38,14 @@ } else { $mobileDestinationItem = ''; } - $mobileLink = rtrim($context->getProperty('uri.basicblog'),'/').'/i/'.ltrim($context->getProperty('suri.directive').'/'.$mobileDestinationItem ."?mode=mobile",'/'); - $backToMobileButton = ''._text('모바일 화면으로 이동').''; + if ($context->getProperty('blog.displaymode','desktop')=='mobile') { + $modeChangeLink = $context->getProperty('uri.permalink').'?mode=desktop'; + $modeChangeText = _text('데스크탑 화면으로 이동'); + } else { + $modeChangeLink = $context->getProperty('uri.permalink').'?mode=mobile'; + $modeChangeText = _text('모바일 화면으로 이동'); + } + $backToMobileButton = ''.$modeChangeText.''; dress('SKIN_body_end', "[##_SKIN_body_end_##]".$backToMobileButton, $view); }