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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->haveSmartphoneModule($this->module_info->module)) {
|
if($_GET['mid']) {
|
||||||
$oSmartPhoneModule =& getModule($this->module_info->module, 'smartphone');
|
if($this->haveSmartphoneModule($this->module_info->module)) {
|
||||||
$vars = get_object_vars($this->oModule);
|
$oSmartPhoneModule =& getModule($this->module_info->module, 'smartphone');
|
||||||
if(count($vars)) foreach($vars as $key => $val) $oSmartPhoneModule->{$key} = $val;
|
$vars = get_object_vars($this->oModule);
|
||||||
$oSmartPhoneModule->procSmartPhone($this);
|
if(count($vars)) foreach($vars as $key => $val) $oSmartPhoneModule->{$key} = $val;
|
||||||
} else {
|
$oSmartPhoneModule->procSmartPhone($this);
|
||||||
$this->setContent('요청하신 모듈은 스마트폰을 지원하지 않습니다');
|
} 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) {
|
function setContent($content) {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ body {
|
||||||
.smartPhoneContent {
|
.smartPhoneContent {
|
||||||
z-index:450;
|
z-index:450;
|
||||||
border: 1px solid #999999;
|
border: 1px solid #999999;
|
||||||
padding: 20px;
|
padding:10px;
|
||||||
background-color:#fff;
|
background-color:#fff;
|
||||||
margin:10px;
|
margin:10px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
@ -96,9 +96,10 @@ body {
|
||||||
|
|
||||||
.smartPhoneContent div.link a {
|
.smartPhoneContent div.link a {
|
||||||
display:block;
|
display:block;
|
||||||
padding:5px 0;
|
padding:10px 0;
|
||||||
font-size:13px;
|
font-size:15px;
|
||||||
text-decoration:none;
|
text-decoration:underline;
|
||||||
|
font-weight:bold;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -140,9 +141,9 @@ body {
|
||||||
margin-bottom: -2px;
|
margin-bottom: -2px;
|
||||||
border-top: 1px solid #7d7d7d;
|
border-top: 1px solid #7d7d7d;
|
||||||
border-bottom: 1px solid #999999;
|
border-bottom: 1px solid #999999;
|
||||||
padding: 1px 10px;
|
padding: 5px 10px;
|
||||||
background: url(./images/listGroup.png) repeat-x;
|
background: url(./images/listGroup.png) repeat-x;
|
||||||
font-size: 17px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
|
text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ function showXEMenu() {
|
||||||
if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') {
|
if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') {
|
||||||
var menu = findSmartNode(xeMenus);
|
var menu = findSmartNode(xeMenus);
|
||||||
if(!menu) menu = 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) {
|
for(var text in menu) {
|
||||||
if(!text) continue;
|
if(!text) continue;
|
||||||
var url = menu[text].url;
|
var url = menu[text].url;
|
||||||
|
|
@ -57,9 +57,7 @@ function showXEMenu() {
|
||||||
if(href.indexOf('?')>-1) href += '&vid='+xeVid;
|
if(href.indexOf('?')>-1) href += '&vid='+xeVid;
|
||||||
else href += '?vid='+xeVid;
|
else href += '?vid='+xeVid;
|
||||||
}
|
}
|
||||||
if(current_mid == url) html += '<li class="selected">';
|
html += '<li><a href="'+href+'">'+text+'</a></li>';
|
||||||
else html += '<li>';
|
|
||||||
html += '<a href="'+href+'">'+text+'</a></li>';
|
|
||||||
}
|
}
|
||||||
html += '</ul>';
|
html += '</ul>';
|
||||||
|
|
||||||
|
|
@ -73,7 +71,7 @@ function showXEMenu() {
|
||||||
padding:0
|
padding:0
|
||||||
});
|
});
|
||||||
xeSmartMenu.slideIn(0);
|
xeSmartMenu.slideIn(0);
|
||||||
} else {
|
} else if(location.href.getQuery('mid')) {
|
||||||
xeSmartMenu.slideOut(0);
|
xeSmartMenu.slideOut(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -94,3 +92,5 @@ function findSmartNode(nodes) {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!location.href.getQuery('mid')) jQuery(document).ready(showXEMenu);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue