vishwamano

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

commit 894ef110e6b70ba0d0a7bb9025d97a45905ce403
parent fc282c1c1c7025fc655ea6d9e99b1c331c52b981
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Tue, 30 Dec 2014 15:02:12 -0500

themes/bs3/templates/gallery.tpl: changed the foreach syntax to new Smartyv3.* foreach syntax.

Diffstat:
themes/bs3/templates/gallery.tpl | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/themes/bs3/templates/gallery.tpl b/themes/bs3/templates/gallery.tpl @@ -3,18 +3,22 @@ <div class="container-fluid"> <!-- top container start --> <div class="row"> <!-- first row start --> - {foreach name=g_for_outer from=$all_images key=g_desc item=images} - {if $smarty.foreach.g_for_outer.index % 3 == 0} + {foreach $all_images as $g_desc => $images} + + {if $images@index % 3 == 0} </div> <!-- close prev. row --> <div class="row"> <!-- start new row --> {/if} + <div class="col-sm-4"> <!-- {$g_desc} column start --> + <h1 class="gallery"> <span class="label label-inverse">{$g_desc}</span> </h1> + <div class="row"> <!-- first {$g_desc} row start --> - {foreach name=g_for_inner from=$images[0] key=i item=image} - {if $smarty.foreach.g_for_inner.index % 2 == 0} + {foreach $images[0] as $i => $image} + {if $image@index % 2 == 0} </div> <!-- close prev. row --> <div class="row"> <!-- start new row --> {/if} @@ -26,11 +30,13 @@ </div> {/foreach} </div> <!-- last {$g_desc} row end --> + <p class="text-center margin-top"> <a class="btn btn-primary btn-sm" href="{$doc_root}{$images[2]}"> more <span class="glyphicon glyphicon-plus"></span> </a> </p> + </div> <!-- {$g_desc} column end --> {/foreach}