mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
smartphone 애드온의 접근 권한 오류 출력 및 스마트폰 네비게이션 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6406 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cdeb3f36cc
commit
e57019217f
3 changed files with 65 additions and 49 deletions
|
|
@ -1,19 +1,31 @@
|
|||
<?PHP
|
||||
if(!defined("__ZBXE__")) exit();
|
||||
|
||||
if(Context::get('module')=='admin' || $called_position != 'after_module_proc' ) return;
|
||||
if(Context::get('module')=='admin') return;
|
||||
|
||||
require_once(_XE_PATH_.'addons/smartphone/classes/smartphone.class.php');
|
||||
if(!smartphoneXE::isFromSmartPhone()) return;
|
||||
|
||||
$oSmartphoneXE = new smartphoneXE($this, $this->module_info, $output);
|
||||
$oSmartphoneXE->procSmartPhone();
|
||||
if($called_position == 'after_module_proc' ) {
|
||||
$oSmartphoneXE = new smartphoneXE($this, $this->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');
|
||||
|
||||
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');
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue