vishwamano

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

commit e9c3af47d05d00ab6a2f4b060ab4ea4a3d0dc2ce
parent 7a09ef1650a9f5336d649807df4027595ab5b873
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Thu,  1 Jan 2015 15:26:31 -0500

First version of upgraded bio/ page ready (uses Smarty).

	new file:   bio/index.php
	new file:   images/bio/vm.jpg
	new file:   themes/bs3/templates/bio.tpl

Diffstat:
bio/index.php | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
images/bio/vm.jpg | 0
themes/bs3/templates/bio.tpl | 41+++++++++++++++++++++++++++++++++++++++++
3 files changed, 124 insertions(+), 0 deletions(-)

diff --git a/bio/index.php b/bio/index.php @@ -0,0 +1,83 @@ +<?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 = 'Biography &middot; A&amp;S &middot; Vishwa Manoharan Photograhy'; +$meta_desc = ''; + +$bio_title = "Vishwa Manoharan"; +$bio_content = " + <p> A dynamic young man with a keen eye for finer details, + <strong>Vishwa Manoharan</strong> is an aspiring and a highly + talented photographer based in Chennai, India. He has trained + under the industry's greats, <strong>Ms.Rathika + Ramasamy</strong> and <strong>Mr. K.L.Raja + Ponsing</strong>. He has won accolades for his excellent shots + and creative conceptualization, in various cultural + extravaganzas of reputed colleges like <strong>IIT's + Saarang</strong> and <strong>Anna University's + Techofes</strong> to name a few. He has received a prize from + the eclectic director <strong>Mr.Balu Mahendra</strong> and + also two of his best shots were featured in the Tamil film KO + directed by <strong>Mr.K.V.Anand</strong>. Implementing his + ingrained flair for teaching, he started his own photography + classes, <strong>'Apertures and Shutters'</strong>, offering + basic and advanced training in photography for the budding + photographers. </p> +"; + + +$bio_accolades = array( 'title' => 'Accolades', + 'list'=> array( + '2012-01-27' => 'Finalist of Channel [V]\'s Nokia INDIAFEST \'12', + '2012-01-20' => '1st Prize in Saarang \'12, \'Abandoned and Discarded\' (IIT-M)', + '2012-01-19' => '2nd Prize in Saarang \'12, \'Spirit Of Saarang\' (IIT-M)', + '2011-11-01' => '1st prize in Automeet \'11 (MIT)', + '2011-04-22' => '2 Photos Featured In Tamil Movie \'KO\'', + '2011-02-18' => '1st prize in Techofes \'11 (Anna University)', + '2011-01-26' => '3rd prize in Saarang \'11 (IIT - M)', + '2010-03-06' => '1st prize in Instincts \'10 ( SSN ) - Adjudged by Mr. Balu Mahendra', + '2010-02-24' => '1st prize in Mitafest \'10 (MIT)', + '2010-02-17' => '1st prize in Techofes \'10 (Anna University)', + '2009-11-27' => '1st prize in Velammal Culturals \'09')); + + + +# vm image +$path = '/images/bio/'; +$img_path = $abs_path . $path; + +$vm_img_info = array('img' => get_images($img_path)[0], + 'caption' => '(Photograph by Mr. K.L.Raja Ponsing)', + 'path' => $path); + +$smarty->assign('bio_title', $bio_title); +$smarty->assign('bio_content', $bio_content); +$smarty->assign('bio_accolades', $bio_accolades); +$smarty->assign('vm_img_info', $vm_img_info); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('bio.tpl'); + diff --git a/images/bio/vm.jpg b/images/bio/vm.jpg Binary files differ. diff --git a/themes/bs3/templates/bio.tpl b/themes/bs3/templates/bio.tpl @@ -0,0 +1,41 @@ +{include file='header.tpl'} + + +<div class="container-fluid"> <!-- top container start --> + + + <div class="row"> <!-- top row start --> + <div class="col-sm-4"> <!-- vm img column start --> + <img class="img-responsive" + src="{$vm_img_info.path}{$vm_img_info.img}" alt="[ Vishwa Manoharan ]"> + <p class="text-center"><small>{$vm_img_info.caption}</small></p> + </div> <!-- pc static images column end --> + + <div class="col-sm-8"> <!-- bio content column start --> + + <h1 class="text-center">{$bio_title}</h1> + {$bio_content} + + <h2> {$bio_accolades.title} </h2> + + <ul class="list-unstyled"> + {foreach $bio_accolades.list as $date => $accolade} + <li><span class="label label-inverse"> + <span class="glyphicon glyphicon-time"></span> + {$date} + </span> + {$accolade} + </li> + {/foreach} + </ul> + </div> <!-- bio content column end --> + + </div> <!-- top row end --> + +</div> <!-- top container end --> + +{include file='js.tpl'} +<script> + $('#nav-link-bio').addClass("active"); +</script> +{include file='footer.tpl'}