From d93c380843af784715817dccbbba3e08e789ba0d Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 7 May 2009 01:09:32 +0000 Subject: [PATCH] =?UTF-8?q?XE=20Smartphone=20=EC=95=A0=EB=93=9C=EC=98=A8?= =?UTF-8?q?=EC=9D=98=20=EC=B2=AB=20=EC=A0=91=EC=86=8D=EC=8B=9C=EC=97=90=20?= =?UTF-8?q?=EB=84=A4=EB=B9=84=EA=B2=8C=EC=9D=B4=EC=85=98=EC=9D=84=20?= =?UTF-8?q?=EB=B3=B4=EC=97=AC=EC=A3=BC=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6295 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../smartphone/classes/smartphone.class.php | 35 ++++++++++++++----- addons/smartphone/tpl/smartphone.css | 13 +++---- addons/smartphone/tpl/smartphone.js | 10 +++--- 3 files changed, 39 insertions(+), 19 deletions(-) diff --git a/addons/smartphone/classes/smartphone.class.php b/addons/smartphone/classes/smartphone.class.php index 0b67e9bd3..70e8a3342 100644 --- a/addons/smartphone/classes/smartphone.class.php +++ b/addons/smartphone/classes/smartphone.class.php @@ -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) { diff --git a/addons/smartphone/tpl/smartphone.css b/addons/smartphone/tpl/smartphone.css index 0c662ebaf..3a356caf8 100644 --- a/addons/smartphone/tpl/smartphone.css +++ b/addons/smartphone/tpl/smartphone.css @@ -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; diff --git a/addons/smartphone/tpl/smartphone.js b/addons/smartphone/tpl/smartphone.js index 99b1a49b3..354cdc073 100644 --- a/addons/smartphone/tpl/smartphone.js +++ b/addons/smartphone/tpl/smartphone.js @@ -42,7 +42,7 @@ function showXEMenu() { if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') { var menu = findSmartNode(xeMenus); if(!menu) menu = xeMenus; - var html = '