vishwamano

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

commit 99fe1da0bd8355d16ceac17f740d14f7115a1576
parent 0a6fe828c3c2a03e0aa4ce75ac0643394b7ba869
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 12 Aug 2015 11:22:23 -0400

renamed nfrontpage.tpl -> frontpage.tpl

	modified:   index.php
	renamed:    themes/bs3/templates/nfrontpage.tpl -> themes/bs3/templates/frontpage.tpl

Diffstat:
index.php | 2+-
themes/bs3/templates/frontpage.tpl | 121+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
themes/bs3/templates/nfrontpage.tpl | 82-------------------------------------------------------------------------------
3 files changed, 73 insertions(+), 132 deletions(-)

diff --git a/index.php b/index.php @@ -39,5 +39,5 @@ $smarty->assign('carousel', $carousel); $smarty->assign('title', $title); $smarty->assign('meta_keywords', $meta_keywords); $smarty->assign('meta_description', $meta_desc); -$smarty->display('nfrontpage.tpl'); +$smarty->display('frontpage.tpl'); diff --git a/themes/bs3/templates/frontpage.tpl b/themes/bs3/templates/frontpage.tpl @@ -1,59 +1,82 @@ -{include file='header.tpl'} +{include file='fp-header.tpl'} <div class="container-fluid"> <!-- top container start --> - <div class="row"> <!-- top row start --> - <div id="carousel-col" class="col-sm-8"> <!-- carousel column start --> - - {include file='carousel.tpl' link="/as/photography-classes" cimages=$carousel.imgs cpath=$carousel.path control="true"} - - </div> <!-- carousel column end --> - - <div id="content-col" class="col-sm-4"> - <h2> Welcome </h2> - <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> - - <p class="pull-right"><small> &mdash; <a href="/bio/"> Vishwa - Manoharan </a> </small> </p> - - <h3 class="margin-top">Photography Workshops</h3> - <div class="news-updates"> <!-- newsupdates start --> - <p> - <span class="label label-danger"> - <span class="glyphicon glyphicon-time" aria-hidden="true"></span> - 2015-07-28 - </span> - <a href="/as/photography-classes/">&nbsp;Registrations - open for Basic Photography Weekend Workshop, Batch 11, - Starting on September 5th, 2015. - </a> - </p> - </div> <!-- newsupdates end --> - - </div> - </div> <!-- top row end --> + + + <div id="vm-static-img" class="row"> + <div class="col-sm-12"> + <img class="img-responsive center-block" src="{$carousel.path}/{$carousel.imgs[0]}" alt="[ VishwaMano.com Front Page Image ]"> + </div> + </div> + + <div class="row"> + <div class="col-sm-12 vegas-container"> + </div> + </div> + + {include file='aside.tpl'} + </div> <!-- top container end --> {include file='js.tpl'} <script> - $('#nav-link-home').addClass("active"); +function startVegas() { + $('#vm-static-img').addClass('hidden'); + var screenWidth = $(window).width(); + var screenHeight = $(window).height(); + var vegasHeight = screenHeight; + + var vegasWidth = ((vegasHeight * 3) / 2.0); + + while(vegasWidth > screenWidth) { + vegasHeight = vegasHeight - 1; + vegasWidth = ((vegasHeight * 3) / 2.0); + } + + if(vegasWidth > 1200 || vegasHeight > 800) { + vegasWidth = 1200; + vegasHeight = 800; + } + + var vegasLeft = ((screenWidth - vegasWidth) / 2.0); + if(vegasLeft < 0) + vegasLeft = 0; + + // setup hr lines. + if($(window).width > 768) + $('.hr-long').css('width', vegasWidth); + else + $('.hr-long').css('width', vegasWidth - 20); + + $('.vegas-container').css('width', vegasWidth); + $('.vegas-container').css('height', vegasHeight); + $('.vegas-container').css('left', vegasLeft); + $('.vegas-container').css('right', vegasLeft); + $('.vegas-container').vegas({ + delay: 4900, + timer: false, + shuffle: false, + transition: 'fade', + transitionDuration: 4900, + animationDuration: 4900, + slides: [ + {foreach $carousel.imgs as $image} + { src: '{$carousel.path}/{$image}' }, + {/foreach} + ], + animation: 'random', + }); +} +$(document).ready(startVegas); +$(window).resize(startVegas); + +$('.carousel').carousel({ + pause: 'null' +}); </script> <script> -$(document).ready(colMod); - -$(window).resize(colMod); - -function colMod() { - screenSize = $(window).width(); - if(screenSize >= 1400) { - $("#carousel-col").addClass("col-md-offset-1 col-md-5"); - $("#content-col").addClass("col-md-offset-1 col-md-5"); - } else { - $("#carousel-col").removeClass("col-md-offset-1 col-md-5"); - $("#content-col").removeClass("col-md-offset-1 col-md-5"); - } -} + var uagent = navigator.userAgent.toLowerCase(); + if(uagent.search('mobile') > -1) + $('#stay-in-touch').append('<li><a href="tel://+919176560151"><i class="fa fa-phone"></i></a></li>'); </script> {include file='footer.tpl'} diff --git a/themes/bs3/templates/nfrontpage.tpl b/themes/bs3/templates/nfrontpage.tpl @@ -1,82 +0,0 @@ -{include file='fp-header.tpl'} - -<div class="container-fluid"> <!-- top container start --> - - - <div id="vm-static-img" class="row"> - <div class="col-sm-12"> - <img class="img-responsive center-block" src="{$carousel.path}/{$carousel.imgs[0]}" alt="[ VishwaMano.com Front Page Image ]"> - </div> - </div> - - <div class="row"> - <div class="col-sm-12 vegas-container"> - </div> - </div> - - {include file='aside.tpl'} - -</div> <!-- top container end --> - -{include file='js.tpl'} -<script> -function startVegas() { - $('#vm-static-img').addClass('hidden'); - var screenWidth = $(window).width(); - var screenHeight = $(window).height(); - var vegasHeight = screenHeight; - - var vegasWidth = ((vegasHeight * 3) / 2.0); - - while(vegasWidth > screenWidth) { - vegasHeight = vegasHeight - 1; - vegasWidth = ((vegasHeight * 3) / 2.0); - } - - if(vegasWidth > 1200 || vegasHeight > 800) { - vegasWidth = 1200; - vegasHeight = 800; - } - - var vegasLeft = ((screenWidth - vegasWidth) / 2.0); - if(vegasLeft < 0) - vegasLeft = 0; - - // setup hr lines. - if($(window).width > 768) - $('.hr-long').css('width', vegasWidth); - else - $('.hr-long').css('width', vegasWidth - 20); - - $('.vegas-container').css('width', vegasWidth); - $('.vegas-container').css('height', vegasHeight); - $('.vegas-container').css('left', vegasLeft); - $('.vegas-container').css('right', vegasLeft); - $('.vegas-container').vegas({ - delay: 4900, - timer: false, - shuffle: false, - transition: 'fade', - transitionDuration: 4900, - animationDuration: 4900, - slides: [ - {foreach $carousel.imgs as $image} - { src: '{$carousel.path}/{$image}' }, - {/foreach} - ], - animation: 'random', - }); -} -$(document).ready(startVegas); -$(window).resize(startVegas); - -$('.carousel').carousel({ - pause: 'null' -}); -</script> -<script> - var uagent = navigator.userAgent.toLowerCase(); - if(uagent.search('mobile') > -1) - $('#stay-in-touch').append('<li><a href="tel://+919176560151"><i class="fa fa-phone"></i></a></li>'); -</script> -{include file='footer.tpl'}