中间导航部分新增页面钩子
parent
23c1440ffa
commit
c19692423d
|
|
@ -615,6 +615,22 @@ class Common extends BaseController
|
|||
// 公共搜索框内右侧
|
||||
MyViewAssign('plugins_view_common_search_inside_right_data', MyEventTrigger('plugins_view_common_search_inside_right', ['hook_name'=>'plugins_view_common_search_inside_right', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
|
||||
// 中间导航左侧
|
||||
MyViewAssign('plugins_view_common_header_nav_left_data', MyEventTrigger('plugins_view_common_header_nav_left', ['hook_name'=>'plugins_view_common_header_nav_left', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 中间导航搜索内部
|
||||
MyViewAssign('plugins_view_common_header_nav_search_inside_data', MyEventTrigger('plugins_view_common_header_nav_search_inside', ['hook_name'=>'plugins_view_common_header_nav_search_inside', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 中间导航内容内部顶部
|
||||
MyViewAssign('plugins_view_common_header_nav_content_inside_top_data', MyEventTrigger('plugins_view_common_header_nav_content_inside_top', ['hook_name'=>'plugins_view_common_header_nav_content_inside_top', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 中间导航内容内部底部
|
||||
MyViewAssign('plugins_view_common_header_nav_content_inside_bottom_data', MyEventTrigger('plugins_view_common_header_nav_content_inside_bottom', ['hook_name'=>'plugins_view_common_header_nav_content_inside_bottom', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 中间导航右侧
|
||||
MyViewAssign('plugins_view_common_header_nav_right_data', MyEventTrigger('plugins_view_common_header_nav_right', ['hook_name'=>'plugins_view_common_header_nav_right', 'is_backend'=>false, 'user'=>$this->user]));
|
||||
|
||||
// 公共表格钩子名称动态处理
|
||||
$current = 'plugins_view_index_'.$this->controller_name;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,37 @@
|
|||
<header class="am-topbar shop-navigation">
|
||||
<div class="am-container">
|
||||
<!-- 中间导航左侧 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header_nav_left</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_header_nav_left_data) and is_array($plugins_view_common_header_nav_left_data)}}
|
||||
{{foreach $plugins_view_common_header_nav_left_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
<!-- 手机端导航伸展按钮 -->
|
||||
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-default am-show-sm-only switch-submit" data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
|
||||
|
||||
<!-- logo -->
|
||||
<h1 class="am-topbar-brand wap-logo am-show-sm-only">
|
||||
<a href="{{$home_url}}">
|
||||
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo_wap'))}}" alt="{{:MyC('home_seo_site_title')}}" />
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<!-- 全部分类 -->
|
||||
<a href="{{:MyUrl('index/category/index')}}" class="am-show-md-only">
|
||||
<div class="goods-category-title am-hide-sm-only">
|
||||
<span class="all-goods">全部分类</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<!-- 手机端搜索 -->
|
||||
<form class="am-topbar-form am-topbar-left am-form-inline am-show-sm-only navigation-search" role="search" action="{{:MyUrl('index/search/index')}}" method="POST">
|
||||
<div class="am-input-group am-input-group-sm">
|
||||
<input type="text" name="wd" class="am-form-field" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['wd'])}}{{$params.wd}}{{/if}}" autocomplete="off" />
|
||||
|
|
@ -23,9 +41,37 @@
|
|||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- 中间导航搜索内部 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header_nav_search_inside</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_header_nav_search_inside_data) and is_array($plugins_view_common_header_nav_search_inside_data)}}
|
||||
{{foreach $plugins_view_common_header_nav_search_inside_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</form>
|
||||
|
||||
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
|
||||
<!-- 中间导航内容内部顶部 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header_nav_content_inside_top</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_header_nav_content_inside_top_data) and is_array($plugins_view_common_header_nav_content_inside_top_data)}}
|
||||
{{foreach $plugins_view_common_header_nav_content_inside_top_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
{{if empty($user)}}
|
||||
<!-- 未登录操作栏 -->
|
||||
<div class="navigation-button am-show-sm-only">
|
||||
|
|
@ -64,7 +110,7 @@
|
|||
</ul>
|
||||
{{/if}}
|
||||
|
||||
<!-- 右侧导航 -->
|
||||
<!-- 导航右侧 -->
|
||||
<div class="am-topbar-right am-hide-sm-only">
|
||||
<!-- 快捷百宝箱 -->
|
||||
{{if MyC('home_navigation_main_quick_status') eq 1}}
|
||||
|
|
@ -78,6 +124,34 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<!-- 中间导航内容内部底部 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header_nav_content_inside_bottom</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_header_nav_content_inside_bottom_data) and is_array($plugins_view_common_header_nav_content_inside_bottom_data)}}
|
||||
{{foreach $plugins_view_common_header_nav_content_inside_bottom_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<!-- 中间导航右侧 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
|
||||
<div class="plugins-tag">
|
||||
<span>plugins_view_common_header_nav_right</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if !empty($plugins_view_common_header_nav_right_data) and is_array($plugins_view_common_header_nav_right_data)}}
|
||||
{{foreach $plugins_view_common_header_nav_right_data as $hook}}
|
||||
{{if is_string($hook) or is_int($hook)}}
|
||||
{{$hook|raw}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
Loading…
Reference in New Issue