master
Lee 2022-11-08 09:01:01 +08:00
commit df31d2f384
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ $childrenMenu = Category::getChildrenByParentId($topCategoryId);
{foreach $images as $img} {foreach $images as $img}
<div class="swiper-slide"> <div class="swiper-slide">
<a href="{$img['link'] ?: 'javascript:;'}"> <a href="{$img['link'] ?: 'javascript:;'}">
<img src="{$img.src ?? ''}" alt="{$img.alt}"> <img src="{$img.src ?? ''}" alt="{$img.alt ?? ''}">
</a> </a>
</div> </div>
{/foreach} {/foreach}
@ -47,7 +47,7 @@ $childrenMenu = Category::getChildrenByParentId($topCategoryId);
<div class="resource-advantage w1360 wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0"> <div class="resource-advantage w1360 wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
{if !empty($resource)} {if !empty($resource)}
{foreach $resource as $res} {foreach $resource as $res}
<img src="{$res.src ?? ''}" alt="{$res.alt}" style="width: 100%;padding-top: 5px;"> <img src="{$res.src ?? ''}" alt="{$res.alt ?? ''}" style="width: 100%;padding-top: 5px;">
{/foreach} {/foreach}
{/if} {/if}
</div> </div>

View File

@ -17,7 +17,7 @@ $childrenMenu = Category::getChildrenByParentId($topCategoryId);
{foreach $images as $img} {foreach $images as $img}
<div class="swiper-slide"> <div class="swiper-slide">
<a href="{$img['link'] ?: 'javascript:;'}"> <a href="{$img['link'] ?: 'javascript:;'}">
<img src="{$img.src ?? ''}" alt="{$img.alt}"> <img src="{$img.src ?? ''}" alt="{$img.alt ?? ''}">
</a> </a>
</div> </div>
{/foreach} {/foreach}
@ -45,7 +45,7 @@ $childrenMenu = Category::getChildrenByParentId($topCategoryId);
<div class="resource-advantage wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0"> <div class="resource-advantage wow fadeInUp" data-wow-duration="0.8s" data-wow-delay="0">
{if !empty($resource)} {if !empty($resource)}
{foreach $resource as $res} {foreach $resource as $res}
<img src="{$res.src ?? ''}" alt="{$res.alt}" style="width: 100%;padding-top: 5px;"> <img src="{$res.src ?? ''}" alt="{$res.alt ?? ''}" style="width: 100%;padding-top: 5px;">
{/foreach} {/foreach}
{/if} {/if}
</div> </div>