Skip to content

Commit

Permalink
Item14522: clean up photoswipe template
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Oct 24, 2017
1 parent 7ec90bc commit c23d000
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
3 changes: 2 additions & 1 deletion data/System/JQPhotoSwipeContrib.txt
Expand Up @@ -89,6 +89,7 @@ See the [[http://photoswipe.com/documentation/options.html][full documentation]]
---++ Change History

%TABLE{columnwidths="7em" tablewidth="100%"}%
| 24 Oct 2017 | cleaned up photoswipe template from unnecessary html comments |
| 02 Sep 2016 | fixed Config.spec typo; fixed javascript initializer; better usability navigating images in gallery |
| 30 May 2016 | initial release |

Expand All @@ -98,7 +99,7 @@ See the [[http://photoswipe.com/documentation/options.html][full documentation]]
%META:FIELD{name="Release" title="Release" value="%25$RELEASE%25"}%
%META:FIELD{name="Description" title="Description" value=""}%
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/%25$ROOTMODULE%25"}%
%META:FIELD{name="Copyright" title="Copyright" value="2016, Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="Copyright" title="Copyright" value="2016-2017, Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Home" title="Home" value="http://foswiki.org/Extensions/%25$ROOTMODULE%25"}%
%META:FIELD{name="Support" title="Support" value="http://foswiki.org/Support/%25$ROOTMODULE%25"}%
Expand Down
11 changes: 3 additions & 8 deletions lib/Foswiki/Contrib/JQPhotoSwipeContrib.pm
@@ -1,6 +1,6 @@
# Extension for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# JQPhotoSwipeContrib is Copyright (C) 2016 Michael Daum http://michaeldaumconsulting.com
# JQPhotoSwipeContrib is Copyright (C) 2016-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -20,14 +20,9 @@ use warnings;

use Foswiki::Func ();

our $VERSION = '1.01';
our $RELEASE = '02 Sep 2016';
our $VERSION = '1.02';
our $RELEASE = '24 Oct 2017';
our $SHORTDESCRIPTION = 'Modern javascript image gallery';
our $NO_PREFS_IN_TOPIC = 1;

sub init {
require Foswiki::Plugins::JQueryPlugin;
Foswiki::Plugins::JQueryPlugin::registerPlugin("JQPhotoSwipeContrib", "Foswiki::Contrib::JQPhotoSwipeContrib::Core");
}

1;
2 changes: 1 addition & 1 deletion lib/Foswiki/Contrib/JQPhotoSwipeContrib/Core.pm
@@ -1,6 +1,6 @@
# Extension for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# JQPhotoSwipeContrib is Copyright (C) 2016 Michael Daum http://michaeldaumconsulting.com
# JQPhotoSwipeContrib is Copyright (C) 2016-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Contrib/JQPhotoSwipeContrib/MANIFEST
@@ -1,3 +1,4 @@
!noci
data/System/JQPhotoSwipeContrib.txt 0644
lib/Foswiki/Contrib/JQPhotoSwipeContrib/Config.spec 0644
lib/Foswiki/Contrib/JQPhotoSwipeContrib/Core.pm 0644
Expand Down
14 changes: 2 additions & 12 deletions templates/photoswipe.tmpl
@@ -1,29 +1,19 @@
%TMPL:DEF{"pswp"}%<!-- Root element of PhotoSwipe. Must have class pswp. -->
%TMPL:DEF{"pswp"}%<noautolink>
<div class="pswp $zone $id" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides.
PhotoSwipe keeps only 3 of them in the DOM to save memory.
Don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader\-\-active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
Expand All @@ -44,4 +34,4 @@
</div>
</div>
</div>
</div>%TMPL:END%
</div></noautolink>%TMPL:END%

0 comments on commit c23d000

Please sign in to comment.