vishwamano

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

commit f5bfa5ca692fb87b8ef8e1fdd5f3b2488c165b01
parent 5861f52ed9378548e4cc45123e04256da8d0c902
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 11 Nov 2018 08:24:06 -0500

bio/index.php: Update file

Don't use smarty.

* bio/index.php: Update file.
* parts/bio.php: New file.

Diffstat:
bio/index.php | 104++++++++++++++++++++++++++++---------------------------------------------------
parts/bio.php | 59+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+), 67 deletions(-)

diff --git a/bio/index.php b/bio/index.php @@ -1,45 +1,26 @@ <?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. - - 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 = 'Biography &middot; Vishwa Mano Photography'; $meta_keywords = 'Vishwa, Mano, biography, prizes, published'; $meta_desc = 'Vishwa Manoharan\'s Biography.'; -$bio_title = "Vishwa Manoharan"; -$bio_quote = " -<blockquote id=\"vishwa-quote\" class=\"blockquote-reverse\"> +$bio_title = 'Vishwa Manoharan'; +$bio_quote = '<blockquote id="vishwa-quote" class="blockquote-reverse"> <p>That extra hour, that additional mile;<br/> Trekking a long lost path, walking a bustling street;<br/> A passion for exploring, a greed to capture every moment;<br/> The search goes on, for the best is next!</p> <footer>Vishwa</footer> -</blockquote> -"; -$bio_content = ' -<p class="lead">A dynamic young man with a keen eye for finer details, +</blockquote>'; + +$bio_content = '<p class="lead">A dynamic young man with a keen eye for finer details, <strong>Vishwa Manoharan</strong> is passionate about nature and wildlife photography. He has trained under esteemed photographers, <strong>Ms. Rathika Ramasamy</strong> and <strong>Mr. K. L. Raja @@ -58,42 +39,31 @@ started <strong>\'Apertures &amp; Shutters\'</strong> in December budding photographers. A&amp;S was formally ended in March 2016. Vishwa is now employed with the Government of India. He continues to pursue his passion for nature and wildlife photography -during his days off.</p> -'; - - -$bio_accolades = array( 'title' => 'Accolades', - 'list'=> array( - '2014-02-11' => 'Published as an Acceptance in Macro Category, Photographic Society of Madras International Digital Salon 2013.', - '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_quote', $bio_quote); -$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_keywords', $meta_keywords); -$smarty->assign('meta_description', $meta_desc); -$smarty->display('bio.tpl'); - +during his days off.</p>'; + + +$bio_accolades = array( + '2014-02-11' => 'Published as an Acceptance in Macro Category,' + . ' Photographic Society of Madras International' + . ' Digital Salon 2013.', + '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' +); +$img = get_images('../images/bio/')[0]; + +require(PARTS . 'header.php'); +require(PARTS . 'bio.php'); +require(PARTS . 'aside.php'); +require(PARTS . 'footer.php'); diff --git a/parts/bio.php b/parts/bio.php @@ -0,0 +1,59 @@ + <!-- top container start --> +<div class="container-fluid"> + + <!-- top row start --> + <div class="row"> + + <!-- vm img column start --> + <div id="vm-img-col" class="col-sm-offset-2 col-sm-2 col-xs-6"> + + <div id="vm-img-block" class="center-block"> + <img class="img-responsive center-block" + src="/images/bio/<?=$img?>" alt="[ Vishwa Manoharan ]"> + </div> + </div> + <!-- vm img column end --> + + + <!-- bio content column start --> + <div id="vm-content-col" class="col-sm-6"> + + <?=$bio_quote?> + + <?=$bio_content?> + + <h1 class="accolade-heading">Accolades</h1> + + <ul class="list-unstyled accolade-list"> + <?php foreach($bio_accolades as $date => $accolade) { ?> + <li> + <span class="accolade"><?=$date?></span> + <?=$accolade?> + </li> + <?php } ?> + </ul> + </div> + <!-- bio content column end --> + + </div> + <!-- top row end --> + +</div> +<!-- top container end --> + +<script> + function adjustHLine() { + if($(window).width < 768) { + $('.hr-long').css('width', $(window).width() - 20); + + } else { + $('.hr-long').css('width', + $('#vm-img-col').width() + + $('#vm-content-col').width()); + } + } + $(document).ready(adjustHLine); + $(window).resize(adjustHLine); +</script> + +