vishwamano

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

commit 72a53639122abd7f3d00d4fcb922bec4337e4b7d
parent c98e105f6d952fdb603a0d0e462566c22d5ef480
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Tue, 30 Dec 2014 15:03:46 -0500

First version of upgraded gallery/genre pages ready (uses Smarty).

	new file:   gallery/fashion/index.php
	new file:   gallery/land/index.php
	new file:   gallery/macro/index.php
	new file:   gallery/people/index.php
	new file:   gallery/wild/index.php
	new file:   gallery/wp/index.php
	new file:   themes/bs3/templates/gallery-genre.tpl

Diffstat:
gallery/fashion/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
gallery/land/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
gallery/macro/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
gallery/people/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
gallery/wild/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
gallery/wp/index.php | 43+++++++++++++++++++++++++++++++++++++++++++
themes/bs3/templates/gallery-genre.tpl | 46++++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 304 insertions(+), 0 deletions(-)

diff --git a/gallery/fashion/index.php b/gallery/fashion/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'Fashion &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'Frolic & Fervor', + 'imgs_path' => $abs_path . '/images/gallery/fashion/', + 'imgs_root' => '/images/gallery/fashion', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/gallery/land/index.php b/gallery/land/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'Landscapes &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'Landscapes', + 'imgs_path' => $abs_path . '/images/gallery/land/', + 'imgs_root' => '/images/gallery/land', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/gallery/macro/index.php b/gallery/macro/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'Macro &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'The Little World', + 'imgs_path' => $abs_path . '/images/gallery/macro/', + 'imgs_root' => '/images/gallery/macro', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/gallery/people/index.php b/gallery/people/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'People &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'Snapshots of Life', + 'imgs_path' => $abs_path . '/images/gallery/people/', + 'imgs_root' => '/images/gallery/people', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/gallery/wild/index.php b/gallery/wild/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'Environmental Wildlife &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'In The Wild', + 'imgs_path' => $abs_path . '/images/gallery/wild/', + 'imgs_root' => '/images/gallery/wild', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/gallery/wp/index.php b/gallery/wp/index.php @@ -0,0 +1,43 @@ +<?php + +/* Vishwamano.com PHP snafu. + + 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. + + 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 = 'Wildlife Portraits &middot; Gallery &middot; Vishwa Manoharan Photograhy'; +$meta_desc = 'Vishwa Manoharan is an aspiring wildlife, landscape, nature, macro, +people and fashion photographer and photography tutor'; + +$gallery_info = array('name' => 'Wildlife Portraits', + 'imgs_path' => $abs_path . '/images/gallery/wp/', + 'imgs_root' => '/images/gallery/wp', + 'parent' => '/gallery/'); +$images = get_images($gallery_info['imgs_path']); + + +$smarty->assign('gallery_info', $gallery_info); +$smarty->assign('images', $images); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('gallery-genre.tpl'); + diff --git a/themes/bs3/templates/gallery-genre.tpl b/themes/bs3/templates/gallery-genre.tpl @@ -0,0 +1,46 @@ +{include file='header.tpl'} + +<div class="container-fluid"> <!-- top container start --> + + <h1>{$gallery_info.name}</h1> + + <div class="row"> <!-- first row start --> + {foreach $images as $img} + + {if $img@index % 4 == 0} + </div> <!-- prev. row end --> + <div class="row"> <!-- another row start --> + {/if} + + <div class="col-sm-3 margin-top"> + <a class="fancybox" rel="tag" href="{$gallery_info.imgs_root}/{$img}"> + <img class="img-responsive img-thumbnail" src="{$gallery_info.imgs_root}/{$img}" + alt="[ {$gallery_info.name} - {$img} ]"/> + </a> + </div> + + {/foreach} + </div> <!-- last row end --> + + <p class="text-center margin-top"> + <a class="btn btn-primary btn-sm" + href="{$gallery_info.parent}"> + <span class="glyphicon glyphicon-chevron-left"></span> + back + </a> + </p> + +</div> <!-- top container end --> + +{include file='js.tpl'} +<script> + $('#nav-link-gallery').addClass("active"); +</script> +<script type="text/javascript" + src="{$doc_root}themes/bs3/js/jquery-fancybox/jquery.fancybox.pack.js"></script> +<script type="text/javascript"> + $(document).ready(function() { + $(".fancybox").fancybox(); + }); +</script> +{include file='footer.tpl'}