vishwamano

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

commit 133f98be971a395677f36a65a3597a8301d98198
parent 0bd34cf351dcd308cdbbc46d14a32b89d21c5e57
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 31 Dec 2014 20:49:56 -0500

Initial version of photography services page ready

	new file:   as/photography-services/index.php
	modified:   themes/bs3/templates/header.tpl
	new file:   themes/bs3/templates/p-services.tpl

Diffstat:
as/photography-services/index.php | 83+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/bs3/templates/header.tpl | 2+-
themes/bs3/templates/p-services.tpl | 175+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 259 insertions(+), 1 deletion(-)

diff --git a/as/photography-services/index.php b/as/photography-services/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'); + + +if(isset($_POST['submit'])) { + $msg = request_shoot($lemail); + $smarty->assign('ps_msg', $msg); +} + + +$title = 'Photography Services &middot; A&amp;S &middot; Vishwa Manoharan Photograhy'; +$meta_desc = ' Candid Wedding, couple portraits, baby and kids photography, model +portfolios and advertisements are done by Chennai based photographer +Vishwa Manoharan.'; + +$ps_title = "Photography Services"; +$ps_intro = " +<p> Looking to capture the innocent smile of your child? Or candid +moments with your loved one? Or would you just like to let your hair +down and create a stunning portfolio? I strive to to capture 'that +perfect moment' so that you can cherish it forever. I look forward to +meet new people and take up new and challenging photographic +opportunities. Just ping me a message and I shall contact you so that +we can brain storm on how to best photograph the moment! </p> +"; + + +$ps_info = array('Services' => array('briefcase', + '<ul class="spacious"> + <li>Kids Portraitures</li> + <li>Single, Couple &amp; Family Portraitures</li> + <li>Model Portfolio</li> + <li>Fashion: Advertising</li> + <li>Food/Product: Advertising</li> + </ul>'), + ); + +# carousel images +$c_img_dir = $abs_path . '/images/as/ps/carousel/'; +$c_imgs = get_images($c_img_dir); + +$carousel = array('imgs' => $c_imgs, + 'path' => '/images/as/ps/carousel'); + +# static images +$s_img_dir = $abs_path . '/images/as/ps/static/'; +$s_imgs = get_images($s_img_dir); + +$static = array('imgs' => $s_imgs, + 'path' => '/images/as/ps/static'); + +$smarty->assign('ps_title', $ps_title); +$smarty->assign('ps_intro', $ps_intro); +$smarty->assign('ps_info', $ps_info); +$smarty->assign('carousel', $carousel); +$smarty->assign('static', $static); +$smarty->assign('title', $title); +$smarty->assign('meta_description', $meta_desc); +$smarty->display('p-services.tpl'); + diff --git a/themes/bs3/templates/header.tpl b/themes/bs3/templates/header.tpl @@ -33,7 +33,7 @@ <li id="nav-link-home"><a href="/">Home</a></li> <li id="nav-link-gallery"><a href="/gallery/">Gallery</a></li> <li id="nav-link-pc"><a href="/as/photography-classes">Photography Classes</a></li> - <li id="nav-link-ps"><a href="/as/">Photography Services</a></li> + <li id="nav-link-ps"><a href="/as/photography-services">Photography Services</a></li> <li id="nav-link-journal"><a href="/journal/">Journal</a></li> <li id="nav-link-bio"><a href="/bio/">Bio</a></li> <li id="nav-link-contact"><a href="/contact/"> Contact </a></li> diff --git a/themes/bs3/templates/p-services.tpl b/themes/bs3/templates/p-services.tpl @@ -0,0 +1,175 @@ +{include file='header.tpl'} + +<!-- reg. modal section start --> +<div class="modal fade" id="vmrs-modal" tabindex="-1" role="dialog" aria-labelledby="vmrs-modal-label" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> + <h3 class="modal-title" id="vmrs-modal-label">Request Shoot</h3> + </div> + <div class="modal-body"> + <form id="vmrs-form" method="POST" role="form" action="/as/photography-services/"> + <div class="form-group"> + <label for="name" class="control-label">Name:</label> + <input type="text" name="name" class="form-control" id="name" required> + </div> + <div class="form-group"> + <label for="email" class="control-label">Email:</label> + <input type="text" name="email" class="form-control" id="email" required> + </div> + <div class="form-group"> + <label for="phone" class="control-label">Phone Number:</label> + <input type="tel" name="phone" class="form-control" id="phone"> + </div> + + <div class="form-group"> + <label class="control-label">Type of Shoot:</label> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="k_portraitures" + value="Kids Portraitures" + checked> + Kids Portraitures + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="portraitures" + value="Single, Couple & Family Portraitures" + checked> + Single, Couple & Family Portraitures + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="portfolio" + value="Model Portfolio" + checked> + Model Portfolio + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="f_advertising" + value="Fashion: Advertising" + checked> + Fashion Advertising + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="fp_advertising" + value="Food/Product: Advertising" + checked> + Food/Product: Advertising + </label> + </div> + <div class="radio"> + <label> + <input type="radio" name="shoot_type" id="other" + value="Other" + checked> + Other + </label> + </div> + </div> + + <div class="form-group"> + <label for="shoot_date" class="control-label">Date of Shoot:</label> + <input type="text" name="shoot_date" class="form-control" id="shoot_date"> + </div> + + <div class="form-group"> + <label for="other_details" class="control-label">Anything else:</label> + <textarea name="other_details" class="form-control" id="other_details" rows="3" + placeholder="Specify other details you wish to add."></textarea> + </div> + + <div class="form-group"> + <label for="humantest" class="control-label">What is 100 - 1:</label> + <input type="number" name="humantest" class="form-control" id="humantest"> + </div> + </form> + </div> + <div class="modal-footer"> + <button id="vmrs-submit" type="submit" name="submit" value="submit" + form="vmrs-form" class="btn btn-primary">Request</button> + </div> + </div> + </div> + </div> + +<!-- reg. modal section end --> + +<div class="container-fluid"> <!-- top container start --> + + {if isset($ps_msg)} + <div id="pc-alert-box" class="row"> + <div class="col-sm-offset-2 col-sm-9"> + <div class="alert alert-{$ps_msg.type}" role="alert"> + <p>{$ps_msg.content}</p> + </div> + </div> + </div> + {/if} + + <div class="row"> <!-- ps row start --> + <div class="col-sm-6"> <!-- ps column start --> + <h1 class="text-center">{$ps_title}</h1> + {$ps_intro} + + <div id="ps-section"> <!-- ps info section start --> + + <dl> + {foreach $ps_info as $field_name => $field_value} + <dt> + <span class="label label-inverse"> + <span class="glyphicon glyphicon-{$field_value[0]}"></span> + {$field_name} + </span> + </dt> + <dd> + {$field_value[1]} + </dd> + {/foreach} + </dl> + + <button type="button" + class="btn btn-primary" + data-toggle="modal" + data-target="#vmrs-modal"> + Request Shoot + </button> + </div> <!-- ps info section end --> + + <div class="margin-top"> <!-- ps carousel start --> + {include file='carousel.tpl' cimages=$carousel.imgs cpath=$carousel.path} + </div> <!-- ps carousel end --> + + </div> <!-- ps column end --> + + <div class="col-sm-6"> <!-- ps static images column start --> + {foreach $static.imgs as $img} + <img class="img-responsive margin-top" + src="{$static.path}/{$img}" alt="[ static image - {$img} ]"> + {/foreach} + </div> <!-- ps static images column end --> + + </div> <!-- ps row end --> + +</div> <!-- top container end --> + +{include file='js.tpl'} +<script> + $('#nav-link-ps').addClass("active"); +</script> +<script> + setTimeout(function(){ + if ($('#pc-alert-box').length > 0) { + $('#pc-alert-box').fadeOut('slow'); + } + }, 20000) +</script> + +{include file='footer.tpl'}