【发布时间】:2014-02-25 02:29:00
【问题描述】:
有没有人尝试使用 opencart 幻灯片模块的引导幻灯片?
这是我正在尝试但获取所有活动课程的代码。有人可以帮帮我。
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner slideshow <?php echo $module; ?>">
<div class="item active">
<?php foreach ($banners as $banner) { ?>
<?php if ($banner['link']) { ?>
<a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" /></a>
<?php } else { ?>
<img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" />
<?php } ?>
<?php } ?>
</div>
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
</div>
【问题讨论】:
-
可以有html版本吗?首先在浏览器中运行它,然后查看页面源代码。将
id="carousel-example-generic"的div及其内容复制粘贴到这里。 -
感谢您的回复。实际上我需要第一个 div 活动例如
标签: php jquery css twitter-bootstrap opencart