feat/task1-c-wallet
parent
a9adb1aae3
commit
6964d16dd1
|
|
@ -87,10 +87,10 @@ class Common extends Controller
|
|||
$this->assign('plugins_js_data', Hook::listen('plugins_js', ['hook_name'=>'plugins_js', 'is_control'=>false]));
|
||||
|
||||
// 公共header内钩子
|
||||
$this->assign('plugins_view_common_header_data', Hook::listen('plugins_view_common_header', ['hook_name'=>'plugins_view_common_header', 'is_control'=>false, 'user'=>$this->user]));
|
||||
$this->assign('plugins_common_header_data', Hook::listen('plugins_common_header', ['hook_name'=>'plugins_common_header', 'is_control'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共页面部钩子
|
||||
$this->assign('plugins_view_common_page_bottom_data', Hook::listen('plugins_view_common_page_bottom', ['hook_name'=>'plugins_view_common_page_bottom', 'is_control'=>false, 'user'=>$this->user]));
|
||||
// 公共页面底部钩子
|
||||
$this->assign('plugins_common_page_bottom_data', Hook::listen('plugins_common_page_bottom', ['hook_name'=>'plugins_common_page_bottom', 'is_control'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共顶部钩子
|
||||
$this->assign('plugins_view_common_top_data', Hook::listen('plugins_view_common_top', ['hook_name'=>'plugins_view_common_top', 'is_control'=>false, 'user'=>$this->user]));
|
||||
|
|
|
|||
|
|
@ -74,11 +74,11 @@
|
|||
<!-- 公共页面底部钩子 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_page_bottom</span>
|
||||
<span>plugins_common_page_bottom</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_page_bottom_data) and is_array($plugins_view_common_page_bottom_data)}}
|
||||
{{foreach $plugins_view_common_page_bottom_data as $hook}}
|
||||
{{if !empty($plugins_common_page_bottom_data) and is_array($plugins_common_page_bottom_data)}}
|
||||
{{foreach $plugins_common_page_bottom_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@
|
|||
</script>
|
||||
|
||||
<!-- 公共header内钩子 -->
|
||||
{{if !empty($plugins_view_common_header_data) and is_array($plugins_view_common_header_data)}}
|
||||
{{foreach $plugins_view_common_header_data as $hook}}
|
||||
{{if !empty($plugins_common_header_data) and is_array($plugins_common_header_data)}}
|
||||
{{foreach $plugins_common_header_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
<!-- 公共header内钩子 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header</span>
|
||||
<span>plugins_common_header</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ class Hook
|
|||
$ret = $this->html($params);
|
||||
break;
|
||||
|
||||
case 'plugins_view_common_page_bottom' :
|
||||
case 'plugins_common_page_bottom' :
|
||||
$ret = $this->js($params);
|
||||
break;
|
||||
|
||||
case 'plugins_view_common_header' :
|
||||
case 'plugins_common_header' :
|
||||
$ret = $this->css($params);
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
"plugins_view_common_bottom":[
|
||||
"app\\plugins\\commongobacktop\\Hook"
|
||||
],
|
||||
"plugins_view_common_page_bottom":[
|
||||
"plugins_common_page_bottom":[
|
||||
"app\\plugins\\commongobacktop\\Hook"
|
||||
],
|
||||
"plugins_view_common_header":[
|
||||
"plugins_common_header":[
|
||||
"app\\plugins\\commongobacktop\\Hook"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue