vishwamano

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

commit 8b87694e2454504987f88a3ad63975f24030fc7d
parent 2c101b5ae2491493a0bbb22a22887e2dc2b86e8c
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Thu,  4 Jun 2015 07:33:01 -0400

re-organized /galllery/

- Removed 'Frolic and Fervor' and 'Snapshots of Life'.
- Renamed 'Wildlife Portraits -> 'Wildlife - Aves and Reptilia'.
- Renamed 'In the Wild' -> 'Wildlife - Mammalia'

Now there are  4 albums under gallery.
   - Each album has six pics displayed in the gallery page.

	modified:   gallery/index.php
	modified:   gallery/wild/index.php
	modified:   gallery/wp/index.php
	modified:   themes/bs3/templates/gallery.tpl

Diffstat:
gallery/index.php | 8+++-----
gallery/wild/index.php | 4++--
gallery/wp/index.php | 4++--
themes/bs3/templates/gallery.tpl | 8++++----
4 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/gallery/index.php b/gallery/index.php @@ -31,17 +31,15 @@ people and fashion photographer and photography tutor'; $img_directories = array('The Little World' => $abs_path . '/images/gallery/macro/', 'Lanscapes' => $abs_path . '/images/gallery/land/', - 'In The Wild' => $abs_path . '/images/gallery/wild/', - 'Frolic & Fervor' => $abs_path . '/images/gallery/fashion/', - 'Wildlife Portraits' => $abs_path . '/images/gallery/wp/', - 'Snapshots of Life' => $abs_path . '/images/gallery/people/'); + 'Wildlife - Mammalia' => $abs_path . '/images/gallery/wild/', + 'Wildlife - Aves and Reptilia' => $abs_path . '/images/gallery/wp/'); $all_images = array(); foreach($img_directories as $g_desc => $img_dir) { # array_slice is used to get only first 4 images. - $images = array_slice(get_images($img_dir), 0, 4); + $images = array_slice(get_images($img_dir), 0, 6); $images_path = substr($img_dir, strlen($abs_path) + 1); $gallery_path = substr($img_dir, strlen($abs_path) + 8); $all_images[$g_desc] = array($images, $images_path, $gallery_path); diff --git a/gallery/wild/index.php b/gallery/wild/index.php @@ -24,11 +24,11 @@ require_once('../../templating.php'); require_once($abs_path . '/utils.php'); -$title = 'Environmental Wildlife &middot; Gallery &middot; Vishwa Mano Photograhy'; +$title = 'Wildlife - Mammalia &middot; Gallery &middot; Vishwa Mano Photograhy'; $meta_desc = 'Vishwa Mano is an aspiring wildlife, landscape, nature, macro, people and fashion photographer and photography tutor'; -$gallery_info = array('name' => 'In The Wild', +$gallery_info = array('name' => 'Wildlife - Mammalia', 'imgs_path' => $abs_path . '/images/gallery/wild/', 'imgs_root' => '/images/gallery/wild', 'parent' => '/gallery/'); diff --git a/gallery/wp/index.php b/gallery/wp/index.php @@ -24,11 +24,11 @@ require_once('../../templating.php'); require_once($abs_path . '/utils.php'); -$title = 'Wildlife Portraits &middot; Gallery &middot; Vishwa Mano Photograhy'; +$title = 'Wildlife - Aves and Reptilia &middot; Gallery &middot; Vishwa Mano Photograhy'; $meta_desc = 'Vishwa Mano is an aspiring wildlife, landscape, nature, macro, people and fashion photographer and photography tutor'; -$gallery_info = array('name' => 'Wildlife Portraits', +$gallery_info = array('name' => 'Wildlife - Aves and Reptilia', 'imgs_path' => $abs_path . '/images/gallery/wp/', 'imgs_root' => '/images/gallery/wp', 'parent' => '/gallery/'); diff --git a/themes/bs3/templates/gallery.tpl b/themes/bs3/templates/gallery.tpl @@ -5,12 +5,12 @@ {foreach $all_images as $g_desc => $images} - {if $images@index % 3 == 0} + {if $images@index % 2 == 0} </div> <!-- close prev. row --> <div class="row"> <!-- start new row --> {/if} - <div class="col-sm-4"> <!-- {$g_desc} column start --> + <div class="col-sm-6"> <!-- {$g_desc} column start --> <h1 class="gallery"> <span class="label label-inverse">{$g_desc}</span> @@ -18,11 +18,11 @@ <div class="row"> <!-- first {$g_desc} row start --> {foreach $images[0] as $i => $image} - {if $image@index % 2 == 0} + {if $image@index % 3 == 0} </div> <!-- close prev. row --> <div class="row"> <!-- start new row --> {/if} - <div class="col-sm-6 margin-top"> + <div class="col-sm-4 margin-top"> <a class="fancybox" rel="tag" href="{$doc_root}{$images[1]}{$image}"> <img class="img-responsive img-thumbnail" src="{$doc_root}{$images[1]}{$image}" alt="[ Image - {$image} ]"/>