vishwamano

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

commit 1899924bc24eae8a9b3168412ce0f7baf071e9b0
parent 7aa5cc0cfe3643bbccf343bcd396a11fc0a65338
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 31 Dec 2014 17:10:25 -0500

Added carousel and static images in the photography classes page.

	modified:   as/photography-classes/index.php
	modified:   themes/bs3/templates/p-classes.tpl

Diffstat:
as/photography-classes/index.php | 18+++++++++++++++++-
themes/bs3/templates/p-classes.tpl | 14+++++++++++++-
2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/as/photography-classes/index.php b/as/photography-classes/index.php @@ -38,7 +38,7 @@ beginners by Vishwa Manoharan.'; $pc_title = "Photography Classes"; $pc_intro = " <p> '<strong>Apertures and Shutters</strong>' is my start up, offering - <strong>Basic and Advanced Weekend Photography Classes</strong>in + <strong>Basic and Advanced Weekend Photography Classes</strong> in Chennai. With extensive theory, guided outdoor and review sessions, a complete enlightenment in photography is assured. I strongly believe that Photography is an Art, not merely technical settings and hence @@ -113,9 +113,25 @@ $level_2 = array('Duration' => array('calendar', '8 Weekends'), $classes['Level 2 - Advanced Photography Course'] = $level_2; +# carousel images +$c_img_dir = $abs_path . '/images/as/pc/carousel/'; +$c_imgs = get_images($c_img_dir); + +$carousel = array('imgs' => $c_imgs, + 'path' => '/images/as/pc/carousel'); + +# static images +$s_img_dir = $abs_path . '/images/as/pc/static/'; +$s_imgs = get_images($s_img_dir); + +$static = array('imgs' => $s_imgs, + 'path' => '/images/as/pc/static'); + $smarty->assign('pc_title', $pc_title); $smarty->assign('pc_intro', $pc_intro); $smarty->assign('classes', $classes); +$smarty->assign('carousel', $carousel); +$smarty->assign('static', $static); $smarty->assign('title', $title); $smarty->assign('meta_description', $meta_desc); $smarty->display('p-classes.tpl'); diff --git a/themes/bs3/templates/p-classes.tpl b/themes/bs3/templates/p-classes.tpl @@ -95,12 +95,24 @@ Register </button> {/foreach} - </div> <!-- pc info section end --> + + <div class="margin-top"> <!-- pc carousel start --> + {include file='carousel.tpl' cimages=$carousel.imgs cpath=$carousel.path} + </div> <!-- pc carousel end --> + </div> <!-- pc column end --> + <div class="col-sm-6"> <!-- pc static images column start --> + {foreach $static.imgs as $img} + <img class="img-responsive margin-top" + src="{$static.path}/{$img}" alt="[ static image - {$img} ]"> + {/foreach} + </div> <!-- pc static images column end --> + </div> <!-- pc row end --> + </div> <!-- top container end --> {include file='js.tpl'}