vishwamano

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

commit 179af2726e6233a5bc8551b0da4b6e281a670971
parent 4a01b2b5e18fa1c207955d5233d265a594c58300
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 12 Aug 2015 11:02:20 -0400

renamed ncontact.tpl -> contact.tpl

	modified:   contact/index.php
	renamed:    themes/bs3/templates/ncontact.tpl -> themes/bs3/templates/contact.tpl

Diffstat:
contact/index.php | 2+-
themes/bs3/templates/contact.tpl | 130+++++++++++++++++++++++++++++++++++++------------------------------------------
themes/bs3/templates/ncontact.tpl | 68--------------------------------------------------------------------
3 files changed, 62 insertions(+), 138 deletions(-)

diff --git a/contact/index.php b/contact/index.php @@ -37,5 +37,5 @@ $p_title = "Contact"; $smarty->assign('p_title', $p_title); $smarty->assign('title', $title); $smarty->assign('meta_description', $meta_desc); -$smarty->display('ncontact.tpl'); +$smarty->display('contact.tpl'); diff --git a/themes/bs3/templates/contact.tpl b/themes/bs3/templates/contact.tpl @@ -1,76 +1,68 @@ -{include file='header.tpl'} - - -<div class="container-fluid"> <!-- top container start --> - - - <div class="row"> <!-- contact row start --> - - <div class="col-sm-offset-2 col-sm-6"> <!-- contact column start --> - - {if isset($c_msg)} - <div id="c-alert-box" class="alert alert-{$c_msg.type}" role="alert"> - <p>{$c_msg.content}</p> - </div> - {/if} - - <h1>{$p_title}</h1> - - <ul class="list-unstyled"> - {foreach $contact as $kind => $content} - <li> - {$kind}: <a href="{$content[1]}">{$content[0]}</a> - </li> - {/foreach} - </ul> - - <div class="contact-box"> <!-- contact box start --> - - <h2>Ping</h2> - - <form id="vmcontact-form" method="POST" role="form" action="/contact/"> - <div class="form-group"> - <label for="name" class="control-label">Name:</label> - <input type="text" name="name" class="form-control" id="name"> - </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="message" class="control-label">Message:</label> - <textarea name="message" class="form-control" id="message" - rows="4" required></textarea> - </div> - - <div class="form-group"> - <label for="humantest" class="control-label">What is 98 + 2?:</label> - <input type="number" name="humantest" class="form-control" id="humantest" required> - </div> - - <button id="vmcontact-submit" type="submit" name="submit" - value="submit" form="vmcontact-form" class="btn - btn-primary">Send message</button> - - </form> - - </div> <!-- contact box end --> - - </div> <!-- contact column end --> - - </div> <!-- contact row end --> -</div> <!-- top container end --> +{include file='fp-header.tpl'} + <div id="vm-contact-container" class="container-fluid"> <!-- top container start --> + <div class="row vm-contact"> <!-- contact row start --> + <div class="col-sm-12"> <!-- contact section start --> + <section class="box"> + <h1 class="text-center">{$p_title}</h1> + <ul class="list-unstyled text-center"> + <li> + <i class="fa fa-phone"></i> / + <i class="fa fa-whatsapp"></i> + <a href="tel://+919176560151"> +919176560151</a> + </li> + <li> + <i class="fa fa-envelope"></i> + <a href="mailto:vishwa91photography@gmail.com"> vishwa91photography@gmail.com</a> + </li> + </ul> + </section> + </div> <!-- contact section end --> + </div> <!-- contact row end --> + {include file='aside.tpl'} + </div> <!-- top container end --> {include file='js.tpl'} <script> - $('#nav-link-contact').addClass("active"); +function adjustContactBox() { + var screenWidth = $(window).width(); + if(screenWidth < 768) { + $('.box').css('width', screenWidth - 30); + $('.box').css('margin-left', '0px'); + + }else { + $('.box').css('width', $('.nav').width() - 200); + var marginLeft = (screenWidth - ($('.nav').width() - 120)) / 2.0; + $('.box').css('margin-left', marginLeft); + } +} +$(document).ready(adjustContactBox); +$(window).resize(adjustContactBox); </script> <script> - setTimeout(function(){ - if ($('#c-alert-box').length > 0) { - $('#c-alert-box').fadeOut('slow'); - } - }, 20000) +function adjustHRLine() { + var screenWidth = $(window).width(); + if(screenWidth < 768) { + $('.hr-long').css('width', $(window).width() - 20); + }else { + $('.hr-long').css('width', $('.nav').width()); + } +} +$(document).ready(adjustHRLine); +$(window).resize(adjustHRLine); </script> {include file='footer.tpl'} +<script> +function adjustAside() { + console.log('fuck.'); + var screenHeight = $(window).height(); + var occupiedHeight = ($('#vm-navbar').height() + + $('#vm-contact-container').height() + + $('.footer').height()); + var freeHeight = screenHeight - occupiedHeight; + console.log(freeHeight); + if(freeHeight - 70 > 0) + $('.box').css('margin-bottom', freeHeight - 70); +} +$(document).ready(adjustAside); +$(window).resize(adjustAside); +</script> diff --git a/themes/bs3/templates/ncontact.tpl b/themes/bs3/templates/ncontact.tpl @@ -1,68 +0,0 @@ -{include file='fp-header.tpl'} - <div id="vm-contact-container" class="container-fluid"> <!-- top container start --> - <div class="row vm-contact"> <!-- contact row start --> - <div class="col-sm-12"> <!-- contact section start --> - <section class="box"> - <h1 class="text-center">{$p_title}</h1> - <ul class="list-unstyled text-center"> - <li> - <i class="fa fa-phone"></i> / - <i class="fa fa-whatsapp"></i> - <a href="tel://+919176560151"> +919176560151</a> - </li> - <li> - <i class="fa fa-envelope"></i> - <a href="mailto:vishwa91photography@gmail.com"> vishwa91photography@gmail.com</a> - </li> - </ul> - </section> - </div> <!-- contact section end --> - </div> <!-- contact row end --> - {include file='aside.tpl'} - </div> <!-- top container end --> - -{include file='js.tpl'} -<script> -function adjustContactBox() { - var screenWidth = $(window).width(); - if(screenWidth < 768) { - $('.box').css('width', screenWidth - 30); - $('.box').css('margin-left', '0px'); - - }else { - $('.box').css('width', $('.nav').width() - 200); - var marginLeft = (screenWidth - ($('.nav').width() - 120)) / 2.0; - $('.box').css('margin-left', marginLeft); - } -} -$(document).ready(adjustContactBox); -$(window).resize(adjustContactBox); -</script> -<script> -function adjustHRLine() { - var screenWidth = $(window).width(); - if(screenWidth < 768) { - $('.hr-long').css('width', $(window).width() - 20); - }else { - $('.hr-long').css('width', $('.nav').width()); - } -} -$(document).ready(adjustHRLine); -$(window).resize(adjustHRLine); -</script> -{include file='footer.tpl'} -<script> -function adjustAside() { - console.log('fuck.'); - var screenHeight = $(window).height(); - var occupiedHeight = ($('#vm-navbar').height() + - $('#vm-contact-container').height() + - $('.footer').height()); - var freeHeight = screenHeight - occupiedHeight; - console.log(freeHeight); - if(freeHeight - 70 > 0) - $('.box').css('margin-bottom', freeHeight - 70); -} -$(document).ready(adjustAside); -$(window).resize(adjustAside); -</script>