新增主导航和底部内容开关

This commit is contained in:
gongfuxiang 2022-11-28 17:18:10 +08:00
parent 50fd904cca
commit 90d564ee7c
13 changed files with 448 additions and 381 deletions

View File

@ -464,9 +464,9 @@
</dd>
{{if !empty($site_store_links) and !empty($site_store_links['community_website'])}}
<dt class="am-text-truncate">交流社区</dt>
<dt class="am-text-truncate">交流提问</dt>
<dd>
<a href="{{$site_store_links.community_website}}" target="_blank">ShopXO交流社区</a>
<a href="{{$site_store_links.community_website}}" target="_blank">ShopXO交流提问</a>
</dd>
{{/if}}

View File

@ -116,6 +116,9 @@
<img src="{{$item['images']}}" class="am-img-thumbnail am-radius am-margin-right-xs am-fl" width="35" height="35" />
</a>
<a href="{{:MyUrl('index/goods/index', ['id'=>$item['goods_id']])}}" target="_blank" title="{{$item.title}}" {{if !empty($item['title_color'])}} style="color:{{$item.title_color}};" {{/if}} class="am-nowrap-initial">{{$item.title}}</a>
{{if !empty($item['model'])}}
<span class="am-badge am-badge-default-plain am-radius">{{$item.model}}</span>
{{/if}}
</div>
<div class="other am-nbfc">
{{if !empty($item['spec_text'])}}

View File

@ -57,6 +57,9 @@
</a>
<div class="am-nbfc">
<a href="{{$module_data.order_data.items.goods_url}}" target="_blank" class="am-nowrap-initial">{{$module_data.order_data.items.title}}</a>
{{if !empty($module_data.order_data.items.model)}}
<span class="am-badge am-badge-default-plain am-radius">{{$module_data.order_data.items.model}}</span>
{{/if}}
{{if !empty($module_data.order_data.items.spec)}}
<ul class="goods-spec am-margin-top-xs">
{{foreach $module_data.order_data.items.spec as $spec}}

View File

