vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit ed728db5bdebbd387417a56d4d34bbe61564f03f
parent a57655411b487bfa26531d1b2388112e10b303f7
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Thu,  4 Jun 2015 20:04:41 -0400

themes/bs3/templates/carousel.tpl: carousel `id' can be dynamically set now.

Diffstat:
themes/bs3/templates/carousel.tpl | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/themes/bs3/templates/carousel.tpl b/themes/bs3/templates/carousel.tpl @@ -1,4 +1,8 @@ -<div id="v-carousel" class="carousel slide" data-ride="carousel"> +{if not isset($cid)} + {$cid="v-carousel"} +{/if} + +<div id="{$cid}" class="carousel slide" data-ride="carousel"> {if isset($link)} <a href="{$link}"> @@ -24,11 +28,11 @@ {if isset($control)} <!-- Controls --> - <a class="left carousel-control" href="#v-carousel" role="button" data-slide="prev"> + <a class="left carousel-control" href="#{$cid}" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> - <a class="right carousel-control" href="#v-carousel" role="button" data-slide="next"> + <a class="right carousel-control" href="#{$cid}" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a>