diff --git a/addons/smartphone/classes/smartphone.class.php b/addons/smartphone/classes/smartphone.class.php deleted file mode 100644 index 9ac28d955..000000000 --- a/addons/smartphone/classes/smartphone.class.php +++ /dev/null @@ -1,139 +0,0 @@ -oModule = $oModule; - $this->module_info = $module_info; - - if(!$this->module_info->menu_srl) { - $oMenuModel = &getAdminModel('menu'); - $menus = $oMenuModel->getMenus($this->module_info->site_srl); - if($menus[0]) $this->module_info->menu_srl = $menus[0]->menu_srl; - } - - if($this->module_info->menu_srl) { - $menu_cache_file = sprintf(_XE_PATH_.'files/cache/menu/%d.php', $this->module_info->menu_srl); - if(!file_exists($menu_cache_file)) return; - @include $menu_cache_file; - Context::addHtmlHeader(sprintf('', $this->_getAllItems($menu->list))); - $this->_setParentUrl($menu->list); - } - } - - function _setParentUrl($menu_list) { - if(!count($menu_list)) return; - foreach($menu_list as $key => $val) { - if(!$val['text']) continue; - if($val['list'] && $this->_setParentUrl($val['list'])) { - $href = $val['href']; - if(preg_match('/^[a-z0-9_]+$/i',$val['url'])) $href = getUrl('','mid',$val['url'],'smartphone','true'); - else $href = $val['href']; - $this->setParentUrl($href); - return false; - } - if($val['url']==Context::get('mid')) return true; - } - return false; - } - - function _getAllItems($menu_list, $depth=0) { - if(!count($menu_list)) return; - $output = ''; - - foreach($menu_list as $menu_item) - { - if($output) $output .= ","; - $key = $menu_item['text']; - $val = $menu_item['url']; - if($menu_item['list']) { - $childs = '{'.$this->_getAllItems($menu_item['list'], $depth+1).'}'; - } else { - $childs = 'null'; - } - - $output .= sprintf('"%s" : { "url" : "%s", "childs" : %s } ',str_replace('"','\"',$key), str_replace('"','\"',$val), $childs); - } - return $output; - } - - function procSmartPhone($msg = null) { - if(preg_match('/(iPod|iPhone|Android)/',$_SERVER['HTTP_USER_AGENT'])) { - Context::addHtmlHeader(''); - } else if(preg_match('/SCH\-M[0-9]+/',$_SERVER['HTTP_USER_AGENT'])) { - Context::addHtmlHeader(''); - } - - if(is_a($this->output, 'Object') || is_subclass_of($this->output, 'Object') || $msg) { - if($msg) $this->setContent(Context::getLang($msg)); - else $this->setContent($this->output->getMessage()); - 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 { - 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) { - $this->content = $content; - } - - function setParentUrl($url) { - $this->parent_url = $url; - } - - function setPrevUrl($url) { - $this->prev_url = $url; - } - - function setNextUrl($url) { - $this->next_url = $url; - } - - } -?> diff --git a/addons/smartphone/conf/info.xml b/addons/smartphone/conf/info.xml deleted file mode 100644 index 4a72c7d5f..000000000 --- a/addons/smartphone/conf/info.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - SmartPhone XE 애드온 - SmartPhone XE - 智能手机XE插件 - SmartPhone XE - SmartPhone XE - 智慧型手機 - SmartPhone XE アドオン - - IPhone (touch) 등, smartphone 에서 접속시 최적화된 화면을 보여줍니다. - - - This addon displays the best screen for users who use smartphones like IPhone (touch). - - - 用于IPhone(touch)等智能手机访问时的界面优化。 - - - Addon này sẽ hiển thị Website trên màn hình iPhone một cách tốt nhất khi người dùng sử dụng SmartPhone để truy cập (iPhone cảm ứng) - - - 用iPhone(touch)和智慧型手機瀏覽時會以最適當的畫面顯示。 - - - This addon displays the best screen for users who use smartphones like IPhone (touch). - - - IPhone(touch)など、スマートフォンからアクセスした時、最適化されたインターフェースで表示させます。 - - 0.1 - 2009-04-20 - - haneul - haneul - haneul - haneul - haneul - haneul - haneul - - diff --git a/addons/smartphone/smartphone.addon.php b/addons/smartphone/smartphone.addon.php deleted file mode 100644 index 28849250f..000000000 --- a/addons/smartphone/smartphone.addon.php +++ /dev/null @@ -1,39 +0,0 @@ -module_info, $output); - $oSmartphoneXE->procSmartPhone(); - Context::set('layout', 'none'); - Context::set('smart_content', $oSmartphoneXE->content); - Context::set('parent_url', $oSmartphoneXE->parent_url); - Context::set('prev_url', $oSmartphoneXE->prev_url); - Context::set('next_url', $oSmartphoneXE->next_url); - $this->setTemplatePath('addons/smartphone/tpl'); - $this->setTemplateFile('layout'); - - } elseif($called_position == 'before_module_proc' && !$this->grant->access) { - $oSmartphoneXE = new smartphoneXE($this, $this->module_info, $output); - $oSmartphoneXE->procSmartPhone('msg_not_permitted_act'); - Context::set('layout', 'none'); - Context::set('smart_content', $oSmartphoneXE->content); - Context::set('parent_url', $oSmartphoneXE->parent_url); - Context::set('prev_url', $oSmartphoneXE->prev_url); - Context::set('next_url', $oSmartphoneXE->next_url); - $this->setTemplatePath('addons/smartphone/tpl'); - $this->setTemplateFile('layout'); - } -?> diff --git a/addons/smartphone/tpl/images/btnMenu.png b/addons/smartphone/tpl/images/btnMenu.png deleted file mode 100755 index 3c43a027c..000000000 Binary files a/addons/smartphone/tpl/images/btnMenu.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/btnNext.png b/addons/smartphone/tpl/images/btnNext.png deleted file mode 100755 index 15b8215ba..000000000 Binary files a/addons/smartphone/tpl/images/btnNext.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/btnPrev.png b/addons/smartphone/tpl/images/btnPrev.png deleted file mode 100755 index 085d42942..000000000 Binary files a/addons/smartphone/tpl/images/btnPrev.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/btnTop.png b/addons/smartphone/tpl/images/btnTop.png deleted file mode 100755 index aa106e8cc..000000000 Binary files a/addons/smartphone/tpl/images/btnTop.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/listArrow.png b/addons/smartphone/tpl/images/listArrow.png deleted file mode 100644 index 6421a1676..000000000 Binary files a/addons/smartphone/tpl/images/listArrow.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/listGroup.png b/addons/smartphone/tpl/images/listGroup.png deleted file mode 100644 index 221553ae9..000000000 Binary files a/addons/smartphone/tpl/images/listGroup.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/pinstripes.png b/addons/smartphone/tpl/images/pinstripes.png deleted file mode 100644 index c99777512..000000000 Binary files a/addons/smartphone/tpl/images/pinstripes.png and /dev/null differ diff --git a/addons/smartphone/tpl/images/titlebar.png b/addons/smartphone/tpl/images/titlebar.png deleted file mode 100755 index ddc3cd9b8..000000000 Binary files a/addons/smartphone/tpl/images/titlebar.png and /dev/null differ diff --git a/addons/smartphone/tpl/layout.html b/addons/smartphone/tpl/layout.html deleted file mode 100644 index 93d7e5845..000000000 --- a/addons/smartphone/tpl/layout.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -
-

