diff --git a/application/index/controller/Common.php b/application/index/controller/Common.php index 8152534ebb31aab040161e883a4f629ebfa36c72..ca020d91fd3135e3900f631995d33e393af7dc27 100755 --- a/application/index/controller/Common.php +++ b/application/index/controller/Common.php @@ -153,8 +153,17 @@ class Common extends Controller // 公共底部钩子 $this->assign('plugins_view_common_bottom_data', Hook::listen('plugins_view_common_bottom', ['hook_name'=>'plugins_view_common_bottom', 'is_backend'=>false, 'user'=>$this->user])); - // 公共顶部小导航钩子-左侧 - $this->assign('plugins_view_header_navigation_top_left_data', Hook::listen('plugins_view_header_navigation_top_left', ['hook_name'=>'plugins_view_header_navigation_top_left', 'is_backend'=>false, 'user'=>$this->user])); + // 公共顶部小导航钩子-左侧前面 + $this->assign('plugins_view_header_navigation_top_left_begin_data', Hook::listen('plugins_view_header_navigation_top_left_begin', ['hook_name'=>'plugins_view_header_navigation_top_left_begin', 'is_backend'=>false, 'user'=>$this->user])); + + // 公共顶部小导航钩子-左侧后面 + $this->assign('plugins_view_header_navigation_top_left_end_data', Hook::listen('plugins_view_header_navigation_top_left_end', ['hook_name'=>'plugins_view_header_navigation_top_left_end', 'is_backend'=>false, 'user'=>$this->user])); + + // 公共顶部小导航钩子-右侧前面 + $this->assign('plugins_view_header_navigation_top_right_begin_data', Hook::listen('plugins_view_header_navigation_top_right_begin', ['hook_name'=>'plugins_view_header_navigation_top_right_begin', 'is_backend'=>false, 'user'=>$this->user])); + + // 公共顶部小导航钩子-右侧后面 + $this->assign('plugins_view_header_navigation_top_right_end_data', Hook::listen('plugins_view_header_navigation_top_right_end', ['hook_name'=>'plugins_view_header_navigation_top_right_end', 'is_backend'=>false, 'user'=>$this->user])); // 用户登录页面顶部钩子 $this->assign('plugins_view_user_login_info_top_data', Hook::listen('plugins_view_user_login_info_top', ['hook_name'=>'plugins_view_user_login_info_top', 'is_backend'=>false, 'user'=>$this->user])); @@ -171,6 +180,12 @@ class Common extends Controller // 底部导航上面钩子 $this->assign('plugins_view_common_footer_top_data', Hook::listen('plugins_view_common_footer_top', ['hook_name'=>'plugins_view_common_footer_top', 'is_backend'=>false, 'user'=>$this->user])); + // logo右侧 + $this->assign('plugins_view_common_logo_right_data', Hook::listen('plugins_view_common_logo_right', ['hook_name'=>'plugins_view_common_logo_right', 'is_backend'=>false, 'user'=>$this->user])); + + // 公共搜索框右侧 + $this->assign('plugins_view_common_search_right_data', Hook::listen('plugins_view_common_search_right', ['hook_name'=>'plugins_view_common_search_right', 'is_backend'=>false, 'user'=>$this->user])); + // 公共表格钩子名称动态处理 $current = 'plugins_view_index_'.$this->controller_name; diff --git a/application/index/view/default/public/header_top_nav.html b/application/index/view/default/public/header_top_nav.html index db0a1e5e070805879e2d27e2b2e741594250e7da..45d889a9cda9ffe16a2e634d6257e463a7f48aa2 100755 --- a/application/index/view/default/public/header_top_nav.html +++ b/application/index/view/default/public/header_top_nav.html @@ -4,6 +4,20 @@ + diff --git a/application/index/view/default/public/nav_search.html b/application/index/view/default/public/nav_search.html index f87ce59c625cf27f008a23ed24918fe1f668d4b8..f5d3ea34c81f04bb8137324d4aab61895de14f2f 100755 --- a/application/index/view/default/public/nav_search.html +++ b/application/index/view/default/public/nav_search.html @@ -12,6 +12,20 @@ + + {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}} +
+ plugins_view_common_logo_right +
+ {{/if}} + {{if !empty($plugins_view_common_logo_right_data) and is_array($plugins_view_common_logo_right_data)}} + {{foreach $plugins_view_common_search_right_data as $hook}} + {{if is_string($hook) or is_int($hook)}} + {{$hook|raw}} + {{/if}} + {{/foreach}} + {{/if}} + \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index b23c3b701a5bb110df343aba23a7a9fb341e4849..f31bb9e56165bd4b5a225ab72ba0a4777aa2d22e 100755 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ 全局 1. 首页商品支持自定义配置 2. 首页左侧二级商品分类支持自定义配置 + 3. 快捷导航新增开关控制 web端 1. 后台管理小程序列表新增主题管理