<!-- is footer hook -->
{{if empty($module_data) or !isset($module_data['is_footer_hook']) or $module_data['is_footer_hook'] eq 1}}
    <!-- 底部导航上面钩子 -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
        <div class="plugins-tag">
            <span>plugins_view_common_footer_top</span>
        </div>
    {{/if}}
    {{if !empty($plugins_view_common_footer_top_data) and is_array($plugins_view_common_footer_top_data)}}
        {{foreach $plugins_view_common_footer_top_data as $hook}}
            {{if is_string($hook) or is_int($hook)}}
                {{$hook|raw}}
            {{/if}}
        {{/foreach}}
    {{/if}}
{{/if}}

<!-- 底部内容及页脚 -->
{{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="{}">
        {{if empty($module_data) or !isset($module_data['is_footer_nav_content']) or $module_data['is_footer_nav_content'] eq 1}}
            <div class="am-container footer-nav-content">
                <!-- 底部导航 -->
                {{if !empty($nav_footer)}}
                    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-avg-lg-4 am-gallery-overlay am-no-layout am-u-md-8 am-u-lg-9 footer-nav-list theme-data-edit-event" data-module="navigation_footer" data-am-gallery="{}">
                        {{foreach $nav_footer as $k=>$v}}
                            {{if $k lt 4}}
                                <li>
                                    <div class="am-gallery-item">
                                        <p class="footer-nav-title am-text-truncate">{{$v.name}}</p>
                                        {{if !empty($v['items'])}}
                                            {{foreach $v.items as $vs}}
                                                <p class="am-text-truncate">
                                                    <a href="{{$vs.url}}" {{if $vs['is_new_window_open'] eq 1}}target="_blank"{{/if}}>{{$vs.name}}</a>
                                                </p>
                                            {{/foreach}}
                                        {{/if}}
                                    </div>
                                </li>
                            {{/if}}
                        {{/foreach}}
                    </ul>
                {{/if}}

                <!-- 商店信息 -->
                {{if !empty($site_info_data) and is_array($site_info_data)}}
                    <ul class="footer-about am-u-md-4 am-u-lg-3 theme-data-edit-event" data-module="store_config">
                        <!-- 客服信息 -->
                        {{if !empty($site_info_data['chat']['data']['text']) and is_array($site_info_data['chat']['data']['text'])}}
                            {{foreach $site_info_data.chat.data.text as $v}}
                                {{if !empty($v['value']) and !empty($v['key'])}}
                                    <li class="am-text-left">
                                        <i class="iconfont {{$v.icon}} am-vertical-align-middle"></i>
                                        {{switch $v.key}}
                                            {{case tel}}
                                                <a href="tel:{{$v.value}}" class="am-vertical-align-middle">{{$v.value}}</a>
                                            {{/case}}
                                            {{case email}}
                                                <a href="mailto:{{$v.value}}" class="am-vertical-align-middle">{{$v.value}}</a>
                                            {{/case}}
                                            {{case qq}}
                                                <a href="https://wpa.qq.com/msgrd?v=3&uin={{$v.value}}&site=qq&menu=yes" target="_blank" class="am-vertical-align-middle">{{$v.value}}</a>
                                            {{/case}}
                                            {{case url}}
                                                <a href="{{$v.value}}" target="_blank" class="am-vertical-align-middle">{{$v.name}}</a>
                                            {{/case}}
                                            {{default /}}
                                                <span class="am-vertical-align-middle">{{$v.value}}</span>
                                        {{/switch}}
                                    </li>
                                {{/if}}
                            {{/foreach}}
                        {{/if}}

                        <!-- 基础信息 -->
                        {{if !empty($site_info_data['base']['data']['text']) and is_array($site_info_data['base']['data']['text'])}}
                            {{foreach $site_info_data.base.data.text as $v}}
                                {{if !empty($v['value']) and !empty($v['key'])}}
                                    <li class="am-text-left">
                                        <i class="iconfont {{$v.icon}} am-vertical-align-middle"></i>
                                        <span class="am-vertical-align-middle">{{$v.value}}</span>
                                    </li>
                                {{/if}}
                            {{/foreach}}
                        {{/if}}

                        <!-- 图片信息 -->
                        {{if (!empty($site_info_data['chat']['data']['images']) and is_array($site_info_data['chat']['data']['images'])) or (!empty($site_info_data['base']['data']['images']) and is_array($site_info_data['base']['data']['images'])) or (!empty($site_info_data['client']['data']['images']) and is_array($site_info_data['client']['data']['images']))}}
                            <li class="am-padding-right-0">
                                <ul class=" am-avg-sm-3 am-avg-md-3 am-text-center am-margin-top-xs am-margin-bottom-0">
                                    <!-- 客服图片 -->
                                    {{if !empty($site_info_data['chat']['data']['images']) and is_array($site_info_data['chat']['data']['images'])}}
                                        {{foreach $site_info_data.chat.data.images as $v}}
                                            {{if !empty($v['value']) and !empty($v['name'])}}
                                                <li class="am-padding-bottom-xs am-padding-right-sm">
                                                    <img src="{{$v.value}}" class="am-radius am-max-wh-auto common-annex-view-event" data-title="{{$v.name}}" alt="{{$v.name}}" />
                                                    <p class="am-text-xs">{{$v.name}}</p>
                                                </li>
                                            {{/if}}
                                        {{/foreach}}
                                    {{/if}}
                                    <!-- 基础图片 -->
                                    {{if !empty($site_info_data['base']['data']['images']) and is_array($site_info_data['base']['data']['images'])}}
                                        {{foreach $site_info_data.base.data.images as $v}}
                                            {{if !empty($v['value']) and !empty($v['name'])}}
                                                <li class="am-padding-bottom-xs am-padding-right-sm">
                                                    <img src="{{$v.value}}" class="am-radius am-max-wh-auto common-annex-view-event" data-title="{{$v.name}}" alt="{{$v.name}}" />
                                                    <p class="am-text-xs">{{$v.name}}</p>
                                                </li>
                                            {{/if}}
                                        {{/foreach}}
                                    {{/if}}
                                    <!-- 平台客户端图片 -->
                                    {{if !empty($site_info_data['client']['data']['images']) and is_array($site_info_data['client']['data']['images'])}}
                                        {{foreach $site_info_data.client.data.images as $v}}
                                            {{if !empty($v['value']) and !empty($v['name'])}}
                                                <li class="am-padding-bottom-xs am-padding-right-sm">
                                                    <img src="{{$v.value}}" class="am-radius am-max-wh-auto common-annex-view-event" data-title="{{$v.name}}" alt="{{$v.name}}" />
                                                    <p class="am-text-xs">{{$v.name}}</p>
                                                </li>
                                            {{/if}}
                                        {{/foreach}}
                                    {{/if}}
                                </ul>
                            </li>
                        {{/if}}
                    </ul>
                {{/if}}
            </div>

            <!-- 页脚 -->
            <div class="am-footer-miscs">
                <div class="am-container">
                    <!-- 友情链接 -->
                    {{if !empty($link_list)}}
                        <div class="friendship-list theme-data-edit-event" data-module="link_list">
                            <ul class="am-cf am-margin-bottom-sm">
                                <li class="am-fl am-text-center title">友情链接</li>
                                {{foreach $link_list as $v}}
                                    <li class="am-fl am-text-center">
                                        <a href="{{$v.url}}" {{if $v['is_new_window_open'] eq 1}} target="_blank"{{/if}}>{{$v.name}}</a>
                                    </li>
                                {{/foreach}}
                            </ul>
                        </div>
                    {{/if}}

                    <!-- 页脚信息 -->
                    {{:ModuleInclude('public/footer_filing')}}
                </div>
            </div>
        {{else /}}
            <div class="am-footer-miscs">
                {{:ModuleInclude('public/footer_filing')}}
            </div>
        {{/if}}
    </footer>
{{else /}}
    <!-- 页脚 -->
    <footer class="am-footer am-footer am-footer-default footer-base-content">
        <div class="am-footer-miscs">
            {{:ModuleInclude('public/footer_filing')}}
        </div>
    </footer>
{{/if}}