vishwamano

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

commit 6be61c4a246d89a564b628ca835ddd9802fc2608
parent 3fc0df53ec9545303cd50a6d7328857d38467c57
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 21 Oct 2018 20:18:30 -0400

gallery: Add wildlife/animals/index.php.

* gallery/wildlife/animals/index.php: New file.

Diffstat:
gallery/wildlife/animals/index.php | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+), 0 deletions(-)

diff --git a/gallery/wildlife/animals/index.php b/gallery/wildlife/animals/index.php @@ -0,0 +1,55 @@ +<?php + +/* Vishwamano.com PHP snafu. + + Copyright (C) 2018 rsiddharth <rsiddharth@ninthfloor.org> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + COPYING contains the full text of the GNU Affero General Public + License. If you have not recieved a copy of the file along with + this program, see <http://www.gnu.org/licenses/>. + +*/ + + +require_once('../../../templating.php'); +require_once($abs_path . '/utils.php'); + +$title = 'Animals &middot; Wildlife &middot; Gallery &middot; Vishwa Mano Photography'; +$meta_keywords = 'Vishwa, Mano, Manoharan, Photography, Chennai, Gallery, Landscapes, Animals, Birds, Insects, Flowers, Macro, Wildlife, Nature, Reptiles'; +$meta_desc = 'An assortment of bold animals, all photographed in the wild.'; + +$gallery_info = array('name' => 'wildlife - animals', + 'imgs_path' => $abs_path . '/images/gallery/wildlife/animals', + 'imgs_root' => '/images/gallery/wildlife/animals', + 'captions' => $abs_path . '/images/gallery/wildlife/animals/info.json', + 'parent' => '/gallery/wildlife' +); + +$images = get_images($gallery_info['imgs_path']); +$image_captions = get_captions($gallery_info['captions']); + +$sub_nav = array( + array('desc' => 'Animals', 'active' => true, 'href' => '/gallery/wildlife/animals'), + array('desc' => 'Birds', 'active' => false, 'href' => '/gallery/wildlife/birds') +); + +$smarty->assign('no_of_images', count($images)); +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('image_captions', $image_captions); +$smarty->assign('title', $title); +$smarty->assign('meta_keywords', $meta_keywords); +$smarty->assign('meta_description', $meta_desc); +$smarty->assign('sub_nav', $sub_nav); +$smarty->display('gallery-genre.tpl'); +