mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
XE Smartphone 애드온의 첫 접속시에 네비게이션을 보여주도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6295 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fde7387ae0
commit
d93c380843
3 changed files with 39 additions and 19 deletions
|
|
@ -86,14 +86,33 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if($this->haveSmartphoneModule($this->module_info->module)) {
|
||||
$oSmartPhoneModule =& getModule($this->module_info->module, 'smartphone');
|
||||
$vars = get_object_vars($this->oModule);
|
||||
if(count($vars)) foreach($vars as $key => $val) $oSmartPhoneModule->{$key} = $val;
|
||||
$oSmartPhoneModule->procSmartPhone($this);
|
||||
} else {
|
||||
$this->setContent('요청하신 모듈은 스마트폰을 지원하지 않습니다');
|
||||
}
|
||||
if($_GET['mid']) {
|
||||
if($this->haveSmartphoneModule($this->module_info->module)) {
|
||||
$oSmartPhoneModule =& getModule($this->module_info->module, 'smartphone');
|
||||
$vars = get_object_vars($this->oModule);
|
||||
if(count($vars)) foreach($vars as $key => $val) $oSmartPhoneModule->{$key} = $val;
|
||||
$oSmartPhoneModule->procSmartPhone($this);
|
||||
} else {
|
||||
switch(Context::getLangType()) {
|
||||
case 'ko' :
|
||||
$msg = '스마트폰을 지원하지 않는 모듈입니다';
|
||||
break;
|
||||
case 'jp' :
|
||||
$msg = 'このモジュールをサポートしていません。';
|
||||
break;
|
||||
case 'zh-TW' :
|
||||
$msg = '該模塊不支持。';
|
||||
break;
|
||||
case 'zh-CN' :
|
||||
$msg = '该模块不支持。';
|
||||
break;
|
||||
default :
|
||||
$msg = 'This module is not supported.';
|
||||
break;
|
||||
}
|
||||
$this->setContent($msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setContent($content) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ body {
|
|||
.smartPhoneContent {
|
||||
z-index:450;
|
||||
border: 1px solid #999999;
|
||||
padding: 20px;
|
||||
padding:10px;
|
||||
background-color:#fff;
|
||||
margin:10px;
|
||||
box-sizing: border-box;
|
||||
|
|
@ -96,9 +96,10 @@ body {
|
|||
|
||||
.smartPhoneContent div.link a {
|
||||
display:block;
|
||||
padding:5px 0;
|
||||
font-size:13px;
|
||||
text-decoration:none;
|
||||
padding:10px 0;
|
||||
font-size:15px;
|
||||
text-decoration:underline;
|
||||
font-weight:bold;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
|
|
@ -140,9 +141,9 @@ body {
|
|||
margin-bottom: -2px;
|
||||
border-top: 1px solid #7d7d7d;
|
||||
border-bottom: 1px solid #999999;
|
||||
padding: 1px 10px;
|
||||
padding: 5px 10px;
|
||||
background: url(./images/listGroup.png) repeat-x;
|
||||
font-size: 17px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
|
||||
color: #FFFFFF;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function showXEMenu() {
|
|||
if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') {
|
||||
var menu = findSmartNode(xeMenus);
|
||||
if(!menu) menu = xeMenus;
|
||||
var html = '<ul><li><a href="'+request_uri.setQuery('smartphone','true')+'">goto homepage</a></li>';
|
||||
var html = '<ul>';
|
||||
for(var text in menu) {
|
||||
if(!text) continue;
|
||||
var url = menu[text].url;
|
||||
|
|
@ -57,9 +57,7 @@ function showXEMenu() {
|
|||
if(href.indexOf('?')>-1) href += '&vid='+xeVid;
|
||||
else href += '?vid='+xeVid;
|
||||
}
|
||||
if(current_mid == url) html += '<li class="selected">';
|
||||
else html += '<li>';
|
||||
html += '<a href="'+href+'">'+text+'</a></li>';
|
||||
html += '<li><a href="'+href+'">'+text+'</a></li>';
|
||||
}
|
||||
html += '</ul>';
|
||||
|
||||
|
|
@ -73,7 +71,7 @@ function showXEMenu() {
|
|||
padding:0
|
||||
});
|
||||
xeSmartMenu.slideIn(0);
|
||||
} else {
|
||||
} else if(location.href.getQuery('mid')) {
|
||||
xeSmartMenu.slideOut(0);
|
||||
}
|
||||
}
|
||||
|
|
@ -94,3 +92,5 @@ function findSmartNode(nodes) {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if(!location.href.getQuery('mid')) jQuery(document).ready(showXEMenu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue