vishwamano

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

commit 945c9bcbbef7e3796cb8e97bf85eacd247a8f74b
parent cd0157b91104d16fb70150d872e72294cc21a1ac
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 31 Dec 2014 17:03:55 -0500

Added carousel markup in a seperate page. This will used by pages using a carousel.

new file:   themes/bs3/templates/carousel.tpl

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

diff --git a/themes/bs3/templates/carousel.tpl b/themes/bs3/templates/carousel.tpl @@ -0,0 +1,36 @@ +<div id="v-carousel" class="carousel slide" data-ride="carousel"> + + {if isset($link)} + <a href="{$link}"> + {/if} + <!-- Wrapper for slides --> + <div class="carousel-inner" role="listbox"> + + {foreach $cimages as $image} + {if $image@index != 0} + <div class="item"> + {else} + <div class="item active"> + {/if} + <img class="img-responsive" + src="{$cpath}/{$image}" alt="[ carousel image - {$image} ]"> + </div> + {/foreach} + </div> + + {if isset($link)} + </a> + {/if} + + {if isset($control)} + <!-- Controls --> + <a class="left carousel-control" href="#v-carousel" 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"> + <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> + <span class="sr-only">Next</span> + </a> + {/if} +</div>