mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
|
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
|
||
|
<ol class="carousel-indicators">
|
||
|
<?php
|
||
|
$i = 0;
|
||
|
foreach ($qslimages as $image) {
|
||
|
echo '<li data-target="#carouselExampleIndicators" data-slide-to="' . $i . '"';
|
||
|
if ($i == 0) {
|
||
|
echo 'class="active"';
|
||
|
}
|
||
|
$i++;
|
||
|
echo '></li>';
|
||
|
}
|
||
|
?>
|
||
|
</ol>
|
||
|
<div class="carousel-inner">
|
||
|
|
||
|
<?php
|
||
|
$i = 1;
|
||
|
foreach ($qslimages as $image) {
|
||
|
echo '<div class="text-center carousel-item carouselimageid_' . $image->id;
|
||
|
if ($i == 1) {
|
||
|
echo ' active';
|
||
|
}
|
||
|
echo '">';
|
||
|
echo '<img class="img-fluid w-qsl" src="' . base_url() . '/assets/qslcard/' . $image->filename .'" alt="QSL picture #'. $i++.'">';
|
||
|
echo '</div>';
|
||
|
}
|
||
|
?>
|
||
|
</div>
|
||
|
<a class="carousel-control-prev" href="#carouselExampleIndicators" 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="#carouselExampleIndicators" role="button" data-slide="next">
|
||
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||
|
<span class="sr-only">Next</span>
|
||
|
</a>
|
||
|
</div>
|