vishwamano

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

commit 5226d80e0d2b77a2a729a8f1926be791c4a05b69
parent d63b61c9627a8aea6b658263e3046d7ac064d87f
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Wed, 12 Aug 2015 11:39:28 -0400

renamed np-classes.tpl -> p-classes.tpl

	renamed:    themes/bs3/templates/np-classes.tpl -> themes/bs3/templates/p-classes.tpl
	modified:   workshops/index.php

Diffstat:
themes/bs3/templates/np-classes.tpl | 256-------------------------------------------------------------------------------
themes/bs3/templates/p-classes.tpl | 227++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
workshops/index.php | 4++--
3 files changed, 157 insertions(+), 330 deletions(-)

diff --git a/themes/bs3/templates/np-classes.tpl b/themes/bs3/templates/np-classes.tpl @@ -1,256 +0,0 @@ -{include file='fp-header.tpl'} - -<div class="container-fluid"> <!-- top container start --> - <article class="vm-workshops"> - {if isset($pc_msg)} - <div id="pc-alert-box" class="row"> - <div class="col-sm-offset-1 col-sm-10"> - <div class="alert alert-{$pc_msg.type}" role="alert"> - <p>{$pc_msg.content}</p> - </div> - </div> - </div> - {/if} - - <div class="row text-center margin-bottom"> - <h1>{$pc_title}</h1> - </div> - <div class="row"> <!-- pc row start --> - <div id="pc-first-column" class="col-sm-offset-1 col-sm-5"> <!-- pc column start --> - {$pc_intro} - - <div id="pc-section"> <!-- pc info section start --> - - {foreach $classes as $c_name => $c_info} - <section id="pc-level-{$c_info@index}"> <!-- pc level {$c_info@index} start --> - <h2>{$c_name}</h2> - - {if $c_info@index == 1} - <button type="button" class="btn btn-primary btn-sm" data-toggle="collapse" - data-target="#pc-{$c_info@index}" data-parent="#pc-section" - aria-expanded="false" aria-controls="pc-{$c_info@index}"> - Workshop Details - </button> - <div id="pc-{$c_info@index}" class="collapse"> <!-- pc level {$c_info@iteration} info start --> - {else} - <div id="pc-{$c_info@index}"> <!-- pc level {$c_info@iteration} info start --> - {/if} - <dl> - {foreach $c_info as $field_name => $field_value} - <dt> - <span class="vm-workshops-field"> - <span class="glyphicon glyphicon-{$field_value[0]}"></span> - {$field_name} - </span> - </dt> - <dd> - {$field_value[1]} - </dd> - {if $c_info@index == 0 and $field_name == 'Course Fee'} - </dl> - <button type="button" class="btn btn-primary btn-xs margin-bottom" data-toggle="collapse" - data-target="#pc-{$c_info@index}-more-details" data-parent="pc-{$c_info@index}" - aria-expanded="false" aria-controls="pc-{$c_info@index}-more-details"> - More Details - </button> - <div id="pc-{$c_info@index}-more-details" class="collapse"> <!-- pc level {$c_info@iteration} more details start --> - <dl> - {/if} - {if $c_info@index == 0 and $field_name == 'Syllabus'} - </dl> - </div> <!-- pc level {$c_info@iteration} more details end --> - {/if} - {/foreach} - </div> <!-- pc level {$c_info@iteration} info end --> - {if $c_info@index == 0} - <button type="button" - class="btn btn-primary" - data-toggle="modal" - data-target="#vmreg-modal" data-pclasstype="{$c_name}" - data-pclasslevel="{$c_info@iteration}" data-notice="{$notices[$c_info@index]}"> - Register - </button> - {/if} - </section> <!-- pc level {$c_info@index} end --> - {/foreach} - </div> <!-- pc info section end --> - - <!-- reg. modal section start --> - <div class="modal fade" id="vmreg-modal" tabindex="-1" role="dialog" aria-labelledby="vmreg-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="vmreg-modal-label">Registration</h3> - </div> - <div class="modal-body"> - - <p id="reg-notice"> - </p> - - <form id="vmreg-form" method="POST" role="form" action="/workshops/"> - <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="email" 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 for="blurb" class="control-label">Tell us about yourself:</label> - <textarea name="blurb" class="form-control" id="blurb" rows="3"></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" required> - </div> - </form> - </div> - <div class="modal-footer"> - <button id="vmreg-submit" type="submit" name="submit" value="submit" - form="vmreg-form" class="btn btn-primary">Register</button> - </div> - </div> - </div> - </div> - <!-- reg. modal section end --> - <hr class="visible-xs hr-long" /> - </div> <!-- pc column end --> - - <div id="pc-second-column" class="margin-top col-sm-5"> <!-- pc static images column start --> - - <div class="row"> - <div class="col-sm-offset-3 col-sm-6 col-xs-12"> - <a href="/workshops/students/" - class="btn btn-primary btn-lg btn-block margin-bottom workshop-btn-lg"> - Students' Gallery - </a> - </div> - </div> - - <div class="row"> - <div class="col-sm-offset-3 col-sm-6 col-xs-12"> - <a href="/workshops/testimonials/" - class="btn btn-primary btn-lg btn-block margin-bottom workshop-btn-lg"> - Testimonials - </a> - </div> - </div> - - - <img id="vm-loading-img" class="img-responsive" - src="/themes/bs3/img/loading-vm.gif" alt="[ Loading... ]"> - <div class="students-grid" style="visibility: hidden;"> - {foreach $wg_imgs_info.imgs as $img} - <img class="img-responsive margin-top" - src="{$wg_imgs_info.path}/{$img}" alt="[ static image - {$img} ]"> - {/foreach} - </div> - - <aside class="equipment-partner text-center"> <!-- start of equipment partner content --> - <h2>Equipment Partner</h2> - <a href="https://facebook.com/profile.php?id=287147924751841&tsid=0.451601832639426&source=typeahead"> - <img class="img-responsive center-block" src="/themes/bs3/img/equipment-partner.jpg" - alt="[ Equipment Partner Logo ]"> - </a> - </aside> <!-- end of equipment partner content --> - - </div> <!-- pc static images column end --> - - </div> <!-- pc row end --> - </article> - {include file='aside.tpl'} -</div> <!-- top container end --> - -{include file='js.tpl'} -<script type="text/javascript" - src="{$doc_root}themes/bs3/js/jquery-photoset-grid/jquery.photoset-grid.min.js"></script> -<script type="text/javascript" - src="{$doc_root}themes/bs3/js/jquery-colorbox/jquery.colorbox-min.js"></script> -<script> - $('#vmreg-modal').on('show.bs.modal', function (event) { - var button = $(event.relatedTarget) // Button that triggered the modal - var class_type = button.data('pclasstype') // Extract info from data-* attributes - var class_level = button.data('pclasslevel') - var class_notice = button.data('notice') - console.log(class_notice) - var modal = $(this) - modal.find('.modal-title').text(class_type + ' Registration') - modal.find('#vmreg-submit').val(class_level) - if(class_notice.length > 0) { - modal.find('#reg-notice').addClass('text-center'); - modal.find('#reg-notice').html(class_notice); - } - }) -</script> -<script> - setTimeout(function(){ - if ($('#pc-alert-box').length > 0) { - $('#pc-alert-box').fadeOut('slow'); - } - }, 20000) -</script> -<script type="text/javascript"> -$(document).ready(setupPhotoGrid) - -function setupPhotoGrid() { - var layout_spec = '22'; - $('.students-grid').photosetGrid({ - highresLinks: true, - gutter: '5px', - layout: layout_spec, - rel: 'category', - onInit: function(){}, - onComplete: function(){ - $('img').remove('#vm-loading-img'); - $('.students-grid').attr('style', ''); - $('.students-grid a').colorbox({ - photo: true, - scalePhotos: true, - maxHeight:'90%', - maxWidth:'90%' - }); - } - }); -} -</script> -<script> -function adjustHRLine() { - var screenWidth = $(window).width(); - if(screenWidth < 768) { - $('.hr-long').css('width', $(window).width() - 20); - $('.vm-workshops h1').css('padding-right', 0); - }else { - $('.hr-long').css('width', ($('#pc-first-column').width() + - $('#pc-second-column').width())); - $('.vm-workshops h1').css('padding-right', '2.3em'); - } -} -$(document).ready(adjustHRLine); -$(window).resize(adjustHRLine); -</script> -<script> -function adjustTable() { - var screenWidth = $(window).width(); - if(screenWidth < 768) { - $('.vm-workshops table').css('width', '100%'); - }else { - $('.vm-workshops table').css('width', '75%'); - } -} -$(document).ready(adjustTable); -$(window).resize(adjustTable); -</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'} diff --git a/themes/bs3/templates/p-classes.tpl b/themes/bs3/templates/p-classes.tpl @@ -1,58 +1,10 @@ -{include file='header.tpl'} - -<!-- reg. modal section start --> -<div class="modal fade" id="vmreg-modal" tabindex="-1" role="dialog" aria-labelledby="vmreg-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="vmreg-modal-label">Registration</h3> - </div> - <div class="modal-body"> - - <p id="reg-notice"> - </p> - - <form id="vmreg-form" method="POST" role="form" action="/as/photography-classes/"> - <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 for="blurb" class="control-label">Tell us about yourself:</label> - <textarea name="blurb" class="form-control" id="blurb" rows="3"></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" required> - </div> - </form> - </div> - <div class="modal-footer"> - <button id="vmreg-submit" type="submit" name="submit" value="submit" - form="vmreg-form" class="btn btn-primary">Register</button> - </div> - </div> - </div> - </div> - -<!-- reg. modal section end --> +{include file='fp-header.tpl'} <div class="container-fluid"> <!-- top container start --> - + <article class="vm-workshops"> {if isset($pc_msg)} <div id="pc-alert-box" class="row"> - <div class="col-sm-offset-2 col-sm-9"> + <div class="col-sm-offset-1 col-sm-10"> <div class="alert alert-{$pc_msg.type}" role="alert"> <p>{$pc_msg.content}</p> </div> @@ -60,15 +12,18 @@ </div> {/if} + <div class="row text-center margin-bottom"> + <h1>{$pc_title}</h1> + </div> <div class="row"> <!-- pc row start --> - <div class="col-sm-6"> <!-- pc column start --> - <h1 class="text-center">{$pc_title}</h1> - {$pc_intro} + <div id="pc-first-column" class="col-sm-offset-1 col-sm-5"> <!-- pc column start --> + {$pc_intro} <div id="pc-section"> <!-- pc info section start --> {foreach $classes as $c_name => $c_info} - <h2>{$c_name}</h2> + <section id="pc-level-{$c_info@index}"> <!-- pc level {$c_info@index} start --> + <h2>{$c_name}</h2> {if $c_info@index == 1} <button type="button" class="btn btn-primary btn-sm" data-toggle="collapse" @@ -83,7 +38,7 @@ <dl> {foreach $c_info as $field_name => $field_value} <dt> - <span class="label label-inverse"> + <span class="vm-workshops-field"> <span class="glyphicon glyphicon-{$field_value[0]}"></span> {$field_name} </span> @@ -93,7 +48,7 @@ </dd> {if $c_info@index == 0 and $field_name == 'Course Fee'} </dl> - <button type="button" class="btn btn-primary btn-sm margin-bottom" data-toggle="collapse" + <button type="button" class="btn btn-primary btn-xs margin-bottom" data-toggle="collapse" data-target="#pc-{$c_info@index}-more-details" data-parent="pc-{$c_info@index}" aria-expanded="false" aria-controls="pc-{$c_info@index}-more-details"> More Details @@ -116,36 +71,109 @@ Register </button> {/if} + </section> <!-- pc level {$c_info@index} end --> {/foreach} </div> <!-- pc info section end --> + <!-- reg. modal section start --> + <div class="modal fade" id="vmreg-modal" tabindex="-1" role="dialog" aria-labelledby="vmreg-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="vmreg-modal-label">Registration</h3> + </div> + <div class="modal-body"> - <div class="margin-top"> <!-- pc carousel start --> - {include file='carousel.tpl' cimages=$carousel.imgs cpath=$carousel.path} - </div> <!-- pc carousel end --> + <p id="reg-notice"> + </p> + <form id="vmreg-form" method="POST" role="form" action="/workshops/"> + <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="email" 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 for="blurb" class="control-label">Tell us about yourself:</label> + <textarea name="blurb" class="form-control" id="blurb" rows="3"></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" required> + </div> + </form> + </div> + <div class="modal-footer"> + <button id="vmreg-submit" type="submit" name="submit" value="submit" + form="vmreg-form" class="btn btn-primary">Register</button> + </div> + </div> + </div> + </div> + <!-- reg. modal section end --> + <hr class="visible-xs hr-long" /> </div> <!-- pc column end --> - <div class="col-sm-6"> <!-- pc static images column start --> - <div class="row"> - <div class="col-sm-offset-2 col-sm-7"> - {foreach $static.imgs as $img} + <div id="pc-second-column" class="margin-top col-sm-5"> <!-- pc static images column start --> + + <div class="row"> + <div class="col-sm-offset-3 col-sm-6 col-xs-12"> + <a href="/workshops/students/" + class="btn btn-primary btn-lg btn-block margin-bottom workshop-btn-lg"> + Students' Gallery + </a> + </div> + </div> + + <div class="row"> + <div class="col-sm-offset-3 col-sm-6 col-xs-12"> + <a href="/workshops/testimonials/" + class="btn btn-primary btn-lg btn-block margin-bottom workshop-btn-lg"> + Testimonials + </a> + </div> + </div> + + + <img id="vm-loading-img" class="img-responsive" + src="/themes/bs3/img/loading-vm.gif" alt="[ Loading... ]"> + <div class="students-grid" style="visibility: hidden;"> + {foreach $wg_imgs_info.imgs as $img} <img class="img-responsive margin-top" - src="{$static.path}/{$img}" alt="[ static image - {$img} ]"> + src="{$wg_imgs_info.path}/{$img}" alt="[ static image - {$img} ]"> {/foreach} </div> - </div> + + <aside class="equipment-partner text-center"> <!-- start of equipment partner content --> + <h2>Equipment Partner</h2> + <a href="https://facebook.com/profile.php?id=287147924751841&tsid=0.451601832639426&source=typeahead"> + <img class="img-responsive center-block" src="/themes/bs3/img/equipment-partner.jpg" + alt="[ Equipment Partner Logo ]"> + </a> + </aside> <!-- end of equipment partner content --> + </div> <!-- pc static images column end --> </div> <!-- pc row end --> - + </article> + {include file='aside.tpl'} </div> <!-- top container end --> {include file='js.tpl'} -<script> - $('#nav-link-pc').addClass("active"); -</script> +<script type="text/javascript" + src="{$doc_root}themes/bs3/js/jquery-photoset-grid/jquery.photoset-grid.min.js"></script> +<script type="text/javascript" + src="{$doc_root}themes/bs3/js/jquery-colorbox/jquery.colorbox-min.js"></script> <script> $('#vmreg-modal').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) // Button that triggered the modal @@ -157,8 +185,8 @@ modal.find('.modal-title').text(class_type + ' Registration') modal.find('#vmreg-submit').val(class_level) if(class_notice.length > 0) { - modal.find('#reg-notice').addClass('text-center') - modal.find('#reg-notice').html('<span class="label label-inverse">' + class_notice + '</span>') + modal.find('#reg-notice').addClass('text-center'); + modal.find('#reg-notice').html(class_notice); } }) </script> @@ -169,5 +197,60 @@ } }, 20000) </script> +<script type="text/javascript"> +$(document).ready(setupPhotoGrid) +function setupPhotoGrid() { + var layout_spec = '22'; + $('.students-grid').photosetGrid({ + highresLinks: true, + gutter: '5px', + layout: layout_spec, + rel: 'category', + onInit: function(){}, + onComplete: function(){ + $('img').remove('#vm-loading-img'); + $('.students-grid').attr('style', ''); + $('.students-grid a').colorbox({ + photo: true, + scalePhotos: true, + maxHeight:'90%', + maxWidth:'90%' + }); + } + }); +} +</script> +<script> +function adjustHRLine() { + var screenWidth = $(window).width(); + if(screenWidth < 768) { + $('.hr-long').css('width', $(window).width() - 20); + $('.vm-workshops h1').css('padding-right', 0); + }else { + $('.hr-long').css('width', ($('#pc-first-column').width() + + $('#pc-second-column').width())); + $('.vm-workshops h1').css('padding-right', '2.3em'); + } +} +$(document).ready(adjustHRLine); +$(window).resize(adjustHRLine); +</script> +<script> +function adjustTable() { + var screenWidth = $(window).width(); + if(screenWidth < 768) { + $('.vm-workshops table').css('width', '100%'); + }else { + $('.vm-workshops table').css('width', '75%'); + } +} +$(document).ready(adjustTable); +$(window).resize(adjustTable); +</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'} diff --git a/workshops/index.php b/workshops/index.php @@ -197,4 +197,4 @@ $smarty->assign('wg_imgs_info', $wg_imgs_info); $smarty->assign('title', $title); $smarty->assign('meta_keywords', $meta_keywords); $smarty->assign('meta_description', $meta_desc); -$smarty->display('np-classes.tpl');- \ No newline at end of file +$smarty->display('p-classes.tpl');+ \ No newline at end of file