From 9913ffca17536d9e6e35ec6ca31fad5f4a8180f7 Mon Sep 17 00:00:00 2001 From: haneul Date: Wed, 22 Apr 2009 08:09:08 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= 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@6168 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- ...{iphone.class.php => smartphone.class.php} | 22 +++++++++---------- addons/smartphone/iphone.addon.php | 18 --------------- addons/smartphone/smartphone.addon.php | 22 +++++++++++++++++++ addons/smartphone/tpl/layout.html | 6 ++--- 4 files changed, 36 insertions(+), 32 deletions(-) rename addons/smartphone/classes/{iphone.class.php => smartphone.class.php} (84%) delete mode 100644 addons/smartphone/iphone.addon.php create mode 100644 addons/smartphone/smartphone.addon.php diff --git a/addons/smartphone/classes/iphone.class.php b/addons/smartphone/classes/smartphone.class.php similarity index 84% rename from addons/smartphone/classes/iphone.class.php rename to addons/smartphone/classes/smartphone.class.php index e52cc0de0..9ba8f7f0f 100644 --- a/addons/smartphone/classes/iphone.class.php +++ b/addons/smartphone/classes/smartphone.class.php @@ -1,11 +1,11 @@ module_info = $module_info; } - function procIPhone() + function procSmartPhone() { if(!$this->module_info) return; - $oModule =& getModule($this->module_info->module, 'iphone'); - if(!$oModule || !method_exists($oModule, 'procIPhone') ) return; + $oModule =& getModule($this->module_info->module, 'smartphone'); + if(!$oModule || !method_exists($oModule, 'procSmartPhone') ) return; $vars = get_object_vars($this->oModule); if(count($vars)) foreach($vars as $key => $val) $oModule->{$key} = $val; - return $oModule->procIPhone($this); + return $oModule->procSmartPhone($this); } function getAllItems(&$menu_list, $node_srl = 0, $node_text= "Main Menu") @@ -86,17 +86,17 @@ $act = Context::get('act'); if($act) { - $content = $this->procIPhone(); + $content = $this->procSmartPhone(); } else { Context::set('module_info', $this->module_info); $this->setMenu(); - $oModule =& getModule($this->module_info->module, 'iphone'); - if($oModule && method_exists($oModule, 'procIPhone') ) Context::set('bHavePhoneMethod', true); + $oModule =& getModule($this->module_info->module, 'smartphone'); + if($oModule && method_exists($oModule, 'procSmartPhone') ) Context::set('bHavePhoneMethod', true); $oTemplate = new TemplateHandler(); $oContext = &Context::getInstance(); - $content = $oTemplate->compile(_XE_PATH_."addons/iphone/tpl", "layout"); + $content = $oTemplate->compile(_XE_PATH_."addons/smartphone/tpl", "layout"); } print $content; diff --git a/addons/smartphone/iphone.addon.php b/addons/smartphone/iphone.addon.php deleted file mode 100644 index a08902049..000000000 --- a/addons/smartphone/iphone.addon.php +++ /dev/null @@ -1,18 +0,0 @@ -setModuleInfo($this->module_info); - $iphoneXE->setModuleInstance($this); - $iphoneXE->display(); -?> diff --git a/addons/smartphone/smartphone.addon.php b/addons/smartphone/smartphone.addon.php new file mode 100644 index 000000000..4974d9460 --- /dev/null +++ b/addons/smartphone/smartphone.addon.php @@ -0,0 +1,22 @@ +setModuleInfo($this->module_info); + $oSmartphoneXE->setModuleInstance($this); + $oSmartphoneXE->display(); +?> diff --git a/addons/smartphone/tpl/layout.html b/addons/smartphone/tpl/layout.html index 8f94f5120..41193bc91 100644 --- a/addons/smartphone/tpl/layout.html +++ b/addons/smartphone/tpl/layout.html @@ -6,8 +6,8 @@ {Context::getBrowserTitle()} - - + +