vishwamano

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

commit dbcbbee75762fd9a75228557d54b25d407b047d1
parent fae99dbb4471fedd36254e62c6ed2fbaa7e24e2d
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 20 Jun 2015 20:14:55 -0400

Workshop update.

- Removed Registration for Level 2.
- Level 1 details shown; 'See Syllabus' is hidden.
- Level 1 starts on July 18th.
- Level 2 starts in Sep. 2015.

	modified:   as/photography-classes/index.php
	modified:   themes/bs3/css/custom.css
	modified:   themes/bs3/templates/frontpage.tpl
	modified:   themes/bs3/templates/p-classes.tpl

Diffstat:
as/photography-classes/index.php | 12++++++------
themes/bs3/css/custom.css | 4++++
themes/bs3/templates/frontpage.tpl | 14++------------
themes/bs3/templates/p-classes.tpl | 77+++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
4 files changed, 61 insertions(+), 46 deletions(-)

diff --git a/as/photography-classes/index.php b/as/photography-classes/index.php @@ -58,11 +58,11 @@ $level_1 = array('Duration' => array('road', workshop, continued support through periodical online reviews and photo-walks.'), - 'Dates' => array('calendar', 'July 11<sup>th</sup>, 12<sup>th</sup>, 18<sup>th</sup> &amp; 19<sup>th</sup>.'), + 'Dates' => array('calendar', 'July 18<sup>th</sup>, 19<sup>th</sup>, 25<sup>th</sup> &amp; 26<sup>th</sup>.'), 'Classroom Session' => array('time','Saturday 5pm &rArr; 8pm <br/> Sunday 10am &rArr; 1pm'), - 'Field Session 1' => array('time','Sunday July 12<sup>th</sup>, 5:30am &rArr; 7:30am, Sunrise @ Marina.'), - 'Field Session 2' => array('time','Saturday July 18<sup>th</sup>, 5pm &rArr; 7 30pm, Night Photography @ Marina.'), + 'Field Session 1' => array('time','Sunday July 19<sup>th</sup>, 5:30am &rArr; 7:30am, Sunrise @ Marina.'), + 'Field Session 2' => array('time','Sunday July 26<sup>th</sup>, 5pm &rArr; 7 30pm, Night Photography @ Marina.'), 'Venue' => array('map-marker', 'Choolaimedu, Chennai'), 'Course Fee' => array('tag', '<span class="WebRupee"> Rs @@ -91,13 +91,13 @@ $level_1 = array('Duration' => array('road', ); -$l1_notice = 'Classes starts on <strong>11<sup>th</sup> July 2015</strong>'; +$l1_notice = 'Classes starts on <strong>18<sup>th</sup> July 2015</strong>'; $classes['Level 1 - Basic Photography Workshop '] = $level_1; $level_2 = array('Duration' => array('road', '5 Weekends, 10 session course'), - 'Dates' => array('time','July 11<sup>th</sup> 12<sup>th</sup>, 18<sup>th</sup>, 19<sup>th</sup>, 25<sup>th</sup>, 26<sup>th</sup>; August 1<sup>st</sup>, 2<sup>nd</sup>, 8<sup>th</sup> &amp; 9<sup>th</sup>.'), + 'Date' => array('calendar','September 2015'), 'Venue' => array('map-marker', 'Choolaimedu, Chennai'), 'Course Fee' => array('tag', '<span class="WebRupee"> Rs @@ -119,7 +119,7 @@ $level_2 = array('Duration' => array('road', '5 Weekends, 10 session course'), <li> All relevant Post Processing </li></ul>') ); -$l2_notice = 'Classes starts on <strong>11<sup>th</sup> July 2015</strong>'; +$l2_notice = 'Classes starts in <strong>September 2015</strong>'; $classes['Level 2 - Advanced Photography Workshop'] = $level_2; diff --git a/themes/bs3/css/custom.css b/themes/bs3/css/custom.css @@ -68,6 +68,10 @@ body { color: rgb(150, 150, 150); } +.cursor-pointer { + cursor: pointer; +} + /* carousel */ .carousel-control.left { diff --git a/themes/bs3/templates/frontpage.tpl b/themes/bs3/templates/frontpage.tpl @@ -23,21 +23,11 @@ <p> <span class="label label-danger"> <span class="glyphicon glyphicon-time" aria-hidden="true"></span> - 2015-06-15 + 2015-06-20 </span> <a href="/as/photography-classes/">&nbsp;Registrations open for Basic Photography Weekend Workshop, Batch 10, - Starting on July 11th, 2015. - </a> - </p> - <p> - <span class="label label-danger"> - <span class="glyphicon glyphicon-time" aria-hidden="true"></span> - 2015-06-15 - </span> - <a href="/as/photography-classes/">&nbsp;Registrations - open for Advanced Photography Weekend Workshop, Batch 4, - Starting on July 11th, 2015. + Starting on July 18th, 2015. </a> </p> </div> <!-- newsupdates end --> diff --git a/themes/bs3/templates/p-classes.tpl b/themes/bs3/templates/p-classes.tpl @@ -70,34 +70,55 @@ {foreach $classes as $c_name => $c_info} <h2>{$c_name}</h2> - <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 --> - <dl> - {foreach $c_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> - </div> <!-- pc level {$c_info@iteration} info end --> - <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 $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} + {if $c_info@index == 0 and $field_name == 'Syllabus'} + <dt> + <span class="label label-inverse"> + <span class="glyphicon glyphicon-{$field_value[0]}"></span> + <span data-toggle="collapse" role="button" + data-target="#syl-{$c_info@index}" class="cursor-pointer" + data-parent="pc-{$c_info@index}" + aria-expanded="false" + aria-controls="syl-{$c_info@index}">See {$field_name}</span> + </span> + </dt> + <dd id="syl-{$c_info@index}" class="collapse"> + {$field_value[1]} + </dd> + {else} + <dt> + <span class="label label-inverse"> + <span class="glyphicon glyphicon-{$field_value[0]}"></span> + {$field_name} + </span> + </dt> + <dd> + {$field_value[1]} + </dd> + {/if} + {/foreach} + </dl> + </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} {/foreach} </div> <!-- pc info section end -->