diff --git a/application/index/controller/Common.php b/application/index/controller/Common.php
index 42cc361a99b331f932c4d8de5495ee97d1e23ee8..e7e8b4d2fdf2ce3dda53f9c3956c9f3dded59d2d 100755
--- a/application/index/controller/Common.php
+++ b/application/index/controller/Common.php
@@ -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]));
diff --git a/application/index/view/default/public/footer.html b/application/index/view/default/public/footer.html
index 8c3112b678db8111cc7de00bb4b7bf20edccaebb..63e7b5b2bb6f9439411a2fb7b441742e26b1d443 100755
--- a/application/index/view/default/public/footer.html
+++ b/application/index/view/default/public/footer.html
@@ -74,11 +74,11 @@
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
- plugins_view_common_page_bottom
+ plugins_common_page_bottom
{{/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}}
diff --git a/application/index/view/default/public/header.html b/application/index/view/default/public/header.html
index d91b2098f56901fc7ae638fc5715b691370bb568..6174ce61fa46d09557a3a82ea633fc2813872e8a 100755
--- a/application/index/view/default/public/header.html
+++ b/application/index/view/default/public/header.html
@@ -48,8 +48,8 @@
- {{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 @@
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
- plugins_view_common_header
+ plugins_common_header
{{/if}}
diff --git a/application/plugins/commongobacktop/Hook.php b/application/plugins/commongobacktop/Hook.php
index bd400fcab4d838a6f83fdba8dc06afb1ec9cec1e..8360bf1937a60f4cc8cc36af5e26eae00a5ccab1 100644
--- a/application/plugins/commongobacktop/Hook.php
+++ b/application/plugins/commongobacktop/Hook.php
@@ -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;
diff --git a/application/plugins/commongobacktop/config.json b/application/plugins/commongobacktop/config.json
index 849c7c2f516913109e203b4b2498241a128cff35..5683c730c8b85a2b5a3d844f7baa2e46ac92d55f 100644
--- a/application/plugins/commongobacktop/config.json
+++ b/application/plugins/commongobacktop/config.json
@@ -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"
]
}