vishwamano

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

commit 54c87f5f90ca3d4568dd49e327fd18c75a77f18f
parent 5a2f5139bb5c61fe39db7e0c2822b704ce64c490
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 13 Nov 2018 09:31:25 -0500

gallery: Update macro/index.php.

Don't use smarty.

Diffstat:
gallery/macro/index.php | 51+++++++++++++++------------------------------------
1 file changed, 15 insertions(+), 36 deletions(-)

diff --git a/gallery/macro/index.php b/gallery/macro/index.php @@ -1,43 +1,23 @@ <?php -/* Vishwamano.com PHP snafu. +/** + * License: CC0-1.0 + */ - Copyright (C) 2014 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. +require_once('../../init.php'); - 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 = 'Flowers &amp; Insects &middot; Gallery &middot; Vishwa Mano Photography'; -$meta_keywords = 'Vishwa, Mano, Manoharan, Photography, Chennai, Gallery, Landscapes, Animals, Birds, Insects, Flowers, Macro, Wildlife, Nature, Reptiles'; +$title = 'Little World &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 = 'The beauty of the small world, revealed with every detail.'; -$gallery_info = array('name' => 'macro', - 'imgs_path' => $abs_path . '/images/gallery/macro/', - 'imgs_root' => '/images/gallery/macro', - 'parent' => '/gallery/'); -$images = get_images($gallery_info['imgs_path']); +$gallery_name = 'macro'; +$images = get_images('../../images/gallery/' . $gallery_name . '/'); +$images_root = '/images/gallery/' . $gallery_name; -$smarty->assign('no_of_images', count($images)); -$smarty->assign('gallery_info', $gallery_info); -$smarty->assign('images', $images); -$smarty->assign('title', $title); -$smarty->assign('meta_keywords', $meta_keywords); -$smarty->assign('meta_description', $meta_desc); -$smarty->display('gallery-genre.tpl');- \ No newline at end of file +require(PARTS . 'header.php'); +require(PARTS . 'gallery-genre.php'); +require(PARTS . 'aside.php'); +require(PARTS . 'footer.php');