{#if $T.list && $T.list.length > 0} {#foreach $T.list as item}<div class="product col-md-4 col-sm-6 {#if $T.item.tags && $T.item.tags.length > 0}{#foreach $T.item.tags as item2} pf-{$T.item2.id} {#/for}{#/if}"><div class="grid-inner"><div class="product-image" data-lightbox="gallery"> {#if $T.item.sub_images_arr && $T.item.sub_images_arr.length == 0}<a href="https://oss.matchpages.cn/matchpages/common/2020/1022/5f914dc35e4c2.png" data-lightbox="gallery-item"><img src="https://oss.matchpages.cn/matchpages/common/2020/1022/5f914dc35e4c2.png" alt="{$T.item.name}"></a><a href="https://oss.matchpages.cn/matchpages/common/2020/1022/5f914dc35e4c2.png" data-lightbox="gallery-item"><img src="https://oss.matchpages.cn/matchpages/common/2020/1022/5f914dc35e4c2.png" alt="{$T.item.name}"></a> {#/if} {#if $T.item.sub_images_arr && $T.item.sub_images_arr.length == 1}<a href="{$T.item.sub_images_arr[0].url}" data-lightbox="gallery-item"><img src="{$T.item.sub_images_arr[0].url}" alt="{$T.item.sub_images_arr[0].alt}"></a><a href="{$T.item.sub_images_arr[0].url}" data-lightbox="gallery-item"><img src="{$T.item.sub_images_arr[0].url}" alt="{$T.item.sub_images_arr[0].alt}"></a> {#/if} {#if $T.item.sub_images_arr && $T.item.sub_images_arr.length == 2} {#foreach $T.item.sub_images_arr as subItem}<a href="{$T.subItem.url}" data-lightbox="gallery-item"><img src="{$T.subItem.url}" alt="{$T.subItem.alt}"></a> {#/for} {#/if} {#if $T.item.sub_images_arr && $T.item.sub_images_arr.length > 2}<div class="fslider" data-arrows="false"><div class="flexslider"><div class="slider-wrap" data-lightbox="gallery"> {#foreach $T.item.sub_images_arr as subItem}<div class="slide"><a href="{$T.subItem.url}" data-lightbox="gallery-item"><img src="{$T.subItem.url}" alt="{$T.subItem.alt}"></a></div> {#/for}</div></div></div> {#/if}<div class="bg-overlay"><div class="bg-overlay-content align-items-end justify-content-between"><a class="btn btn-dark show-magnific"><i class="icon-line-expand"></i></a> {#if $T.item.video_path != ''} {#if $T.item.video_type<= 1}<a href="#{$T.item.video_code}" class="btn btn-dark" data-lightbox="video" data-videopath="{$T.item.video_path}" data-videodesc="{$T.item.video_desc}" data-videoimageurl="{$T.item.image_url}"><i class="icon-line-play"></i></a> {#else}<a data-lightbox="iframe" href="{$T.item.video_iframe_str}" class="btn btn-dark"><i class="icon-line-play"></i></a> {#/if} {#/if}<a href="{$T.item.link}" class="btn btn-dark mr-2"><i class="icon-line-stack-2"></i></a></div><div class="bg-overlay-bg bg-transparent"></div></div></div><div class="product-desc"> {#if $T.item.custom_fields && $T.item.custom_fields.length > 0} {#foreach $T.item.custom_fields as cst} {#if $T.cst$index == 0}<div class="product-title __fo_va"><h3 class="__fo_va"><a class="__fo_va __ba_ho_fo_co" href="{$T.item.link}"> {$T.cst.label}</a></h3></div> {#/if} {#if $T.cst$index == 1 || $T.cst$index > 2}<div class="product-tag __fo_va"> {$T.cst.label}</div> {#/if} {#if $T.cst$index == 2} {#if $T.cst.name && $T.cst.name.toLowerCase() == 'star'}<div class="product-rating" data-rating="{$T.cst.label}"> {#if $T.cst.label<1} {#for idx = 1 to 5}<i class="icon-star-empty"></i> {#/for} {#/if} {#if $T.cst.label>=1 && $T.cst.label<=5} {#for idx = 1 to 5} {#if $T.idx<= $T.cst.label}<i class="icon-star3"></i> {#else}<i class="icon-star-empty"></i> {#/if} {#/for} {#/if} {#if $T.cst.label>5} {#for idx = 1 to 5}<i class="icon-star3"></i> {#/for} {#/if}</div> {#else}<div class="product-tag __fo_va"> {$T.cst.label}</div> {#/if} {#/if} {#/for} {#/if}</div></div></div> {#/for} {#/if}