vishwamano

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

commit 2611109a34f1ae78545ecab2f450e3537ae507c2
parent 39837f42d4178690973e528dde4ad0c4f06188f3
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Tue, 31 May 2016 05:49:16 +0000

remove /as/students/

Diffstat:
.htaccess | 1-
as/students/index.php | 44--------------------------------------------
themes/bs3/templates/students-gallery.tpl | 119-------------------------------------------------------------------------------
3 files changed, 0 insertions(+), 164 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -16,6 +16,5 @@ Redirect permanent /gallery/birds /gallery/wildlife Redirect permanent /as/photography-classes /workshops Redirect permanent /as/photography-services /workshops Redirect permanent /workshops /as -Redirect permanent /workshops/students /as/students Redirect permanent /workshops/testimonials /as/testimonials Redirect permanent /journal https://www.facebook.com/vishwaphotography \ No newline at end of file diff --git a/as/students/index.php b/as/students/index.php @@ -1,43 +0,0 @@ -<?php - -/* Vishwamano.com PHP snafu. - - Copyright (C) 2015 rsiddharth <s@ricketyspace.net> - - 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'); - -$title = 'Students\' Gallery &middot; Vishwa Mano Photography Workshops'; -$meta_desc = 'A collection of photographs by Vishwa\'s students.'; - -$p_title = "Students' Gallery"; -$gallery_info = array('name' => 'students', - 'imgs_path' => $abs_path . '/images/workshops/students/', - 'imgs_root' => '/images/workshops/students', - 'parent' => '/as/'); -$images = get_images($gallery_info['imgs_path']); - -$smarty->assign('p_title', $p_title); -$smarty->assign('no_of_images', count($images)); -$smarty->assign('gallery_info', $gallery_info); -$smarty->assign('images', $images); -$smarty->assign('title', $title); -$smarty->assign('meta_description', $meta_desc); -$smarty->display('students-gallery.tpl');- \ No newline at end of file diff --git a/themes/bs3/templates/students-gallery.tpl b/themes/bs3/templates/students-gallery.tpl @@ -1,119 +0,0 @@ -{include file='header.tpl'} - -<div class="container-fluid"> <!-- top container start --> - - <article class="vm-workshops"> - <h1 class="text-center">{$p_title}</h1> - <div class="row"> <!-- loading img start --> - <div class="col-sm-12"> - <img id="vm-loading-img" class="img-responsive loading-vm" src="/themes/bs3/img/loading-vm.gif" - alt="[ Loading... ]"> - </div> - </div> <!-- loading img end --> - - <div class="row"> <!-- photoset row start --> - <div class="col-sm-12"> - <a class="btn btn-primary btn-xs margin-bottom" href="/workshops/"> - <span class="glyphicon glyphicon-chevron-left"></span> - </a> - <div class="photoset-grid-custom" style="visibility: hidden;"> <!-- photoset grid start --> - {foreach $images as $i => $img} - <img class="img-responsive" src="{$gallery_info.imgs_root}/{$img}" - alt="[ {$gallery_info.name} - {$img} ]"/> - {/foreach} - </div> <!-- photoset grid end --> - <a class="btn btn-primary btn-xs margin-top margin-bottom" href="/workshops/"> - <span class="glyphicon glyphicon-chevron-left"></span> - </a> - </div> - </div> <!-- photoset row end --> - </article> - - {include file='aside.tpl'} -</div> <!-- top container end --> - -{include file='js.tpl'} -<script type="text/javascript"> -$(document).ready(setupPhotoGrid); - -function setupPhotoGrid() { - var layout_spec = ''; - var screenWidth = $(window).width(); - var no_images = {$no_of_images}; - - var l = []; - var li; // index for array `l'. - var layout_array = []; - var i = 0; // index for array `layout_array'. - - if(screenWidth <= 736) { - l = [2, 2]; - } - else { - l = [4, 4]; - } - - var sum = 0; - var iter = 0; - while(sum != no_images) { - li = iter++ % 2; - if(sum + l[li] > no_images) - continue; - - sum += l[li]; - layout_array[i++] = l[li]; - } - - for(i = 0; i < layout_array.length; i++) { - layout_spec += layout_array[i]; - } - - $('.photoset-grid-custom').photosetGrid({ - highresLinks: true, - gutter: '5px', - layout: layout_spec, - rel: 'category', - onInit: function(){}, - onComplete: function(){ - $('img').remove('#vm-loading-img'); - $('.photoset-grid-custom').attr('style', ''); - $('.photoset-grid-custom a').colorbox({ - photo: true, - scalePhotos: true, - maxHeight:'90%', - maxWidth:'90%' - }); - } - }); -} -</script> -<script> -function galleryNavAdjust() { - var screenWidth = $(window).width(); - - if(screenWidth < 549) { - $('#gallery-nav').attr('class', 'gallery-nav-2-col'); - }else { - $('#gallery-nav').attr('class', 'breadcrumb text-center center-wrt-nav'); - } - $('.hr-long').css('width', $('.photoset-grid-custom').width()); -} -$(document).ready(galleryNavAdjust); -$(window).resize(galleryNavAdjust); -</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', ($('#t-first-column').width() + - $('#t-second-column').width())); - $('.vm-workshops h1').css('padding-right', '2.3em'); - } -} -$(document).ready(adjustHRLine); -$(window).resize(adjustHRLine); -</script> -{include file='footer.tpl'}