{{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">
            <ul class="am-breadcrumb am-margin-bottom-0">
                {{foreach $breadcrumb_data as $v}}
                    {{if !empty($v['name'])}}
                        {{switch $v.type}}
                            {{case 0}}
                                <li {{if empty($v['url'])}}class="am-active"{{/if}}>
                                    {{if !empty($v['url'])}}<a href="{{$v.url}}">{{/if}}
                                    {{$v.name}}
                                    {{if !empty($v['url'])}}</a>{{/if}}
                                </li>
                            {{/case}}
                            {{case 1}}
                                {{if !empty($v['data']) and is_array($v['data'])}}
                                    <li>
                                        <div class="am-dropdown am-cursor-pointer" data-am-dropdown>
                                            <span class="am-dropdown-toggle" data-am-dropdown-toggle>{{$v.name}} <i class="am-icon-angle-down"></i></span>
                                            <ul class="am-dropdown-content am-radius">
                                                {{foreach $v.data as $vs}}
                                                    {{if !empty($vs['name']) and !empty($vs['url'])}}
                                                        <li><a href="{{$vs.url}}">{{$vs.name}}</a></li>
                                                    {{/if}}
                                                {{/foreach}}
                                            </ul>
                                        </div>
                                    </li>
                                {{/if}}
                            {{/case}}
                        {{/switch}}
                    {{/if}}      
                {{/foreach}}
            </ul>
        </div>
    </div>
{{/if}}