Ggongfuxiangv6.3.0
fc93254f创建于 2024年10月21日历史提交
<div class="layout-container">
    {{if !empty($layout_data) and is_array($layout_data)}}
        {{foreach $layout_data as $k=>$v}}
            {{if !empty($v['value']) and !empty($v['children']) and is_array($v['children']) and !empty($v['value_arr']) and count($v['children']) eq count($v['value_arr']) and $v['status'] eq 1}}
                <div class="layout-view">
                    <div class="layout-content-children {{if !empty($v['config']) and !empty($v['config']['frontend_config'])}}{{$v.config.frontend_config.ent}}{{/if}}" style="{{if !empty($v['config']) and !empty($v['config']['frontend_config'])}}{{$v.config.frontend_config.style}}{{/if}}{{if !empty($v['config']['style_background_images'])}}background-image:url({{$v.config.style_background_images}});{{/if}}">
                        {{foreach $v.children as $ks=>$vs}}
                            {{if count($v['value_arr']) eq 1}}
                                {{:ModuleInclude('../../../module/view/layout/public/common/module_view', [
                                    'k'   => $k,
                                    'v'   => $v,
                                    'ks'  => $ks,
                                    'vs'  => $vs,
                                ])}}
                            {{else /}}
                                <div class="am-u-md-{{$v['value_arr'][$ks]}}">
                                    {{:ModuleInclude('../../../module/view/layout/public/common/module_view', [
                                        'k'   => $k,
                                        'v'   => $v,
                                        'ks'  => $ks,
                                        'vs'  => $vs,
                                    ])}}
                                </div>
                            {{/if}}
                        {{/foreach}}
                    </div>
                </div>
            {{/if}}
        {{/foreach}}
    {{/if}}
</div>