联系官方销售客服
1835022288
028-61286886
网站幻灯片,怎么调用后台加了幻灯属性的文章和图片,并且超链接,代码哪里不对?
<!--幻灯片 -->
<div class="bg-white mt-2 d-none d-lg-block">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{php $block=dr_block('hdpgl');}
{loop $block.file $i $file}
<div class="carousel-item {if $i==0}active{/if}">
<a href="javascript:;"><img src="{dr_get_file($file)}" class="d-block w-100" alt="{$block['title'][$i]}"></a>
</div>
{/loop}
</div>
<!--<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">-->
<!-- <span class="carousel-control-prev-icon" aria-hidden="true"></span>-->
<!-- <span class="sr-only">Previous</span>-->
<!--</a>-->
<!--<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">-->
<!-- <span class="carousel-control-next-icon" aria-hidden="true"></span>-->
<!-- <span class="sr-only">Next</span>-->
<!--</a>-->
</div>
<!--<img src="{THEME_PATH}{SITE_THEME}/themes/images/hdp.jpg" width="100%" height="278px" alt="">-->
</div>