Skip to content

Commit

Permalink
refs #1654 : modified - desktop-mobile exchange button
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Mar 6, 2014
1 parent 8a01336 commit 79b56fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions interface/common/blog/begin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@
} else {
$mobileDestinationItem = '';
}
$mobileLink = rtrim($context->getProperty('uri.basicblog'),'/').'/i/'.ltrim($context->getProperty('suri.directive').'/'.$mobileDestinationItem ."?mode=mobile",'/');
$backToMobileButton = '<a href="'.$mobileLink.'" id="TCmobileScreenButton">'._text('모바일 화면으로 이동').'</a>';
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 = '<a href="'.$modeChangeLink.'" id="TCmobileScreenButton">'.$modeChangeText.'</a>';
dress('SKIN_body_end', "[##_SKIN_body_end_##]".$backToMobileButton, $view);
}

Expand Down

0 comments on commit 79b56fd

Please sign in to comment.