views-bootstrap-carousel-plugin-style.tpl.php in Views Bootstrap 7.2
File
templates/carousel/views-bootstrap-carousel-plugin-style.tpl.php
View source
<?php
if (!empty($title)) {
?>
<h3><?php
print $title;
?></h3>
<?php
}
?>
<div id="views-bootstrap-carousel-<?php
print $id;
?>" class="<?php
print $classes;
?>" <?php
print $attributes;
?>>
<?php
if ($indicators) {
?>
<!-- Carousel indicators -->
<ol class="carousel-indicators">
<?php
foreach ($rows as $key => $value) {
?>
<li data-target="#views-bootstrap-carousel-<?php
print $id;
?>" data-slide-to="<?php
print $key;
?>" class="<?php
if ($key == $first_key) {
print 'active';
}
?>"></li>
<?php
}
?>
</ol>
<?php
}
?>
<!-- Carousel items -->
<div class="carousel-inner">
<?php
foreach ($rows as $key => $row) {
?>
<div class="item <?php
if ($key == $first_key) {
print 'active';
}
?>">
<?php
print $row;
?>
</div>
<?php
}
?>
</div>
<?php
if ($navigation) {
?>
<!-- Carousel navigation -->
<a class="carousel-control left" href="#views-bootstrap-carousel-<?php
print $id;
?>" data-slide="prev">‹</a>
<a class="carousel-control right" href="#views-bootstrap-carousel-<?php
print $id;
?>" data-slide="next">›</a>
<?php
}
?>
</div>