@ -19,6 +19,47 @@
<h3 class="am-panel-title">基础配置</h3>
</div>
<div class="am-panel-bd am-padding-vertical-xs">
<div class="am-form-group">
<label>{{$data.home_main_header_status.name}}<span class="am-form-group-label-tips">{{$data.home_main_header_status.describe}}</span></label>
<select name="{{$data.home_main_header_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_main_header_status.error_tips}}" required>
{{foreach $common_close_open_list as $v}}
<option value="{{$v.value}}" {{if isset($data['home_main_header_status']['value']) and $data['home_main_header_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>
</div>
<div class="am-form-group">
<label>{{$data.home_main_top_header_status.name}}<span class="am-form-group-label-tips">{{$data.home_main_top_header_status.describe}}</span></label>
<select name="{{$data.home_main_top_header_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_main_top_header_status.error_tips}}" required>
{{foreach $common_close_open_list as $v}}
<option value="{{$v.value}}" {{if isset($data['home_main_top_header_status']['value']) and $data['home_main_top_header_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>
</div>
<div class="am-form-group">
<label>{{$data.home_main_logo_search_status.name}}<span class="am-form-group-label-tips">{{$data.home_main_logo_search_status.describe}}</span></label>
<select name="{{$data.home_main_logo_search_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_main_logo_search_status.error_tips}}" required>
{{foreach $common_close_open_list as $v}}
<option value="{{$v.value}}" {{if isset($data['home_main_logo_search_status']['value']) and $data['home_main_logo_search_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>
</div>
<div class="am-form-group">
<label>{{$data.home_main_breadcrumb_header_status.name}}<span class="am-form-group-label-tips">{{$data.home_main_breadcrumb_header_status.describe}}</span></label>
<select name="{{$data.home_main_breadcrumb_header_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_main_breadcrumb_header_status.error_tips}}" required>
{{foreach $common_close_open_list as $v}}
<option value="{{$v.value}}" {{if isset($data['home_main_breadcrumb_header_status']['value']) and $data['home_main_breadcrumb_header_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>
</div>
<div class="am-form-group">
<label>{{$data.home_main_footer_content_status.name}}<span class="am-form-group-label-tips">{{$data.home_main_footer_content_status.describe}}</span></label>
<select name="{{$data.home_main_footer_content_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_main_footer_content_status.error_tips}}" required>
{{foreach $common_close_open_list as $v}}
<option value="{{$v.value}}" {{if isset($data['home_main_footer_content_status']['value']) and $data['home_main_footer_content_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
{{/foreach}}
</select>
</div>
<div class="am-form-group">
<label>{{$data.home_index_friendship_link_status.name}}<span class="am-form-group-label-tips">{{$data.home_index_friendship_link_status.describe}}</span></label>
<select name="{{$data.home_index_friendship_link_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_index_friendship_link_status.error_tips}}" required>

View File

@ -1,4 +1,4 @@
{{if !empty($breadcrumb_data)}}
{{if !empty($breadcrumb_data) and MyC('home_main_breadcrumb_header_status', 1) eq 1}}
<div class="breadcrumb-data am-hide-sm-only">
<div class="am-container">
<ol class="am-breadcrumb am-margin-bottom-0">

View File

@ -0,0 +1,33 @@
{{if !empty($home_site_icp)}}
<b>|</b>
<p class="footer-icp">
<a href="https://beian.miit.gov.cn/" target="_blank">
<img src="{{$attachment_host}}/static/common/images/beian-icp-icon.png" alt="ICP备案" />
{{$home_site_icp}}
</a>
</p>
{{/if}}
{{if !empty($home_site_security_record_name)}}
<b>|</b>
<p class="footer-icp">
<a {{if empty($home_site_security_record_url)}}href="javascript:;"{{else /}}href="{{$home_site_security_record_url}}" target="_blank"{{/if}}>
<img src="{{$attachment_host}}/static/common/images/beian-gongan-icon.png" alt="公安备案" />
{{$home_site_security_record_name}}
</a>
</p>
{{/if}}
{{if !empty($home_site_company_license)}}
<b>|</b>
<p class="footer-icp">
<a href="{{$home_site_company_license}}" target="_blank">
<img src="{{$attachment_host}}/static/common/images/beian-company-license-icon.png" alt="电子营业执照亮照" />
电子营业执照亮照
</a>
</p>
{{/if}}
{{if !empty($home_site_telecom_license)}}
<b>|</b>
<p class="footer-icp">
<a href="javascript:;">{{$home_site_telecom_license}}</a>
</p>
{{/if}}

View File

@ -12,7 +12,8 @@
{{/foreach}}
{{/if}}
{{if !IsMobile() or (IsMobile() and MyC('common_is_mobile_concise_model') neq 1)}}
<!-- 底部内容及页脚 -->
{{if MyC('home_main_footer_content_status', 1) eq 1 and (!IsMobile() or (IsMobile() and MyC('common_is_mobile_concise_model') neq 1))}}
<!-- 底部导航 -->
<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{}">
<div class="am-container">
@ -86,49 +87,18 @@
<p class="powered">
{{$home_theme_footer_bottom_powered|raw}} {{$Think.APPLICATION_VERSION}}
</p>
{{if !empty($home_site_icp)}}
<b>|</b>
<p class="footer-icp">
<a href="https://beian.miit.gov.cn/" target="_blank">
<img src="{{$attachment_host}}/static/common/images/beian-icp-icon.png" alt="ICP备案" />
{{$home_site_icp}}
</a>
</p>
{{/if}}
{{if !empty($home_site_security_record_name)}}
<b>|</b>
<p class="footer-icp">
<a {{if empty($home_site_security_record_url)}}href="javascript:;"{{else /}}href="{{$home_site_security_record_url}}" target="_blank"{{/if}}>
<img src="{{$attachment_host}}/static/common/images/beian-gongan-icon.png" alt="公安备案" />
{{$home_site_security_record_name}}
</a>
</p>
{{/if}}
{{if !empty($home_site_company_license)}}
<b>|</b>
<p class="footer-icp">
<a href="{{$home_site_company_license}}" target="_blank">
<img src="{{$attachment_host}}/static/common/images/beian-company-license-icon.png" alt="电子营业执照亮照" />
电子营业执照亮照
</a>
</p>
{{/if}}
{{if !empty($home_site_telecom_license)}}
<b>|</b>
<p class="footer-icp">
<a href="javascript:;">{{$home_site_telecom_license}}</a>
</p>
{{/if}}
{{include file="public/footer_filing" /}}
</div>
</div>
</footer>
{{else /}}
<footer class="am-footer am-footer am-footer-default mobile-concise-model">
<!-- 页脚信息 -->
<!-- 页脚信息 -->
<footer class="am-footer am-footer am-footer-default footer-base-content">
<div class="am-footer-miscs">
<p class="powered">
{{$home_theme_footer_bottom_powered|raw}} {{$Think.APPLICATION_VERSION}}
</p>
{{include file="public/footer_filing" /}}
</div>
</footer>
{{/if}}

View File

@ -1,11 +1,13 @@
<!-- 商品分类 -->
<div id="goods-category" class="am-container am-hide-sm-only am-hide-md-only" data-controller-name="{{$controller_name}}">
<div class="goods-category-s">
<a href="{{:MyUrl('index/category/index')}}">
<div class="goods-category-title">
<span class="all-goods">全部分类</span>
</div>
</a>
{{if MyC('home_main_header_status', 1) eq 1}}
<a href="{{:MyUrl('index/category/index')}}">
<div class="goods-category-title">
<span class="all-goods">全部分类</span>
</div>
</a>
{{/if}}
<div class="category-content" {{if (isset($common_goods_category_hidden) and $common_goods_category_hidden eq 1)}}style="display:none;"{{/if}}>
<div class="category">
<ul class="category-list">

View File

@ -1,157 +1,159 @@
<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}}
{{if MyC('home_main_header_status', 1) eq 1}}
<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>
<!-- 手机端导航伸展按钮 -->
<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')}}" />
<!-- 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>
</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" />
<span class="am-input-group-btn">
<button class="am-btn am-btn-default" type="submit">
<span class="am-icon-search am-icon-xs"></span>
</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>
<!-- 手机端搜索 -->
<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" />
<span class="am-input-group-btn">
<button class="am-btn am-btn-default" type="submit">
<span class="am-icon-search am-icon-xs"></span>
</button>
</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">
{{if !empty($home_user_login_type)}}
<a href="{{:MyUrl('index/user/logininfo')}}" class="am-btn am-btn-primary am-topbar-btn am-btn-sm">登录</a>
{{/if}}
{{if !empty($home_user_reg_type)}}
<a href="{{:MyUrl('index/user/reginfo')}}" class="am-btn am-btn-success am-topbar-btn am-btn-sm">注册</a>
{{/if}}
</div>
{{/if}}
<!-- 主导航 -->
{{if !empty($nav_header)}}
<ul class="am-nav am-nav-pills am-topbar-nav">
{{foreach $nav_header as $nav}}
{{if empty($nav['items'])}}
<li>
<a href="{{$nav.url}}" {{if $nav['is_new_window_open'] eq 1}}target="_blank"{{/if}} title="{{$nav.name}}" {{if isset($nav['active']) and $nav['active'] eq 1}}class="active"{{/if}}>{{$nav.name}}</a>
</li>
{{else /}}
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle {{if isset($nav['active']) and $nav['active'] eq 1}}active{{/if}}" data-am-dropdown-toggle href="javascript:;">
{{$nav.name}} <span class="am-icon-caret-down"></span>
</a>
<ul class="am-dropdown-content">
{{foreach $nav.items as $navs}}
<li>
<a href="{{$navs.url}}" title="{{$navs.name}}" {{if isset($navs['active']) and $navs['active'] eq 1}}class="active"{{/if}}>{{$navs.name}}</a>
</li>
{{/foreach}}
</ul>
</li>
{{/if}}
{{/foreach}}
</ul>
{{/if}}
<!-- 导航右侧 -->
<div class="am-topbar-right am-hide-sm-only">
<!-- 快捷百宝箱 -->
{{if MyC('home_navigation_main_quick_status') eq 1}}
<div class="navigation-main-quick">
<a href="javascript:;" class="am-block" data-am-modal="{target: '#left-main-quick-popup'}">
<span class="am-icon-sliders icon"></span>
<b class="am-block"></b>
<p class="am-text-truncate name">{{:MyC('home_navigation_main_quick_name', '百宝箱', true)}}</p>
<i class="am-icon-angle-down"></i>
</a>
<!-- 中间导航搜索内部 -->
{{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">
{{if !empty($home_user_login_type)}}
<a href="{{:MyUrl('index/user/logininfo')}}" class="am-btn am-btn-primary am-topbar-btn am-btn-sm">登录</a>
{{/if}}
{{if !empty($home_user_reg_type)}}
<a href="{{:MyUrl('index/user/reginfo')}}" class="am-btn am-btn-success am-topbar-btn am-btn-sm">注册</a>
{{/if}}
</div>
{{/if}}
<!-- 主导航 -->
{{if !empty($nav_header)}}
<ul class="am-nav am-nav-pills am-topbar-nav">
{{foreach $nav_header as $nav}}
{{if empty($nav['items'])}}
<li>
<a href="{{$nav.url}}" {{if $nav['is_new_window_open'] eq 1}}target="_blank"{{/if}} title="{{$nav.name}}" {{if isset($nav['active']) and $nav['active'] eq 1}}class="active"{{/if}}>{{$nav.name}}</a>
</li>
{{else /}}
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle {{if isset($nav['active']) and $nav['active'] eq 1}}active{{/if}}" data-am-dropdown-toggle href="javascript:;">
{{$nav.name}} <span class="am-icon-caret-down"></span>
</a>
<ul class="am-dropdown-content">
{{foreach $nav.items as $navs}}
<li>
<a href="{{$navs.url}}" title="{{$navs.name}}" {{if isset($navs['active']) and $navs['active'] eq 1}}class="active"{{/if}}>{{$navs.name}}</a>
</li>
{{/foreach}}
</ul>
</li>
{{/if}}
{{/foreach}}
</ul>
{{/if}}
<!-- 导航右侧 -->
<div class="am-topbar-right am-hide-sm-only">
<!-- 快捷百宝箱 -->
{{if MyC('home_navigation_main_quick_status') eq 1}}
<div class="navigation-main-quick">
<a href="javascript:;" class="am-block" data-am-modal="{target: '#left-main-quick-popup'}">
<span class="am-icon-sliders icon"></span>
<b class="am-block"></b>
<p class="am-text-truncate name">{{:MyC('home_navigation_main_quick_name', '百宝箱', true)}}</p>
<i class="am-icon-angle-down"></i>
</a>
</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_content_inside_bottom</span>
<span>plugins_view_common_header_nav_right</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 !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>
<!-- 中间导航右侧 -->
{{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>
</header>
{{/if}}

View File

@ -1,140 +1,142 @@
<!-- 顶部导航条 start -->
<div class="header-top">
<div class="am-container header">
<ul class="top-nav-left">
<div class="top-nav-items">
<div class="menu-hd">
<!-- 公共顶部小导航钩子-左侧前面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_begin</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_left_begin_data) and is_array($plugins_view_header_navigation_top_left_begin_data)}}
{{foreach $plugins_view_header_navigation_top_left_begin_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{if MyC('home_main_top_header_status', 1) eq 1}}
<!-- 顶部导航条 start -->
<div class="header-top">
<div class="am-container header">
<ul class="top-nav-left">
<div class="top-nav-items">
<div class="menu-hd">
<!-- 公共顶部小导航钩子-左侧前面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_begin</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_left_begin_data) and is_array($plugins_view_header_navigation_top_left_begin_data)}}
{{foreach $plugins_view_header_navigation_top_left_begin_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
{{if empty($user)}}
<em>您好,欢迎来到</em>
<em>{{:MyC('home_site_name')}}</em>
{{if !empty($home_user_login_type)}}
[<a href="{{:MyUrl('index/user/logininfo')}}">登录</a>]
{{/if}}
{{/foreach}}
{{/if}}
{{if empty($user)}}
<em>您好,欢迎来到</em>
<em>{{:MyC('home_site_name')}}</em>
{{if !empty($home_user_login_type)}}
[<a href="{{:MyUrl('index/user/logininfo')}}">登录</a>]
{{/if}}
{{if !empty($home_user_reg_type)}}
[<a href="{{:MyUrl('index/user/reginfo')}}">注册</a>]
{{/if}}
{{else /}}
<em>您好</em>
{{if !empty($user['icon'])}}
<img src="{{$user.icon}}" class="common-user-icon" {{if !empty($user['icon_title'])}}title="{{$user.icon_title}}"{{/if}} />
{{/if}}
<em>{{$user.user_name_view}},欢迎来到</em>
<em>{{:MyC('home_site_name')}}</em>
[<a href="{{:MyUrl('index/user/logout')}}">退出</a>]
{{/if}}
<!-- 公共顶部小导航钩子-左侧后面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_end</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_left_end_data) and is_array($plugins_view_header_navigation_top_left_end_data)}}
{{foreach $plugins_view_header_navigation_top_left_end_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{if !empty($home_user_reg_type)}}
[<a href="{{:MyUrl('index/user/reginfo')}}">注册</a>]
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
</ul>
{{else /}}
<em>您好</em>
{{if !empty($user['icon'])}}
<img src="{{$user.icon}}" class="common-user-icon" {{if !empty($user['icon_title'])}}title="{{$user.icon_title}}"{{/if}} />
{{/if}}
<em>{{$user.user_name_view}},欢迎来到</em>
<em>{{:MyC('home_site_name')}}</em>
[<a href="{{:MyUrl('index/user/logout')}}">退出</a>]
{{/if}}
<ul class="top-nav-right">
<!-- 公共顶部小导航钩子-右侧前面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_begin</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_right_begin_data) and is_array($plugins_view_header_navigation_top_right_begin_data)}}
{{foreach $plugins_view_header_navigation_top_right_begin_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
<!-- 非首页则展示首页入口 -->
{{if MyC('home_header_top_is_home', 0) eq 1 and $module_name.$controller_name.$action_name neq 'indexindexindex'}}
<div class="top-nav-items top-nav-items-home">
<div class="menu-hd ">
<a href="{{$home_url}}" target="_top">
<i class="am-icon-fw am-icon-home"></i>
<span>商城首页</span>
</a>
<!-- 公共顶部小导航钩子-左侧后面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_left_end</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_left_end_data) and is_array($plugins_view_header_navigation_top_left_end_data)}}
{{foreach $plugins_view_header_navigation_top_left_end_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
{{/if}}
</ul>
<!-- 右侧导航 -->
{{if !empty($common_nav_top_right_list) and is_array($common_nav_top_right_list)}}
{{foreach $common_nav_top_right_list as $nav}}
{{if empty($nav['items'])}}
<div class="top-nav-items {{if !empty($nav['type'])}}top-nav-items-{{$nav.type}}{{/if}}">
<div class="menu-hd {{if isset($nav['is_login']) and $nav['is_login'] eq 1 and empty($user)}}login-event{{/if}}">
<a href="{{if empty($user)}}javascript:;{{else /}}{{$nav.url}}{{/if}}" target="_top">
<i class="am-icon-fw {{$nav.icon}}"></i>
<span>{{$nav.name}}</span>
{{if isset($nav['badge']) and $nav['badge'] gt -1}}
{{if $nav['badge'] gt 0}}
<strong class="am-badge am-badge-danger am-round {{if isset($nav['type']) and $nav['type'] eq 'cart'}}common-cart-total{{/if}}">{{$nav.badge}}</strong>
{{else /}}
<strong class="am-round {{if isset($nav['type']) and $nav['type'] eq 'cart'}}common-cart-total{{/if}}">{{$nav.badge}}</strong>
<ul class="top-nav-right">
<!-- 公共顶部小导航钩子-右侧前面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_begin</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_right_begin_data) and is_array($plugins_view_header_navigation_top_right_begin_data)}}
{{foreach $plugins_view_header_navigation_top_right_begin_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
<!-- 非首页则展示首页入口 -->
{{if MyC('home_header_top_is_home', 0) eq 1 and $module_name.$controller_name.$action_name neq 'indexindexindex'}}
<div class="top-nav-items top-nav-items-home">
<div class="menu-hd ">
<a href="{{$home_url}}" target="_top">
<i class="am-icon-fw am-icon-home"></i>
<span>商城首页</span>
</a>
</div>
</div>
{{/if}}
<!-- 右侧导航 -->
{{if !empty($common_nav_top_right_list) and is_array($common_nav_top_right_list)}}
{{foreach $common_nav_top_right_list as $nav}}
{{if empty($nav['items'])}}
<div class="top-nav-items {{if !empty($nav['type'])}}top-nav-items-{{$nav.type}}{{/if}}">
<div class="menu-hd {{if isset($nav['is_login']) and $nav['is_login'] eq 1 and empty($user)}}login-event{{/if}}">
<a href="{{if empty($user)}}javascript:;{{else /}}{{$nav.url}}{{/if}}" target="_top">
<i class="am-icon-fw {{$nav.icon}}"></i>
<span>{{$nav.name}}</span>
{{if isset($nav['badge']) and $nav['badge'] gt -1}}
{{if $nav['badge'] gt 0}}
<strong class="am-badge am-badge-danger am-round {{if isset($nav['type']) and $nav['type'] eq 'cart'}}common-cart-total{{/if}}">{{$nav.badge}}</strong>
{{else /}}
<strong class="am-round {{if isset($nav['type']) and $nav['type'] eq 'cart'}}common-cart-total{{/if}}">{{$nav.badge}}</strong>
{{/if}}
{{/if}}
{{/if}}
</a>
</a>
</div>
</div>
</div>
{{else /}}
<div class="top-nav-items {{if !empty($nav['type'])}}top-nav-items-{{$nav.type}}{{/if}}">
<div class="am-dropdown menu-hd" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" target="_top" data-am-dropdown-toggle>
<i class="am-icon-fw {{$nav.icon}}"></i>
<span>{{$nav.name}}</span>
<i class="am-icon-angle-down"></i>
</a>
<ul class="am-dropdown-content">
{{foreach $nav.items as $navs}}
<li class="{{if ((isset($nav['is_login']) and $nav['is_login'] eq 1) or (isset($navs['is_login']) and $navs['is_login'] eq 1)) and empty($user)}}login-event{{/if}}">
<a href="{{if ((isset($nav['is_login']) and $nav['is_login'] eq 1) or (isset($navs['is_login']) and $navs['is_login'] eq 1)) and empty($user)}}javascript:;{{else /}}{{$navs.url}}{{/if}}">{{$navs.name}}</a>
</li>
{{/foreach}}
</ul>
{{else /}}
<div class="top-nav-items {{if !empty($nav['type'])}}top-nav-items-{{$nav.type}}{{/if}}">
<div class="am-dropdown menu-hd" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" target="_top" data-am-dropdown-toggle>
<i class="am-icon-fw {{$nav.icon}}"></i>
<span>{{$nav.name}}</span>
<i class="am-icon-angle-down"></i>
</a>
<ul class="am-dropdown-content">
{{foreach $nav.items as $navs}}
<li class="{{if ((isset($nav['is_login']) and $nav['is_login'] eq 1) or (isset($navs['is_login']) and $navs['is_login'] eq 1)) and empty($user)}}login-event{{/if}}">
<a href="{{if ((isset($nav['is_login']) and $nav['is_login'] eq 1) or (isset($navs['is_login']) and $navs['is_login'] eq 1)) and empty($user)}}javascript:;{{else /}}{{$navs.url}}{{/if}}">{{$navs.name}}</a>
</li>
{{/foreach}}
</ul>
</div>
</div>
</div>
{{/if}}
{{/foreach}}
{{/if}}
{{/if}}
{{/foreach}}
{{/if}}
<!-- 公共顶部小导航钩子-右侧后面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_end</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_right_end_data) and is_array($plugins_view_header_navigation_top_right_end_data)}}
{{foreach $plugins_view_header_navigation_top_right_end_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</ul>
<!-- 公共顶部小导航钩子-右侧后面 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_header_navigation_top_right_end</span>
</div>
{{/if}}
{{if !empty($plugins_view_header_navigation_top_right_end_data) and is_array($plugins_view_header_navigation_top_right_end_data)}}
{{foreach $plugins_view_header_navigation_top_right_end_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</ul>
</div>
</div>
</div>
<!-- 顶部导航条 end -->
<!-- 顶部导航条 end -->
{{/if}}

View File

@ -1,92 +1,94 @@
<!-- 搜索框 start -->
<div class="nav-search white am-hide-sm-only">
<div class="am-container">
<div class="logo am-show-sm-only">
<a href="{{$home_url}}">
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo_wap'))}}" alt="{{:MyC('home_seo_site_title')}}" />
</a>
</div>
<div class="logo-big am-hide-sm-only">
<a href="{{$home_url}}">
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo'))}}" alt="{{:MyC('home_seo_site_title')}}" />
</a>
</div>
<!-- logo右侧 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_common_logo_right</span>
{{if MyC('home_main_logo_search_status', 1) eq 1}}
<!-- 搜索框 start -->
<div class="nav-search white am-hide-sm-only">
<div class="am-container">
<div class="logo am-show-sm-only">
<a href="{{$home_url}}">
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo_wap'))}}" alt="{{:MyC('home_seo_site_title')}}" />
</a>
</div>
<div class="logo-big am-hide-sm-only">
<a href="{{$home_url}}">
<img src="{{:AttachmentPathViewHandle(MyC('home_site_logo'))}}" alt="{{:MyC('home_seo_site_title')}}" />
</a>
</div>
{{/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}}
<div class="search-bar">
<!-- 公共搜索框内左侧 -->
<!-- logo右侧 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_common_search_inside_left</span>
<span>plugins_view_common_logo_right</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_search_inside_left_data) and is_array($plugins_view_common_search_inside_left_data)}}
{{foreach $plugins_view_common_search_inside_left_data as $hook}}
{{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}}
<!-- 搜索框 -->
<form action="{{:MyUrl('index/search/index')}}" method="POST">
<div class="search-group">
<input id="search-input" name="wd" type="text" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['wd'])}}{{$params.wd}}{{/if}}" autocomplete="off" />
<button type="submit" id="ai-topsearch" class="submit am-btn">
<i class="am-icon-search"></i>
<span>搜索</span>
</button>
</div>
{{if !empty($home_search_keywords)}}
<ul class="search-hot-keywords">
{{foreach $home_search_keywords as $v}}
<li><a href="{{:MyUrl('index/search/index', ['wd'=>StrToAscii($v)])}}" target="_blank">{{$v}}</a></li>
{{/foreach}}
</ul>
<div class="search-bar">
<!-- 公共搜索框内左侧 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_common_search_inside_left</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_search_inside_left_data) and is_array($plugins_view_common_search_inside_left_data)}}
{{foreach $plugins_view_common_search_inside_left_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</form>
<!-- 公共搜索框内右侧 -->
<!-- 搜索框 -->
<form action="{{:MyUrl('index/search/index')}}" method="POST">
<div class="search-group">
<input id="search-input" name="wd" type="text" placeholder="其实搜索很简单^_^ !" value="{{if !empty($params['wd'])}}{{$params.wd}}{{/if}}" autocomplete="off" />
<button type="submit" id="ai-topsearch" class="submit am-btn">
<i class="am-icon-search"></i>
<span>搜索</span>
</button>
</div>
{{if !empty($home_search_keywords)}}
<ul class="search-hot-keywords">
{{foreach $home_search_keywords as $v}}
<li><a href="{{:MyUrl('index/search/index', ['wd'=>StrToAscii($v)])}}" target="_blank">{{$v}}</a></li>
{{/foreach}}
</ul>
{{/if}}
</form>
<!-- 公共搜索框内右侧 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_common_search_inside_right</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_search_inside_right_data) and is_array($plugins_view_common_search_inside_right_data)}}
{{foreach $plugins_view_common_search_inside_right_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_search_inside_right</span>
<span>plugins_view_common_search_right</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_search_inside_right_data) and is_array($plugins_view_common_search_inside_right_data)}}
{{foreach $plugins_view_common_search_inside_right_data as $hook}}
{{if !empty($plugins_view_common_search_right_data) and is_array($plugins_view_common_search_right_data)}}
{{foreach $plugins_view_common_search_right_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_search_right</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_search_right_data) and is_array($plugins_view_common_search_right_data)}}
{{foreach $plugins_view_common_search_right_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
</div>
<!-- 搜索框 end -->
<!-- 搜索框 end -->
{{/if}}

View File

@ -12,7 +12,7 @@
<a href="http://store.shopxo.net/" target="_blank" title="应用商店">应用商店</a>
</span>
<span class="am-footer-divider"> &nbsp;&nbsp;| &nbsp;&nbsp; </span>
<a href="http://ask.shopxo.net/" target="_blank" title="官方论坛">官方论坛</a>
<a href="http://ask.shopxo.net/" target="_blank" title="交流提问">交流提问</a>
</div>
<div class="am-footer-miscs">
<p><a href="http://shopxo.net/" title="ShopXO" target="_blank" class="">ShopXO</a> 提供技术支持</p>

View File

@ -375,19 +375,28 @@ input.add,input.min{width:15px}
}
/**
* 底部-手机简洁模式
* 底部-简洁模式
*/
.mobile-concise-model {
.footer-base-content {
border-top: 0;
background: #fff;
color: #999;
margin-top: 0;
padding: 0;
}
.mobile-concise-model .am-footer-miscs {
.footer-base-content .am-footer-miscs {
padding: 5px 0;
margin-top: 0;
}
.footer-base-content b {
color: #ededed;
}
.footer-base-content a {
color: #666;
}
.footer-base-content a:hover {
color: #333;
}
/**
* 友情链接