vishwamano

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

commit b7e49439d6a9002f3e9e8dd20092af74820da2cf
parent d87f8011b524743ca3595b455c2253b86339e1d8
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 13 Nov 2018 18:37:48 -0500

gallery/wildlife: Update mammals/index.php.

Don't use smarty.

Diffstat:
gallery/wildlife/mammals/index.php | 58++++++++++++++++------------------------------------------
1 file changed, 16 insertions(+), 42 deletions(-)

diff --git a/gallery/wildlife/mammals/index.php b/gallery/wildlife/mammals/index.php @@ -1,49 +1,23 @@ <?php -/* Vishwamano.com PHP snafu. +/** + * License: CC0-1.0 + */ - Copyright (C) 2018 rsiddharth <rsiddharth@ninthfloor.org> +require_once('../../../init.php'); - 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 = 'Mammals &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'; +$title = 'Mammals &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 mammals, all photographed in the wild.'; -$gallery_info = array('name' => 'wildlife - mammals', - 'imgs_path' => $abs_path . '/images/gallery/wildlife/mammals', - 'imgs_root' => '/images/gallery/wildlife/mammals', - 'captions' => $abs_path . '/images/gallery/wildlife/mammals/info.json', - 'parent' => '/gallery/wildlife' -); - -$images = get_images($gallery_info['imgs_path']); -$image_captions = get_captions($gallery_info['captions']); - -$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->display('gallery-genre.tpl'); +$gallery_name = 'mammals'; +$images = get_images('../../../images/gallery/' . $gallery_name . '/'); +$images_root = '/images/gallery/' . $gallery_name; +require(PARTS . 'header.php'); +require(PARTS . 'gallery-genre.php'); +require(PARTS . 'aside.php'); +require(PARTS . 'footer.php');