vishwamano

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

commit c98ebbe9bc61e3070e81a20bc98829c20dbc15f8
parent 54c87f5f90ca3d4568dd49e327fd18c75a77f18f
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 13 Nov 2018 18:04:51 -0500

gallery/wildlife: Update birds/index.php.

Don't use smarty.

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

diff --git a/gallery/wildlife/birds/index.php b/gallery/wildlife/birds/index.php @@ -1,49 +1,22 @@ <?php -/* Vishwamano.com PHP snafu. +/** + * License: CC0-1.0 + */ - 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'); +require_once('../../../init.php'); $title = 'Birds &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_keywords = 'Vishwa, Mano, Manoharan, Photography, Chennai, Gallery,' + . ' Landscapes, Animals, Birds, Insects, Flowers, Macro, Wildlife,' + . ' Nature, Reptiles'; $meta_desc = 'An assortment of colorful birds, all photographed in the wild.'; -$gallery_info = array('name' => 'wildlife', - 'imgs_path' => $abs_path . '/images/gallery/wildlife/birds', - 'imgs_root' => '/images/gallery/wildlife/birds', - 'captions' => $abs_path . '/images/gallery/wildlife/birds/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 = 'birds'; +$images = get_images('../../../images/gallery/wildlife/' . $gallery_name . '/'); +$images_root = '/images/gallery/wildlife/' . $gallery_name; +require(PARTS . 'header.php'); +require(PARTS . 'gallery-genre.php'); +require(PARTS . 'aside.php'); +require(PARTS . 'footer.php');