views-bootstrap-carousel-plugin-style.tpl.php in Views Bootstrap 7.3
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" role="listbox">
<?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;
?>" role="button" data-slide="prev">
<span class="icon-prev"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control right" href="#views-bootstrap-carousel-<?php
print $id;
?>" role="button" data-slide="next">
<span class="icon-next"></span>
<span class="sr-only">Next</span>
</a>
<?php
}
?>
</div>