vishwamano

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

commit 7aa5cc0cfe3643bbccf343bcd396a11fc0a65338
parent 945c9bcbbef7e3796cb8e97bf85eacd247a8f74b
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 31 Dec 2014 17:07:04 -0500

updated frontpage to use the carousel markup at carousel.tpl

	modified:   index.php
	modified:   themes/bs3/templates/frontpage.tpl

Diffstat:
index.php | 4+++-
themes/bs3/templates/frontpage.tpl | 29+----------------------------
2 files changed, 4 insertions(+), 29 deletions(-)

diff --git a/index.php b/index.php @@ -30,8 +30,10 @@ Classes and Photography Services in Chennai'; $image_directory = $abs_path . '/images/carousel/'; $images = get_images($image_directory); +$carousel = array('imgs' => $images, + 'path' => '/images/carousel'); -$smarty->assign('cimages', $images); +$smarty->assign('carousel', $carousel); $smarty->assign('title', $title); $smarty->assign('meta_description', $meta_desc); $smarty->display('frontpage.tpl'); diff --git a/themes/bs3/templates/frontpage.tpl b/themes/bs3/templates/frontpage.tpl @@ -4,35 +4,8 @@ <div class="row"> <!-- top row start --> <div class="col-sm-8"> <!-- carousel column start --> - <div id="v-carousel" class="carousel slide" data-ride="carousel"> + {include file='carousel.tpl' link="/as/photography-classes" cimages=$carousel.imgs cpath=$carousel.path} - <!-- Wrapper for slides --> - <a href="/as/photography-classes"> - <div class="carousel-inner" role="listbox"> - - {foreach from=$cimages item=image name=vcarousel} - {if $smarty.foreach.vcarousel.index != 0} - <div class="item"> - {else} - <div class="item active"> - {/if} - <img class="img-responsive" - src="{$doc_root}images/carousel/{$image}" alt="[ carousel image - {$image} ]"> - </div> - {/foreach} - </div> - </a> - - <!-- 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> - </div> </div> <!-- carousel column end --> <div class="col-sm-4">