{Context::getBrowserTitle()}

-
- -
- {$smart_content} -
- -
-
- - Top - - - Prev - Next - - Menu -
-
- PC Version -
-
diff --git a/addons/smartphone/tpl/smartphone.css b/addons/smartphone/tpl/smartphone.css deleted file mode 100644 index ea9a39ccf..000000000 --- a/addons/smartphone/tpl/smartphone.css +++ /dev/null @@ -1,200 +0,0 @@ -body { - margin: 0; - padding:0; - font-family: Helvetica; - background: #E6E6E6 url(./images/pinstripes.png); - color: #000000; - overflow-x: hidden; - -webkit-user-select: none; - -webkit-text-size-adjust: none; - width:100%; -} - -.smartPhoneTitleBar { - border-bottom: 1px solid #2d3642; - border-top: 1px solid #6d84a2; - height: 43px; - overflow:hidden; - background:#485567 url(./images/titlebar.png) repeat-x left top; - - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; -} - -.smartPhoneToolBar .buttons -{ - float: left; -} - -.smartPhoneToolBar .rightbuttons -{ - float: right; margin-right:5px; margin-top:5px; -} - -.smartPhoneTitleBar h1 { - white-space:nowrap; - overflow: hidden; - color: #FFFFFF; - font-size: 20px; - font-weight: bold; - padding:8px 10px; - margin:0; - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; - text-overflow: ellipsis; -} - -.smartPhoneTitleBar h1 a { - text-decoration:none; - color:#fff; -} - -.smartPhoneContent { - z-index:450; - border: 1px solid #999999; - padding:10px; - background-color:#fff; - margin:10px; - box-sizing: border-box; - -webkit-box-sizing: border-box; - -webkit-border-radius: 8px; -} - -.smartPhoneToolBar { - z-index:9999; - width:100%; - border-bottom: 1px solid #2d3642; - border-top: 1px solid #6d84a2; - height: 43px; - overflow:hidden; - background:#485567 url(./images/titlebar.png) repeat-x left top; - white-space:nowrap; - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; -} - -.smartPhoneBtn { - width:43px; - height:43px; - margin-left:8px; - border:0; -} - -.smartPhoneContent div.info { - font-size:13px; - padding-bottom:10px; - border-bottom:1px solid #444; - overflow:hidden; - *zoom:1; -} - -.smartPhoneContent div.info .author { - font-weight:bold; - float:left; -} - -.smartPhoneContent div.info .date { - font-size:11px; - float:right; -} - -.smartPhoneContent div.link { - margin-top:10px; - border-top:1px solid #444; -} - -.smartPhoneContent div.link a { - display:block; - padding:10px 0; - font-size:15px; - text-decoration:underline; - font-weight:bold; - color:#000; -} - -.smartPhoneList { - background-color:#fff; - z-index:500; - padding:0; - margin:0; -} - -.smartPhoneList ul { - padding:0; - margin:0; - left:0; - right:0; - top:43px; -} - -.smartPhoneList li { - list-style:none; - font-size:18px; - font-weight:bold; - padding:10px 20px 10px 10px; - border-bottom:1px solid #ccc; -} - -.smartPhoneList li a { - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; - text-overflow: ellipsis; - color:#000; - text-decoration:none; - display:block; - width:100%; -} - -.smartPhoneList li.title { - position: relative; - top: -1px; - margin-bottom: -2px; - border-top: 1px solid #7d7d7d; - border-bottom: 1px solid #999999; - padding: 5px 10px; - background: url(./images/listGroup.png) repeat-x; - font-size: 12px; - font-weight: bold; - text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; - color: #FFFFFF; -} - -.smartPhoneList li.selected { - background-color:#ddd; -} - -.smartPhoneList li.selected * { - color:#fff; -} - - -.smartPhoneList li a { - background:transparent url(./images/listArrow.png) no-repeat scroll right center; - padding-right:30px; -} - -.smartPhoneList li.noArrow a { - background:none !important; -} - -.smartPhoneList li.item img.thumbnail { - margin:0 10px 0 0; - padding:0; -} - -.smartPhoneList li.item span.title, .smartPhoneList li.item span.title div { - font-size:15px; - font-weight:normal; - display:block; -} - -.smartPhoneList li.item span.info { - font-size:10px; - font-weight:normal; - color:#bbb; - display:block; - margin-top:2px; - letter-spacing:0px; -} - - diff --git a/addons/smartphone/tpl/smartphone.js b/addons/smartphone/tpl/smartphone.js deleted file mode 100644 index e27634d03..000000000 --- a/addons/smartphone/tpl/smartphone.js +++ /dev/null @@ -1,105 +0,0 @@ -var xeSmartMenu = null; -var xeSmartUpperMenu = null; -function setFullBrowse() { - location.href = current_url.setQuery('full_browse',1); -} - -function showXEMenu() { - if(!xeSmartMenu) { - - xeSmartMenu = jQuery('
') - .attr("className","smartPhoneList") - .css('display','none') - .css('backgroundColor','#fff'); - - jQuery(document.body).append(xeSmartMenu); - - xeSmartMenu.slideIn = function(step) { - var w = this.width() + Math.pow(step,2)*30; - - if(w>jQuery(document).width()) { - this.css({left:0,right:0,display:'block'}); - this.width(''); - jQuery('.smartPhoneContentArea').css("display","none"); - } else { - this.width(w); - var o = parseInt(jQuery(document).width/w,10)/5; - if(o>1) o = 1; - setTimeout(function() { xeSmartMenu.slideIn(step+1); }, 50); - } - } - - xeSmartMenu.slideOut = function(step) { - var l = parseInt(this.css('left'),10) + Math.pow(step,2)*30; - - if(l>jQuery('.smartPhoneContent').width()) { - this.css({display:'none','left':''}); - jQuery('.smartPhoneContentArea').css("display","block"); - } else { - var o = parseInt(jQuery(document).width/l,10)/5; - if(o<0) o = 0; - this.css('left',l+'px'); - setTimeout(function() { xeSmartMenu.slideOut(step+1); }, 50); - } - } - } - - if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') { - xeSmartUpperMenu = null; - var menu = findSmartNode(xeMenus); - if(!menu) menu = xeMenus; - var html = ''; - - jQuery(xeSmartMenu).html(html); - jQuery(xeSmartMenu).css({ - width:'1px', - right:'0', - top:'43px', - display:'block', - position:'absolute', - padding:0 - }); - xeSmartMenu.slideIn(0); - } else if(location.href.getQuery('mid')||location.href.getQuery('document_srl')) { - xeSmartMenu.slideOut(0); - } -} - -function findSmartNode(nodes) { - var mid = current_url.getQuery('mid'); - if(typeof(mid)=='undefined'||!mid) return nodes; - for(var text in nodes) { - if(!text) continue; - if(nodes[text].childs) { - var n = findSmartNode(nodes[text].childs); - if(n) { - xeSmartUpperMenu = nodes[text]; - return n; - } - } - if(nodes[text].url == mid) { - if(nodes[text].childs) return nodes[text].childs; - return nodes; - } - } - return null; -}