WP Photo Album Plus - Version 7.5.02.008

Version Description

= 7.5.02 =

  • This version addresses various bug fixes and feature requests.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 7.5.02.008
Comparing to
See all releases

Code changes from version 7.5.01.001 to 7.5.02.008

changelog.txt CHANGED
@@ -1,5 +1,15 @@
1
  WP Photo Album Plus Changelog
2
 
 
 
 
 
 
 
 
 
 
 
3
  = 7.5.01 =
4
 
5
  * Fixes to comply with WP 5.5.
1
  WP Photo Album Plus Changelog
2
 
3
+ = 7.5.02 =
4
+
5
+ * Lightbox enhancements.
6
+ All navigation buttons are now below the image.
7
+ Mobile devices always run in fullscreen mode.
8
+ The only fullscreen mode is padded.
9
+ Switching to and from fullscreen works now properly also on mobile devices.
10
+ Swipe left/right works on all zoomable lightbox types on mobile devices.
11
+ Fixed GPU overload on initial display of zoomable images.
12
+
13
  = 7.5.01 =
14
 
15
  * Fixes to comply with WP 5.5.
img/Backward-Button.svg DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z M23,20.5
7
- c0,0.2-0.1,0.3-0.2,0.4c-0.2,0.1-0.3,0.1-0.5,0L16,17.4v3.1c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.1,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1
8
- l-8-6C7.1,14.8,7,14.6,7,14.5c0-0.2,0.1-0.3,0.2-0.4l8-5c0.2-0.1,0.3-0.1,0.5,0C15.9,9.2,16,9.3,16,9.5v3.1l6.3-3.6
9
- c0.2-0.1,0.3-0.1,0.5,0C22.9,9.2,23,9.3,23,9.5V20.5z"/>
10
- </g>
11
- </svg>
 
 
 
 
 
 
 
 
 
 
 
img/Content-View.svg DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <g>
7
- <path d="M21.5,25.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,25.5,21.5,25.5z
8
- M21.5,18.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,18.5,21.5,18.5z M21.5,23.5h4
9
- c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,23.5,21.5,23.5z M21.5,16.5h4
10
- c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,16.5,21.5,16.5z M21.5,11.5h4
11
- c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,11.5,21.5,11.5z M26.864,0.5H3.136
12
- C1.407,0.5,0,1.866,0,3.545v22.91C0,28.134,1.407,29.5,3.136,29.5h23.728c1.729,0,3.136-1.366,3.136-3.045V3.545
13
- C30,1.866,28.593,0.5,26.864,0.5z M9.5,2.5C9.776,2.5,10,2.724,10,3S9.776,3.5,9.5,3.5S9,3.276,9,3S9.224,2.5,9.5,2.5z M6.5,2.5
14
- C6.776,2.5,7,2.724,7,3S6.776,3.5,6.5,3.5S6,3.276,6,3S6.224,2.5,6.5,2.5z M3.5,2.5C3.776,2.5,4,2.724,4,3S3.776,3.5,3.5,3.5
15
- S3,3.276,3,3S3.224,2.5,3.5,2.5z M29,26.455c0,1.128-0.958,2.045-2.136,2.045H3.136C1.958,28.5,1,27.583,1,26.455V5.5h28V26.455z
16
- M21.5,9.5h4C25.776,9.5,26,9.276,26,9s-0.224-0.5-0.5-0.5h-4C21.224,8.5,21,8.724,21,9S21.224,9.5,21.5,9.5z M4.5,25.5h2
17
- C6.776,25.5,7,25.276,7,25v-2c0-0.276-0.224-0.5-0.5-0.5h-2C4.224,22.5,4,22.724,4,23v2C4,25.276,4.224,25.5,4.5,25.5z M17.5,11.5
18
- h2c0.276,0,0.5-0.224,0.5-0.5V9c0-0.276-0.224-0.5-0.5-0.5h-2C17.224,8.5,17,8.724,17,9v2C17,11.276,17.224,11.5,17.5,11.5z
19
- M8.5,25.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4C8.224,24.5,8,24.724,8,25S8.224,25.5,8.5,25.5z M8.5,18.5h4
20
- c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4C8.224,17.5,8,17.724,8,18S8.224,18.5,8.5,18.5z M8.5,23.5h4
21
- c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4C8.224,22.5,8,22.724,8,23S8.224,23.5,8.5,23.5z M4.5,11.5h2
22
- C6.776,11.5,7,11.276,7,11V9c0-0.276-0.224-0.5-0.5-0.5h-2C4.224,8.5,4,8.724,4,9v2C4,11.276,4.224,11.5,4.5,11.5z M4.5,18.5h2
23
- C6.776,18.5,7,18.276,7,18v-2c0-0.276-0.224-0.5-0.5-0.5h-2C4.224,15.5,4,15.724,4,16v2C4,18.276,4.224,18.5,4.5,18.5z M17.5,25.5
24
- h2c0.276,0,0.5-0.224,0.5-0.5v-2c0-0.276-0.224-0.5-0.5-0.5h-2c-0.276,0-0.5,0.224-0.5,0.5v2C17,25.276,17.224,25.5,17.5,25.5z
25
- M17.5,18.5h2c0.276,0,0.5-0.224,0.5-0.5v-2c0-0.276-0.224-0.5-0.5-0.5h-2c-0.276,0-0.5,0.224-0.5,0.5v2
26
- C17,18.276,17.224,18.5,17.5,18.5z M8.5,16.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4C8.224,15.5,8,15.724,8,16
27
- S8.224,16.5,8.5,16.5z M8.5,9.5h4C12.776,9.5,13,9.276,13,9s-0.224-0.5-0.5-0.5h-4C8.224,8.5,8,8.724,8,9S8.224,9.5,8.5,9.5z
28
- M8.5,11.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4C8.224,10.5,8,10.724,8,11S8.224,11.5,8.5,11.5z"/>
29
- </g>
30
- </g>
31
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
img/Eagle-1.svg DELETED
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <path d="M29.9,19.2c-0.1-0.1-0.2-0.2-0.4-0.2c-3.7,0-6.2-0.6-7.6-1.1c-0.1,0-0.1,0.1-0.2,0.1c-1.2,1.2-4,2.6-4.6,2.9
6
- c-0.1,0-0.1,0.1-0.2,0.1c-0.2,0-0.4-0.1-0.4-0.3c-0.1-0.2,0-0.5,0.2-0.7c0.3-0.2,2.9-1.4,4.1-2.5l0,0c0.1-0.1,0.1-0.1,0.2-0.2
7
- c0.7-0.7,2.5-0.5,3.3-0.3c0,0,0.1,0,0.1,0c0.2,0.1,0.4,0,0.5-0.2c0,0,0,0,0,0c0,0,0,0,0,0c0.1-0.2,0.1-0.3,0.2-0.5c0,0,0-0.1,0-0.1
8
- c0-0.1,0.1-0.3,0.1-0.4c0,0,0-0.1,0-0.1c0-0.1,0-0.3,0-0.4c0,0,0-0.1,0-0.1c0-0.1-0.1-0.3-0.2-0.4c0,0,0,0,0-0.1
9
- c-0.1-0.1-0.1-0.2-0.2-0.2c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1-0.1-0.2-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1-0.1-0.2-0.1
10
- c-0.1,0-0.1-0.1-0.2-0.1c-0.1,0-0.1-0.1-0.2-0.1c0,0-0.1,0-0.1-0.1c-0.1,0-0.2-0.1-0.2-0.1c0,0-0.1,0-0.1,0c-0.4-0.1-0.7-0.2-1-0.2
11
- c0-0.1-0.1-0.2-0.1-0.3c-0.1-0.2-0.2-0.3-0.3-0.5c-0.2-0.2-0.4-0.3-0.6-0.4C21,12.1,20.6,12,20,12c-0.3,0-0.6,0-0.8,0.1
12
- c-0.1,0-0.1,0-0.2,0c-0.2,0-0.5,0.1-0.7,0.1c0,0-0.1,0-0.1,0c-0.2,0.1-0.5,0.1-0.7,0.2c0,0,0,0,0,0c-1.2,0.5-2.2,1.2-3,1.8
13
- c-0.5,0.3-0.9,0.6-1.2,0.8c-0.2,0.1-0.5,0-0.7-0.2c-0.1-0.3,0-0.5,0.2-0.7c0.2-0.1,0.6-0.4,0.9-0.6c-1.6-0.6-4-2-4-5.4
14
- c0-4.1,1.9-5.6,3.2-6.6c0.3-0.2,0.6-0.4,0.8-0.7C14,0.7,14,0.5,14,0.3S13.7,0,13.5,0C10.1,0,8.1,2,7,3.5v-1C7,2.3,6.9,2.1,6.7,2
15
- C6.5,2,6.3,2,6.1,2.1C4.5,3.8,3.9,5.4,3.7,6.8L3.4,6.3C3.4,6.1,3.2,6,3.1,6S2.8,6,2.6,6.1C1.8,7,1.3,8,1.3,9c0,0.5,0.1,1,0.3,1.4
16
- l-1-0.4c-0.2-0.1-0.3,0-0.5,0.1C0.1,10.2,0,10.3,0,10.5c0,2.7,0.5,4.4,1.4,5.2c0.1,0.1,0.2,0.1,0.3,0.2C1.4,16.4,1,17.4,1,18.5
17
- c0,1.5,2.6,2.5,4.5,3c-1,0.4-2,1-2,2c0,0.5-1.6,1.2-3.1,1.5c-0.2,0-0.3,0.2-0.4,0.4c-0.1,0.2,0,0.4,0.2,0.5C0.4,26,4.9,30,8.5,30
18
- C8.8,30,9,29.8,9,29.5c0-3.1,3.5-5,4.5-5.4c0.6,0.3,2,0.9,5,0.9c1.9,0,2.9-0.3,3.2-1l1.6,0.9c0.1,0,0.2,0.1,0.3,0.1
19
- c3.4,0,4.3-1.1,4.4-1.2c0.1-0.2,0.1-0.5-0.1-0.6l-0.8-0.8c2.1-0.6,2.9-2.6,2.9-2.7C30,19.5,30,19.3,29.9,19.2z M20.5,14
20
- c0.3,0,0.5,0.2,0.5,0.5S20.8,15,20.5,15S20,14.8,20,14.5S20.2,14,20.5,14z"/>
21
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
img/Exit-Full-Screen.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: OpaJaap -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
- <g>
6
- <g>
7
- <path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>
8
- </g>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Exit.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: OpaJaap -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
- <g>
6
- <g>
7
- <path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>
8
- </g>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Forward-Button.svg DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z
7
- M22.8,15.9l-8,5c-0.2,0.1-0.3,0.1-0.5,0c-0.2-0.1-0.3-0.3-0.3-0.4v-3.1l-6.3,3.6C7.7,21,7.6,21,7.5,21c-0.1,0-0.2,0-0.3-0.1
8
- C7.1,20.8,7,20.7,7,20.5v-11c0-0.2,0.1-0.3,0.2-0.4C7.4,9,7.6,9,7.7,9.1l6.3,3.6V9.5c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0
9
- l8,6c0.1,0.1,0.2,0.3,0.2,0.4C23,15.7,22.9,15.8,22.8,15.9z"/>
10
- </g>
11
- </svg>
 
 
 
 
 
 
 
 
 
 
 
img/Full-Screen.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!-- Generator: OpaJaap -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
5
- <g>
6
- <g>
7
- <path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>
8
- </g>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Next-Button.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z M20,20.5
7
- c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11
8
- c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z"/>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Pause-Button.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z M14,20.5
7
- c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5
8
- c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z"/>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Play-Button.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z
7
- M19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4
8
- c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z"/>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Prev-Button.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z M20,20.5
7
- c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11
8
- C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z"/>
9
- </g>
10
- </svg>
 
 
 
 
 
 
 
 
 
 
img/Snail.svg DELETED
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <path d="M28.5,16.3L30,9.1c0.1-0.3-0.1-0.5-0.4-0.6c-0.3-0.1-0.5,0.1-0.6,0.4L27.6,16c0,0-0.1,0-0.1,0L27,10c0-0.3-0.3-0.5-0.5-0.5
6
- C26.2,9.5,26,9.8,26,10l0.5,6.1c-0.4,0.1-0.7,0.2-1.1,0.3l0,0c-1.4,2-4.8,4.1-6.9,4.1c-1.9,0-3.8-0.1-5.2-1.1
7
- c-0.1-0.1-0.2-0.2-0.2-0.4c0-0.1,0-0.3,0.2-0.4l1.2-1.1c1.5-1.9,1.6-4.7,1.6-5.5c0-1.8-1.2-5.5-5-5.5c-3.7,0-5,2.7-5,5
8
- c0,2.7,2.1,3,3,3c1.5,0,3-1.3,3-2.5c0-1.1-0.4-1.5-1.5-1.5C9.4,10.5,9,10.9,9,12c0,0.3-0.2,0.5-0.5,0.5S8,12.3,8,12
9
- c0-1.6,0.9-2.5,2.5-2.5c1.7,0,2.5,0.8,2.5,2.5c0,1.8-1.9,3.5-4,3.5c-1.9,0-4-1.1-4-4c0-3,1.9-6,6-6c4.1,0,6,3.8,6,6.5
10
- c0,1.1-0.2,4-1.8,6.1l-0.8,0.7c1.2,0.5,2.6,0.6,4.1,0.6c1.8,0,5.2-2.3,6.2-3.9l0,0c0.3-0.7,0.3-1.6,0.3-2.7c0-0.3,0-0.5,0-0.8
11
- c0-2-3-9.5-12-9.5C4.8,2.5,1,7.9,1,13c0,3,1.3,5.3,3.8,6.5c-0.5,0.4-1.4,1.1-2.6,1.6C0.1,21.8,0,24.9,0,25c0,0.2,0.1,0.4,0.3,0.4
12
- c0.2,0.1,0.4,0.1,0.5,0c0,0,1.3-0.9,4.1-0.9c1.6,0,2.6,0.6,3.6,1c0.7,0.4,1.3,0.7,2.1,0.7c0.5,0,0.6,0.1,0.8,0.4
13
- c0.3,0.4,0.6,0.8,1.7,0.8c1,0,1.4-0.3,1.8-0.6c0.3-0.2,0.6-0.4,1.2-0.4c0.6,0,0.9,0.2,1.3,0.4c0.4,0.3,1,0.6,1.9,0.6
14
- c1.4,0,1.6-1,1.8-1.6c0.1-0.4,0.2-0.8,0.4-1c0.2-0.2,0.4-0.1,1,0.1c0.6,0.2,1.4,0.6,2.1-0.1c0.6-0.6,0.7-1.1,0.8-1.5
15
- c0.1-0.4,0.1-0.6,0.5-1c0.6-0.5,2-0.1,2.4,0.1c0.2,0.1,0.5,0,0.6-0.2c0-0.1,1.1-1.7,1.1-3.3C30,17.8,29.4,16.8,28.5,16.3z"/>
16
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
img/Stop-Button.svg DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <g>
6
- <path d="M30,0H0V30H30V0z M21,20.5
7
- c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>
8
- </g>
9
- </svg>
 
 
 
 
 
 
 
 
 
img/loader.svg DELETED
@@ -1,52 +0,0 @@
1
- <svg width='120px' height='120px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default">
2
- <rect x="0" y="0" width="100" height="100" fill="none" class="bk">
3
- </rect>
4
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(0 50 50) translate(0 -32)'>
5
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0s' repeatCount='indefinite'/>
6
- </rect>
7
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(22.5 50 50) translate(0 -32)'>
8
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.09375s' repeatCount='indefinite'/>
9
- </rect>
10
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(45 50 50) translate(0 -32)'>
11
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.1875s' repeatCount='indefinite'/>
12
- </rect>
13
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(67.5 50 50) translate(0 -32)'>
14
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.28125s' repeatCount='indefinite'/>
15
- </rect>
16
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(90 50 50) translate(0 -32)'>
17
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.375s' repeatCount='indefinite'/>
18
- </rect>
19
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(112.5 50 50) translate(0 -32)'>
20
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.46875s' repeatCount='indefinite'/>
21
- </rect>
22
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(135 50 50) translate(0 -32)'>
23
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.5625s' repeatCount='indefinite'/>
24
- </rect>
25
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(157.5 50 50) translate(0 -32)'>
26
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.65625s' repeatCount='indefinite'/>
27
- </rect>
28
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(180 50 50) translate(0 -32)'>
29
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.75s' repeatCount='indefinite'/>
30
- </rect>
31
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(202.5 50 50) translate(0 -32)'>
32
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.84375s' repeatCount='indefinite'/>
33
- </rect>
34
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(225 50 50) translate(0 -32)'>
35
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='0.9375s' repeatCount='indefinite'/>
36
- </rect>
37
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(247.5 50 50) translate(0 -32)'>
38
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='1.03125s' repeatCount='indefinite'/>
39
- </rect>
40
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(270 50 50) translate(0 -32)'>
41
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='1.125s' repeatCount='indefinite'/>
42
- </rect>
43
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(292.5 50 50) translate(0 -32)'>
44
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='1.21875s' repeatCount='indefinite'/>
45
- </rect>
46
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(315 50 50) translate(0 -32)'>
47
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='1.3125s' repeatCount='indefinite'/>
48
- </rect>
49
- <rect class="wppa-ajaxspin" x='47' y='40' width='6' height='20' rx='3' ry='3' transform='rotate(337.5 50 50) translate(0 -32)'>
50
- <animate attributeName='opacity' from='1' to='0' dur='1.5s' begin='1.40625s' repeatCount='indefinite'/>
51
- </rect>
52
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/wppa-lightbox.js CHANGED
@@ -3,10 +3,9 @@
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaLightboxVersion = '7.3.01';
7
 
8
  // Global inits
9
- var wppaNormsBtnOpac = 0.75;
10
  var wppaIsVideo = false;
11
  var wppaHasAudio = false;
12
  var wppaOvlIsPdf = false;
@@ -15,7 +14,6 @@ var wppaKbHandlerInstalled = false;
15
  var wppaOvlMode = '';
16
  var wppaOvlCurIdx = 0;
17
  var wppaOvlSvgInverse = false;
18
- var wppaOvlFsExitBtnSize = '48';
19
  var wppaOvlActivePanorama = 0;
20
  var wppaOvlHasPanoramas = false;
21
  var wppaGlobalOvlPanoramaId = 0;
@@ -59,8 +57,6 @@ function wppaDoOnOrientationChange( e ) {
59
  // Keyboard handler
60
  function wppaOvlKeyboardHandler( e ) {
61
 
62
- // e.preventDefault();
63
-
64
  var keycode;
65
  var escapeKey;
66
 
@@ -125,64 +121,45 @@ function wppaOvlKeyboardHandler( e ) {
125
  return false;
126
  }
127
 
128
- // Switch to fullscreen mode
129
  function wppaOvlFull( init ) {
130
- wppaConsoleLog( 'wppaOvlFull' );
131
 
132
  // Init
133
- wppaNormsBtnOpac = 0.75;
134
  var oldMode = wppaOvlMode;
135
- if ( ! init ) {
136
- wppaOvlStepMode();
137
- }
138
  var elem = document.getElementById( 'wppa-overlay-ic' );
139
  if ( ! elem ) return;
140
 
141
- // Got to fullscreen mode. This is browser dependant
142
  if ( init || oldMode == 'normal' ) {
143
- if ( elem.requestFullscreen ) {
144
- elem.requestFullscreen();
145
- } else if ( elem.mozRequestFullScreen ) {
146
- elem.mozRequestFullScreen();
147
- } else if ( elem.webkitRequestFullscreen ) {
148
- elem.webkitRequestFullscreen();
149
- }
150
- // if ( ! init ) setTimeout( function(){wppaOvlShow( wppaOvlIdx )}, 50 );
151
  }
152
 
153
- // Cancel fullscreen. This is browser dependant
154
- if ( wppaOvlMode == 'normal' ) {
155
- if ( document.cancelFullScreen ) {
156
- document.cancelFullScreen();
157
- } else if ( document.mozCancelFullScreen ) {
158
- document.mozCancelFullScreen();
159
- } else if ( document.webkitCancelFullScreen ) {
160
- document.webkitCancelFullScreen();
161
- }
162
  }
163
 
164
- setTimeout( function(){wppaShowFsButtons(0.75)}, 30 );
 
 
 
 
165
 
166
- // Remove legenda
167
- jQuery( '#wppa-ovl-legenda-1' ).html( '' );
168
  }
169
 
170
  // Switch to normal screen mode
171
  function wppaOvlNorm( exit ) {
172
- wppaConsoleLog( 'wppaOvlNorm' );
173
 
174
  // Init
 
 
 
175
  wppaOvlMode = 'normal';
176
- wppaNormsBtnOpac = 0.75;
177
 
178
- // Cancel fullscreen. This is browser dependant
179
- if ( document.cancelFullScreen ) {
180
- document.cancelFullScreen();
181
- } else if ( document.mozCancelFullScreen ) {
182
- document.mozCancelFullScreen();
183
- } else if ( document.webkitCancelFullScreen ) {
184
- document.webkitCancelFullScreen();
185
- }
186
 
187
  // If exiting, re-init start mode
188
  if ( exit ) {
@@ -190,16 +167,18 @@ wppaConsoleLog( 'wppaOvlNorm' );
190
  return;
191
  }
192
 
193
- setTimeout( function(){wppaShowFsButtons(0.75)}, 30 );
 
194
 
 
195
  setTimeout( function(){wppaOvlShow(wppaOvlIdx)}, 50 );
 
196
  }
197
 
198
  // Prepare the display of the lightbox overlay.
199
  // arg is either numeric ( index to current lightbox set ) or
200
  // 'this' for a single image or for the first of a set
201
  function wppaOvlShow( arg ) {
202
- wppaConsoleLog( 'wppaOvlShow arg=' + arg );
203
 
204
  var panData;
205
  var dotPos;
@@ -212,7 +191,6 @@ wppaConsoleLog( 'wppaOvlShow arg=' + arg );
212
  else {
213
  jQuery( '#wppa-overlay-ic' ).css({top:'50%',left:'50%'});
214
  }
215
- // jQuery( '#wppa-overlay-ic' ).css({top:'50%',left:'50%'});
216
 
217
  // Do the setup right after the invocation of the lightbox
218
  if ( wppaOvlFirst ) {
@@ -387,7 +365,6 @@ wppaConsoleLog( 'wppaOvlShow arg=' + arg );
387
  // Show the lightbox overlay.
388
  // idx is the numeric index to current lightbox set
389
  function _wppaOvlShow( idx ) {
390
- wppaConsoleLog( '_wppaOvlShow, idx='+idx );
391
 
392
  // Globalize index
393
  wppaOvlCurIdx = idx;
@@ -450,17 +427,11 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
450
  }
451
 
452
  // Find photo id and bump its viewcount
453
- // wppaPhotoId = wppaUrlToId( wppaOvlUrls[idx] );
454
  _bumpViewCount( wppaOvlIds[idx] );
455
 
456
  // A single image?
457
  wppaOvlIsSingle = ( wppaOvlUrls.length == 1 );
458
 
459
- // If there are panoramas, switch to fullscreen, if not yet
460
- // if ( wppaOvlHasPanoramas && wppaOvlMode == 'normal' ) {
461
- // wppaOvlFull();
462
- // }
463
-
464
  // Panorama requires image container top=0 left=0
465
  // Non panorama: 50%
466
  if ( wppaOvlPanoramaIds[idx] > 0 ) {
@@ -480,12 +451,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
480
  if ( wppaOvlActivePanorama ) {
481
  html = wppaOvlPanoramaHtml[idx] +
482
  '<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';
483
- if ( wppaOvlShowLegenda && wppaOvlMode != 'normal' ) {
484
- html +=
485
- '<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme == 'black' ? '#272727' : '#a7a7a7')+'; color:'+(wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727')+'; visibility:'+wppaShowLegenda+';" >'+
486
- 'Mode=fullscreen. '+( wppaOvlIsSingle ? wppaOvlFullLegendaSinglePanorama : wppaOvlFullLegendaPanorama )+
487
- '</div>';
488
- }
489
  html += '</div>';
490
  }
491
 
@@ -508,15 +474,6 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
508
  ' >'+
509
  wppaOvlVideoHtmls[idx]+
510
  '</video>'+
511
- '<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';
512
- if ( wppaOvlShowLegenda ) {
513
- html +=
514
- '<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme == 'black' ? '#272727' : '#a7a7a7')+'; color:'+(wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727')+'; visibility:'+wppaShowLegenda+';" >'+
515
- 'Mode='+wppaOvlMode+'. '+( wppaOvlIsSingle ? wppaOvlFullLegendaSingle : wppaOvlFullLegenda ) +
516
- '</div>';
517
- }
518
- html +=
519
- '</div>';
520
  '</div>';
521
  }
522
 
@@ -537,15 +494,6 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
537
  ' alt="'+wppaOvlAlts[idx]+'"' +
538
  ' >'+
539
  '</iframe>'+
540
- '<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';
541
- if ( wppaOvlShowLegenda ) {
542
- html +=
543
- '<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme == 'black' ? '#272727' : '#a7a7a7')+'; color:'+(wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727')+'; visibility:'+wppaShowLegenda+';" >'+
544
- 'Mode='+wppaOvlMode+'. '+( wppaOvlIsSingle ? wppaOvlFullLegendaSingle : wppaOvlFullLegenda ) +
545
- '</div>';
546
- }
547
- html +=
548
- '</div>';
549
  '</div>';
550
  }
551
 
@@ -563,68 +511,32 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
563
  ' style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;"'+
564
  ' alt="'+wppaOvlAlts[idx]+'"'+
565
  ' />';
 
566
  if ( wppaHasAudio ) {
567
- html += '<audio' +
568
- ' id="wppa-overlay-audio"' +
569
- ' class="wppa-overlay-audio"' +
570
- ' data-from="wppa"' +
571
- ' preload="metadata"' +
572
- ( ( wppaOvlAudioStart ) ? ' autoplay' : '' ) +
573
- ' onpause="wppaOvlAudioPlaying = false;"' +
574
- ' onplay="wppaOvlAudioPlaying = true;"' +
575
- ' style="' +
576
- 'width:100%;' +
577
- 'position:absolute;' +
578
- 'left:0px;' +
579
- 'bottom:0px;' +
580
- 'padding:0;' +
581
- '"' +
582
- ' controls' +
583
- ' >' +
584
- wppaOvlAudioHtmls[idx] +
585
- '</audio>';
586
- }
587
- html +=
588
- '<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';
589
- if ( wppaOvlShowLegenda ) {
590
  html +=
591
- '<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme == 'black' ? '#272727' : '#a7a7a7')+'; color:'+(wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727')+'; visibility:'+wppaShowLegenda+';" >'+
592
- 'Mode='+wppaOvlMode+'. '+( wppaOvlIsSingle ? wppaOvlFullLegendaSingle : wppaOvlFullLegenda )+
593
- '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
594
  }
595
- html +=
596
- '</div>';
597
- '</div>';
598
- }
599
 
600
- // The 'exit' icon
601
- var dark = wppaIsMobile ? '0.1' : '0.1';
602
- html += '<div' +
603
- ' id="wppa-exit-btn"' +
604
- ' style="height:'+wppaOvlFsExitBtnSize+'px;z-index:100098;position:fixed;top:0;right:0;opacity:' + wppaNormsBtnOpac + ';"' +
605
- ' onclick="wppaOvlHide()"' +
606
- ' onmouseover="jQuery(this).stop().fadeTo(300,1);"' +
607
- ' ontouchstart="jQuery(this).stop().fadeTo(300,1);"' +
608
- ' onmouseout="jQuery(this).stop().fadeTo(300,' + dark + ');wppaNormsBtnOpac=' + dark + ';"' +
609
- ' ontouchend="jQuery(this).stop().fadeTo(300,' + dark + ');wppaNormsBtnOpac=' + dark + ';"' +
610
- ' >' +
611
- wppaSvgHtml( 'Exit', wppaOvlFsExitBtnSize+'px', true, true, '0', '0', '0', '0' ) +
612
- '</div>';
613
-
614
-
615
- // The 'back to normal' icon, only on non-panorama
616
- if ( wppaOvlMode != 'normal' ) {
617
- html += '<div' +
618
- ' id="wppa-norms-btn"' +
619
- ' style="height:48px;z-index:100098;position:fixed;top:0;right:' + wppaOvlFsExitBtnSize + 'px;opacity:' + wppaNormsBtnOpac + ';"' +
620
- ' onclick="wppaOvlNorm()"' +
621
- ' onmouseover="jQuery(this).stop().fadeTo(300,1);"' +
622
- ' ontouchstart="jQuery(this).stop().fadeTo(300,1);"' +
623
- ' onmouseout="jQuery(this).stop().fadeTo(300,' + dark + ');wppaNormsBtnOpac=' + dark + ';"' +
624
- ' ontouchend="jQuery(this).stop().fadeTo(300,' + dark + ');wppaNormsBtnOpac=' + dark + ';"' +
625
- ' >' +
626
- wppaSvgHtml( 'Exit-Full-Screen', wppaOvlFsExitBtnSize+'px', true, true, '0', '0', '0', '0' ) +
627
- '</div>';
628
  }
629
 
630
  // Replacing the html stops a running video,
@@ -647,23 +559,22 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
647
  wppaOvlIsVideo = wppaIsVideo;
648
  setTimeout( 'wppaOvlFormatFull()', 10 );
649
  if ( wppaIsVideo || wppaHasAudio ) {
650
- setTimeout( 'wppaOvlUpdateFsId()', 20 );
651
  }
652
  else {
653
  wppaOvlFsPhotoId = 0;
654
  }
655
  wppaOvlFirst = false;
656
 
657
- // ??
658
  wppaShowFsButtons();
659
- // Record we are in
660
- // wppaOvlOpen = true;
661
 
662
  return false;
663
  }
664
 
665
  // NOT fullsize
666
  else {
 
667
  // Initialize
668
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
669
  wppaPhotoId = 0;
@@ -815,127 +726,59 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
815
  wppaOvlIsVideo = false;
816
  }
817
 
818
- // The start/stop button
819
- // Only if in a set
820
- // Not on a video to avoid confusion with the start video button
821
- if ( wppaOvlShowStartStop && ! wppaOvlIsSingle && ! wppaIsVideo && ! wppaOvlIsPdf ) {
822
- html += '<div' +
823
- ' id="wppa-ovl-start-stop-btn"' +
824
- ' class="wppa-ovl-nav-btn"' +
825
- ' style="' +
826
- 'z-index:100101;' +
827
- 'position:absolute;' +
828
- 'top:50%;' +
829
- 'margin-top:-24px;' +
830
- 'left:50%;' +
831
- 'margin-left:-24px;' +
832
- ( wppaOvlIdx == -1 ? 'visibility:hidden;' : '' ) +
833
- 'box-shadow:none;' +
834
- ( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
835
- '"' +
836
- ' onclick="wppaOvlStartStop()"' +
837
- ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
838
- ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
839
- ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
840
- ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
841
- ' >' +
842
- wppaSvgHtml( ( wppaOvlRunning ? 'Pause-Button' : 'Play-Button' ), wppaOvlIconSize, true, true, '0', '20', '50', '50' ) +
843
- '</div>';
844
- }
845
-
846
- // Show browse buttons only if we are in a set
847
- if ( ! wppaOvlIsSingle ) {
848
-
849
- // The prev button
850
- html += '<div' +
851
- ' id="wppa-ovl-prev-btn"' +
852
- ' class="wppa-ovl-nav-btn"' +
853
- ' style="' +
854
- 'position:absolute;' +
855
- 'z-index:100101;' +
856
- 'width:48px;' +
857
- 'top:50%;' +
858
- 'margin-top:-24px;' +
859
- 'left:1px;' +
860
- 'box-shadow:none;' +
861
- ( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
862
- '"' +
863
- ' onclick="wppaOvlShowPrev()"' +
864
- ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
865
- ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
866
- ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
867
- ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
868
- ' >' +
869
- wppaSvgHtml( 'Prev-Button', wppaOvlIconSize, true, true ) +
870
- '</div>';
871
-
872
- // The next button
873
- html += '<div' +
874
- ' id="wppa-ovl-next-btn"' +
875
- ' class="wppa-ovl-nav-btn"' +
876
- ' style="' +
877
- 'position:absolute;' +
878
- 'z-index:100101;' +
879
- 'width:48px;' +
880
- 'top:50%;' +
881
- 'margin-top:-24px;' +
882
- 'right:1px;' +
883
- 'box-shadow:none;' +
884
- ( wppaOvlFirst ? 'opacity:1;' : 'opacity:0;' ) +
885
- '"' +
886
- ' onclick="wppaOvlShowNext()"' +
887
- ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
888
- ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
889
- ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
890
- ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
891
- ' >' +
892
- wppaSvgHtml( 'Next-Button', wppaOvlIconSize, true, true ) +
893
- '</div>';
894
- }
895
-
896
  // Close the #img-sb-img-cont
897
  html += '</div>';
898
 
899
  // The subtext container
900
  var showCounter = ! wppaOvlIsSingle && wppaOvlShowCounter;
901
- html += '<div id="wppa-overlay-txt-container"' +
902
- ' style="' +
903
- 'position:relative;' +
904
- 'padding:10px;' +
905
- 'background-color:' + wppaOvlTheme + ';' +
906
- 'color:' + txtcol + ';' +
907
- 'text-align:center;' +
908
- 'font-family:' + wppaOvlFontFamily + ';' +
909
- 'font-size:' + wppaOvlFontSize + 'px;' +
910
- 'font-weight:' + wppaOvlFontWeight + ';' +
911
- 'line-height:' + wppaOvlLineHeight + 'px;' +
912
- 'box-shadow:none;' +
913
- 'border-bottom-left-radius:'+wppaOvlRadius+'px;' +
914
- 'border-bottom-right-radius:'+wppaOvlRadius+'px;' +
915
- '"' +
916
- ' >' +
917
- '<div' +
918
- ' id="wppa-overlay-txt"' +
919
- ' style="' +
920
- 'text-align:center;' +
921
- 'min-height:36px;' +
922
- 'width:100%;' +
923
- ( wppaOvlTxtHeight == 'auto' ? 'max-height:200px;' : 'max-height:' + wppaOvlTxtHeight + 'px;' ) +
924
- 'overflow:auto;' +
925
- 'box-shadow:none;' +
926
- '"' +
927
- ' >' +
928
- ( showCounter ? ( wppaOvlIdx + 1 ) + '/' + wppaOvlUrls.length + '<br />' : '' ) +
929
- wppaOvlTitles[idx] +
930
- '</div>';
931
- '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
932
 
933
  // Insert the html
934
  jQuery( '#wppa-overlay-ic' ).html( html );
935
 
936
- // Replace svg img src to html
937
- // wppaReplaceSvg();
938
-
939
  // Restore opacity of fs and exit buttons
940
  wppaShowFsButtons();
941
 
@@ -954,9 +797,6 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
954
  wppaShowFsButtons();
955
  }
956
 
957
- // Record we are in
958
- // wppaOvlOpen = true;
959
-
960
  // Done!
961
  return false;
962
  }
@@ -964,7 +804,6 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
964
 
965
  // Adjust display sizes
966
  function wppaOvlSize( speed ) {
967
- wppaConsoleLog( 'wppaOvlSize' );
968
 
969
  // Panoramas do their own formatting
970
  if ( wppaOvlActivePanorama ) return;
@@ -974,7 +813,6 @@ wppaConsoleLog( 'wppaOvlSize' );
974
 
975
  // Are we still visible?
976
  if ( ! img || ! txt || jQuery('#wppa-overlay-bg').css('display') == 'none' ) {
977
- // wppaConsoleLog( 'Lb quitted' );
978
  return;
979
  }
980
 
@@ -1022,7 +860,6 @@ wppaConsoleLog( 'wppaOvlSize' );
1022
  nh = parseInt( nh * fakt );
1023
  }
1024
 
1025
-
1026
  var mh; // max image height
1027
  var tch = jQuery( '#wppa-overlay-txt' ).height();
1028
 
@@ -1100,7 +937,6 @@ wppaConsoleLog( 'wppaOvlSize' );
1100
 
1101
  // Show fullscreen lightbox image
1102
  function wppaOvlFormatFull() {
1103
- wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1104
 
1105
  // Are we still in?
1106
  if ( ! wppaOvlOpen ) {
@@ -1109,10 +945,6 @@ wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1109
 
1110
  // Panoramas do their own resize
1111
  if ( wppaOvlActivePanorama > 0 ) {
1112
- // setTimeout(function(){
1113
- // wppaConsoleLog('kicking panorama from wppaOvlFormatFull');
1114
- // jQuery(window).trigger("kickpanorama");
1115
- // },125);
1116
  return;
1117
  }
1118
 
@@ -1215,15 +1047,12 @@ wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1215
  jQuery( '#wppa-ovl-full-bg' ).scrollLeft( scrollLeft );
1216
  jQuery( '#wppa-ovl-spin' ).hide();
1217
 
1218
- return true; // Done!
1219
- }
 
 
1220
 
1221
- // This function is called after a timeout to update fullsize photo id.
1222
- // Used to determine if a video/audio must restart
1223
- function wppaOvlUpdateFsId() {
1224
- wppaConsoleLog( 'wppaOvlUpdateFsId' );
1225
-
1226
- wppaOvlFsPhotoId = wppaPhotoId;
1227
  }
1228
 
1229
  // Start audio on the lightbox view
@@ -1266,9 +1095,6 @@ wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning);
1266
  // Stop it
1267
  wppaOvlRunning = false;
1268
 
1269
- // Swap button image
1270
- jQuery( '#wppa-ovl-start-stop-btn' ).html( wppaSvgHtml( ( wppaOvlRunning ? 'Pause-Button' : 'Play-Button' ), wppaOvlIconSize, true, true, '0', '20', '50', '50' ) );
1271
-
1272
  // If in a set: Determine visibility of browse buttons and make visible if appliccable
1273
  if ( wppaOvlIdx != -1 ) {
1274
 
@@ -1281,21 +1107,22 @@ wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning);
1281
  if ( wppaOvlIdx != ( wppaOvlUrls.length-1 ) ) {
1282
  jQuery( '#wppa-ovl-next-btn' ).css('visibility', 'visible');
1283
  }
 
 
 
 
 
1284
  }
1285
  }
1286
 
1287
  // Not running
1288
  else {
1289
 
1290
- // Swap button image
1291
- jQuery( '#wppa-ovl-start-stop-btn' ).html( wppaSvgHtml( ( wppaOvlRunning ? 'Pause-Button' : 'Pause-Button' ), wppaOvlIconSize, true, true, '0', '20', '50', '50' ) );
1292
-
1293
  // Start it
1294
  wppaOvlRunning = true;
1295
  wppaOvlRun();
1296
  }
1297
 
1298
- // wppaReplaceSvg();
1299
  }
1300
 
1301
  // Start lb slideshow
@@ -1323,7 +1150,6 @@ wppaConsoleLog( 'wppaOvlRun, running='+wppaOvlRunning );
1323
  }
1324
  }
1325
 
1326
-
1327
  var next;
1328
  if ( wppaOvlIdx >= ( wppaOvlUrls.length-1 ) ) next = 0;
1329
  else next = wppaOvlIdx + 1;
@@ -1375,7 +1201,6 @@ wppaConsoleLog( 'wppaOvlShowNext' );
1375
 
1376
  // Quit lightbox mode
1377
  function wppaOvlHide() {
1378
- wppaConsoleLog( 'wppaOvlHide' );
1379
 
1380
  // Stop audio
1381
  wppaStopAudio();
@@ -1399,13 +1224,8 @@ wppaConsoleLog( 'wppaOvlHide' );
1399
  wppaOvlFirst = true;
1400
  wppaOvlRunning = false;
1401
  wppaOvlMode = wppaOvlModeInitial;
1402
- wppaNormsBtnOpac = 0.75;
1403
  jQuery( '#wppa-ovl-spin' ).hide();
1404
 
1405
- // Remove fs and exit buttons
1406
- jQuery( '#wppa-fulls-btn' ).stop().fadeOut( 300 );
1407
- jQuery( '#wppa-exit-btn' ).stop().fadeOut( 300 );
1408
-
1409
  // Remove spinner
1410
  jQuery( '#wppa-ovl-spin' ).hide();
1411
 
@@ -1422,7 +1242,7 @@ wppaConsoleLog( 'wppaOvlHide' );
1422
  document.onLbquitIdx = null;
1423
  }
1424
 
1425
- // Trigger lightbox open event
1426
  jQuery(window).trigger( 'wppalightboxend' );
1427
 
1428
  // Fake a window reize
@@ -1431,7 +1251,6 @@ wppaConsoleLog( 'wppaOvlHide' );
1431
 
1432
  // Perform onclick action
1433
  function wppaOvlOnclick( event ) {
1434
- wppaConsoleLog( 'wppaOvlOnClick' );
1435
 
1436
  switch ( wppaOvlOnclickType ) {
1437
  case 'none':
@@ -1450,7 +1269,6 @@ wppaConsoleLog( 'wppaOvlOnClick' );
1450
  }
1451
  break;
1452
  default:
1453
- alert( 'Unimplemented action: '+wppaOvlOnclickType );
1454
  break;
1455
  }
1456
  return true;
@@ -1458,7 +1276,6 @@ wppaConsoleLog( 'wppaOvlOnClick' );
1458
 
1459
  // Initialize <a> tags with onclick and ontouchstart events to lightbox
1460
  function wppaInitOverlay() {
1461
- //wppaConsoleLog( 'wppaInitOverlay' );
1462
 
1463
  // First find subtitles for non-wppa images
1464
  jQuery( '.wp-caption' ).each( function() {
@@ -1540,6 +1357,50 @@ function wppaInitOverlay() {
1540
  window.addEventListener( 'orientationchange', wppaDoOnOrientationChange);
1541
  }
1542
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1543
  }
1544
 
1545
  // This module is intented to be used in any onclick definition that opens or closes a part of the photo description.
@@ -1552,10 +1413,6 @@ wppaConsoleLog( 'wppaOvlResize' );
1552
 
1553
  // Panoramas do their own resize
1554
  if ( wppaOvlActivePanorama > 0 ) {
1555
- // setTimeout(function(){
1556
- // wppaConsoleLog('kicking panorama from wppaOvlResize');
1557
- // jQuery(window).trigger("kickpanorama");
1558
- // },125);
1559
  return;
1560
  }
1561
 
@@ -1568,17 +1425,24 @@ wppaConsoleLog( 'wppaOvlResize' );
1568
  }
1569
 
1570
  // (re)-Display the fs and exit buttons at the current opacity
1571
- function wppaShowFsButtons(opac) {
1572
 
1573
- if ( typeof(opac) != 'undefined' ) {
1574
- wppaNormsBtnOpac = opac;
1575
- }
1576
- jQuery( '#wppa-exit-btn' ).stop().fadeTo( 3, wppaNormsBtnOpac );
1577
  if ( wppaOvlMode == 'normal' ) {
1578
- jQuery( '#wppa-fulls-btn' ).stop().fadeTo( 3, wppaNormsBtnOpac );
 
1579
  }
1580
  else {
1581
- jQuery( '#wppa-norms-btn' ).stop().fadeTo( 3, wppaNormsBtnOpac );
 
 
 
 
 
 
 
 
 
 
1582
  }
1583
  }
1584
 
@@ -1592,8 +1456,88 @@ function wppaOvlImgClick( event ) {
1592
  else {
1593
  wppaOvlShowNext();
1594
  }
1595
-
1596
  }
1597
  }
1598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1599
  wppaConsoleLog( 'wppa-lightbox.js version '+wppaLightboxVersion+' loaded.', 'force' );
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaLightboxVersion = '7.5.02';
7
 
8
  // Global inits
 
9
  var wppaIsVideo = false;
10
  var wppaHasAudio = false;
11
  var wppaOvlIsPdf = false;
14
  var wppaOvlMode = '';
15
  var wppaOvlCurIdx = 0;
16
  var wppaOvlSvgInverse = false;
 
17
  var wppaOvlActivePanorama = 0;
18
  var wppaOvlHasPanoramas = false;
19
  var wppaGlobalOvlPanoramaId = 0;
57
  // Keyboard handler
58
  function wppaOvlKeyboardHandler( e ) {
59
 
 
 
60
  var keycode;
61
  var escapeKey;
62
 
121
  return false;
122
  }
123
 
124
+ // Toggle fullscreen mode
125
  function wppaOvlFull( init ) {
 
126
 
127
  // Init
 
128
  var oldMode = wppaOvlMode;
 
 
 
129
  var elem = document.getElementById( 'wppa-overlay-ic' );
130
  if ( ! elem ) return;
131
 
132
+ // Got to fullscreen mode if initially requested or mode is normal
133
  if ( init || oldMode == 'normal' ) {
134
+ jQuery('#wppa-overlay-ic').fullscreen();
135
+ wppaOvlMode = 'padded';
 
 
 
 
 
 
136
  }
137
 
138
+ // Go to normal mode
139
+ if ( oldMode != 'normal' ) {
140
+ jQuery.fullscreen.exit();
141
+ wppaOvlMode = 'normal';
 
 
 
 
 
142
  }
143
 
144
+ // Update buttons
145
+ setTimeout( function(){wppaShowFsButtons()}, 30 );
146
+
147
+ // Re-display
148
+ setTimeout( function(){wppaOvlShow(wppaOvlIdx)}, 50 );
149
 
 
 
150
  }
151
 
152
  // Switch to normal screen mode
153
  function wppaOvlNorm( exit ) {
 
154
 
155
  // Init
156
+ var elem = document.getElementById( 'wppa-overlay-ic' );
157
+ if ( ! elem ) return;
158
+
159
  wppaOvlMode = 'normal';
 
160
 
161
+ // Cancel fullscreen.
162
+ jQuery.fullscreen.exit();
 
 
 
 
 
 
163
 
164
  // If exiting, re-init start mode
165
  if ( exit ) {
167
  return;
168
  }
169
 
170
+ // Update buttons
171
+ setTimeout( function(){wppaShowFsButtons()}, 30 );
172
 
173
+ // Re-display
174
  setTimeout( function(){wppaOvlShow(wppaOvlIdx)}, 50 );
175
+
176
  }
177
 
178
  // Prepare the display of the lightbox overlay.
179
  // arg is either numeric ( index to current lightbox set ) or
180
  // 'this' for a single image or for the first of a set
181
  function wppaOvlShow( arg ) {
 
182
 
183
  var panData;
184
  var dotPos;
191
  else {
192
  jQuery( '#wppa-overlay-ic' ).css({top:'50%',left:'50%'});
193
  }
 
194
 
195
  // Do the setup right after the invocation of the lightbox
196
  if ( wppaOvlFirst ) {
365
  // Show the lightbox overlay.
366
  // idx is the numeric index to current lightbox set
367
  function _wppaOvlShow( idx ) {
 
368
 
369
  // Globalize index
370
  wppaOvlCurIdx = idx;
427
  }
428
 
429
  // Find photo id and bump its viewcount
 
430
  _bumpViewCount( wppaOvlIds[idx] );
431
 
432
  // A single image?
433
  wppaOvlIsSingle = ( wppaOvlUrls.length == 1 );
434
 
 
 
 
 
 
435
  // Panorama requires image container top=0 left=0
436
  // Non panorama: 50%
437
  if ( wppaOvlPanoramaIds[idx] > 0 ) {
451
  if ( wppaOvlActivePanorama ) {
452
  html = wppaOvlPanoramaHtml[idx] +
453
  '<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';
454
+
 
 
 
 
 
455
  html += '</div>';
456
  }
457
 
474
  ' >'+
475
  wppaOvlVideoHtmls[idx]+
476
  '</video>'+
 
 
 
 
 
 
 
 
 
477
  '</div>';
478
  }
479
 
494
  ' alt="'+wppaOvlAlts[idx]+'"' +
495
  ' >'+
496
  '</iframe>'+
 
 
 
 
 
 
 
 
 
497
  '</div>';
498
  }
499
 
511
  ' style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;"'+
512
  ' alt="'+wppaOvlAlts[idx]+'"'+
513
  ' />';
514
+
515
  if ( wppaHasAudio ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  html +=
517
+ '<audio' +
518
+ ' id="wppa-overlay-audio"' +
519
+ ' class="wppa-overlay-audio"' +
520
+ ' data-from="wppa"' +
521
+ ' preload="metadata"' +
522
+ ( ( wppaOvlAudioStart ) ? ' autoplay' : '' ) +
523
+ ' onpause="wppaOvlAudioPlaying = false;"' +
524
+ ' onplay="wppaOvlAudioPlaying = true;"' +
525
+ ' style="' +
526
+ 'width:100%;' +
527
+ 'position:absolute;' +
528
+ 'left:0px;' +
529
+ 'bottom:0px;' +
530
+ 'padding:0;' +
531
+ '"' +
532
+ ' controls' +
533
+ ' >' +
534
+ wppaOvlAudioHtmls[idx] +
535
+ '</audio>';
536
  }
 
 
 
 
537
 
538
+ html +=
539
+ '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
  }
541
 
542
  // Replacing the html stops a running video,
559
  wppaOvlIsVideo = wppaIsVideo;
560
  setTimeout( 'wppaOvlFormatFull()', 10 );
561
  if ( wppaIsVideo || wppaHasAudio ) {
562
+ setTimeout( function(){wppaOvlFsPhotoId = wppaPhotoId;}, 20 );
563
  }
564
  else {
565
  wppaOvlFsPhotoId = 0;
566
  }
567
  wppaOvlFirst = false;
568
 
569
+ // Update buttons
570
  wppaShowFsButtons();
 
 
571
 
572
  return false;
573
  }
574
 
575
  // NOT fullsize
576
  else {
577
+
578
  // Initialize
579
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
580
  wppaPhotoId = 0;
726
  wppaOvlIsVideo = false;
727
  }
728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
729
  // Close the #img-sb-img-cont
730
  html += '</div>';
731
 
732
  // The subtext container
733
  var showCounter = ! wppaOvlIsSingle && wppaOvlShowCounter;
734
+ html +=
735
+ '<div id="wppa-overlay-txt-container"' +
736
+ ' style="' +
737
+ 'position:relative;' +
738
+ 'padding:10px;' +
739
+ 'background-color:' + wppaOvlTheme + ';' +
740
+ 'color:' + txtcol + ';' +
741
+ 'text-align:center;' +
742
+ 'font-family:' + wppaOvlFontFamily + ';' +
743
+ 'font-size:' + wppaOvlFontSize + 'px;' +
744
+ 'font-weight:' + wppaOvlFontWeight + ';' +
745
+ 'line-height:' + wppaOvlLineHeight + 'px;' +
746
+ 'box-shadow:none;' +
747
+ 'border-bottom-left-radius:'+wppaOvlRadius+'px;' +
748
+ 'border-bottom-right-radius:'+wppaOvlRadius+'px;' +
749
+ '"' +
750
+ ' >' +
751
+ '<div' +
752
+ ' id="wppa-overlay-txt"' +
753
+ ' style="' +
754
+ 'text-align:center;' +
755
+ 'min-height:36px;' +
756
+ 'width:100%;' +
757
+ ( wppaOvlTxtHeight == 'auto' ? 'max-height:200px;' : 'max-height:' + wppaOvlTxtHeight + 'px;' ) +
758
+ 'overflow:auto;' +
759
+ 'box-shadow:none;' +
760
+ '"' +
761
+ ' >';
762
+
763
+ // The nav bar
764
+ html += wppaOvlNavBar();
765
+
766
+ // The actual text
767
+ html +=
768
+ ( showCounter ? ( wppaOvlIdx + 1 ) + '/' + wppaOvlUrls.length + '<br />' : '' ) +
769
+ wppaOvlTitles[idx];
770
+
771
+ // Close wppa-overlay-txt
772
+ html +=
773
+ '</div>';
774
+
775
+ // Close wppa-overlay-txt-container
776
+ html +=
777
+ '</div>';
778
 
779
  // Insert the html
780
  jQuery( '#wppa-overlay-ic' ).html( html );
781
 
 
 
 
782
  // Restore opacity of fs and exit buttons
783
  wppaShowFsButtons();
784
 
797
  wppaShowFsButtons();
798
  }
799
 
 
 
 
800
  // Done!
801
  return false;
802
  }
804
 
805
  // Adjust display sizes
806
  function wppaOvlSize( speed ) {
 
807
 
808
  // Panoramas do their own formatting
809
  if ( wppaOvlActivePanorama ) return;
813
 
814
  // Are we still visible?
815
  if ( ! img || ! txt || jQuery('#wppa-overlay-bg').css('display') == 'none' ) {
 
816
  return;
817
  }
818
 
860
  nh = parseInt( nh * fakt );
861
  }
862
 
 
863
  var mh; // max image height
864
  var tch = jQuery( '#wppa-overlay-txt' ).height();
865
 
937
 
938
  // Show fullscreen lightbox image
939
  function wppaOvlFormatFull() {
 
940
 
941
  // Are we still in?
942
  if ( ! wppaOvlOpen ) {
945
 
946
  // Panoramas do their own resize
947
  if ( wppaOvlActivePanorama > 0 ) {
 
 
 
 
948
  return;
949
  }
950
 
1047
  jQuery( '#wppa-ovl-full-bg' ).scrollLeft( scrollLeft );
1048
  jQuery( '#wppa-ovl-spin' ).hide();
1049
 
1050
+ // Add navbar
1051
+ html = jQuery( '#wppa-overlay-ic' ).html();
1052
+ html += '<div style="position:fixed;bottom:0;left:0;right:0;" >' + wppaOvlNavBar() + '</div>';
1053
+ jQuery( '#wppa-overlay-ic' ).html( html );
1054
 
1055
+ return true; // Done!
 
 
 
 
 
1056
  }
1057
 
1058
  // Start audio on the lightbox view
1095
  // Stop it
1096
  wppaOvlRunning = false;
1097
 
 
 
 
1098
  // If in a set: Determine visibility of browse buttons and make visible if appliccable
1099
  if ( wppaOvlIdx != -1 ) {
1100
 
1107
  if ( wppaOvlIdx != ( wppaOvlUrls.length-1 ) ) {
1108
  jQuery( '#wppa-ovl-next-btn' ).css('visibility', 'visible');
1109
  }
1110
+
1111
+ // Hide stop, show start buttn
1112
+ jQuery( '#wppa-ovl-stop-btn' ).hide();
1113
+ jQuery( '#wppa-ovl-start-btn' ).show();
1114
+
1115
  }
1116
  }
1117
 
1118
  // Not running
1119
  else {
1120
 
 
 
 
1121
  // Start it
1122
  wppaOvlRunning = true;
1123
  wppaOvlRun();
1124
  }
1125
 
 
1126
  }
1127
 
1128
  // Start lb slideshow
1150
  }
1151
  }
1152
 
 
1153
  var next;
1154
  if ( wppaOvlIdx >= ( wppaOvlUrls.length-1 ) ) next = 0;
1155
  else next = wppaOvlIdx + 1;
1201
 
1202
  // Quit lightbox mode
1203
  function wppaOvlHide() {
 
1204
 
1205
  // Stop audio
1206
  wppaStopAudio();
1224
  wppaOvlFirst = true;
1225
  wppaOvlRunning = false;
1226
  wppaOvlMode = wppaOvlModeInitial;
 
1227
  jQuery( '#wppa-ovl-spin' ).hide();
1228
 
 
 
 
 
1229
  // Remove spinner
1230
  jQuery( '#wppa-ovl-spin' ).hide();
1231
 
1242
  document.onLbquitIdx = null;
1243
  }
1244
 
1245
+ // Trigger lightbox end event
1246
  jQuery(window).trigger( 'wppalightboxend' );
1247
 
1248
  // Fake a window reize
1251
 
1252
  // Perform onclick action
1253
  function wppaOvlOnclick( event ) {
 
1254
 
1255
  switch ( wppaOvlOnclickType ) {
1256
  case 'none':
1269
  }
1270
  break;
1271
  default:
 
1272
  break;
1273
  }
1274
  return true;
1276
 
1277
  // Initialize <a> tags with onclick and ontouchstart events to lightbox
1278
  function wppaInitOverlay() {
 
1279
 
1280
  // First find subtitles for non-wppa images
1281
  jQuery( '.wp-caption' ).each( function() {
1357
  window.addEventListener( 'orientationchange', wppaDoOnOrientationChange);
1358
  }
1359
 
1360
+ // Install fullscreen navigation bar positioning
1361
+ jQuery(window).on('DOMContentLoaded load resize wppascrollend orientationchange', wppaAdjustControlbar );
1362
+ }
1363
+
1364
+ // In fullscreen mode, place the controlbar at the bottom of the screen, 100$ wide
1365
+ // Check max iconsizes
1366
+ function wppaAdjustControlbar() {
1367
+
1368
+ // Is lightbox active?
1369
+ if ( wppaOvlOpen ) {
1370
+
1371
+ // and fullscreen?
1372
+ if ( wppaOvlMode != 'normal' ) {
1373
+
1374
+ // Adjust ctrlbar
1375
+ jQuery( ".wppa-pctl-div-lb" ).css({
1376
+ position:"fixed",
1377
+ left:0,
1378
+ right:0,
1379
+ bottom:0,
1380
+ width:screen.width
1381
+ });
1382
+
1383
+ // Adjust wrapper
1384
+ jQuery( "#wppa-ovl-wrap" ).css({
1385
+ width:screen.width,
1386
+ height:screen.height
1387
+ });
1388
+ }
1389
+
1390
+ // Check iconsizes
1391
+ var barWidth = jQuery( ".wppa-pctl-div-lb" ).width();
1392
+ if ( barWidth < 12 * ( parseInt( wppaOvlIconSize ) + 4 ) ) {
1393
+ newHeight = parseInt( barWidth / 12 - 4 );
1394
+
1395
+ if ( newHeight > 0 ) {
1396
+ jQuery( ".wppa-pctl-div-lb" ).find( "svg" ).css({height:newHeight,width:newHeight});
1397
+ jQuery( ".wppa-pctl-div-lb" ).find( "span" ).css({height:newHeight,width:newHeight});
1398
+ }
1399
+ }
1400
+
1401
+ // Make it visible
1402
+ jQuery( ".wppa-pctl-div-lb" ).css({visibility:"visible"});
1403
+ }
1404
  }
1405
 
1406
  // This module is intented to be used in any onclick definition that opens or closes a part of the photo description.
1413
 
1414
  // Panoramas do their own resize
1415
  if ( wppaOvlActivePanorama > 0 ) {
 
 
 
 
1416
  return;
1417
  }
1418
 
1425
  }
1426
 
1427
  // (re)-Display the fs and exit buttons at the current opacity
1428
+ function wppaShowFsButtons() {
1429
 
 
 
 
 
1430
  if ( wppaOvlMode == 'normal' ) {
1431
+ jQuery( '#wppa-exit-fulls-btn-2' ).hide();
1432
+ jQuery( '#wppa-fulls-btn-2' ).show();
1433
  }
1434
  else {
1435
+ jQuery( '#wppa-exit-fulls-btn-2' ).show();
1436
+ jQuery( '#wppa-fulls-btn-2' ).hide();
1437
+ }
1438
+
1439
+ if ( ! wppaOvlIsSingle ) {
1440
+ if ( wppaOvlRunning ) {
1441
+ jQuery( '#wppa-ovl-stop-btn' ).show();
1442
+ }
1443
+ else {
1444
+ jQuery( '#wppa-ovl-start-btn' ).show();
1445
+ }
1446
  }
1447
  }
1448
 
1456
  else {
1457
  wppaOvlShowNext();
1458
  }
 
1459
  }
1460
  }
1461
 
1462
+ // Make the navbar html
1463
+ function wppaOvlNavBar() {
1464
+
1465
+ // Init
1466
+ var html = '';
1467
+
1468
+ // Prev / next buttons
1469
+ if ( ! wppaOvlIsSingle ) {
1470
+
1471
+ html +=
1472
+ '<span' +
1473
+ ' id="wppa-ovl-prev-btn"' +
1474
+ ' style="margin:0 2px 0 0;float:left;display:inline-block;"' +
1475
+ ' onclick="wppaOvlShowPrev()"' +
1476
+ ' >' +
1477
+ wppaSvgHtml( 'Prev-Button', wppaOvlIconSize, true, true ) +
1478
+ '</span>' +
1479
+ '<span' +
1480
+ ' id="wppa-ovl-start-btn"' +
1481
+ ' style="margin:0 2px;float:left;display:' + ( wppaOvlRunning ? 'none' : 'inline-block' ) + ';"' +
1482
+ ' title="Start"' +
1483
+ ' onclick="wppaOvlStartStop()"' +
1484
+ ' >' +
1485
+ wppaSvgHtml( 'Play-Button', wppaOvlIconSize, true, true ) +
1486
+ '</span>' +
1487
+ '<span' +
1488
+ ' id="wppa-ovl-stop-btn"' +
1489
+ ' style="margin:0 2px;float:left;display:' + ( wppaOvlRunning ? 'inline-block' : 'none' ) + ';"' +
1490
+ ' title="Stop"' +
1491
+ ' onclick="wppaOvlStartStop()"' +
1492
+ ' >' +
1493
+ wppaSvgHtml( 'Pause-Button', wppaOvlIconSize, true, true ) +
1494
+ '</span>';
1495
+
1496
+ html +=
1497
+ '<span' +
1498
+ ' id="wppa-ovl-next-btn"' +
1499
+ ' style="margin:0 2px;float:right;display:inline-block;"' +
1500
+ ' onclick="wppaOvlShowNext()"' +
1501
+ ' >' +
1502
+ wppaSvgHtml( 'Next-Button', wppaOvlIconSize, true, true ) +
1503
+ '</span>';
1504
+
1505
+ }
1506
+
1507
+ // The exit button
1508
+ html +=
1509
+ '<span' +
1510
+ ' id="wppa-exit-btn-2"' +
1511
+ ' style="margin:0 2px;float:right;display:inline-block;"' +
1512
+ ' title="Exit"' +
1513
+ ' onclick="wppaOvlHide()"' +
1514
+ ' >' +
1515
+ wppaSvgHtml( 'Exit-2', wppaOvlIconSize, true, true ) +
1516
+ '</span>';
1517
+
1518
+ // The fs buttons
1519
+ // Mobile is always on fullscreen mode
1520
+ if ( ! wppaIsMobile ) {
1521
+ html +=
1522
+ '<span' +
1523
+ ' id="wppa-fulls-btn-2"' +
1524
+ ' style="margin:0 2px;float:right;display:' + ( wppaOvlMode == 'normal' ? 'inline-block' : 'none' ) + ';"' +
1525
+ ' title="Enter fullscreen"' +
1526
+ ' onclick="wppaOvlFull()"' +
1527
+ ' >' +
1528
+ wppaSvgHtml( 'Full-Screen-2', wppaOvlIconSize, true, true ) +
1529
+ '</span>' +
1530
+ '<span' +
1531
+ ' id="wppa-exit-fulls-btn-2"' +
1532
+ ' style="margin:0 2px;float:right;display:' + ( wppaOvlMode == 'normal' ? 'none' : 'inline-block' ) + ';"' +
1533
+ ' title="Leave fullscreen"' +
1534
+ ' onclick="wppaOvlNorm()"' +
1535
+ ' >' +
1536
+ wppaSvgHtml( 'Exit-Full-Screen-2', wppaOvlIconSize, true, true ) +
1537
+ '</span>';
1538
+ }
1539
+
1540
+ return html;
1541
+ }
1542
+
1543
  wppaConsoleLog( 'wppa-lightbox.js version '+wppaLightboxVersion+' loaded.', 'force' );
js/wppa-lightbox.min.js CHANGED
@@ -1 +1 @@
1
- var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaRenderer,wppaScene,wppaCamera,wppaSphere,wppaSphereMaterial,wppaSphereMesh,wppaLightboxVersion="7.3.01",wppaNormsBtnOpac=.75,wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlIsPdf=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlMode="",wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlFsExitBtnSize="48",wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!1,wppaGlobalOvlPanoramaId=0,wppaOvlBrowseOnClick=!1,wppaSavedContainerWidth=0;function wppaDoOnOrientationChange(p){"normal"!=wppaOvlMode&&document.getElementById("wppa-overlay-img")&&setTimeout("wppaOvlShow( "+wppaOvlIdx+" )",10)}function wppaOvlKeyboardHandler(p){var a,e;e=(a=null==p?event.keyCode:p.keyCode,27);var t=String.fromCharCode(a).toLowerCase();switch(a){case e:wppaStopVideo(0),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(t){case"p":wppaOvlShowPrev();break;case"n":wppaOvlShowNext();break;case"s":wppaOvlStartStop();break;case"d":jQuery("#wppa-ovl-legenda-1").css("visibility","hidden"),jQuery("#wppa-ovl-legenda-2").css("visibility","hidden"),wppaShowLegenda="hidden";break;case"f":wppaOvlFull();break;case"l":wppaOvlNorm();break;case"q":case"x":wppaStopVideo(0),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),wppaOvlHide()}return!1}function wppaOvlFull(p){wppaConsoleLog("wppaOvlFull"),wppaNormsBtnOpac=.75;var a=wppaOvlMode;p||wppaOvlStepMode();var e=document.getElementById("wppa-overlay-ic");e&&(!p&&"normal"!=a||(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()),"normal"==wppaOvlMode&&(document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()),setTimeout(function(){wppaShowFsButtons(.75)},30),jQuery("#wppa-ovl-legenda-1").html(""))}function wppaOvlNorm(p){wppaConsoleLog("wppaOvlNorm"),wppaOvlMode="normal",wppaNormsBtnOpac=.75,document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen(),p?wppaOvlMode=wppaOvlModeInitial:(setTimeout(function(){wppaShowFsButtons(.75)},30),setTimeout(function(){wppaOvlShow(wppaOvlIdx)},50))}function wppaOvlShow(p){var a,e;if(wppaConsoleLog("wppaOvlShow arg="+p),0<wppaOvlActivePanorama?jQuery("#wppa-overlay-ic").css({top:0,left:0}):jQuery("#wppa-overlay-ic").css({top:"50%",left:"50%"}),wppaOvlFirst&&(jQuery("#weaver-final").removeClass("wvr-hide-bang"),jQuery("#wppa-overlay-bg").stop().fadeTo(3,wppaOvlOpacity),wppaKbHandlerInstalled||(jQuery(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),jQuery("#wppa-overlay-bg").css({width:window.innerWidth,height:window.innerHeight}),"normal"!=wppaOvlModeInitial&&wppaOvlFull(!0),jQuery(window).trigger("wppalightboxstart")),"object"==typeof p){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!(wppaOvlImgs=[]);var t=(p.rel?p.rel:!!jQuery(p).attr("data-rel")&&jQuery(p).attr("data-rel")).split("[");if(t[1]){var o,l,i=t[1],n=jQuery("a"),r=0;for(l=0;l<n.length;l++)o=n[l],1<(t=!!jQuery(o).attr("data-rel")&&jQuery(o).attr("data-rel").split("[")).length&&"wppa"==t[0]&&t[1]==i&&(wppaOvlUrls[r]=o.href,jQuery(o).attr("data-lbtitle")?wppaOvlTitles[r]=wppaRepairScriptTags(jQuery(o).attr("data-lbtitle")):wppaOvlTitles[r]=wppaRepairScriptTags(o.title),wppaOvlIds[r]=jQuery(o).attr("data-id")?jQuery(o).attr("data-id"):"0",wppaOvlAlts[r]=jQuery(o).attr("data-alt")?jQuery(o).attr("data-alt"):"",wppaOvlVideoHtmls[r]=jQuery(o).attr("data-videohtml")?decodeURI(jQuery(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[r]=jQuery(o).attr("data-pdfhtml")?decodeURI(jQuery(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[r]=jQuery(o).attr("data-audiohtml")?decodeURI(jQuery(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[r]=jQuery(o).attr("data-videonatwidth")?jQuery(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[r]=jQuery(o).attr("data-videonatheight")?jQuery(o).attr("data-videonatheight"):"",0<(a=jQuery(o).attr("data-panorama")?jQuery(o).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,e=a.indexOf("."),wppaOvlPanoramaHtml[r]=a.substr(e+1),wppaOvlPanoramaIds[r]=a.substr(0,e)):(wppaOvlPanoramaHtml[r]="",wppaOvlPanoramaIds[r]=0),decodeURI(jQuery(o).attr("data-pdfhtml"))==decodeURI(jQuery(p).attr("data-pdfhtml"))&&decodeURI(jQuery(o).attr("data-videohtml"))==decodeURI(jQuery(p).attr("data-videohtml"))&&decodeURI(jQuery(o).attr("data-audiohtml"))==decodeURI(jQuery(p).attr("data-audiohtml"))&&o.href==p.href&&(wppaOvlIdx=r,wppaConsoleLog("Found "+r+": "+p.href)),r++)}else wppaOvlUrls[0]=p.href,jQuery(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(jQuery(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),wppaOvlIds[0]=jQuery(p).attr("data-id")?jQuery(p).attr("data-id"):"0",wppaOvlAlts[0]=jQuery(p).attr("data-alt")?jQuery(p).attr("data-alt"):"",wppaOvlVideoHtmls[0]=jQuery(p).attr("data-videohtml")?decodeURI(jQuery(p).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=jQuery(p).attr("data-audiohtml")?decodeURI(jQuery(p).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=jQuery(p).attr("data-pdfhtml")?decodeURI(jQuery(p).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=jQuery(p).attr("data-videonatwidth")?jQuery(p).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=jQuery(p).attr("data-videonatheight")?jQuery(p).attr("data-videonatheight"):"",0<(a=jQuery(p).attr("data-panorama")?jQuery(p).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,e=a.indexOf("."),wppaOvlPanoramaHtml[0]=a.substr(e+1),wppaOvlPanoramaIds[0]=a.substr(0,e)):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0),wppaOvlIdx=0}else wppaOvlIdx=p;wppaOvlOpen=!0,setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},1)}function _wppaOvlShow(p){if(wppaConsoleLog("_wppaOvlShow, idx="+p),wppaOvlCurIdx=p,wppaOvlFirst&&jQuery("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[p],wppaHasAudio=""!=wppaOvlAudioHtmls[p],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[p],0<wppaOvlUrls[p].length&&!wppaIsVideo&&(wppaOvlImgs[p]=new Image,wppaOvlImgs[p].src=wppaOvlUrls[p],wppaConsoleLog("Preloading "+(p+1)+"/"+wppaOvlUrls.length+" (current)"),!wppaIsIe&&!wppaOvlImgs[p].complete&&wppaOvlOpen))return wppaConsoleLog("Retrying preload current image"),void setTimeout("_wppaOvlShow("+p+")",500);var a,e;if(a=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1,""==wppaOvlVideoHtmls[a]&&wppaOvlOpen&&(wppaOvlImgs[a]=new Image,wppaOvlImgs[a].src=wppaOvlUrls[a],wppaConsoleLog("Preloading > "+(a+1))),!wppaOvlRunning&&wppaOvlOpen&&(e=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1,""==wppaOvlVideoHtmls[e]&&(wppaOvlImgs[e]=new Image,wppaOvlImgs[e].src=wppaOvlUrls[e],wppaConsoleLog("Preloading < "+(e+1)))),_bumpViewCount(wppaOvlIds[p]),wppaOvlIsSingle=1==wppaOvlUrls.length,0<wppaOvlPanoramaIds[p]?(wppaOvlActivePanorama=wppaOvlPanoramaIds[p],jQuery("#wppa-overlay-ic").css({top:0,left:0})):(wppaOvlActivePanorama=0,jQuery("#wppa-overlay-ic").css({top:"50%",left:"50%",display:"block"})),"normal"!=wppaOvlMode||wppaOvlActivePanorama){wppaOvlActivePanorama?(l=wppaOvlPanoramaHtml[p]+"<div style=\"height: 20px; width: 100%; position:absolute; top:0; left:0;\" onmouseover=\"jQuery('#wppa-ovl-legenda-2').css('visibility','visible');\" onmouseout=\"jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';\" >",wppaOvlShowLegenda&&"normal"!=wppaOvlMode&&(l+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+("black"==wppaOvlTheme?"#272727":"#a7a7a7")+"; color:"+("black"==wppaOvlTheme?"#a7a7a7":"#272727")+"; visibility:"+wppaShowLegenda+';" >Mode=fullscreen. '+(wppaOvlIsSingle?wppaOvlFullLegendaSinglePanorama:wppaOvlFullLegendaPanorama)+"</div>")):(wppaIsVideo?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video><div style=\"height: 20px; width: 100%; position:absolute; top:0; left:0;\" onmouseover=\"jQuery('#wppa-ovl-legenda-2').css('visibility','visible');\" onmouseout=\"jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';\" >":wppaOvlIsPdf?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[p]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+"\" ></iframe><div style=\"height: 20px; width: 100%; position:absolute; top:0; left:0;\" onmouseover=\"jQuery('#wppa-ovl-legenda-2').css('visibility','visible');\" onmouseout=\"jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';\" >":(l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),l+="<div style=\"height: 20px; width: 100%; position:absolute; top:0; left:0;\" onmouseover=\"jQuery('#wppa-ovl-legenda-2').css('visibility','visible');\" onmouseout=\"jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';\" >"),wppaOvlShowLegenda&&(l+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+("black"==wppaOvlTheme?"#272727":"#a7a7a7")+"; color:"+("black"==wppaOvlTheme?"#a7a7a7":"#272727")+"; visibility:"+wppaShowLegenda+';" >Mode='+wppaOvlMode+". "+(wppaOvlIsSingle?wppaOvlFullLegendaSingle:wppaOvlFullLegenda)+"</div>")),l+="</div>";var t=(wppaIsMobile,"0.1");return l+='<div id="wppa-exit-btn" style="height:'+wppaOvlFsExitBtnSize+"px;z-index:100098;position:fixed;top:0;right:0;opacity:"+wppaNormsBtnOpac+';" onclick="wppaOvlHide()" onmouseover="jQuery(this).stop().fadeTo(300,1);" ontouchstart="jQuery(this).stop().fadeTo(300,1);" onmouseout="jQuery(this).stop().fadeTo(300,'+t+");wppaNormsBtnOpac="+t+';" ontouchend="jQuery(this).stop().fadeTo(300,'+t+");wppaNormsBtnOpac="+t+';" >'+wppaSvgHtml("Exit",wppaOvlFsExitBtnSize+"px",!0,!0,"0","0","0","0")+"</div>","normal"!=wppaOvlMode&&(l+='<div id="wppa-norms-btn" style="height:48px;z-index:100098;position:fixed;top:0;right:'+wppaOvlFsExitBtnSize+"px;opacity:"+wppaNormsBtnOpac+';" onclick="wppaOvlNorm()" onmouseover="jQuery(this).stop().fadeTo(300,1);" ontouchstart="jQuery(this).stop().fadeTo(300,1);" onmouseout="jQuery(this).stop().fadeTo(300,'+t+");wppaNormsBtnOpac="+t+';" ontouchend="jQuery(this).stop().fadeTo(300,'+t+");wppaNormsBtnOpac="+t+';" >'+wppaSvgHtml("Exit-Full-Screen",wppaOvlFsExitBtnSize+"px",!0,!0,"0","0","0","0")+"</div>"),(wppaIsVideo||wppaHasAudio)&&wppaOvlFsPhotoId==wppaPhotoId&&0!=wppaPhotoId||(wppaStopVideo(0),wppaStopAudio(),jQuery("#wppa-overlay-ic").html(l)),0<wppaOvlPanoramaIds[p]&&wppaOvlIsSingle&&jQuery(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout("wppaOvlFormatFull()",10),wppaIsVideo||wppaHasAudio?setTimeout("wppaOvlUpdateFsId()",20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,wppaShowFsButtons(),!1}wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);var o="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(o=wppaOvlFontColor);wppaOvlUrls.length;jQuery("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var l="";l+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(l+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?l+="<iframe "+wppaOvlPdfHtmls[p]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" ></iframe>':(l+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),wppaOvlIsVideo=!1),!wppaOvlShowStartStop||wppaOvlIsSingle||wppaIsVideo||wppaOvlIsPdf||(l+='<div id="wppa-ovl-start-stop-btn" class="wppa-ovl-nav-btn" style="z-index:100101;position:absolute;top:50%;margin-top:-24px;left:50%;margin-left:-24px;'+(-1==wppaOvlIdx?"visibility:hidden;":"")+"box-shadow:none;"+(wppaOvlFirst?"opacity:1;":"opacity:0;")+'" onclick="wppaOvlStartStop()" onmouseover="jQuery(this).stop().fadeTo(200,1);" onmouseout="jQuery(this).stop().fadeTo(200,0);" ontouchstart="jQuery(this).stop().fadeTo(200,1);" onload="jQuery(this).stop().fadeTo(5000,0);" >'+wppaSvgHtml(wppaOvlRunning?"Pause-Button":"Play-Button",wppaOvlIconSize,!0,!0,"0","20","50","50")+"</div>"),wppaOvlIsSingle||(l+='<div id="wppa-ovl-prev-btn" class="wppa-ovl-nav-btn" style="position:absolute;z-index:100101;width:48px;top:50%;margin-top:-24px;left:1px;box-shadow:none;'+(wppaOvlFirst?"opacity:1;":"opacity:0;")+'" onclick="wppaOvlShowPrev()" onmouseover="jQuery(this).stop().fadeTo(200,1);" onmouseout="jQuery(this).stop().fadeTo(200,0);" ontouchstart="jQuery(this).stop().fadeTo(200,1);" onload="jQuery(this).stop().fadeTo(5000,0);" >'+wppaSvgHtml("Prev-Button",wppaOvlIconSize,!0,!0)+"</div>",l+='<div id="wppa-ovl-next-btn" class="wppa-ovl-nav-btn" style="position:absolute;z-index:100101;width:48px;top:50%;margin-top:-24px;right:1px;box-shadow:none;'+(wppaOvlFirst?"opacity:1;":"opacity:0;")+'" onclick="wppaOvlShowNext()" onmouseover="jQuery(this).stop().fadeTo(200,1);" onmouseout="jQuery(this).stop().fadeTo(200,0);" ontouchstart="jQuery(this).stop().fadeTo(200,1);" onload="jQuery(this).stop().fadeTo(5000,0);" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</div>"),l+="</div>";var i=!wppaOvlIsSingle&&wppaOvlShowCounter;return l+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+o+";text-align:center;font-family:"+wppaOvlFontFamily+";font-size:"+wppaOvlFontSize+"px;font-weight:"+wppaOvlFontWeight+";line-height:"+wppaOvlLineHeight+"px;box-shadow:none;border-bottom-left-radius:"+wppaOvlRadius+"px;border-bottom-right-radius:"+wppaOvlRadius+'px;" ><div id="wppa-overlay-txt" style="text-align:center;min-height:36px;width:100%;'+("auto"==wppaOvlTxtHeight?"max-height:200px;":"max-height:"+wppaOvlTxtHeight+"px;")+'overflow:auto;box-shadow:none;" >'+(i?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[p]+"</div>",jQuery("#wppa-overlay-ic").html(l),wppaShowFsButtons(),jQuery("#wppa-overlay-img").bind("contextmenu",function(p){return!1}),0==wppaOvlPanoramaIds[p]&&wppaOvlResize(),wppaOvlFirst&&wppaShowFsButtons(),!1}function wppaOvlSize(p){if(wppaConsoleLog("wppaOvlSize"),!wppaOvlActivePanorama){var a=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(a&&e&&"none"!=jQuery("#wppa-overlay-bg").css("display")){if("normal"==wppaOvlMode){var t,o,l,i,n,r,w,d=wppaWindowWidth(),v=wppaWindowHeight();l=wppaOvlIsVideo?(t=a.clientWidth,o=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):wppaOvlIsPdf?(t=.9*wppaWindowWidth(),o=.9*wppaWindowWidth(),.9*wppaWindowHeight()):(t=a.clientWidth,o=a.naturalWidth,a.naturalHeight),void 0===o&&(o=a.clientWidth,l=a.clientHeight),(r=(i=(d-3*wppaOvlBorderWidth)/o)<(n=v/l)?i:n)<1&&(o=parseInt(o*r),l=parseInt(l*r));var s=jQuery("#wppa-overlay-txt").height();w="auto"==wppaOvlTxtHeight?(0==s&&(s=20+2*wppaOvlBorderWidth),v-s-20-2*wppaOvlBorderWidth):v-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth;var u=parseInt(w*o/l),h=(wppaOvlPadTop,parseInt((d-u)/2),u);l<w&&(wppaOvlPadTop,parseInt((d-o)/2),h=o);var c=wppaSavedImageWidth-h<3&&h-wppaSavedImageWidth<3;return h<=10&&(l=180,c=!(o=h=240)),h=parseInt(h),wppaSavedImageWidth=parseInt(h),wppaSavedImageHeight=parseInt(h*l/o),wppaSavedMarginLeft=-parseInt(h/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(h+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+jQuery("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),jQuery("#wppa-overlay-img").stop().animate({width:wppaSavedImageWidth,height:wppaSavedImageHeight},p),jQuery("#wppa-overlay-ic").stop().animate({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},p),c?(jQuery("#wppa-ovl-spin").hide(),wppaConsoleLog("Done "+wppaOvlIdx),wppaOvlFirst=!1):(setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},p+10),wppaConsoleLog("Not done "+wppaOvlIdx+" saved="+wppaSavedImageWidth+", wid="+h+", cw="+t+", nw="+o+", img complete="+document.getElementById("wppa-overlay-img").complete)),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){if(wppaConsoleLog("wppaOvlFormatFull "+wppaOvlMode),wppaOvlOpen&&!(0<wppaOvlActivePanorama)){var p,a,e;if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),a=wppaOvlVideoNaturalWidths[wppaOvlIdx],e=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)p=document.getElementById("wppa-overlay-img"),a=screen.width,e=screen.height;else{if(p=document.getElementById("wppa-overlay-img"),!(wppaIsIe||p&&p.complete))return void setTimeout("wppaOvlFormatFull()",10);a=p.naturalWidth,e=p.naturalHeight}var t=screen.width/screen.height,o=a/e,l=0,i=0,n=0,r=0,w=0,d=0,v="hidden";switch(wppaOvlMode){case"padded":r=o<t?(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,screen.height*o):(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,screen.width);break;case"stretched":i=l=0,n=screen.height,r=screen.width;break;case"clipped":r=o<t?(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,screen.width):(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,screen.height*o);break;case"realsize":(l=(screen.width-a)/2)<0&&(d=parseInt(-l),l=0),(i=(screen.height-e)/2)<0&&(w=parseInt(-i),i=0),n=e,r=a,v="auto"}return l=parseInt(l),i=parseInt(i),n=parseInt(n),r=parseInt(r),jQuery(p).css({height:n,width:r,marginLeft:l,marginTop:i,left:0,top:0,maxWidth:1e4}),jQuery(p).css({visibility:"visible"}),jQuery("#wppa-ovl-full-bg").css({overflow:v}),jQuery("#wppa-ovl-full-bg").scrollTop(w),jQuery("#wppa-ovl-full-bg").scrollLeft(d),jQuery("#wppa-ovl-spin").hide(),!0}}function wppaOvlUpdateFsId(){wppaConsoleLog("wppaOvlUpdateFsId"),wppaOvlFsPhotoId=wppaPhotoId}function wppaOvlStartAudio(){wppaConsoleLog("wppaOvlStartAudio");var p=document.getElementById("wppa-overlay-audio");p&&"function"==typeof p.play&&(p.play(),wppaConsoleLog("Audio play wppa-overlay-audio"))}function wppaOvlStepMode(){wppaConsoleLog("wppaOvlStepMode from "+wppaOvlMode);for(var p=new Array("normal","padded","stretched","clipped","realsize","padded"),a=0;a<p.length;){if(wppaOvlMode==p[a])return wppaOvlMode=p[a+1],void wppaOvlShow(wppaOvlIdx);a++}}function wppaOvlStartStop(){wppaConsoleLog("wppaOvlStartStop called. Running="+wppaOvlRunning),wppaOvlRunning?(wppaOvlRunning=!1,jQuery("#wppa-ovl-start-stop-btn").html(wppaSvgHtml(wppaOvlRunning?"Pause-Button":"Play-Button",wppaOvlIconSize,!0,!0,"0","20","50","50")),-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&jQuery("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&jQuery("#wppa-ovl-next-btn").css("visibility","visible"))):(jQuery("#wppa-ovl-start-stop-btn").html(wppaSvgHtml((wppaOvlRunning,"Pause-Button"),wppaOvlIconSize,!0,!0,"0","20","50","50")),wppaOvlRunning=!0,wppaOvlRun())}function wppaOvlRun(){if(wppaConsoleLog("wppaOvlRun, running="+wppaOvlRunning),wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout("wppaOvlRun()",50);else{if(!wppaIsVideo){var p=document.getElementById("wppa-overlay-img");if(p&&!wppaIsIe&&!p.complete)return wppaConsoleLog("Wait during run"),void setTimeout("wppaOvlRun()",50)}var a;a=wppaOvlIdx>=wppaOvlUrls.length-1?0:wppaOvlIdx+1,wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlShow(a),setTimeout("wppaOvlRun()",wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){return wppaConsoleLog("wppaOvlShowPrev"),wppaOvlIsSingle||(wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIdx<1&&(wppaOvlIdx=wppaOvlUrls.length),wppaOvlShow(wppaOvlIdx-1)),!1}function wppaOvlShowNext(){return wppaConsoleLog("wppaOvlShowNext"),wppaOvlIsSingle||(jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIdx>=wppaOvlUrls.length-1&&(wppaOvlIdx=-1),wppaOvlShow(wppaOvlIdx+1)),!1}function wppaOvlHide(){wppaConsoleLog("wppaOvlHide"),wppaStopAudio(),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),jQuery("#wppa-overlay-ic").html(""),jQuery("#wppa-overlay-bg").fadeOut(300),jQuery(document).off("keydown",wppaOvlKeyboardHandler),wppaOvlFirst=!(wppaKbHandlerInstalled=!1),wppaOvlRunning=!1,wppaOvlMode=wppaOvlModeInitial,wppaNormsBtnOpac=.75,jQuery("#wppa-ovl-spin").hide(),jQuery("#wppa-fulls-btn").stop().fadeOut(300),jQuery("#wppa-exit-btn").stop().fadeOut(300),jQuery("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,wppaOvlOpen=!1,document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),jQuery(window).trigger("wppalightboxend"),jQuery(window).trigger("resize")}function wppaOvlOnclick(p){switch(wppaConsoleLog("wppaOvlOnClick"),wppaOvlOnclickType){case"none":break;case"close":"normal"==wppaOvlMode&&wppaOvlHide();break;case"browse":var a=p.screenX-window.screenX;48<p.clientY&&(a<screen.width/2?wppaOvlShowPrev():wppaOvlShowNext());break;default:alert("Unimplemented action: "+wppaOvlOnclickType)}return!0}function wppaInitOverlay(){jQuery(".wp-caption").each(function(){var p=jQuery(this),a=p.find("IMG[alt]").attr("alt")||"",e=p.find(".wp-caption-text").html()||"",t=p.find("a"),o=a+"<br>"+e;t.attr("data-lbtitle")||t.attr("data-lbtitle",o)}),""==wppaOvlMode&&(wppaOvlMode=wppaOvlModeInitial);var p,a,e=jQuery("a"),t=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=wppaOvlCurIdx=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),a=0;a<e.length;a++)if(p=e[a],jQuery(p).attr("data-rel")?t=jQuery(p).attr("data-rel").split("["):p.rel?t=p.rel.split("["):t[0]="","wppa"==t[0])switch(wppaWppaOverlayActivated=!0,jQuery(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),wppaMagnifierCursor){case"pointer":jQuery(p).css("cursor","pointer");break;case"":jQuery(p).css("cursor","default");break;default:jQuery(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange)}function wppaOvlResize(){wppaConsoleLog("wppaOvlResize"),0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout("wppaOvlStartAudio()",100))}function wppaShowFsButtons(p){void 0!==p&&(wppaNormsBtnOpac=p),jQuery("#wppa-exit-btn").stop().fadeTo(3,wppaNormsBtnOpac),"normal"==wppaOvlMode?jQuery("#wppa-fulls-btn").stop().fadeTo(3,wppaNormsBtnOpac):jQuery("#wppa-norms-btn").stop().fadeTo(3,wppaNormsBtnOpac)}function wppaOvlImgClick(p){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(p.screenX<screen.width/2?wppaOvlShowPrev():wppaOvlShowNext())}jQuery(document).ready(function(p){wppaInitOverlay()}),jQuery(window).resize(function(){jQuery("#wppa-overlay-bg").css({height:window.innerHeight,width:window.innerWidth}),wppaOvlResize()}),wppaConsoleLog("wppa-lightbox.js version "+wppaLightboxVersion+" loaded.","force");
1
+ var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaRenderer,wppaScene,wppaCamera,wppaSphere,wppaSphereMaterial,wppaSphereMesh,wppaLightboxVersion="7.5.02",wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlIsPdf=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlMode="",wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!1,wppaGlobalOvlPanoramaId=0,wppaOvlBrowseOnClick=!1,wppaSavedContainerWidth=0;function wppaDoOnOrientationChange(p){"normal"!=wppaOvlMode&&document.getElementById("wppa-overlay-img")&&setTimeout("wppaOvlShow( "+wppaOvlIdx+" )",10)}function wppaOvlKeyboardHandler(p){var a,e=(a=null==p?event.keyCode:p.keyCode,27),t=String.fromCharCode(a).toLowerCase();switch(a){case e:wppaStopVideo(0),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(t){case"p":wppaOvlShowPrev();break;case"n":wppaOvlShowNext();break;case"s":wppaOvlStartStop();break;case"d":jQuery("#wppa-ovl-legenda-1").css("visibility","hidden"),jQuery("#wppa-ovl-legenda-2").css("visibility","hidden"),wppaShowLegenda="hidden";break;case"f":wppaOvlFull();break;case"l":wppaOvlNorm();break;case"q":case"x":wppaStopVideo(0),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),wppaOvlHide()}return!1}function wppaOvlFull(p){var a=wppaOvlMode;document.getElementById("wppa-overlay-ic")&&(!p&&"normal"!=a||(jQuery("#wppa-overlay-ic").fullscreen(),wppaOvlMode="padded"),"normal"!=a&&(jQuery.fullscreen.exit(),wppaOvlMode="normal"),setTimeout(function(){wppaShowFsButtons()},30),setTimeout(function(){wppaOvlShow(wppaOvlIdx)},50))}function wppaOvlNorm(p){document.getElementById("wppa-overlay-ic")&&(wppaOvlMode="normal",jQuery.fullscreen.exit(),p?wppaOvlMode=wppaOvlModeInitial:(setTimeout(function(){wppaShowFsButtons()},30),setTimeout(function(){wppaOvlShow(wppaOvlIdx)},50)))}function wppaOvlShow(p){var a,e;if(0<wppaOvlActivePanorama?jQuery("#wppa-overlay-ic").css({top:0,left:0}):jQuery("#wppa-overlay-ic").css({top:"50%",left:"50%"}),wppaOvlFirst&&(jQuery("#weaver-final").removeClass("wvr-hide-bang"),jQuery("#wppa-overlay-bg").stop().fadeTo(3,wppaOvlOpacity),wppaKbHandlerInstalled||(jQuery(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),jQuery("#wppa-overlay-bg").css({width:window.innerWidth,height:window.innerHeight}),"normal"!=wppaOvlModeInitial&&wppaOvlFull(!0),jQuery(window).trigger("wppalightboxstart")),"object"==typeof p){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!(wppaOvlImgs=[]);var t=(p.rel?p.rel:!!jQuery(p).attr("data-rel")&&jQuery(p).attr("data-rel")).split("[");if(t[1])for(var l,o=t[1],i=jQuery("a"),n=0,r=0;r<i.length;r++)l=i[r],1<(t=!!jQuery(l).attr("data-rel")&&jQuery(l).attr("data-rel").split("[")).length&&"wppa"==t[0]&&t[1]==o&&(wppaOvlUrls[n]=l.href,jQuery(l).attr("data-lbtitle")?wppaOvlTitles[n]=wppaRepairScriptTags(jQuery(l).attr("data-lbtitle")):wppaOvlTitles[n]=wppaRepairScriptTags(l.title),wppaOvlIds[n]=jQuery(l).attr("data-id")?jQuery(l).attr("data-id"):"0",wppaOvlAlts[n]=jQuery(l).attr("data-alt")?jQuery(l).attr("data-alt"):"",wppaOvlVideoHtmls[n]=jQuery(l).attr("data-videohtml")?decodeURI(jQuery(l).attr("data-videohtml")):"",wppaOvlPdfHtmls[n]=jQuery(l).attr("data-pdfhtml")?decodeURI(jQuery(l).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[n]=jQuery(l).attr("data-audiohtml")?decodeURI(jQuery(l).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[n]=jQuery(l).attr("data-videonatwidth")?jQuery(l).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[n]=jQuery(l).attr("data-videonatheight")?jQuery(l).attr("data-videonatheight"):"",0<(a=jQuery(l).attr("data-panorama")?jQuery(l).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,e=a.indexOf("."),wppaOvlPanoramaHtml[n]=a.substr(e+1),wppaOvlPanoramaIds[n]=a.substr(0,e)):(wppaOvlPanoramaHtml[n]="",wppaOvlPanoramaIds[n]=0),decodeURI(jQuery(l).attr("data-pdfhtml"))==decodeURI(jQuery(p).attr("data-pdfhtml"))&&decodeURI(jQuery(l).attr("data-videohtml"))==decodeURI(jQuery(p).attr("data-videohtml"))&&decodeURI(jQuery(l).attr("data-audiohtml"))==decodeURI(jQuery(p).attr("data-audiohtml"))&&l.href==p.href&&(wppaOvlIdx=n,wppaConsoleLog("Found "+n+": "+p.href)),n++);else wppaOvlUrls[0]=p.href,jQuery(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(jQuery(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),wppaOvlIds[0]=jQuery(p).attr("data-id")?jQuery(p).attr("data-id"):"0",wppaOvlAlts[0]=jQuery(p).attr("data-alt")?jQuery(p).attr("data-alt"):"",wppaOvlVideoHtmls[0]=jQuery(p).attr("data-videohtml")?decodeURI(jQuery(p).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=jQuery(p).attr("data-audiohtml")?decodeURI(jQuery(p).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=jQuery(p).attr("data-pdfhtml")?decodeURI(jQuery(p).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=jQuery(p).attr("data-videonatwidth")?jQuery(p).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=jQuery(p).attr("data-videonatheight")?jQuery(p).attr("data-videonatheight"):"",0<(a=jQuery(p).attr("data-panorama")?jQuery(p).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,e=a.indexOf("."),wppaOvlPanoramaHtml[0]=a.substr(e+1),wppaOvlPanoramaIds[0]=a.substr(0,e)):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0),wppaOvlIdx=0}else wppaOvlIdx=p;wppaOvlOpen=!0,setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},1)}function _wppaOvlShow(p){if(wppaOvlCurIdx=p,wppaOvlFirst&&jQuery("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[p],wppaHasAudio=""!=wppaOvlAudioHtmls[p],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[p],0<wppaOvlUrls[p].length&&!wppaIsVideo&&(wppaOvlImgs[p]=new Image,wppaOvlImgs[p].src=wppaOvlUrls[p],wppaConsoleLog("Preloading "+(p+1)+"/"+wppaOvlUrls.length+" (current)"),!wppaIsIe&&!wppaOvlImgs[p].complete&&wppaOvlOpen))return wppaConsoleLog("Retrying preload current image"),void setTimeout("_wppaOvlShow("+p+")",500);var a,e=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1;if(""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(wppaOvlImgs[e]=new Image,wppaOvlImgs[e].src=wppaOvlUrls[e],wppaConsoleLog("Preloading > "+(e+1))),!wppaOvlRunning&&wppaOvlOpen&&(a=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1,""==wppaOvlVideoHtmls[a]&&(wppaOvlImgs[a]=new Image,wppaOvlImgs[a].src=wppaOvlUrls[a],wppaConsoleLog("Preloading < "+(a+1)))),_bumpViewCount(wppaOvlIds[p]),wppaOvlIsSingle=1==wppaOvlUrls.length,0<wppaOvlPanoramaIds[p]?(wppaOvlActivePanorama=wppaOvlPanoramaIds[p],jQuery("#wppa-overlay-ic").css({top:0,left:0})):(wppaOvlActivePanorama=0,jQuery("#wppa-overlay-ic").css({top:"50%",left:"50%",display:"block"})),"normal"!=wppaOvlMode||wppaOvlActivePanorama)return wppaOvlActivePanorama?(l=wppaOvlPanoramaHtml[p]+"<div style=\"height: 20px; width: 100%; position:absolute; top:0; left:0;\" onmouseover=\"jQuery('#wppa-ovl-legenda-2').css('visibility','visible');\" onmouseout=\"jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';\" >",l+="</div>"):wppaIsVideo?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video></div>":wppaOvlIsPdf?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[p]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" ></iframe></div>':(l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),l+="</div>"),(wppaIsVideo||wppaHasAudio)&&wppaOvlFsPhotoId==wppaPhotoId&&0!=wppaPhotoId||(wppaStopVideo(0),wppaStopAudio(),jQuery("#wppa-overlay-ic").html(l)),0<wppaOvlPanoramaIds[p]&&wppaOvlIsSingle&&jQuery(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout("wppaOvlFormatFull()",10),wppaIsVideo||wppaHasAudio?setTimeout(function(){wppaOvlFsPhotoId=wppaPhotoId},20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,wppaShowFsButtons(),!1;wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);var t="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(t=wppaOvlFontColor);wppaOvlUrls.length;jQuery("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var l="";l+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(l+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?l+="<iframe "+wppaOvlPdfHtmls[p]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" ></iframe>':(l+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),wppaOvlIsVideo=!1),l+="</div>";var o=!wppaOvlIsSingle&&wppaOvlShowCounter;return l+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+t+";text-align:center;font-family:"+wppaOvlFontFamily+";font-size:"+wppaOvlFontSize+"px;font-weight:"+wppaOvlFontWeight+";line-height:"+wppaOvlLineHeight+"px;box-shadow:none;border-bottom-left-radius:"+wppaOvlRadius+"px;border-bottom-right-radius:"+wppaOvlRadius+'px;" ><div id="wppa-overlay-txt" style="text-align:center;min-height:36px;width:100%;'+("auto"==wppaOvlTxtHeight?"max-height:200px;":"max-height:"+wppaOvlTxtHeight+"px;")+'overflow:auto;box-shadow:none;" >',l+=wppaOvlNavBar(),l+=(o?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[p],l+="</div>",l+="</div>",jQuery("#wppa-overlay-ic").html(l),wppaShowFsButtons(),jQuery("#wppa-overlay-img").bind("contextmenu",function(p){return!1}),0==wppaOvlPanoramaIds[p]&&wppaOvlResize(),wppaOvlFirst&&wppaShowFsButtons(),!1}function wppaOvlSize(p){if(!wppaOvlActivePanorama){var a=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(a&&e&&"none"!=jQuery("#wppa-overlay-bg").css("display")){if("normal"==wppaOvlMode){var t,l,o,i,n,r=wppaWindowWidth(),w=wppaWindowHeight(),d=wppaOvlIsVideo?(t=a.clientWidth,l=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):wppaOvlIsPdf?(t=.9*wppaWindowWidth(),l=.9*wppaWindowWidth(),.9*wppaWindowHeight()):(t=a.clientWidth,l=a.naturalWidth,a.naturalHeight);void 0===l&&(l=a.clientWidth,d=a.clientHeight),(n=(o=(r-3*wppaOvlBorderWidth)/l)<(i=w/d)?o:i)<1&&(l=parseInt(l*n),d=parseInt(d*n));var v=jQuery("#wppa-overlay-txt").height(),s="auto"==wppaOvlTxtHeight?(0==v&&(v=20+2*wppaOvlBorderWidth),w-v-20-2*wppaOvlBorderWidth):w-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth,u=parseInt(s*l/d),h=(wppaOvlPadTop,parseInt((r-u)/2),u);d<s&&(wppaOvlPadTop,parseInt((r-l)/2),h=l);var O=wppaSavedImageWidth-h<3&&h-wppaSavedImageWidth<3;return h<=10&&(d=180,O=!(l=h=240)),h=parseInt(h),wppaSavedImageWidth=parseInt(h),wppaSavedImageHeight=parseInt(h*d/l),wppaSavedMarginLeft=-parseInt(h/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(h+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+jQuery("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),jQuery("#wppa-overlay-img").stop().animate({width:wppaSavedImageWidth,height:wppaSavedImageHeight},p),jQuery("#wppa-overlay-ic").stop().animate({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},p),O?(jQuery("#wppa-ovl-spin").hide(),wppaConsoleLog("Done "+wppaOvlIdx),wppaOvlFirst=!1):(setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},p+10),wppaConsoleLog("Not done "+wppaOvlIdx+" saved="+wppaSavedImageWidth+", wid="+h+", cw="+t+", nw="+l+", img complete="+document.getElementById("wppa-overlay-img").complete)),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){if(wppaOvlOpen&&!(0<wppaOvlActivePanorama)){var p,a,e;if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),a=wppaOvlVideoNaturalWidths[wppaOvlIdx],e=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)p=document.getElementById("wppa-overlay-img"),a=screen.width,e=screen.height;else{if(p=document.getElementById("wppa-overlay-img"),!(wppaIsIe||p&&p.complete))return void setTimeout("wppaOvlFormatFull()",10);a=p.naturalWidth,e=p.naturalHeight}var t=screen.width/screen.height,l=a/e,o=0,i=0,n=0,r=0,w=0,d=0,v="hidden";switch(wppaOvlMode){case"padded":r=l<t?(o=(screen.width-screen.height*l)/2,i=0,n=screen.height,screen.height*l):(o=0,i=(screen.height-screen.width/l)/2,n=screen.width/l,screen.width);break;case"stretched":i=o=0,n=screen.height,r=screen.width;break;case"clipped":r=l<t?(o=0,i=(screen.height-screen.width/l)/2,n=screen.width/l,screen.width):(o=(screen.width-screen.height*l)/2,i=0,n=screen.height,screen.height*l);break;case"realsize":(o=(screen.width-a)/2)<0&&(d=parseInt(-o),o=0),(i=(screen.height-e)/2)<0&&(w=parseInt(-i),i=0),n=e,r=a,v="auto"}return o=parseInt(o),i=parseInt(i),n=parseInt(n),r=parseInt(r),jQuery(p).css({height:n,width:r,marginLeft:o,marginTop:i,left:0,top:0,maxWidth:1e4}),jQuery(p).css({visibility:"visible"}),jQuery("#wppa-ovl-full-bg").css({overflow:v}),jQuery("#wppa-ovl-full-bg").scrollTop(w),jQuery("#wppa-ovl-full-bg").scrollLeft(d),jQuery("#wppa-ovl-spin").hide(),html=jQuery("#wppa-overlay-ic").html(),html+='<div style="position:fixed;bottom:0;left:0;right:0;" >'+wppaOvlNavBar()+"</div>",jQuery("#wppa-overlay-ic").html(html),!0}}function wppaOvlStartAudio(){wppaConsoleLog("wppaOvlStartAudio");var p=document.getElementById("wppa-overlay-audio");p&&"function"==typeof p.play&&(p.play(),wppaConsoleLog("Audio play wppa-overlay-audio"))}function wppaOvlStepMode(){wppaConsoleLog("wppaOvlStepMode from "+wppaOvlMode);for(var p=new Array("normal","padded","stretched","clipped","realsize","padded"),a=0;a<p.length;){if(wppaOvlMode==p[a])return wppaOvlMode=p[a+1],void wppaOvlShow(wppaOvlIdx);a++}}function wppaOvlStartStop(){wppaConsoleLog("wppaOvlStartStop called. Running="+wppaOvlRunning),wppaOvlRunning?(wppaOvlRunning=!1,-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&jQuery("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&jQuery("#wppa-ovl-next-btn").css("visibility","visible"),jQuery("#wppa-ovl-stop-btn").hide(),jQuery("#wppa-ovl-start-btn").show())):(wppaOvlRunning=!0,wppaOvlRun())}function wppaOvlRun(){if(wppaConsoleLog("wppaOvlRun, running="+wppaOvlRunning),wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout("wppaOvlRun()",50);else{if(!wppaIsVideo){var p=document.getElementById("wppa-overlay-img");if(p&&!wppaIsIe&&!p.complete)return wppaConsoleLog("Wait during run"),void setTimeout("wppaOvlRun()",50)}var a=wppaOvlIdx>=wppaOvlUrls.length-1?0:wppaOvlIdx+1;wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlShow(a),setTimeout("wppaOvlRun()",wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){return wppaConsoleLog("wppaOvlShowPrev"),wppaOvlIsSingle||(wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIdx<1&&(wppaOvlIdx=wppaOvlUrls.length),wppaOvlShow(wppaOvlIdx-1)),!1}function wppaOvlShowNext(){return wppaConsoleLog("wppaOvlShowNext"),wppaOvlIsSingle||(jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIdx>=wppaOvlUrls.length-1&&(wppaOvlIdx=-1),wppaOvlShow(wppaOvlIdx+1)),!1}function wppaOvlHide(){wppaStopAudio(),"normal"!=wppaOvlMode&&wppaOvlNorm(!0),jQuery("#wppa-overlay-ic").html(""),jQuery("#wppa-overlay-bg").fadeOut(300),jQuery(document).off("keydown",wppaOvlKeyboardHandler),wppaOvlFirst=!(wppaKbHandlerInstalled=!1),wppaOvlRunning=!1,wppaOvlMode=wppaOvlModeInitial,jQuery("#wppa-ovl-spin").hide(),jQuery("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,wppaOvlOpen=!1,document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),jQuery(window).trigger("wppalightboxend"),jQuery(window).trigger("resize")}function wppaOvlOnclick(p){switch(wppaOvlOnclickType){case"none":break;case"close":"normal"==wppaOvlMode&&wppaOvlHide();break;case"browse":var a=p.screenX-window.screenX;48<p.clientY&&(a<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}return!0}function wppaInitOverlay(){jQuery(".wp-caption").each(function(){var p=jQuery(this),a=p.find("IMG[alt]").attr("alt")||"",e=p.find(".wp-caption-text").html()||"",t=p.find("a"),l=a+"<br>"+e;t.attr("data-lbtitle")||t.attr("data-lbtitle",l)}),""==wppaOvlMode&&(wppaOvlMode=wppaOvlModeInitial);var p,a,e=jQuery("a"),t=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=wppaOvlCurIdx=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),a=0;a<e.length;a++)if(p=e[a],jQuery(p).attr("data-rel")?t=jQuery(p).attr("data-rel").split("["):p.rel?t=p.rel.split("["):t[0]="","wppa"==t[0])switch(wppaWppaOverlayActivated=!0,jQuery(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),wppaMagnifierCursor){case"pointer":jQuery(p).css("cursor","pointer");break;case"":jQuery(p).css("cursor","default");break;default:jQuery(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaAdjustControlbar)}function wppaAdjustControlbar(){var p;wppaOvlOpen&&("normal"!=wppaOvlMode&&(jQuery(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0,width:screen.width}),jQuery("#wppa-ovl-wrap").css({width:screen.width,height:screen.height})),(p=jQuery(".wppa-pctl-div-lb").width())<12*(parseInt(wppaOvlIconSize)+4)&&(newHeight=parseInt(p/12-4),0<newHeight&&(jQuery(".wppa-pctl-div-lb").find("svg").css({height:newHeight,width:newHeight}),jQuery(".wppa-pctl-div-lb").find("span").css({height:newHeight,width:newHeight}))),jQuery(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaOvlResize(){wppaConsoleLog("wppaOvlResize"),0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout("wppaOvlStartAudio()",100))}function wppaShowFsButtons(){"normal"==wppaOvlMode?(jQuery("#wppa-exit-fulls-btn-2").hide(),jQuery("#wppa-fulls-btn-2").show()):(jQuery("#wppa-exit-fulls-btn-2").show(),jQuery("#wppa-fulls-btn-2").hide()),wppaOvlIsSingle||(wppaOvlRunning?jQuery("#wppa-ovl-stop-btn").show():jQuery("#wppa-ovl-start-btn").show())}function wppaOvlImgClick(p){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(p.screenX<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}function wppaOvlNavBar(){var p="";return wppaOvlIsSingle||(p+='<span id="wppa-ovl-prev-btn" style="margin:0 2px 0 0;float:left;display:inline-block;" onclick="wppaOvlShowPrev()" >'+wppaSvgHtml("Prev-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-start-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"none":"inline-block")+';" title="Start" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Play-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-stop-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"inline-block":"none")+';" title="Stop" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Pause-Button",wppaOvlIconSize,!0,!0)+"</span>",p+='<span id="wppa-ovl-next-btn" style="margin:0 2px;float:right;display:inline-block;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</span>"),p+='<span id="wppa-exit-btn-2" style="margin:0 2px;float:right;display:inline-block;" title="Exit" onclick="wppaOvlHide()" >'+wppaSvgHtml("Exit-2",wppaOvlIconSize,!0,!0)+"</span>",wppaIsMobile||(p+='<span id="wppa-fulls-btn-2" style="margin:0 2px;float:right;display:'+("normal"==wppaOvlMode?"inline-block":"none")+';" title="Enter fullscreen" onclick="wppaOvlFull()" >'+wppaSvgHtml("Full-Screen-2",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-exit-fulls-btn-2" style="margin:0 2px;float:right;display:'+("normal"==wppaOvlMode?"none":"inline-block")+';" title="Leave fullscreen" onclick="wppaOvlNorm()" >'+wppaSvgHtml("Exit-Full-Screen-2",wppaOvlIconSize,!0,!0)+"</span>"),p}jQuery(document).ready(function(p){wppaInitOverlay()}),jQuery(window).resize(function(){jQuery("#wppa-overlay-bg").css({height:window.innerHeight,width:window.innerWidth}),wppaOvlResize()}),wppaConsoleLog("wppa-lightbox.js version "+wppaLightboxVersion+" loaded.","force");
js/wppa-utils.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // conatins common vars and functions
4
  //
5
- var wppaJsUtilsVersion = '7.4.02';
6
  var wppaDebug;
7
 
8
  // Handle animation dependant of setting for mobile
@@ -260,32 +260,8 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
260
  bc = wppaSvgBgcolor;
261
  }
262
 
263
- var src;
264
- if ( wppaUseSvg ) {
265
- src = wppaImageDirectory + image + '.svg';
266
- }
267
- else {
268
- src = wppaImageDirectory + image + '.png';
269
- }
270
-
271
  // Make the html. Native svg html
272
- var wppaSvgArray = [ 'Next-Button',
273
- 'Prev-Button',
274
- 'Backward-Button',
275
- 'Forward-Button',
276
- 'Pause-Button',
277
- 'Play-Button',
278
- 'Stop-Button',
279
- 'Eagle-1',
280
- 'Snail',
281
- 'Exit',
282
- 'Full-Screen',
283
- 'Exit-Full-Screen',
284
- 'Content-View'
285
- ];
286
- if ( wppaUseSvg && jQuery.inArray( image, wppaSvgArray ) != '-1' ) {
287
-
288
- var result = '<svg' +
289
  ' version="1.1"' +
290
  ' xmlns="http://www.w3.org/2000/svg"' +
291
  ' xmlns:xlink="http://www.w3.org/1999/xlink"' +
@@ -343,37 +319,28 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
343
  case 'Exit':
344
  result += '<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';
345
  break;
 
 
 
346
  case 'Full-Screen':
347
  result += '<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';
348
  break;
 
 
 
349
  case 'Exit-Full-Screen':
350
  result += '<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';
351
  break;
 
 
 
352
  default:
353
- alert( 'Native svg ' + image + ' not implemented' );
 
354
  }
355
  result += '</g>' +
356
  '</svg>';
357
 
358
- }
359
-
360
- // Make the HTML
361
- else {
362
- var result = '<img' +
363
- ' src="' + src + '"' +
364
- ( wppaUseSvg ? ' class="wppa-svg"' : '' ) +
365
- ' style="' +
366
- 'height:' + height + ';' +
367
- 'fill:' + fc + ';' +
368
- 'background-color:' + bc + ';' +
369
- ( radius ? 'border-radius:' + radius + '%;' : '' ) +
370
- ( border ? 'border:2px solid ' + bc + ';box-sizing:border-box;' : '' ) +
371
- ( wppaUseSvg ? 'display:none;' : '' ) +
372
- 'text-decoration:none !important;' +
373
- 'vertical-align:middle;' +
374
- '"' +
375
- ' />';
376
- }
377
 
378
  return result;
379
  }
2
  //
3
  // conatins common vars and functions
4
  //
5
+ var wppaJsUtilsVersion = '7.5.02';
6
  var wppaDebug;
7
 
8
  // Handle animation dependant of setting for mobile
260
  bc = wppaSvgBgcolor;
261
  }
262
 
 
 
 
 
 
 
 
 
263
  // Make the html. Native svg html
264
+ var result = '<svg' +
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  ' version="1.1"' +
266
  ' xmlns="http://www.w3.org/2000/svg"' +
267
  ' xmlns:xlink="http://www.w3.org/1999/xlink"' +
319
  case 'Exit':
320
  result += '<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';
321
  break;
322
+ case 'Exit-2':
323
+ result += '<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';
324
+ break;
325
  case 'Full-Screen':
326
  result += '<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';
327
  break;
328
+ case 'Full-Screen-2':
329
+ result += '<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';
330
+ break;
331
  case 'Exit-Full-Screen':
332
  result += '<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';
333
  break;
334
+ case 'Exit-Full-Screen-2':
335
+ result += '<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';
336
+ break;
337
  default:
338
+ result += '<path d="M30,0H0V30H30V0z" />';
339
+ break;
340
  }
341
  result += '</g>' +
342
  '</svg>';
343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
 
345
  return result;
346
  }
js/wppa-utils.min.js CHANGED
@@ -1 +1 @@
1
- var wppaDebug,wppaJsUtilsVersion="7.4.02";function wppaAnimate(e,t,a,p,r){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),r&&setTimeout(r,10)):jQuery(e).stop().animate(t,a,p,r)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){var a=wppaTrimLeft(e,t);return a=wppaTrimRight(a,t)}function wppaTrimLeft(e,t){var a,p,r,n,o,i,s;switch(typeof t){case"string":for(p=(a=e).length,r=t.length;r<=p&&a.substr(0,r)==t;)p=(a=a.substr(r)).length;break;case"object":for(o=!1,s=e;!o;){for(n=0,i=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;o=i==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,r,n,o,i,s;switch(typeof t){case"string":for(p=(a=e).length,r=t.length;r<=p&&a.substr(p-r)==t;)p=(a=a.substr(0,p-r)).length;break;case"object":for(o=!1,s=e;!o;){for(n=0,i=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;o=i==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);var r=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+r}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),r=0;r<p.length;r++)if(t=p[r].substr(0,p[r].indexOf("=")),a=p[r].substr(p[r].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,r,n;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(r=Math.floor(a/6e4))*1e3,n=Math.floor(a/1e3),console.log("At: "+p+":"+r+":"+n+"."+(a-=1e3*n)+" message: "+e))}function wppaSvgHtml(e,t,a,p,r,n,o,i){var s,l,c;switch(r=r||"0",n=n||"10",o=o||"20",i=i||"50",wppaSvgCornerStyle){case"gif":case"none":radius=r;break;case"light":radius=n;break;case"medium":radius=o;break;case"heavy":radius=i}t=t||"32px",l=a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),c=wppaUseSvg?wppaImageDirectory+e+".svg":wppaImageDirectory+e+".png";if(wppaUseSvg&&"-1"!=jQuery.inArray(e,["Next-Button","Prev-Button","Backward-Button","Forward-Button","Pause-Button","Play-Button","Stop-Button","Eagle-1","Snail","Exit","Full-Screen","Exit-Full-Screen","Content-View"])){var u='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+l+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":u+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":u+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":u+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":u+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Full-Screen":u+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Exit-Full-Screen":u+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;default:alert("Native svg "+e+" not implemented")}u+="</g></svg>"}else u='<img src="'+c+'"'+(wppaUseSvg?' class="wppa-svg"':"")+' style="height:'+t+";fill:"+s+";background-color:"+l+";"+(radius?"border-radius:"+radius+"%;":"")+(wppaUseSvg?"display:none;":"")+'text-decoration:none !important;vertical-align:middle;" />';return u}var wppaLastLazy=0;function wppaMakeLazyVisible(e,t){var a,p,r,n;wppaInitMasonryPlus(),"number"!=typeof e&&(e=0),_wppaLazyDone[e]||((a=new Date).getTime()<wppaLastLazy+250||((r=0)<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this,t)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),r++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),0}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0),wppaInitMasonryPlus(e)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),r++)),0}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0),wppaInitMasonryPlus()),n=a.getTime(),wppaLastLazy=n,0<r&&(wppaConsoleLog("Redo request lazy","force"),setTimeout("wppaMakeLazyVisible("+e+")",500),wppaInitMasonryPlus())))}function wppaIsElementInViewport(e,t){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var a,p=e.getBoundingClientRect();return!p||(a=wppaWindowWidth(),t&&(a*=3),0<p.bottom&&0<p.right&&p.left<a&&p.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){var p=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?t:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){var t=e;return t=(t=(t=(t=(t=t.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}wppaConsoleLog("wppa-utils.js version "+wppaJsUtilsVersion+" loaded.","force");
1
+ var wppaDebug,wppaJsUtilsVersion="7.5.02";function wppaAnimate(e,a,t,p,r){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(a),r&&setTimeout(r,10)):jQuery(e).stop().animate(a,t,p,r)}function wppaFadeIn(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),t&&setTimeout(t,10)):jQuery(e).stop().fadeIn(a,t)}function wppaFadeOut(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),t&&setTimeout(t,10)):jQuery(e).stop().fadeOut(a,t)}function wppaFadeTo(e,a,t,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:t}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(a,t,p)}function wppaTrim(e,a){var t=wppaTrimLeft(e,a);return t=wppaTrimRight(t,a)}function wppaTrimLeft(e,a){var t,p,r,n,i,o,s;switch(typeof a){case"string":for(p=(t=e).length,r=a.length;r<=p&&t.substr(0,r)==a;)p=(t=t.substr(r)).length;break;case"object":for(i=!1,s=e;!i;){for(n=0,o=s;n<a.length;)s=wppaTrimLeft(s,a[n]),n++;i=o==s}t=s;break;default:return e.replace(/^\s\s*/,"")}return t}function wppaTrimRight(e,a){var t,p,r,n,i,o,s;switch(typeof a){case"string":for(p=(t=e).length,r=a.length;r<=p&&t.substr(p-r)==a;)p=(t=t.substr(0,p-r)).length;break;case"object":for(i=!1,s=e;!i;){for(n=0,o=s;n<a.length;)s=wppaTrimRight(s,a[n]),n++;i=o==s}t=s;break;default:return e.replace(/\s\s*$/,"")}return t}function wppa_setCookie(e,a,t){var p=new Date;p.setDate(p.getDate()+t);var r=escape(a)+(null==t?"":"; expires="+p.toUTCString());document.cookie=e+"="+r}function wppa_getCookie(e){for(var a,t,p=document.cookie.split(";"),r=0;r<p.length;r++)if(a=p[r].substr(0,p[r].indexOf("=")),t=p[r].substr(p[r].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(t);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,a){var t,p,r,n;"undefined"==typeof console||!wppaDebug&&"force"!=a||(t=(new Date).getTime()%864e5,t-=60*(p=Math.floor(t/36e5))*60*1e3,t-=60*(r=Math.floor(t/6e4))*1e3,n=Math.floor(t/1e3),console.log("At: "+p+":"+r+":"+n+"."+(t-=1e3*n)+" message: "+e))}function wppaSvgHtml(e,a,t,p,r,n,i,o){var s,l;switch(r=r||"0",n=n||"10",i=i||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=r;break;case"light":radius=n;break;case"medium":radius=i;break;case"heavy":radius=o}a=a||"32px",l=t?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor);var c='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(a?"height:"+a+";":"")+"fill:"+s+";background-color:"+l+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":c+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":c+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":c+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":c+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":c+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":c+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":c+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:c+='<path d="M30,0H0V30H30V0z" />'}return c+="</g></svg>"}var wppaLastLazy=0;function wppaMakeLazyVisible(e,a){var t,p,r,n;wppaInitMasonryPlus(),"number"!=typeof e&&(e=0),_wppaLazyDone[e]||((t=new Date).getTime()<wppaLastLazy+250||((r=0)<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this,a)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),r++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),0}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0),wppaInitMasonryPlus(e)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),r++)),0}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0),wppaInitMasonryPlus()),n=t.getTime(),wppaLastLazy=n,0<r&&(wppaConsoleLog("Redo request lazy","force"),setTimeout("wppaMakeLazyVisible("+e+")",500),wppaInitMasonryPlus())))}function wppaIsElementInViewport(e,a){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t,p=e.getBoundingClientRect();return!p||(t=wppaWindowWidth(),a&&(t*=3),0<p.bottom&&0<p.right&&p.left<t&&p.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,a,t){var p=t?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?a:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){var a=e;return a=(a=(a=(a=(a=a.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var a=e.parentNode.clientWidth;jQuery(e).css({maxWidth:a})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}wppaConsoleLog("wppa-utils.js version "+wppaJsUtilsVersion+" loaded.","force");
js/wppa-zoom.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
- var wppaJsZoomVersion = '7.4.02';
6
 
7
  if ( typeof $ == 'undefined' ) $ = jQuery;
8
 
@@ -53,6 +53,8 @@ function wppaDoZoomPan() {
53
  args.centerY = args.fromY + args.fromHeight / 2;
54
  args.ctx = null;
55
 
 
 
56
  // Install event listeners
57
  if ( args.isMobile ) {
58
  args.right.on("touchstart", onRightMouseDown);
@@ -102,6 +104,7 @@ function wppaDoZoomPan() {
102
 
103
  // Install Resize handler
104
  $(window).on("DOMContentLoaded load resize orientationchange",onResize);
 
105
 
106
  // Do the rendering
107
  render(mocc);
@@ -116,7 +119,7 @@ function wppaDoZoomPan() {
116
  }
117
 
118
  if ( needRedo ) {
119
- setTimeout( function() {wppaDoZoomPan()}, 100 );
120
  return;
121
  }
122
 
@@ -183,10 +186,21 @@ function wppaDoZoomPan() {
183
 
184
  // Re-render if needed
185
  if (args.run>0) {
186
- if (args.manualControl){setTimeout(function(){render(mocc)},25);}
187
- else {setTimeout(function(){render(mocc)},5);}
 
 
 
 
188
  }
189
  if(args.run<5)args.run--;
 
 
 
 
 
 
 
190
 
191
  }
192
 
@@ -228,6 +242,7 @@ function wppaDoZoomPan() {
228
  e.preventDefault();
229
  wppaZoomableData[mocc].run=5;
230
  wppaZoomableData[mocc].deltaX=3;
 
231
  render(mocc);
232
  }
233
 
@@ -240,6 +255,7 @@ function wppaDoZoomPan() {
240
  e.preventDefault();
241
  wppaZoomableData[mocc].run=5;
242
  wppaZoomableData[mocc].deltaX=-3;
 
243
  render(mocc);
244
  }
245
 
@@ -252,6 +268,7 @@ function wppaDoZoomPan() {
252
  e.preventDefault();
253
  wppaZoomableData[mocc].run=5;
254
  wppaZoomableData[mocc].deltaY=-3;
 
255
  render(mocc);
256
  }
257
 
@@ -264,6 +281,7 @@ function wppaDoZoomPan() {
264
  e.preventDefault();
265
  wppaZoomableData[mocc].run=5;
266
  wppaZoomableData[mocc].deltaY=3;
 
267
  render(mocc);
268
  }
269
 
@@ -276,6 +294,7 @@ function wppaDoZoomPan() {
276
  e.preventDefault();
277
  wppaZoomableData[mocc].run=5;
278
  wppaZoomableData[mocc].deltaFactor=1.005;
 
279
  render(mocc);
280
  }
281
 
@@ -288,6 +307,7 @@ function wppaDoZoomPan() {
288
  e.preventDefault();
289
  wppaZoomableData[mocc].run=5;
290
  wppaZoomableData[mocc].deltaFactor=0.995;
 
291
  render(mocc);
292
  }
293
 
@@ -299,7 +319,7 @@ function wppaDoZoomPan() {
299
 
300
  e.preventDefault();
301
  wppaZoomableData[mocc].run=4;
302
- wppaZoomableData[mocc].deltaFactor = 1 + e.deltaY * wppaZoomableData[mocc].zoomsensitivity / 1000;
303
  render(mocc);
304
  setTimeout(function(){wppaZoomableData[mocc].deltaFactor = 1}, 25);
305
  e.stopPropagation();
@@ -317,6 +337,7 @@ function wppaDoZoomPan() {
317
  wppaZoomableData[mocc].deltaFactor=1;
318
  if ( wppaZoomableData[mocc].isLightbox ) wppaZoomableData[mocc].run--;
319
  else wppaZoomableData[mocc].run=4;
 
320
  }
321
 
322
  // When a (responsive) resize is required, we resize the wppaScene
@@ -348,6 +369,9 @@ function wppaDoZoomPan() {
348
  contWidth = screen.width;
349
  contHeight = screen.height;
350
  }
 
 
 
351
 
352
  // Initialize new display sizes
353
  var newWidth,
@@ -355,7 +379,7 @@ function wppaDoZoomPan() {
355
  topMarg,
356
  leftMarg,
357
  extraX = 8,
358
- extraY = 8 + ( args.controls ? args.icsize + 10 : 0 ) + contWidth * args.height / args.width + 30;
359
 
360
  var ratio = args.image.width / args.image.height;
361
 
@@ -364,18 +388,22 @@ function wppaDoZoomPan() {
364
  extraX += 2 * args.borderWidth;
365
  extraY += 2 * args.borderWidth;
366
  }
 
 
 
367
 
368
  // Find out if the width is the limitng dimension
369
- widthIsLim = ( contHeight > ( ( contWidth / ratio ) + extraY ) );
370
 
371
  // Compute new sizes and margins
372
  if ( widthIsLim ) {
373
  newWidth = contWidth - extraX;
374
- newHeight = newWidth / 2;
375
- topMarg = ( contHeight - newHeight - extraY ) / ratio + 20;
376
  }
377
  else {
378
- newWidth = ratio * ( contHeight - ( args.controls ? args.icsize : 0 ) - 24 - 40 );
 
379
  newHeight = newWidth / ratio;
380
  topMarg = 20;
381
  }
@@ -428,9 +456,11 @@ function wppaDoZoomPan() {
428
  marginLeft:(contWidth-newWidth)/2
429
  });
430
  $("#wppa-pctl-div-" + args.itemid ).css({marginLeft:0});
 
 
431
  }
432
 
433
- run=4;
434
  render(mocc);
435
  }
436
 
@@ -440,7 +470,7 @@ function wppaDoZoomPan() {
440
  args.canvasHeight = args.canvasWidth * args.canvas.height / args.canvas.width;
441
  args.canvas.width = args.canvasWidth;
442
  args.canvas.height = args.canvasHeight;
443
- args.run=4;
444
  render(mocc);
445
  }
446
  }
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
+ var wppaJsZoomVersion = '7.5.02';
6
 
7
  if ( typeof $ == 'undefined' ) $ = jQuery;
8
 
53
  args.centerY = args.fromY + args.fromHeight / 2;
54
  args.ctx = null;
55
 
56
+ args.buttondown = false;
57
+
58
  // Install event listeners
59
  if ( args.isMobile ) {
60
  args.right.on("touchstart", onRightMouseDown);
104
 
105
  // Install Resize handler
106
  $(window).on("DOMContentLoaded load resize orientationchange",onResize);
107
+ // $(window).on("resizeend",setTimeout(render(mocc),200));
108
 
109
  // Do the rendering
110
  render(mocc);
119
  }
120
 
121
  if ( needRedo ) {
122
+ setTimeout( function() {wppaDoZoomPan()}, 300 );
123
  return;
124
  }
125
 
186
 
187
  // Re-render if needed
188
  if (args.run>0) {
189
+ if (args.manualControl){
190
+ setTimeout(function(){render(mocc)},25);
191
+ }
192
+ else if (args.buttondown){
193
+ setTimeout(function(){render(mocc)},5);
194
+ }
195
  }
196
  if(args.run<5)args.run--;
197
+ if (args.initializing ) {
198
+ args.initializing=false;
199
+ args.run--;
200
+ }
201
+
202
+
203
+ wppaAdjustControlbar();
204
 
205
  }
206
 
242
  e.preventDefault();
243
  wppaZoomableData[mocc].run=5;
244
  wppaZoomableData[mocc].deltaX=3;
245
+ args.buttondown=true;
246
  render(mocc);
247
  }
248
 
255
  e.preventDefault();
256
  wppaZoomableData[mocc].run=5;
257
  wppaZoomableData[mocc].deltaX=-3;
258
+ args.buttondown=true;
259
  render(mocc);
260
  }
261
 
268
  e.preventDefault();
269
  wppaZoomableData[mocc].run=5;
270
  wppaZoomableData[mocc].deltaY=-3;
271
+ args.buttondown=true;
272
  render(mocc);
273
  }
274
 
281
  e.preventDefault();
282
  wppaZoomableData[mocc].run=5;
283
  wppaZoomableData[mocc].deltaY=3;
284
+ args.buttondown=true;
285
  render(mocc);
286
  }
287
 
294
  e.preventDefault();
295
  wppaZoomableData[mocc].run=5;
296
  wppaZoomableData[mocc].deltaFactor=1.005;
297
+ args.buttondown=true;
298
  render(mocc);
299
  }
300
 
307
  e.preventDefault();
308
  wppaZoomableData[mocc].run=5;
309
  wppaZoomableData[mocc].deltaFactor=0.995;
310
+ args.buttondown=true;
311
  render(mocc);
312
  }
313
 
319
 
320
  e.preventDefault();
321
  wppaZoomableData[mocc].run=4;
322
+ wppaZoomableData[mocc].deltaFactor = 1 + e.deltaY * wppaZoomableData[mocc].zoomsensitivity / ( wppaIsChrome ? 10000 : 1000 );
323
  render(mocc);
324
  setTimeout(function(){wppaZoomableData[mocc].deltaFactor = 1}, 25);
325
  e.stopPropagation();
337
  wppaZoomableData[mocc].deltaFactor=1;
338
  if ( wppaZoomableData[mocc].isLightbox ) wppaZoomableData[mocc].run--;
339
  else wppaZoomableData[mocc].run=4;
340
+ args.buttondown=false;
341
  }
342
 
343
  // When a (responsive) resize is required, we resize the wppaScene
369
  contWidth = screen.width;
370
  contHeight = screen.height;
371
  }
372
+ newWidth = parseInt(newWidth);
373
+ newHeight = parseInt(newHeight);
374
+
375
 
376
  // Initialize new display sizes
377
  var newWidth,
379
  topMarg,
380
  leftMarg,
381
  extraX = 8,
382
+ extraY = 8 + ( args.controls ? args.icsize + 10 : 0 ) + 10;
383
 
384
  var ratio = args.image.width / args.image.height;
385
 
388
  extraX += 2 * args.borderWidth;
389
  extraY += 2 * args.borderWidth;
390
  }
391
+ else {
392
+ extraX=40;
393
+ }
394
 
395
  // Find out if the width is the limitng dimension
396
+ widthIsLim = ( contHeight - extraY ) > ( contWidth - extraX ) / ratio;
397
 
398
  // Compute new sizes and margins
399
  if ( widthIsLim ) {
400
  newWidth = contWidth - extraX;
401
+ newHeight = newWidth / ratio;
402
+ topMarg = ( contHeight - newHeight - extraY ) / 2 + 20;
403
  }
404
  else {
405
+ newWidth = ratio * ( contHeight - ( args.controls ? args.icsize : 0 ) - 24 );
406
+ if ( modeIsNormal ) newWidth -= 24;
407
  newHeight = newWidth / ratio;
408
  topMarg = 20;
409
  }
456
  marginLeft:(contWidth-newWidth)/2
457
  });
458
  $("#wppa-pctl-div-" + args.itemid ).css({marginLeft:0});
459
+
460
+
461
  }
462
 
463
+ args.run=5;
464
  render(mocc);
465
  }
466
 
470
  args.canvasHeight = args.canvasWidth * args.canvas.height / args.canvas.width;
471
  args.canvas.width = args.canvasWidth;
472
  args.canvas.height = args.canvasHeight;
473
+ args.run=5;
474
  render(mocc);
475
  }
476
  }
js/wppa-zoom.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsZoomVersion="7.4.02";function wppaDoZoomPan(){for(var e,a=!1,o=0;o<wppaZoomableData.length;o++)void 0!==wppaZoomableData[o]&&((e=wppaZoomableData[o]).image.complete?e.initialized||((e=wppaZoomableData[o]).manualControl=!1,e.deltaX=0,e.deltaY=0,e.deltaFactor=1,e.run=4,e.busy=!1,e.abort=!1,e.itemid=e.mocc+"-"+e.id,e.div=$("#wppa-pan-div-"+e.itemid),e.canvas=document.getElementById("wppa-pan-canvas-"+e.itemid),e.left=$("#wppa-pctl-left-"+e.itemid),e.right=$("#wppa-pctl-right-"+e.itemid),e.up=$("#wppa-pctl-up-"+e.itemid),e.down=$("#wppa-pctl-down-"+e.itemid),e.zoomin=$("#wppa-pctl-zoomin-"+e.itemid),e.zoomout=$("#wppa-pctl-zoomout-"+e.itemid),e.prev=$("#wppa-pctl-prev-"+e.itemid),e.next=$("#wppa-pctl-next-"+e.itemid),e.canvasWidth=e.width,e.canvasHeight=e.height,e.savedCanvasX=0,e.savedCanvasY=0,e.fromHeight=e.image.height,e.fromWidth=e.image.width,e.fromX=0,e.fromY=0,e.centerX=e.fromX+e.fromWidth/2,e.centerY=e.fromY+e.fromHeight/2,e.ctx=null,e.isMobile?(e.right.on("touchstart",i),e.right.on("touchend",l),e.left.on("touchstart",p),e.left.on("touchend",l),e.up.on("touchstart",r),e.up.on("touchend",l),e.down.on("touchstart",m),e.down.on("touchend",l),e.zoomin.on("touchstart",d),e.zoomin.on("touchend",l),e.zoomout.on("touchstart",s),e.zoomout.on("touchend",l)):(e.canvas.addEventListener("mousedown",h),e.canvas.addEventListener("mousemove",v),e.canvas.addEventListener("mouseup",f),e.canvas.addEventListener("mouseout",f),document.getElementById("wppa-pan-canvas-"+e.itemid).addEventListener("wheel",c),e.right.on("mousedown",i),e.right.on("mouseup",l),e.left.on("mousedown",p),e.left.on("mouseup",l),e.up.on("mousedown",r),e.up.on("mouseup",l),e.down.on("mousedown",m),e.down.on("mouseup",l),e.zoomin.on("mousedown",d),e.zoomin.on("mouseup",l),e.zoomout.on("mousedown",s),e.zoomout.on("mouseup",l)),e.isLightbox&&($("#wppa-fulls-btn").on("click",function(){abort=!0}),e.prev&&(e.prev.on("click",t),e.next.on("click",n))),$(window).on("DOMContentLoaded load resize orientationchange",w),u(o),w(),e.initialized=!0):a=!0);function u(a){if((e=wppaZoomableData[a]).isLightbox&&(wppaOvlOpen||(e.abort=!0)),e.abort)return e.ctx=null,void(e.prevctx=null);var o,t;0!=e.run&&(e.busy||(e.busy=!0,e.manualControl||(e.fromX+=e.deltaX,e.fromY+=e.deltaY,o=e.fromHeight/e.deltaFactor,t=e.fromWidth/e.deltaFactor,1!=e.deltaFactor&&o<=e.image.height&&50<o&&(e.fromX-=(t-e.fromWidth)/2,e.fromY-=(o-e.fromHeight)/2,e.fromWidth=t,e.fromHeight=o)),e.fromX=Math.max(0,Math.min(e.image.width-e.fromWidth,e.fromX)),e.fromY=Math.max(0,Math.min(e.image.height-e.fromHeight,e.fromY)),e.ctx=e.canvas.getContext("2d"),e.ctx.drawImage(e.image,e.fromX,e.fromY,e.fromWidth,e.fromHeight,0,0,e.canvas.width,e.canvas.height),e.busy=!1,0<e.run&&(e.manualControl?setTimeout(function(){u(a)},25):setTimeout(function(){u(a)},5)),e.run<5&&e.run--))}function t(a){var o;a.preventDefault(),this.abort=!0,o||(o=!0,$("#wppa-overlay-ic").css({display:"none"}),$("#wppa-ovl-spin").show(),wppaOvlShowPrev())}function n(a){var o;a.preventDefault(),this.abort=!0,o||(o=!0,$("#wppa-overlay-ic").css({display:"none"}),$("#wppa-ovl-spin").show(),wppaOvlShowNext())}function i(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaX=3,u(o))}function p(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaX=-3,u(o))}function r(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaY=-3,u(o))}function m(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaY=3,u(o))}function d(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaFactor=1.005,u(o))}function s(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaFactor=.995,u(o))}function c(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=4,wppaZoomableData[o].deltaFactor=1+a.deltaY*wppaZoomableData[o].zoomsensitivity/1e3,u(o),setTimeout(function(){wppaZoomableData[o].deltaFactor=1},25),a.stopPropagation())}function l(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].deltaX=0,wppaZoomableData[o].deltaY=0,wppaZoomableData[o].deltaFactor=1,wppaZoomableData[o].isLightbox?wppaZoomableData[o].run--:wppaZoomableData[o].run=4)}function w(a){for(var o,t,e,n,i,p,r,m,d,s,c,l=0;l<wppaZoomableData.length;l++){wppaZoomableData[l]&&wppaZoomableData[l].canvas&&!wppaZoomableData[l].abort&&((o=wppaZoomableData[l]).isLightbox?($("#wppa-overlay-ic").css("display",""),i=(e="normal"==wppaOvlMode)?(n=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(n=screen.width,screen.height),s=(d=8)+(o.controls?o.icsize+10:0)+n*o.height/o.width+30,c=o.image.width/o.image.height,e&&(d+=2*o.borderWidth,s+=2*o.borderWidth),m=(t=n/c+s<i)?(i-(r=(p=n-d)/2)-s)/c+20:(r=(p=c*(i-(o.controls?o.icsize:0)-24-40))/c,20),$("#wppa-ovl-pan-container").css({marginTop:m}),$("#wppa-overlay-ic").css({marginTop:0}),o.canvasWidth=p,o.canvasHeight=r,o.canvas.width=o.canvasWidth,o.canvas.height=o.canvasHeight,e?($("#wppa-ovl-pan-container").css({backgroundColor:o.backgroundColor,padding:o.padding,borderRadius:o.borderRadius,borderWidth:o.borderWidth,width:p,marginLeft:0}),$("#wppa-pctl-div-"+o.itemid).css({marginLeft:0}),t?$("#wppa-overlay-ic").css({marginLeft:4}):$("#wppa-overlay-ic").css({marginLeft:(n-p)/2})):($("#wppa-overlay-ic").css({marginLeft:0}),$("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:0,borderWidth:0,width:p,marginLeft:(n-p)/2}),$("#wppa-pctl-div-"+o.itemid).css({marginLeft:0})),run=4):(o.canvasWidth=$(o.div).parent().width(),o.canvasHeight=o.canvasWidth*o.canvas.height/o.canvas.width,o.canvas.width=o.canvasWidth,o.canvas.height=o.canvasHeight,o.run=4),u(l))}}function h(a){var o,t=jQuery(this).attr("data-mocc");wppaZoomableData[t]&&(o=wppaZoomableData[t],a.preventDefault(),o.manualControl=!0,o.savedCanvasX=a.offsetX,o.savedCanvasY=a.offsetY,o.run=5,u(t))}function v(a){var o,t,e,n,i=jQuery(this).attr("data-mocc");!wppaZoomableData[i]||(o=wppaZoomableData[i]).manualControl&&(t=o.canvas.width/o.fromWidth,e=(o.savedCanvasX-a.offsetX)/t+o.fromX,n=(o.savedCanvasY-a.offsetY)/t+o.fromY,0<e&&0<n&&e+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&(o.fromX=e,o.fromY=n,o.savedCanvasX=a.offsetX,o.savedCanvasY=a.offsetY))}function f(a){var o,t=jQuery(this).attr("data-mocc");!wppaZoomableData[t]||(o=wppaZoomableData[t]).manualControl&&(o.run=4,o.manualControl=!1)}a?setTimeout(function(){wppaDoZoomPan()},100):$("#wppa-ovl-spin").hide()}"undefined"==typeof $&&($=jQuery),wppaConsoleLog("wppa-zoom.js version "+wppaJsZoomVersion+" loaded.","force");
1
+ var wppaJsZoomVersion="7.5.02";function wppaDoZoomPan(){for(var e,a=!1,o=0;o<wppaZoomableData.length;o++)void 0!==wppaZoomableData[o]&&((e=wppaZoomableData[o]).image.complete?e.initialized||((e=wppaZoomableData[o]).manualControl=!1,e.deltaX=0,e.deltaY=0,e.deltaFactor=1,e.run=4,e.busy=!1,e.abort=!1,e.itemid=e.mocc+"-"+e.id,e.div=$("#wppa-pan-div-"+e.itemid),e.canvas=document.getElementById("wppa-pan-canvas-"+e.itemid),e.left=$("#wppa-pctl-left-"+e.itemid),e.right=$("#wppa-pctl-right-"+e.itemid),e.up=$("#wppa-pctl-up-"+e.itemid),e.down=$("#wppa-pctl-down-"+e.itemid),e.zoomin=$("#wppa-pctl-zoomin-"+e.itemid),e.zoomout=$("#wppa-pctl-zoomout-"+e.itemid),e.prev=$("#wppa-pctl-prev-"+e.itemid),e.next=$("#wppa-pctl-next-"+e.itemid),e.canvasWidth=e.width,e.canvasHeight=e.height,e.savedCanvasX=0,e.savedCanvasY=0,e.fromHeight=e.image.height,e.fromWidth=e.image.width,e.fromX=0,e.fromY=0,e.centerX=e.fromX+e.fromWidth/2,e.centerY=e.fromY+e.fromHeight/2,e.ctx=null,e.buttondown=!1,e.isMobile?(e.right.on("touchstart",i),e.right.on("touchend",c),e.left.on("touchstart",p),e.left.on("touchend",c),e.up.on("touchstart",r),e.up.on("touchend",c),e.down.on("touchstart",m),e.down.on("touchend",c),e.zoomin.on("touchstart",d),e.zoomin.on("touchend",c),e.zoomout.on("touchstart",s),e.zoomout.on("touchend",c)):(e.canvas.addEventListener("mousedown",h),e.canvas.addEventListener("mousemove",v),e.canvas.addEventListener("mouseup",f),e.canvas.addEventListener("mouseout",f),document.getElementById("wppa-pan-canvas-"+e.itemid).addEventListener("wheel",l),e.right.on("mousedown",i),e.right.on("mouseup",c),e.left.on("mousedown",p),e.left.on("mouseup",c),e.up.on("mousedown",r),e.up.on("mouseup",c),e.down.on("mousedown",m),e.down.on("mouseup",c),e.zoomin.on("mousedown",d),e.zoomin.on("mouseup",c),e.zoomout.on("mousedown",s),e.zoomout.on("mouseup",c)),e.isLightbox&&($("#wppa-fulls-btn").on("click",function(){abort=!0}),e.prev&&(e.prev.on("click",t),e.next.on("click",n))),$(window).on("DOMContentLoaded load resize orientationchange",w),u(o),w(),e.initialized=!0):a=!0);function u(a){if((e=wppaZoomableData[a]).isLightbox&&(wppaOvlOpen||(e.abort=!0)),e.abort)return e.ctx=null,void(e.prevctx=null);var o,t;0!=e.run&&(e.busy||(e.busy=!0,e.manualControl||(e.fromX+=e.deltaX,e.fromY+=e.deltaY,o=e.fromHeight/e.deltaFactor,t=e.fromWidth/e.deltaFactor,1!=e.deltaFactor&&o<=e.image.height&&50<o&&(e.fromX-=(t-e.fromWidth)/2,e.fromY-=(o-e.fromHeight)/2,e.fromWidth=t,e.fromHeight=o)),e.fromX=Math.max(0,Math.min(e.image.width-e.fromWidth,e.fromX)),e.fromY=Math.max(0,Math.min(e.image.height-e.fromHeight,e.fromY)),e.ctx=e.canvas.getContext("2d"),e.ctx.drawImage(e.image,e.fromX,e.fromY,e.fromWidth,e.fromHeight,0,0,e.canvas.width,e.canvas.height),e.busy=!1,0<e.run&&(e.manualControl?setTimeout(function(){u(a)},25):e.buttondown&&setTimeout(function(){u(a)},5)),e.run<5&&e.run--,e.initializing&&(e.initializing=!1,e.run--),wppaAdjustControlbar()))}function t(a){var o;a.preventDefault(),this.abort=!0,o||(o=!0,$("#wppa-overlay-ic").css({display:"none"}),$("#wppa-ovl-spin").show(),wppaOvlShowPrev())}function n(a){var o;a.preventDefault(),this.abort=!0,o||(o=!0,$("#wppa-overlay-ic").css({display:"none"}),$("#wppa-ovl-spin").show(),wppaOvlShowNext())}function i(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaX=3,e.buttondown=!0,u(o))}function p(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaX=-3,e.buttondown=!0,u(o))}function r(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaY=-3,e.buttondown=!0,u(o))}function m(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaY=3,e.buttondown=!0,u(o))}function d(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaFactor=1.005,e.buttondown=!0,u(o))}function s(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=5,wppaZoomableData[o].deltaFactor=.995,e.buttondown=!0,u(o))}function l(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].run=4,wppaZoomableData[o].deltaFactor=1+a.deltaY*wppaZoomableData[o].zoomsensitivity/(wppaIsChrome?1e4:1e3),u(o),setTimeout(function(){wppaZoomableData[o].deltaFactor=1},25),a.stopPropagation())}function c(a){var o=jQuery(this).attr("data-mocc");wppaZoomableData[o]&&(a.preventDefault(),wppaZoomableData[o].deltaX=0,wppaZoomableData[o].deltaY=0,wppaZoomableData[o].deltaFactor=1,wppaZoomableData[o].isLightbox?wppaZoomableData[o].run--:wppaZoomableData[o].run=4,e.buttondown=!1)}function w(a){for(var o,t,e,n,i,p,r,m,d,s,l,c=0;c<wppaZoomableData.length;c++){wppaZoomableData[c]&&wppaZoomableData[c].canvas&&!wppaZoomableData[c].abort&&((o=wppaZoomableData[c]).isLightbox?($("#wppa-overlay-ic").css("display",""),i=(e="normal"==wppaOvlMode)?(n=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(n=screen.width,screen.height),p=parseInt(p),r=parseInt(r),s=(d=8)+(o.controls?o.icsize+10:0)+10,l=o.image.width/o.image.height,e?(d+=2*o.borderWidth,s+=2*o.borderWidth):d=40,m=(t=(n-d)/l<i-s)?(i-(r=(p=n-d)/l)-s)/2+20:(p=l*(i-(o.controls?o.icsize:0)-24),e&&(p-=24),r=p/l,20),$("#wppa-ovl-pan-container").css({marginTop:m}),$("#wppa-overlay-ic").css({marginTop:0}),o.canvasWidth=p,o.canvasHeight=r,o.canvas.width=o.canvasWidth,o.canvas.height=o.canvasHeight,e?($("#wppa-ovl-pan-container").css({backgroundColor:o.backgroundColor,padding:o.padding,borderRadius:o.borderRadius,borderWidth:o.borderWidth,width:p,marginLeft:0}),$("#wppa-pctl-div-"+o.itemid).css({marginLeft:0}),t?$("#wppa-overlay-ic").css({marginLeft:4}):$("#wppa-overlay-ic").css({marginLeft:(n-p)/2})):($("#wppa-overlay-ic").css({marginLeft:0}),$("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:0,borderWidth:0,width:p,marginLeft:(n-p)/2}),$("#wppa-pctl-div-"+o.itemid).css({marginLeft:0}))):(o.canvasWidth=$(o.div).parent().width(),o.canvasHeight=o.canvasWidth*o.canvas.height/o.canvas.width,o.canvas.width=o.canvasWidth,o.canvas.height=o.canvasHeight),o.run=5,u(c))}}function h(a){var o,t=jQuery(this).attr("data-mocc");wppaZoomableData[t]&&(o=wppaZoomableData[t],a.preventDefault(),o.manualControl=!0,o.savedCanvasX=a.offsetX,o.savedCanvasY=a.offsetY,o.run=5,u(t))}function v(a){var o,t,e,n,i=jQuery(this).attr("data-mocc");!wppaZoomableData[i]||(o=wppaZoomableData[i]).manualControl&&(t=o.canvas.width/o.fromWidth,e=(o.savedCanvasX-a.offsetX)/t+o.fromX,n=(o.savedCanvasY-a.offsetY)/t+o.fromY,0<e&&0<n&&e+o.fromWidth<o.image.width&&n+o.fromHeight<o.image.height&&(o.fromX=e,o.fromY=n,o.savedCanvasX=a.offsetX,o.savedCanvasY=a.offsetY))}function f(a){var o,t=jQuery(this).attr("data-mocc");!wppaZoomableData[t]||(o=wppaZoomableData[t]).manualControl&&(o.run=4,o.manualControl=!1)}a?setTimeout(function(){wppaDoZoomPan()},300):$("#wppa-ovl-spin").hide()}"undefined"==typeof $&&($=jQuery),wppaConsoleLog("wppa-zoom.js version "+wppaJsZoomVersion+" loaded.","force");
js/wppa.js CHANGED
@@ -2,7 +2,10 @@
2
  //
3
  // contains common vars and functions
4
  //
5
- var wppaJsVersion = '7.5.01';
 
 
 
6
 
7
  // Language dependant vars. i18n for js does not work. Values are filled in by wppa_add_page_specific_urls_and_language() in wppa-non-admin.php
8
  var wppaSlideShow;
@@ -32,7 +35,6 @@ var wppaServerError;
32
  // This will prevent overwriting with default values in case defereed js is activated
33
  var wppaVersion = '0';
34
  var wppaIsIe = false;
35
- var wppaUseSvg = true;
36
  var wppaDebug;
37
  var wppaFullValign = [];
38
  var wppaFullHalign = [];
2
  //
3
  // contains common vars and functions
4
  //
5
+ var wppaJsVersion = '7.5.02';
6
+
7
+ var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
8
+
9
 
10
  // Language dependant vars. i18n for js does not work. Values are filled in by wppa_add_page_specific_urls_and_language() in wppa-non-admin.php
11
  var wppaSlideShow;
35
  // This will prevent overwriting with default values in case defereed js is activated
36
  var wppaVersion = '0';
37
  var wppaIsIe = false;
 
38
  var wppaDebug;
39
  var wppaFullValign = [];
40
  var wppaFullHalign = [];
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsVersion="7.5.01",wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaUseSvg=!0,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaLazyDone=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlModeInitial="normal",wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomableData=[],wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){for(var p=1;p<wppaTopMoc;)jQuery("#ubb-"+p+"-l")&&(wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")),p++},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaMakeLazyVisible),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",wppaMakeLazyVisible),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!1,jQuery("#wppa-filmstrip-"+p).stop(),_wppaAdjustFilmstrip(p),p++}),jQuery(window).on("wpparesizeend",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!0,p++}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},2e3)}),jQuery(window).trigger("resize"),wppaProtect()}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}function wppaDoAllAutocols(p){setTimeout(function(){_wppaDoAllAutocols(-1)},wppaExtendedResizeDelay)}function _wppaDoAllAutocols(p){Date.now();p++;for(var e=1;e<=wppaAutoColumnWidth.length;)wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p),wppaMakeLazyVisible(e),e++;(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p)},wppaExtendedResizeDelay);Date.now();return!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p),a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o,r,i,n,s=jQuery("#wppa-container-"+p).width();if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:s-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:s})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:s},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var w=document.getElementById("wppa-albumlist-"+p).clientWidth,l=parseInt((w+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,u=l-1,c=parseInt((w+wppaCoverSpacing)/l-wppaCoverSpacing);if(wppaColWidth[p]!=w||wppaMCRWidth[p]!=c){wppaColWidth[p]=w,wppaMCRWidth[p]=c;for(var d=0;d<a.length;){switch(d%l){case 0:jQuery(a[d]).css({marginLeft:"0px",clear:"both",float:"left"});break;case u:jQuery(a[d]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[d]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}d++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:c-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:c},wppaResponseSpeed)}}else{1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})))}0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(s/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(o=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(r=s-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(r/(o+wppaMinThumbSpace))),n=parseInt(.5+(r-i*o)/(i+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:n})),jQuery(".thumbnail-frame-comalt-"+p).css("width",s-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",s-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var y,m=1,h=jQuery("#wppa-mas-h-"+m+"-"+p).attr("data-height-perc");h;)y=h*(s-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+m+"-"+p).css("height",y),m++,h=jQuery("#wppa-mas-h-"+m+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",s-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*s),wppaFilmStripLength[p]=s-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",s),jQuery(".wppa-simg-"+p).css("width",s-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",s+10),jQuery(".wppa-mimg-"+p).css("width",s),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(s/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*s),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,p,o,r,i=jQuery("#wppa-real-calendar-"+e).width();0<i&&(a=!0,t=i*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=i/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),o=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:o,marginBottom:o}),r=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=r-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);var r=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:r})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;var o=wppaGetChildI(t);if(o)return o}return!1}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){wppaConsoleLog("Resize end triggered"),jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy?wppaConsoleLog("Fb Init busy"):"undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):(wppaConsoleLog("Fb wait"),setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var t=new google.maps.LatLng(e,a),o={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:t},r=new google.maps.Map(document.getElementById("map-canvas-"+p),o),i=new google.maps.Marker({position:t,map:r,title:""});google.maps.event.addListener(r,"center_changed",function(){window.setTimeout(function(){r.panTo(i.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a,t=jQuery("#wppa-ss-pa-"+p).val(),o="",r="",i="";switch(t){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),o=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var n=jQuery(".wppa-ss-albumcat-"+p),i="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");n=jQuery(".wppa-ss-albumtext-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),o=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");n=jQuery(".wppa-ss-phototag-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(r=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<r.length&&(r=r.replace("#","H")),""!=r&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=r?(wppaAjaxGetSsIptcList(p,r,"wppa-ss-iptcopts-"+p),wppaLastIptc=r):null!=(i=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=i&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(r=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<r.length&&(r=r.replace("#","H")),""!=r&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=r?(wppaAjaxGetSsExifList(p,r,"wppa-ss-exifopts-"+p),wppaLastExif=r):null!=(i=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=i&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(a=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?a+="?":a+="&",a+="occur=1&wppa-supersearch="+t+","+o+","+r+","+i,document.location.href=a)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){var a=jQuery(p).length;6<a&&(a=6),a<2&&(a=2),jQuery(e).attr("size",a)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(p){for(var e,a,t,o,r=0<parseInt(p)?e=p:(e=1,wppaTopMoc),i=e;i<=r;){document.getElementById("grid-"+i)&&(o=(a=jQuery("#wppa-container-"+i).width()-wppaThumbnailAreaDelta)/(t=parseInt((a+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin)))-wppaTfMargin,wppaConsoleLog("Doing init masonry plus for mocc="+i+", w="+a+", colWidth="+o+", count="+t,"force"),jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+i).css("width",o+"px"),jQuery("#grid-"+i).masonry({itemSelector:".grid-item-"+i,columnWidth:o,gutter:wppaTfMargin,fitWidth:!0})),i++}}wppaConsoleLog("wppa.js version "+wppaJsVersion+" loaded.","force");
1
+ var wppaJsVersion="7.5.02",wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaLazyDone=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlModeInitial="normal",wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomableData=[],wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){for(var p=1;p<wppaTopMoc;)jQuery("#ubb-"+p+"-l")&&(wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")),p++},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaMakeLazyVisible),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",wppaMakeLazyVisible),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!1,jQuery("#wppa-filmstrip-"+p).stop(),_wppaAdjustFilmstrip(p),p++}),jQuery(window).on("wpparesizeend",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!0,p++}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},2e3)}),jQuery(window).trigger("resize"),wppaProtect()}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}function wppaDoAllAutocols(p){setTimeout(function(){_wppaDoAllAutocols(-1)},wppaExtendedResizeDelay)}function _wppaDoAllAutocols(p){Date.now();p++;for(var e=1;e<=wppaAutoColumnWidth.length;)wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p),wppaMakeLazyVisible(e),e++;(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p)},wppaExtendedResizeDelay);Date.now();return!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p),a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o,r,i,n,s=jQuery("#wppa-container-"+p).width();if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:s-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:s})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:s},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var w=document.getElementById("wppa-albumlist-"+p).clientWidth,l=parseInt((w+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,u=l-1,c=parseInt((w+wppaCoverSpacing)/l-wppaCoverSpacing);if(wppaColWidth[p]!=w||wppaMCRWidth[p]!=c){wppaColWidth[p]=w,wppaMCRWidth[p]=c;for(var d=0;d<a.length;){switch(d%l){case 0:jQuery(a[d]).css({marginLeft:"0px",clear:"both",float:"left"});break;case u:jQuery(a[d]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[d]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}d++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:c-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:c},wppaResponseSpeed)}}else{1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})))}0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(s/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(o=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(r=s-wppaThumbnailAreaDelta-7,i=Math.max(1,parseInt(r/(o+wppaMinThumbSpace))),n=parseInt(.5+(r-i*o)/(i+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:n})),jQuery(".thumbnail-frame-comalt-"+p).css("width",s-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",s-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var y,m=1,h=jQuery("#wppa-mas-h-"+m+"-"+p).attr("data-height-perc");h;)y=h*(s-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+m+"-"+p).css("height",y),m++,h=jQuery("#wppa-mas-h-"+m+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",s-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*s),wppaFilmStripLength[p]=s-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",s),jQuery(".wppa-simg-"+p).css("width",s-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",s+10),jQuery(".wppa-mimg-"+p).css("width",s),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(s/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*s),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,p,o,r,i=jQuery("#wppa-real-calendar-"+e).width();0<i&&(a=!0,t=i*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=i/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),o=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:o,marginBottom:o}),r=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=r-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);var r=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:r})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;var o=wppaGetChildI(t);if(o)return o}return!1}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){wppaConsoleLog("Resize end triggered"),jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy?wppaConsoleLog("Fb Init busy"):"undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):(wppaConsoleLog("Fb wait"),setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var t=new google.maps.LatLng(e,a),o={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:t},r=new google.maps.Map(document.getElementById("map-canvas-"+p),o),i=new google.maps.Marker({position:t,map:r,title:""});google.maps.event.addListener(r,"center_changed",function(){window.setTimeout(function(){r.panTo(i.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a,t=jQuery("#wppa-ss-pa-"+p).val(),o="",r="",i="";switch(t){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),o=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var n=jQuery(".wppa-ss-albumcat-"+p),i="";for(s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");n=jQuery(".wppa-ss-albumtext-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),o=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(i=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");n=jQuery(".wppa-ss-phototag-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var s,n=jQuery(".wppa-ss-phototext-"+p);for(i="",s=0;s<n.length;s++)jQuery(n[s]).prop("selected")&&(i+="."+jQuery(n[s]).val());""!=(i=i.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(r=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<r.length&&(r=r.replace("#","H")),""!=r&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=r?(wppaAjaxGetSsIptcList(p,r,"wppa-ss-iptcopts-"+p),wppaLastIptc=r):null!=(i=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=i&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(r=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<r.length&&(r=r.replace("#","H")),""!=r&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=r?(wppaAjaxGetSsExifList(p,r,"wppa-ss-exifopts-"+p),wppaLastExif=r):null!=(i=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=i&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(a=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?a+="?":a+="&",a+="occur=1&wppa-supersearch="+t+","+o+","+r+","+i,document.location.href=a)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){var a=jQuery(p).length;6<a&&(a=6),a<2&&(a=2),jQuery(e).attr("size",a)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(p){for(var e,a,t,o,r=0<parseInt(p)?e=p:(e=1,wppaTopMoc),i=e;i<=r;){document.getElementById("grid-"+i)&&(o=(a=jQuery("#wppa-container-"+i).width()-wppaThumbnailAreaDelta)/(t=parseInt((a+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin)))-wppaTfMargin,wppaConsoleLog("Doing init masonry plus for mocc="+i+", w="+a+", colWidth="+o+", count="+t,"force"),jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+i).css("width",o+"px"),jQuery("#grid-"+i).masonry({itemSelector:".grid-item-"+i,columnWidth:o,gutter:wppaTfMargin,fitWidth:!0})),i++}}wppaConsoleLog("wppa.js version "+wppaJsVersion+" loaded.","force");
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
- Version: 7.5.01.001
6
- Stable tag: 7.4.03.003
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
@@ -137,9 +137,9 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
137
 
138
  == Upgrade Notice ==
139
 
140
- = 7.5.01 =
141
 
142
- * This version addresses various bug fixes.
143
 
144
  == Screenshots ==
145
 
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
+ Version: 7.5.02.008
6
+ Stable tag: 7.5.01.001
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
137
 
138
  == Upgrade Notice ==
139
 
140
+ = 7.5.02 =
141
 
142
+ * This version addresses various bug fixes and feature requests.
143
 
144
  == Screenshots ==
145
 
vendor/jquery-fullscreen/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+ ----
3
+
4
+ Copyright (c) 2012 Vladimir Zhuravlev
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
vendor/jquery-fullscreen/README.textile ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ h1. jQuery.fullscreen
2
+
3
+ jQuery Fullscreen plugin allows you to open any element on a page in fullscreen mode without using Flash in all modern browsers (Firefox, IE, Chrome, Safari, Opera). If this feature is not supported by the browser then element will be just stretched to fit the screen without switching to fullscreen.
4
+
5
+ "Fullscreen API":http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#api is natively supported in Chrome 15+, Safari 5.1+, Firefox 10+, Opera 12.1+ and IE 11. It is also present in Firefox 9.0, but it is disabled by default. You can be enable it by setting @fullscreen-api.enabled@ to @true@ in @about:config@.
6
+
7
+ h2. Usage
8
+
9
+ h3. Request/exit fullscreen
10
+
11
+ <pre><code><div id="some_selector">
12
+ Block to be displayed in fullscreen.
13
+ </div>
14
+
15
+ <script>
16
+ // open element in fullscreen
17
+ $('#some_selector').fullscreen(options);
18
+ // close fullscreen
19
+ $.fullscreen.exit();
20
+ </script>
21
+ </code></pre>
22
+
23
+ Currently the following options are supported:
24
+ * @overflow {'hidden'}@: 'overflow' css-property, which is set to an element when it is being opened in fullscreen;
25
+ * @toggleClass {null}@: class name which is toggled when an element changes its 'fullscreen' state;
26
+
27
+ h3. $.fullscreen object methods
28
+
29
+ * @$.fullscreen.open(element[, options])@: equivalent to @$(element).fullscreen(options)@;
30
+ * @$.fullscreen.exit()@: exit fullscreen mode;
31
+ * @$.fullscreen.isNativelySupported() {true|false}@: returns @true@ if browser supports Fullscreen API natively;
32
+ * @$.fullscreen.isFullScreen() {true|false}@: returns @true@ if there is an element opened in fullscreen.
33
+
34
+ h3. Events
35
+
36
+ h4. fscreenchange
37
+
38
+ @fscreenchange@ event is sent to @window.document@ when some element on the page changes its 'fullscreen' state. Three parameters are passed to an event's handler:
39
+ * jQuery.Event object
40
+ * fullscreen state (true or false)
41
+ * Element
42
+
43
+ h4. fscreenopen/fscreenclose
44
+
45
+ @fscreenopen@ and @fscreenclose@ events are sent to an element when it's being opened in fullscreen (or exited fullscreen mode).
46
+
47
+ h4. fscreenerror
48
+
49
+ @fscreenerror@ event is fired on the @document@ if requested fullscreen operation could not be performed.
50
+
51
+ h2. Security notes
52
+
53
+ Due to security reasons, calls like @$(...).fullscreen()@, @$.fullscreen.open()@, and @$.fullscreen.close()@ are allowed only inside *user generated event* (such as click, keydown, etc...). This means that the following code will not work:
54
+ <pre><code>$(function() {
55
+ $('body').fullscreen();
56
+ });
57
+ </code></pre>because fullscreen here is called directly without any action from user.
58
+
59
+ h2. Browser support
60
+
61
+ h3. Native
62
+
63
+ * Firefox 10+
64
+ * Chrome 15+
65
+ * Safari 5.1+
66
+ * Opera 12.1+
67
+ * Internet Explorer 11
68
+
69
+ h3. Fallback
70
+
71
+ * IE 8–11 (Should work in IE7 as well, perhaps with some minor issues)
72
+
73
+ h2. Read more
74
+
75
+ * "FullScreen API Editor's Draft":http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#api
76
+ * "MDN – Using full-screen mode":https://developer.mozilla.org/en/DOM/Using_full-screen_mode
77
+
78
+ h2. License
79
+
80
+ h3. MIT License
81
+
82
+ Copyright (c) 2013 Vladimir Zhuravlev
83
+
84
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
85
+
86
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
87
+
88
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
vendor/jquery-fullscreen/release/jquery.fullscreen-0.4.1.js ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery.fullscreen library v0.4.0
3
+ * Copyright (c) 2013 Vladimir Zhuravlev
4
+ *
5
+ * @license https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE
6
+ *
7
+ * Date: Wed Dec 11 22:45:17 ICT 2013
8
+ **/
9
+ ;(function($) {
10
+
11
+ function defined(a) {
12
+ return typeof a !== 'undefined';
13
+ }
14
+
15
+ function extend(child, parent, prototype) {
16
+ var F = function() {};
17
+ F.prototype = parent.prototype;
18
+ child.prototype = new F();
19
+ child.prototype.constructor = child;
20
+ parent.prototype.constructor = parent;
21
+ child._super = parent.prototype;
22
+ if (prototype) {
23
+ $.extend(child.prototype, prototype);
24
+ }
25
+ }
26
+
27
+ var SUBST = [
28
+ ['', ''], // spec
29
+ ['exit', 'cancel'], // firefox & old webkits expect cancelFullScreen instead of exitFullscreen
30
+ ['screen', 'Screen'] // firefox expects FullScreen instead of Fullscreen
31
+ ];
32
+
33
+ var VENDOR_PREFIXES = ['', 'o', 'ms', 'moz', 'webkit', 'webkitCurrent'];
34
+
35
+ function native(obj, name) {
36
+ var prefixed;
37
+
38
+ if (typeof obj === 'string') {
39
+ name = obj;
40
+ obj = document;
41
+ }
42
+
43
+ for (var i = 0; i < SUBST.length; ++i) {
44
+ name = name.replace(SUBST[i][0], SUBST[i][1]);
45
+ for (var j = 0; j < VENDOR_PREFIXES.length; ++j) {
46
+ prefixed = VENDOR_PREFIXES[j];
47
+ prefixed += j === 0 ? name : name.charAt(0).toUpperCase() + name.substr(1);
48
+ if (defined(obj[prefixed])) {
49
+ return obj[prefixed];
50
+ }
51
+ }
52
+ }
53
+
54
+ return void 0;
55
+ }var ua = navigator.userAgent;
56
+ var fsEnabled = native('fullscreenEnabled');
57
+ var IS_ANDROID_CHROME = ua.indexOf('Android') !== -1 && ua.indexOf('Chrome') !== -1;
58
+ var IS_NATIVELY_SUPPORTED =
59
+ !IS_ANDROID_CHROME &&
60
+ defined(native('fullscreenElement')) &&
61
+ (!defined(fsEnabled) || fsEnabled === true);
62
+
63
+ var version = $.fn.jquery.split('.');
64
+ var JQ_LT_17 = (parseInt(version[0]) < 2 && parseInt(version[1]) < 7);
65
+
66
+ var FullScreenAbstract = function() {
67
+ this.__options = null;
68
+ this._fullScreenElement = null;
69
+ this.__savedStyles = {};
70
+ };
71
+
72
+ FullScreenAbstract.prototype = {
73
+ _DEFAULT_OPTIONS: {
74
+ styles: {
75
+ 'boxSizing': 'border-box',
76
+ 'MozBoxSizing': 'border-box',
77
+ 'WebkitBoxSizing': 'border-box'
78
+ },
79
+ toggleClass: null
80
+ },
81
+ __documentOverflow: '',
82
+ __htmlOverflow: '',
83
+ _preventDocumentScroll: function() {
84
+ this.__documentOverflow = $('body')[0].style.overflow;
85
+ this.__htmlOverflow = $('html')[0].style.overflow;
86
+ $('body, html').css('overflow', 'hidden');
87
+ },
88
+ _allowDocumentScroll: function() {
89
+ $('body')[0].style.overflow = this.__documentOverflow;
90
+ $('html')[0].style.overflow = this.__htmlOverflow;
91
+ },
92
+ _fullScreenChange: function() {
93
+ if (!this.isFullScreen()) {
94
+ this._allowDocumentScroll();
95
+ this._revertStyles();
96
+ this._triggerEvents();
97
+ this._fullScreenElement = null;
98
+ } else {
99
+ this._preventDocumentScroll();
100
+ this._triggerEvents();
101
+ }
102
+ },
103
+ _fullScreenError: function(e) {
104
+ this._revertStyles();
105
+ this._fullScreenElement = null;
106
+ if (e) {
107
+ $(document).trigger('fscreenerror', [e]);
108
+ }
109
+ },
110
+ _triggerEvents: function() {
111
+ $(this._fullScreenElement).trigger(this.isFullScreen() ? 'fscreenopen' : 'fscreenclose');
112
+ $(document).trigger('fscreenchange', [this.isFullScreen(), this._fullScreenElement]);
113
+ },
114
+ _saveAndApplyStyles: function() {
115
+ var $elem = $(this._fullScreenElement);
116
+ this.__savedStyles = {};
117
+ for (var property in this.__options.styles) {
118
+ // save
119
+ this.__savedStyles[property] = this._fullScreenElement.style[property];
120
+ // apply
121
+ this._fullScreenElement.style[property] = this.__options.styles[property];
122
+ }
123
+ if (this.__options.toggleClass) {
124
+ $elem.addClass(this.__options.toggleClass);
125
+ }
126
+ },
127
+ _revertStyles: function() {
128
+ var $elem = $(this._fullScreenElement);
129
+ for (var property in this.__options.styles) {
130
+ this._fullScreenElement.style[property] = this.__savedStyles[property];
131
+ }
132
+ if (this.__options.toggleClass) {
133
+ $elem.removeClass(this.__options.toggleClass);
134
+ }
135
+ },
136
+ open: function(elem, options) {
137
+ // do nothing if request is for already fullscreened element
138
+ if (elem === this._fullScreenElement) {
139
+ return;
140
+ }
141
+ // exit active fullscreen before opening another one
142
+ if (this.isFullScreen()) {
143
+ this.exit();
144
+ }
145
+ // save fullscreened element
146
+ this._fullScreenElement = elem;
147
+ // apply options, if any
148
+ this.__options = $.extend(true, {}, this._DEFAULT_OPTIONS, options);
149
+ // save current element styles and apply new
150
+ this._saveAndApplyStyles();
151
+ },
152
+ exit: null,
153
+ isFullScreen: null,
154
+ isNativelySupported: function() {
155
+ return IS_NATIVELY_SUPPORTED;
156
+ }
157
+ };
158
+ var FullScreenNative = function() {
159
+ FullScreenNative._super.constructor.apply(this, arguments);
160
+ this.exit = $.proxy(native('exitFullscreen'), document);
161
+ this._DEFAULT_OPTIONS = $.extend(true, {}, this._DEFAULT_OPTIONS, {
162
+ 'styles': {
163
+ 'width': '100%',
164
+ 'height': '100%'
165
+ }
166
+ });
167
+ $(document)
168
+ .bind(this._prefixedString('fullscreenchange') + ' MSFullscreenChange', $.proxy(this._fullScreenChange, this))
169
+ .bind(this._prefixedString('fullscreenerror') + ' MSFullscreenError', $.proxy(this._fullScreenError, this));
170
+ };
171
+
172
+ extend(FullScreenNative, FullScreenAbstract, {
173
+ VENDOR_PREFIXES: ['', 'o', 'moz', 'webkit'],
174
+ _prefixedString: function(str) {
175
+ return $.map(this.VENDOR_PREFIXES, function(s) {
176
+ return s + str;
177
+ }).join(' ');
178
+ },
179
+ open: function(elem, options) {
180
+ FullScreenNative._super.open.apply(this, arguments);
181
+ var requestFS = native(elem, 'requestFullscreen');
182
+ requestFS.call(elem);
183
+ },
184
+ exit: $.noop,
185
+ isFullScreen: function() {
186
+ return native('fullscreenElement') !== null;
187
+ },
188
+ element: function() {
189
+ return native('fullscreenElement');
190
+ }
191
+ });
192
+ var FullScreenFallback = function() {
193
+ FullScreenFallback._super.constructor.apply(this, arguments);
194
+ this._DEFAULT_OPTIONS = $.extend({}, this._DEFAULT_OPTIONS, {
195
+ 'styles': {
196
+ 'position': 'fixed',
197
+ 'zIndex': '2147483647',
198
+ 'left': 0,
199
+ 'top': 0,
200
+ 'bottom': 0,
201
+ 'right': 0
202
+ }
203
+ });
204
+ this.__delegateKeydownHandler();
205
+ };
206
+
207
+ extend(FullScreenFallback, FullScreenAbstract, {
208
+ __isFullScreen: false,
209
+ __delegateKeydownHandler: function() {
210
+ var $doc = $(document);
211
+ $doc.delegate('*', 'keydown.fullscreen', $.proxy(this.__keydownHandler, this));
212
+ var data = JQ_LT_17 ? $doc.data('events') : $._data(document).events;
213
+ var events = data['keydown'];
214
+ if (!JQ_LT_17) {
215
+ events.splice(0, 0, events.splice(events.delegateCount - 1, 1)[0]);
216
+ } else {
217
+ data.live.unshift(data.live.pop());
218
+ }
219
+ },
220
+ __keydownHandler: function(e) {
221
+ if (this.isFullScreen() && e.which === 27) {
222
+ this.exit();
223
+ return false;
224
+ }
225
+ return true;
226
+ },
227
+ _revertStyles: function() {
228
+ FullScreenFallback._super._revertStyles.apply(this, arguments);
229
+ // force redraw (fixes bug in IE7 with content dissapearing)
230
+ this._fullScreenElement.offsetHeight;
231
+ },
232
+ open: function(elem) {
233
+ FullScreenFallback._super.open.apply(this, arguments);
234
+ this.__isFullScreen = true;
235
+ this._fullScreenChange();
236
+ },
237
+ exit: function() {
238
+ this.__isFullScreen = false;
239
+ this._fullScreenChange();
240
+ },
241
+ isFullScreen: function() {
242
+ return this.__isFullScreen;
243
+ },
244
+ element: function() {
245
+ return this.__isFullScreen ? this._fullScreenElement : null;
246
+ }
247
+ });$.fullscreen = IS_NATIVELY_SUPPORTED
248
+ ? new FullScreenNative()
249
+ : new FullScreenFallback();
250
+
251
+ $.fn.fullscreen = function(options) {
252
+ var elem = this[0];
253
+
254
+ options = $.extend({
255
+ toggleClass: null,
256
+ overflow: 'hidden'
257
+ }, options);
258
+ options.styles = {
259
+ overflow: options.overflow
260
+ };
261
+ delete options.overflow;
262
+
263
+ if (elem) {
264
+ $.fullscreen.open(elem, options);
265
+ }
266
+
267
+ return this;
268
+ };
269
+ })(jQuery);
vendor/jquery-fullscreen/release/jquery.fullscreen-0.4.1.min.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery.fullscreen library v0.4.0
3
+ * Copyright (c) 2013 Vladimir Zhuravlev
4
+ *
5
+ * @license https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE
6
+ *
7
+ * Date: Wed Dec 11 22:45:17 ICT 2013
8
+ **/
9
+ (function(e){function t(e){return e!==void 0}function n(t,n,l){var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t,n.prototype.constructor=n,t._super=n.prototype,l&&e.extend(t.prototype,l)}function l(e,n){var l;"string"==typeof e&&(n=e,e=document);for(var i=0;r.length>i;++i){n=n.replace(r[i][0],r[i][1]);for(var o=0;s.length>o;++o)if(l=s[o],l+=0===o?n:n.charAt(0).toUpperCase()+n.substr(1),t(e[l]))return e[l]}return void 0}var r=[["",""],["exit","cancel"],["screen","Screen"]],s=["","o","ms","moz","webkit","webkitCurrent"],i=navigator.userAgent,o=l("fullscreenEnabled"),u=-1!==i.indexOf("Android")&&-1!==i.indexOf("Chrome"),c=!u&&t(l("fullscreenElement"))&&(!t(o)||o===!0),_=e.fn.jquery.split("."),h=2>parseInt(_[0])&&7>parseInt(_[1]),f=function(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}};f.prototype={_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=e("body")[0].style.overflow,this.__htmlOverflow=e("html")[0].style.overflow,e("body, html").css("overflow","hidden")},_allowDocumentScroll:function(){e("body")[0].style.overflow=this.__documentOverflow,e("html")[0].style.overflow=this.__htmlOverflow},_fullScreenChange:function(){this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null)},_fullScreenError:function(t){this._revertStyles(),this._fullScreenElement=null,t&&e(document).trigger("fscreenerror",[t])},_triggerEvents:function(){e(this._fullScreenElement).trigger(this.isFullScreen()?"fscreenopen":"fscreenclose"),e(document).trigger("fscreenchange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var t=e(this._fullScreenElement);this.__savedStyles={};for(var n in this.__options.styles)this.__savedStyles[n]=this._fullScreenElement.style[n],this._fullScreenElement.style[n]=this.__options.styles[n];this.__options.toggleClass&&t.addClass(this.__options.toggleClass)},_revertStyles:function(){var t=e(this._fullScreenElement);for(var n in this.__options.styles)this._fullScreenElement.style[n]=this.__savedStyles[n];this.__options.toggleClass&&t.removeClass(this.__options.toggleClass)},open:function(t,n){t!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=t,this.__options=e.extend(!0,{},this._DEFAULT_OPTIONS,n),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return c}};var p=function(){p._super.constructor.apply(this,arguments),this.exit=e.proxy(l("exitFullscreen"),document),this._DEFAULT_OPTIONS=e.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),e(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",e.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",e.proxy(this._fullScreenError,this))};n(p,f,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(t){return e.map(this.VENDOR_PREFIXES,function(e){return e+t}).join(" ")},open:function(e){p._super.open.apply(this,arguments);var t=l(e,"requestFullscreen");t.call(e)},exit:e.noop,isFullScreen:function(){return null!==l("fullscreenElement")},element:function(){return l("fullscreenElement")}});var a=function(){a._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=e.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0}}),this.__delegateKeydownHandler()};n(a,f,{__isFullScreen:!1,__delegateKeydownHandler:function(){var t=e(document);t.delegate("*","keydown.fullscreen",e.proxy(this.__keydownHandler,this));var n=h?t.data("events"):e._data(document).events,l=n.keydown;h?n.live.unshift(n.live.pop()):l.splice(0,0,l.splice(l.delegateCount-1,1)[0])},__keydownHandler:function(e){return this.isFullScreen()&&27===e.which?(this.exit(),!1):!0},_revertStyles:function(){a._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(){a._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen=!1,this._fullScreenChange()},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),e.fullscreen=c?new p:new a,e.fn.fullscreen=function(t){var n=this[0];return t=e.extend({toggleClass:null,overflow:"hidden"},t),t.styles={overflow:t.overflow},delete t.overflow,n&&e.fullscreen.open(n,t),this}})(jQuery);
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 7.4.02
7
  *
8
  */
9
 
@@ -167,7 +167,6 @@ horizrailenabled:false,";
167
  'wppa_magnifier' => 'magnifier-small.png', // 2
168
  'wppa_ovl_border_width' => '8',
169
  'wppa_ovl_border_radius' => '12',
170
- 'wppa_ovl_fsx_btn_size' => '48',
171
 
172
  // H Video
173
  'wppa_video_width' => '640',
@@ -299,8 +298,8 @@ horizrailenabled:false,";
299
  'wppa_show_ubb_widget' => 'no', // 1
300
  'wppa_ubb_color' => '',
301
  'wppa_show_albwidget_tooltip' => 'yes',
 
302
  // F Overlay
303
- // 'wppa_ovl_close_txt' => 'Close',
304
  'wppa_ovl_theme' => 'black',
305
  'wppa_ovl_bgcolor' => 'black',
306
  'wppa_ovl_slide_name' => 'no',
@@ -320,7 +319,6 @@ horizrailenabled:false,";
320
  'wppa_ovl_show_counter' => 'yes',
321
  'wppa_ovl_add_owner' => 'no',
322
  'wppa_ovl_show_startstop' => 'yes',
323
- 'wppa_ovl_show_legenda' => 'yes',
324
  'wppa_show_zoomin' => 'yes',
325
  'wppa_ovl_fs_icons' => 'yes',
326
  'wppa_ovl_rating' => 'no',
@@ -664,8 +662,8 @@ horizrailenabled:false,";
664
  'wppa_lb_hres' => 'no',
665
  'wppa_ovl_video_start' => 'yes',
666
  'wppa_ovl_audio_start' => 'yes',
667
- 'wppa_ovl_mode_initial' => 'normal',
668
- 'wppa_ovl_mode_initial_mob' => 'padded',
669
 
670
  // H Panorama
671
  'wppa_panorama_control' => 'all',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 7.5.02
7
  *
8
  */
9
 
167
  'wppa_magnifier' => 'magnifier-small.png', // 2
168
  'wppa_ovl_border_width' => '8',
169
  'wppa_ovl_border_radius' => '12',
 
170
 
171
  // H Video
172
  'wppa_video_width' => '640',
298
  'wppa_show_ubb_widget' => 'no', // 1
299
  'wppa_ubb_color' => '',
300
  'wppa_show_albwidget_tooltip' => 'yes',
301
+
302
  // F Overlay
 
303
  'wppa_ovl_theme' => 'black',
304
  'wppa_ovl_bgcolor' => 'black',
305
  'wppa_ovl_slide_name' => 'no',
319
  'wppa_ovl_show_counter' => 'yes',
320
  'wppa_ovl_add_owner' => 'no',
321
  'wppa_ovl_show_startstop' => 'yes',
 
322
  'wppa_show_zoomin' => 'yes',
323
  'wppa_ovl_fs_icons' => 'yes',
324
  'wppa_ovl_rating' => 'no',
662
  'wppa_lb_hres' => 'no',
663
  'wppa_ovl_video_start' => 'yes',
664
  'wppa_ovl_audio_start' => 'yes',
665
+ // 'wppa_ovl_mode_initial' => 'normal',
666
+ // 'wppa_ovl_mode_initial_mob' => 'padded',
667
 
668
  // H Panorama
669
  'wppa_panorama_control' => 'all',
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 7.4.02
7
  *
8
  */
9
 
@@ -319,10 +319,12 @@ global $wppa_opt;
319
  foreach ( array_keys( $js_files ) as $idx ) {
320
  if ( $js_doits[$idx] ) {
321
  if ( is_file( dirname( __FILE__ ) . '/js/' . $js_files[$idx] . '.min.js' ) ) {
322
- wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.min.js', $js_depts[$idx], $wppa_api_version, $js_footer[$idx] );
 
323
  }
324
  else {
325
- wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.js', $js_depts[$idx], $wppa_api_version, $js_footer[$idx] );
 
326
  }
327
  }
328
  }
@@ -359,11 +361,11 @@ global $wppa_opt;
359
 
360
  if ( is_file ( WPPA_PATH . '/js/wppa-panorama.min.js' ) ) {
361
  $three_url = WPPA_URL . '/js/wppa-panorama.min.js';
362
- $ver = $wppa_api_version;
363
  }
364
  elseif ( is_file ( WPPA_PATH . '/js/wppa-panorama.js' ) ) {
365
  $three_url = WPPA_URL . '/js/wppa-panorama.js';
366
- $ver = $wppa_api_version;
367
  }
368
  else {
369
  $three_url = WPPA_URL . '/vendor/three/three.min.js';
@@ -373,6 +375,12 @@ global $wppa_opt;
373
  }
374
  }
375
 
 
 
 
 
 
 
376
  // wppa-init
377
  if ( ! file_exists( WPPA_UPLOAD_PATH.'/dynamic/wppa-init.'.$wppa_lang.'.js' ) ) {
378
  wppa_create_wppa_init_js();
@@ -460,85 +468,30 @@ global $wppa_session;
460
  ' onclick="wppaOvlOnclick(event)"' .
461
  ' onwheel="return false;"' .
462
  ' onscroll="return false;"' .
463
- ' >';
464
-
465
- // Display legenda
466
- if ( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ) {
467
- echo
468
- '<div' .
469
- ' id="wppa-ovl-legenda-1"' .
470
- ' onmouseover="jQuery(this).css(\'visibility\',\'visible\');"' .
471
- ' onmouseout="jQuery(this).css(\'visibility\',\'hidden\');"' .
472
- ' style="' .
473
- 'position:absolute;' .
474
- 'left:0;' .
475
- 'top:0;' .
476
- 'background-color:'.wppa_opt( 'ovl_theme' ).';' .
477
- 'color:'.$txtcol.';' .
478
- 'visibility:visible;' .
479
- '"' .
480
- ' >
481
- '.__( 'Press f for fullscreen.' , 'wp-photo-album-plus').'
482
- </div>';
483
- }
484
-
485
- // Close lightbox overlay background
486
- echo
487
- '</div>';
488
-
489
- // The Lightbox Image container
490
- echo
491
- '<div'.
492
- ' id="wppa-overlay-ic"'.
493
- ' style="' .
494
- 'position:fixed;' .
495
- 'top:50%;' .
496
- 'left:50%;' .
497
- 'z-index:100005;' .
498
- 'opacity:1;' .
499
- 'box-shadow:none;' .
500
- 'box-sizing:content-box;' .
501
- 'text-align:center;' . // for panorama
502
- 'background-color:transparent;' .
503
- '"' .
504
- ' onwheel="return false;"' .
505
- ' onscroll="return false;"' .
506
  ' >' .
507
  '</div>';
508
 
509
- // The 'exit' icon
510
- echo
511
- '<div' .
512
- ' id="wppa-exit-btn"' .
513
- ' style="height:' . wppa_opt( 'ovl_fsx_btn_size' ) . 'px;z-index:100098;position:fixed;top:0;right:0;opacity:0.75;display:none;"' .
514
- ' onclick="wppaOvlHide()"' .
515
- ' onmouseover="if(wppaOvlOpen){jQuery(this).stop().fadeTo(300,1);}else{jQuery(this).stop().fadeOut(300);}"' .
516
- ' onmouseout="if(wppaOvlOpen){jQuery(this).stop().fadeTo(300,' . $dark . ');}else{jQuery(this).stop().fadeOut(300);}"' .
517
- ' >' .
518
- wppa_get_svghtml( 'Exit', wppa_opt( 'ovl_fsx_btn_size' ) . 'px', true, true, '0', '0', '0', '0' ) .
519
- '</div>' .
520
- wppa_js(
521
- '<script type="text/javascript" >' .
522
- 'jQuery(\'#wppa-exit-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,1);});' .
523
- 'jQuery(\'#wppa-exit-btn\').on(\'touchend\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,' . $dark . ');});' .
524
- '</script>' );
525
-
526
- // The 'fullscreen' icon
527
  echo
528
- '<div' .
529
- ' id="wppa-fulls-btn"' .
530
- ' style="height:' . wppa_opt( 'ovl_fsx_btn_size' ) . 'px;z-index:100098;position:fixed;top:0;right:' . wppa_opt( 'ovl_fsx_btn_size' ) . 'px;opacity:0.75;display:none;"' .
531
- ' onclick="wppaOvlFull()"' .
532
- ' onmouseover="jQuery(this).stop().fadeTo(300,1);"' .
533
- ' onmouseout="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
534
- ' >' .
535
- wppa_get_svghtml( 'Full-Screen', wppa_opt( 'ovl_fsx_btn_size' ) . 'px', true, true, '0', '0', '0', '0' ) .
536
- '</div>' .
537
- wppa_js(
538
- '<script type="text/javascript" >' .
539
- 'jQuery(\'#wppa-fulls-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,1);});' .
540
- 'jQuery(\'#wppa-fulls-btn\').on(\'touchend\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,' . $dark . ');});' .
541
- '</script>' );
 
 
 
 
 
542
 
543
  // The Spinner image
544
  echo wppa_get_spinner_svg_html( array( 'id' => 'wppa-ovl-spin',
@@ -552,7 +505,7 @@ global $wppa_session;
552
 
553
  /* START Lightbox vars */
554
  jQuery("#wppa-overlay-bg").css({height:window.innerHeight});
555
- wppaOvlModeInitial = "'.( wppa( 'is_mobile' ) ? wppa_opt( 'ovl_mode_initial_mob' ) : wppa_opt( 'ovl_mode_initial' ) ).'";
556
  wppaOvlTxtHeight = "'.$ovlh.'";
557
  wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).';
558
  wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'";
@@ -573,11 +526,9 @@ global $wppa_session;
573
  wppaOvlFullLegendaSinglePanorama = "'.__('Keys: q,x = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
574
  wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
575
  wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
576
- wppaOvlShowLegenda = '.( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ? 'true' : 'false' ).';
577
  wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).';
578
  wppaToggleFullScreen = "'. __( 'Toggle fullscreen', 'wp-photo-album-plus' ) . '";
579
  wppaIsMobile = '.( wppa_is_mobile() ? 'true' : 'false' ).';
580
- wppaOvlFsExitBtnSize = "'.wppa_opt( 'ovl_fsx_btn_size' ).'";
581
  wppaOvlIconSize = "'.wppa_opt( 'nav_icon_size_lightbox' ).'px";
582
  wppaOvlBrowseOnClick = '.( wppa_switch( 'ovl_browse_on_click' ) ? 'true' : 'false' ).';
583
  /* END Lightbox vars */
@@ -737,7 +688,6 @@ wppaAjaxUrl = "' . ( wppa_switch( 'ajax_non_admin' ) ? wppa_url( 'wppa-ajax-fron
737
  wppaUploadUrl = "' . WPPA_UPLOAD_URL . '";
738
  wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ';
739
  wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
740
- wppaUseSvg = ' . ( wppa_use_svg() ? 'true' : 'false' ) . ';
741
  wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
742
  wppaAudioHeight = '.wppa_get_audio_control_height().';
743
  wppaFilmThumbTitle = "'.( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __('Double click to start/stop slideshow running', 'wp-photo-album-plus') ).'";
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 7.5.02
7
  *
8
  */
9
 
319
  foreach ( array_keys( $js_files ) as $idx ) {
320
  if ( $js_doits[$idx] ) {
321
  if ( is_file( dirname( __FILE__ ) . '/js/' . $js_files[$idx] . '.min.js' ) ) {
322
+ $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.min.js' ) );
323
+ wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.min.js', $js_depts[$idx], $js_ver, $js_footer[$idx] );
324
  }
325
  else {
326
+ $js_ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/' . $js_files[$idx] . '.js' ) );
327
+ wp_enqueue_script( $js_files[$idx], WPPA_URL . '/js/' . $js_files[$idx] . '.js', $js_depts[$idx], $js_ver, $js_footer[$idx] );
328
  }
329
  }
330
  }
361
 
362
  if ( is_file ( WPPA_PATH . '/js/wppa-panorama.min.js' ) ) {
363
  $three_url = WPPA_URL . '/js/wppa-panorama.min.js';
364
+ $ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . '/js/wppa-panorama.min.js' ) );
365
  }
366
  elseif ( is_file ( WPPA_PATH . '/js/wppa-panorama.js' ) ) {
367
  $three_url = WPPA_URL . '/js/wppa-panorama.js';
368
+ $ver = date( "ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . '/js/wppa-panorama.js' ) );
369
  }
370
  else {
371
  $three_url = WPPA_URL . '/vendor/three/three.min.js';
375
  }
376
  }
377
 
378
+ // Fullscreen
379
+ if ( true ) {
380
+ $url = WPPA_URL . '/vendor/jquery-fullscreen/release/jquery.fullscreen-0.4.1.min.js';
381
+ wp_enqueue_script( 'jquery-fullscreen-min-js', $url, array( 'jquery' ), $wppa_api_version );
382
+ }
383
+
384
  // wppa-init
385
  if ( ! file_exists( WPPA_UPLOAD_PATH.'/dynamic/wppa-init.'.$wppa_lang.'.js' ) ) {
386
  wppa_create_wppa_init_js();
468
  ' onclick="wppaOvlOnclick(event)"' .
469
  ' onwheel="return false;"' .
470
  ' onscroll="return false;"' .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  ' >' .
472
  '</div>';
473
 
474
+ // The Lightbox Wrapper and Image container
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  echo
476
+ // '<div id="wppa-ovl-wrap" style="position:fixed;text-align:center;z-index:100000;" >' .
477
+ '<div'.
478
+ ' id="wppa-overlay-ic"'.
479
+ ' style="' .
480
+ 'position:fixed;' .
481
+ 'top:50%;' .
482
+ 'left:50%;' .
483
+ 'z-index:100005;' .
484
+ 'opacity:1;' .
485
+ 'box-shadow:none;' .
486
+ 'box-sizing:content-box;' .
487
+ 'text-align:center;' . // for panorama
488
+ 'background-color:transparent;' .
489
+ '"' .
490
+ ' onwheel="return false;"' .
491
+ ' onscroll="return false;"' .
492
+ ' >' .
493
+ // '</div>' .
494
+ '</div>';
495
 
496
  // The Spinner image
497
  echo wppa_get_spinner_svg_html( array( 'id' => 'wppa-ovl-spin',
505
 
506
  /* START Lightbox vars */
507
  jQuery("#wppa-overlay-bg").css({height:window.innerHeight});
508
+ wppaOvlModeInitial = "'.( wppa( 'is_mobile' ) ? 'padded' : 'normal' ).'";
509
  wppaOvlTxtHeight = "'.$ovlh.'";
510
  wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).';
511
  wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'";
526
  wppaOvlFullLegendaSinglePanorama = "'.__('Keys: q,x = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
527
  wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
528
  wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
 
529
  wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).';
530
  wppaToggleFullScreen = "'. __( 'Toggle fullscreen', 'wp-photo-album-plus' ) . '";
531
  wppaIsMobile = '.( wppa_is_mobile() ? 'true' : 'false' ).';
 
532
  wppaOvlIconSize = "'.wppa_opt( 'nav_icon_size_lightbox' ).'px";
533
  wppaOvlBrowseOnClick = '.( wppa_switch( 'ovl_browse_on_click' ) ? 'true' : 'false' ).';
534
  /* END Lightbox vars */
688
  wppaUploadUrl = "' . WPPA_UPLOAD_URL . '";
689
  wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ';
690
  wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
 
691
  wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
692
  wppaAudioHeight = '.wppa_get_audio_control_height().';
693
  wppaFilmThumbTitle = "'.( wppa_opt( 'film_linktype' ) == 'lightbox' ? wppa_zoom_in( false ) : __('Double click to start/stop slideshow running', 'wp-photo-album-plus') ).'";
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 7.5.01
7
  *
8
  */
9
 
@@ -1284,7 +1284,7 @@ function wppaToggleExif( id, count ) {
1284
  }
1285
  else {
1286
  echo
1287
- __( 'Too narrow.', 'wp-photo-album-plus' );
1288
  }
1289
  }
1290
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 7.5.02
7
  *
8
  */
9
 
1284
  }
1285
  else {
1286
  echo
1287
+ __( 'Too narrow for panorama.', 'wp-photo-album-plus' );
1288
  }
1289
  }
1290
 
wppa-picture.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
- * Version 7.4.03
7
  *
8
  */
9
 
@@ -440,43 +440,76 @@ function wppa_get_spheric_pan_html( $args ) {
440
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
441
  $height = $args['height'] ? $args['height'] : round( $width / $ratio );
442
  $haslink = $args['haslink'];
443
- $icsiz = wppa_opt( 'nav_icon_size_panorama' );
444
- $iconsize = $icsiz . 'px;';
445
  $lightbox = $args['lightbox'];
 
 
446
  $controls = $args['controls'];
447
  $autorun = $args['autorun'];
448
  $manual = $args['manual'];
449
  $autorunspeed = $args['autorunspeed'];
450
  $zoomsensitivity = $args['zoomsensitivity'];
451
 
 
 
 
 
 
 
 
 
 
 
 
452
 
453
- $result =
454
- ( $lightbox ? $id . '.' : '' ) .
455
- ( $haslink ? '</a>' : '' ) .
456
- ( $lightbox ? '<div id="wppa-ovl-pan-container" >' : '' ) .
457
  '<div
458
  id="wppa-pan-div-' . $mocc . '"
459
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
460
- style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . ( $manual ? 'cursor:grab;': '' ) . 'line-height:0;"
 
 
 
 
 
 
461
  >
462
- </div>' .
463
- ( $controls ?
 
 
464
  '<div
465
  id="wppa-pctl-div-' . $mocc . '"
466
- class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
467
- style="text-align:center;"
468
- >' .
469
- ( $lightbox ?
 
470
  '<span
471
  id="wppa-pctl-prev-' . $mocc . '"
472
  class="wppa-pan-prevnext"
473
  style="margin:0 2px 0 0;float:left;display:inline-block;"
474
  >' .
475
  wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
476
- '</span>'
477
- :
478
- ''
479
- ) .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
  '<span
481
  id="wppa-pctl-left-' . $mocc . '"
482
  style="margin:0 2px;display:inline-block;"
@@ -512,24 +545,63 @@ function wppa_get_spheric_pan_html( $args ) {
512
  style="margin:0 2px;display:inline-block;"
513
  >' .
514
  wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
515
- '</span>' .
516
- ( $lightbox ?
517
- '<span
518
- id="wppa-pctl-next-' . $mocc . '"
519
- class="wppa-pan-prevnext"
520
- style="margin:0 0 0 2px;float:right;display:inline-block;"
521
- >' .
522
- wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
523
- '</span>'
524
- :
525
- ''
526
- ) .
527
- '</div>'
528
- :
529
- ''
530
- ) .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
531
 
532
- ( $lightbox ? '</div>' : '' ) .
 
 
 
 
 
 
 
 
 
533
 
534
  '<script>' .
535
 
@@ -733,12 +805,15 @@ function wppa_get_spheric_pan_html( $args ) {
733
 
734
  // calling again render function
735
  'wppaRenderer.render(wppaScene, wppaCamera);
 
 
 
736
  }' .
737
 
738
  // Mouse wheel
739
  'function onDivWheel(e) {
740
  e.preventDefault();
741
- deltaFov=-e.deltaY * ' . $zoomsensitivity . ' / 6;
742
  doZoom(true);
743
  e.stopPropagation();
744
  }' .
@@ -857,7 +932,9 @@ function wppa_get_spheric_pan_html( $args ) {
857
  else {
858
  contWidth = screen.width;
859
  contHeight = screen.height;
860
- }'.
 
 
861
  // alert("contWidth="+contWidth);' .
862
 
863
  // Initialize new display sizes
@@ -939,6 +1016,8 @@ function wppa_get_spheric_pan_html( $args ) {
939
  else {
940
  $("#wppa-pctl-div-' . $mocc . '").css({marginLeft:0});
941
  }
 
 
942
  }
943
 
944
  wppaRenderer.setSize(newWidth, newHeight);
@@ -984,9 +1063,9 @@ function wppa_get_flat_pan_html( $args ) {
984
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
985
  $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
986
  $haslink = $args['haslink'];
987
- $icsiz = wppa_opt( 'nav_icon_size_panorama' );
988
- $iconsize = $icsiz . 'px;';
989
  $lightbox = $args['lightbox'];
 
 
990
  $controls = $args['controls'];
991
  $autorun = $args['autorun'];
992
  $manual = $args['manual'];
@@ -1006,111 +1085,180 @@ function wppa_get_flat_pan_html( $args ) {
1006
 
1007
  $url = esc_url( wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id ) );
1008
 
1009
- $result =
1010
- ( $lightbox ? $id . '.' : '' ) .
1011
- ( $haslink ? '</a>' : '' ) .
1012
 
1013
- // The overall container
1014
- ( $lightbox ? '<div id="wppa-ovl-pan-container" >' : '' ) .
 
1015
 
1016
- // The canvas container
1017
- '<div
1018
- id="wppa-pan-div-' . $mocc . '"
1019
- class="wppa-pan-div wppa-pan-div-' . $mocc . '"
1020
- style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'line-height:0;"
1021
- >' .
1022
 
1023
- // The actual drawing area
1024
- '<canvas
1025
- id="wppa-pan-canvas-' . $mocc . '"
1026
- style="background-color:black;' . ( $manual ? 'cursor:grab;' : '' ) . '"
1027
- width="' . $width . '"
1028
- height="' . ( $width / 2 ) . '"
1029
- >
1030
- </canvas>' .
1031
 
1032
- // The preview image
1033
- '<canvas
1034
- id="wppa-pan-prev-canvas-' . $mocc . '"
1035
- style="margin-top:4px;background-color:black;"
1036
- width="' . $width . '"
1037
- height=' . $height . '"
1038
- >
1039
- </canvas>
1040
- </div>' .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1041
 
1042
- // The controlbar
1043
- ( $controls ?
 
1044
  '<div
1045
  id="wppa-pctl-div-' . $mocc . '"
1046
- class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
1047
- style="text-align:center;"
1048
- >' .
1049
 
1050
- // If lightbox: prev button
1051
- ( $lightbox ?
 
1052
  '<span
1053
  id="wppa-pctl-prev-' . $mocc . '"
1054
  class="wppa-pan-prevnext"
1055
  style="margin:0 2px 0 0;float:left;display:inline-block;"
1056
  >' .
1057
  wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
1058
- '</span>' :
1059
- '' ) .
1060
-
1061
- // The nav buttons
1062
- '<span
1063
- id="wppa-pctl-left-' . $mocc . '"
1064
- style="margin:0 2px;display:inline-block;"
1065
- >' .
1066
- wppa_get_svghtml( 'Left-4', $iconsize, true ) .
1067
- '</span>
1068
- <span
1069
- id="wppa-pctl-right-' . $mocc . '"
1070
- style="margin:0 2px;display:inline-block;"
1071
- >' .
1072
- wppa_get_svghtml( 'Right-4', $iconsize, true ) .
1073
- '</span>
1074
- <span
1075
- id="wppa-pctl-up-' . $mocc . '"
1076
- style="margin:0 2px;display:inline-block;"
1077
- >' .
1078
- wppa_get_svghtml( 'Up-4', $iconsize, true ) .
1079
- '</span>
1080
- <span
1081
- id="wppa-pctl-down-' . $mocc . '"
1082
- style="margin:0 2px;display:inline-block;"
1083
- >' .
1084
- wppa_get_svghtml( 'Down-4', $iconsize, true ) .
1085
  '</span>
1086
  <span
1087
- id="wppa-pctl-zoomin-' . $mocc . '"
1088
- style="margin:0 2px;display:inline-block;"
 
 
1089
  >' .
1090
- wppa_get_svghtml( 'ZoomIn', $iconsize, true ) .
1091
  '</span>
1092
  <span
1093
- id="wppa-pctl-zoomout-' . $mocc . '"
1094
- style="margin:0 2px;display:inline-block;"
 
 
1095
  >' .
1096
- wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
1097
- '</span>' .
 
1098
 
1099
- // If lightbox: next button
1100
- ( $lightbox ?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1101
  '<span
1102
  id="wppa-pctl-next-' . $mocc . '"
1103
  class="wppa-pan-prevnext"
1104
  style="margin:0 0 0 2px;float:right;display:inline-block;"
1105
  >' .
1106
  wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
1107
- '</span>' :
1108
- '' ) .
1109
- '</div>' :
1110
- '' ) .
 
 
 
 
 
 
1111
 
1112
- // wppa-ovl-pan-container
1113
- ( $lightbox ? '</div>' : '' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1114
 
1115
  // The js part
1116
  $result .=
@@ -1206,7 +1354,7 @@ function wppa_get_flat_pan_html( $args ) {
1206
 
1207
  // Common event handlers
1208
  ( $lightbox ? '
1209
- $("#wppa-fulls-btn").on("click", function(){abort=true;});
1210
  if (prev) {
1211
  prev.on("click", panPrev);
1212
  next.on("click", panNext);
@@ -1295,6 +1443,9 @@ function wppa_get_flat_pan_html( $args ) {
1295
  'else {setTimeout(function(){render()},5);}' .
1296
  '}
1297
  if(run<5)run--;' .
 
 
 
1298
  '}' .
1299
 
1300
  // Previous
@@ -1362,7 +1513,7 @@ function wppa_get_flat_pan_html( $args ) {
1362
  'function onDivWheel(e) {
1363
  e.preventDefault();
1364
  run=(autorun?5:4);
1365
- deltaFactor = 1 + e.deltaY * zoomsensitivity / 1000;
1366
  if ( ! autorun ) render();
1367
  setTimeout(function(){deltaFactor = 1}, 25);
1368
  e.stopPropagation();
@@ -1479,6 +1630,9 @@ function wppa_get_flat_pan_html( $args ) {
1479
  marginLeft:(contWidth-newWidth)/2
1480
  });
1481
  $("#wppa-pctl-div-' . $mocc . '").css({marginLeft:0});
 
 
 
1482
  }' .
1483
 
1484
  'run=(autorun?5:4);
@@ -1588,9 +1742,9 @@ function wppa_get_zoom_pan_html( $args ) {
1588
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
1589
  $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
1590
  $haslink = $args['haslink'];
1591
- $icsiz = wppa_opt( 'nav_icon_size_panorama' );
1592
- $iconsize = $icsiz . 'px;';
1593
  $lightbox = $args['lightbox'];
 
 
1594
  $controls = $args['controls'];
1595
  $zoomsensitivity = $args['zoomsensitivity'];
1596
  $url = esc_url( wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id ) );
@@ -1602,113 +1756,200 @@ function wppa_get_zoom_pan_html( $args ) {
1602
  $itemid = '0-' . $id;
1603
  }
1604
 
1605
- $result =
1606
- ( $lightbox ? $id . '.' : '' ) .
1607
- ( $haslink ? '</a>' : '' ) .
 
 
 
 
 
 
 
 
 
 
1608
 
1609
- // The overall container
1610
- ( $lightbox ?
 
1611
  '<div
1612
  id="wppa-ovl-pan-container"
1613
  style="background-color:' . wppa_opt( 'ovl_theme' ) . ';"
1614
- >' : '' ) .
 
1615
 
1616
- // The canvas container
1617
- '<div
1618
- id="wppa-pan-div-' . $itemid . '"
1619
- class="wppa-pan-div wppa-pan-div-' . $mocc . '"
1620
- style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'line-height:0;"
1621
- >' .
 
1622
 
1623
- // The actual drawing area
1624
- '<canvas
1625
- id="wppa-pan-canvas-' . $itemid . '"
1626
- style="background-color:black;' . ( $manual ? 'cursor:grab;' : '' ) . '
1627
- width:' . $width . ';height:' . $height . ';"
1628
- data-mocc="' . $mocc . '"
1629
- >
1630
- </canvas>
1631
- </div>' .
 
 
 
 
 
 
 
 
1632
 
1633
- // The controlbar
1634
- ( $controls ?
1635
  '<div
1636
  id="wppa-pctl-div-' . $itemid . '"
1637
- class="wppa-pctl-div wppa-pctl-div-' . $itemid . '"
1638
- style="text-align:center;"
1639
- >' .
1640
-
1641
- // If lightbox: prev button
1642
- ( $lightbox ?
1643
- '<span
1644
- id="wppa-pctl-prev-' . $itemid . '"
1645
- class="wppa-pan-prevnext"
1646
- style="margin:0 2px 0 0;float:left;display:inline-block;"
1647
- >' .
1648
- wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
1649
- '</span>' :
1650
- '' ) .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1651
 
1652
- // The nav buttons
 
1653
  '<span
1654
  id="wppa-pctl-left-' . $itemid . '"
1655
  style="margin:0 2px;display:inline-block;"
 
1656
  data-mocc="' . $mocc . '"
1657
  >' .
1658
  wppa_get_svghtml( 'Left-4', $iconsize, true ) .
1659
- '</span>
1660
- <span
1661
  id="wppa-pctl-right-' . $itemid . '"
1662
  style="margin:0 2px;display:inline-block;"
 
1663
  data-mocc="' . $mocc . '"
1664
  >' .
1665
  wppa_get_svghtml( 'Right-4', $iconsize, true ) .
1666
- '</span>
1667
- <span
1668
  id="wppa-pctl-up-' . $itemid . '"
1669
  style="margin:0 2px;display:inline-block;"
 
1670
  data-mocc="' . $mocc . '"
1671
  >' .
1672
  wppa_get_svghtml( 'Up-4', $iconsize, true ) .
1673
- '</span>
1674
- <span
1675
  id="wppa-pctl-down-' . $itemid . '"
1676
  style="margin:0 2px;display:inline-block;"
 
1677
  data-mocc="' . $mocc . '"
1678
  >' .
1679
  wppa_get_svghtml( 'Down-4', $iconsize, true ) .
1680
- '</span>
1681
- <span
1682
  id="wppa-pctl-zoomin-' . $itemid . '"
1683
  style="margin:0 2px;display:inline-block;"
 
1684
  data-mocc="' . $mocc . '"
1685
  >' .
1686
  wppa_get_svghtml( 'ZoomIn', $iconsize, true ) .
1687
- '</span>
1688
- <span
1689
  id="wppa-pctl-zoomout-' . $itemid . '"
1690
  style="margin:0 2px;display:inline-block;"
 
1691
  data-mocc="' . $mocc . '"
1692
  >' .
1693
  wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
1694
- '</span>' .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1695
 
1696
- // If lightbox: next button
1697
- ( $lightbox ?
1698
- '<span
1699
- id="wppa-pctl-next-' . $itemid . '"
1700
- class="wppa-pan-prevnext"
1701
- style="margin:0 0 0 2px;float:right;display:inline-block;"
1702
- >' .
1703
- wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
1704
- '</span>' :
1705
- '' ) .
1706
- '</div>' :
1707
- '' ) .
1708
 
1709
- // wppa-ovl-pan-container
1710
- ( $lightbox ?
1711
- '</div>' : '' );
 
 
1712
 
1713
  // The js part
1714
  $result .=
@@ -1729,7 +1970,7 @@ function wppa_get_zoom_pan_html( $args ) {
1729
  height:' . $height . ',
1730
  width:' . $width . ',
1731
  initialized:false,
1732
- icsize:' . wppa_opt( 'nav_icon_size_panorama' ) . ',
1733
  backgroundColor:\'' . wppa_opt( 'ovl_theme' ) . '\',
1734
  borderRadius:' . wppa_opt( 'ovl_border_radius' ) . ',
1735
  padding:' . wppa_opt( 'ovl_border_width' ) . '
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
+ * Version 7.5.02
7
  *
8
  */
9
 
440
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
441
  $height = $args['height'] ? $args['height'] : round( $width / $ratio );
442
  $haslink = $args['haslink'];
 
 
443
  $lightbox = $args['lightbox'];
444
+ $icsiz = ( $lightbox ? wppa_opt( 'nav_icon_size_lightbox' ) : wppa_opt( 'nav_icon_size_panorama' ) );
445
+ $iconsize = $icsiz . 'px;';
446
  $controls = $args['controls'];
447
  $autorun = $args['autorun'];
448
  $manual = $args['manual'];
449
  $autorunspeed = $args['autorunspeed'];
450
  $zoomsensitivity = $args['zoomsensitivity'];
451
 
452
+ $result = '';
453
+
454
+ if ( $lightbox ) {
455
+ $result .= $id . '.';
456
+ }
457
+ if ( $haslink ) {
458
+ $result .= '</a>';
459
+ }
460
+ if ( $lightbox ) {
461
+ $result .= '<div id="wppa-ovl-pan-container" >';
462
+ }
463
 
464
+ $result .=
 
 
 
465
  '<div
466
  id="wppa-pan-div-' . $mocc . '"
467
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
468
+ style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . ( $manual ? 'cursor:grab;': '' ) . 'line-height:0;"' .
469
+ ( $lightbox && wppa_is_mobile() ? '
470
+ ontouchstart="wppaTouchStart( event, \'wppa-pan-div-' . $mocc . '\', -1 );"
471
+ ontouchend="wppaTouchEnd( event );"
472
+ ontouchmove="wppaTouchMove( event );"
473
+ ontouchcancel="wppaTouchCancel( event );"' : ''
474
+ ) . '
475
  >
476
+ </div>';
477
+
478
+ if ( $controls ) {
479
+ $result .=
480
  '<div
481
  id="wppa-pctl-div-' . $mocc . '"
482
+ class="wppa-pctl-div wppa-pctl-div-' . $mocc . ' ' . ( $lightbox ? 'wppa-pctl-div-lb' : '' ) . '"
483
+ style="text-align:center;' . ( $lightbox ? 'visibility:hidden;' : '' ) . '"
484
+ >';
485
+ if ( $lightbox ) {
486
+ $result .=
487
  '<span
488
  id="wppa-pctl-prev-' . $mocc . '"
489
  class="wppa-pan-prevnext"
490
  style="margin:0 2px 0 0;float:left;display:inline-block;"
491
  >' .
492
  wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
493
+ '</span>
494
+ <span
495
+ id="wppa-ovl-start-btn"
496
+ style="margin:0 2px;float:left;display:none;"
497
+ title="' . esc_attr( __( 'Start', 'wp-photo-album-plus' ) ) . '"
498
+ onclick="wppaOvlStartStop()"
499
+ >' .
500
+ wppa_get_svghtml( 'Play-Button', $iconsize, true ) .
501
+ '</span>
502
+ <span
503
+ id="wppa-ovl-stop-btn"
504
+ style="margin:0 2px;float:left;display:none;"
505
+ title="' . esc_attr( __( 'Stop', 'wp-photo-album-plus' ) ) . '"
506
+ onclick="wppaOvlStartStop()"
507
+ >' .
508
+ wppa_get_svghtml( 'Pause-Button', $iconsize, true ) .
509
+ '</span>';
510
+ }
511
+
512
+ $result .=
513
  '<span
514
  id="wppa-pctl-left-' . $mocc . '"
515
  style="margin:0 2px;display:inline-block;"
545
  style="margin:0 2px;display:inline-block;"
546
  >' .
547
  wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
548
+ '</span>';
549
+
550
+ // If lightbox: next button and fullscreen buttons
551
+ if ( $lightbox ) {
552
+ $result .=
553
+ '<span
554
+ id="wppa-pctl-next-' . $mocc . '"
555
+ class="wppa-pan-prevnext"
556
+ style="margin:0 0 0 2px;float:right;display:inline-block;"
557
+ title="' . esc_attr( __( 'Next image', 'wp-photo-album-plus' ) ) . '"
558
+ >' .
559
+ wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
560
+ '</span>' .
561
+ '<span
562
+ id="wppa-exit-btn-2"
563
+ class=""
564
+ style="margin:0 2px;float:right;display:inline-block;"
565
+ title="' . esc_attr( __( 'Exit', 'wp-photo-album-plus' ) ) . '"
566
+ onclick="wppaOvlHide()"
567
+ >' .
568
+ wppa_get_svghtml( 'Exit-2', $iconsize, true ) .
569
+ '</span>';
570
+
571
+ // Mobile is always on fullscreen mode
572
+ if ( ! wppa_is_mobile() ) {
573
+ $result .=
574
+ '<span
575
+ id="wppa-fulls-btn-2"
576
+ class=""
577
+ style="margin:0 2px;float:right;display:inline-block;"
578
+ title="' . esc_attr( __( 'Enter fullscreen', 'wp-photo-album-plus' ) ) . '"
579
+ onclick="wppaOvlFull()"
580
+ >' .
581
+ wppa_get_svghtml( 'Full-Screen-2', $iconsize, true ) .
582
+ '</span>' .
583
+ '<span
584
+ id="wppa-exit-fulls-btn-2"
585
+ class=""
586
+ style="margin:0 2px;float:right;display:inline-block;"
587
+ title="' . esc_attr( __( 'Leave fullscreen', 'wp-photo-album-plus' ) ) . '"
588
+ onclick="wppaOvlNorm()"
589
+ >' .
590
+ wppa_get_svghtml( 'Exit-Full-Screen-2', $iconsize, true ) .
591
+ '</span>';
592
+ }
593
+ }
594
 
595
+
596
+ $result .=
597
+ '</div>';
598
+ }
599
+
600
+ if ( $lightbox ) {
601
+ $result .= '</div>';
602
+ }
603
+
604
+ $result .=
605
 
606
  '<script>' .
607
 
805
 
806
  // calling again render function
807
  'wppaRenderer.render(wppaScene, wppaCamera);
808
+
809
+ wppaAdjustControlbar();
810
+
811
  }' .
812
 
813
  // Mouse wheel
814
  'function onDivWheel(e) {
815
  e.preventDefault();
816
+ deltaFov=-e.deltaY * ' . $zoomsensitivity . ' / ( wppaIsChrome ? 60 : 6 );
817
  doZoom(true);
818
  e.stopPropagation();
819
  }' .
932
  else {
933
  contWidth = screen.width;
934
  contHeight = screen.height;
935
+ }
936
+ newWidth = parseInt(newWidth);
937
+ newHeight = parseInt(newHeight);'.
938
  // alert("contWidth="+contWidth);' .
939
 
940
  // Initialize new display sizes
1016
  else {
1017
  $("#wppa-pctl-div-' . $mocc . '").css({marginLeft:0});
1018
  }
1019
+
1020
+
1021
  }
1022
 
1023
  wppaRenderer.setSize(newWidth, newHeight);
1063
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
1064
  $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
1065
  $haslink = $args['haslink'];
 
 
1066
  $lightbox = $args['lightbox'];
1067
+ $icsiz = ( $lightbox ? wppa_opt( 'nav_icon_size_lightbox' ) : wppa_opt( 'nav_icon_size_panorama' ) );
1068
+ $iconsize = $icsiz . 'px;';
1069
  $controls = $args['controls'];
1070
  $autorun = $args['autorun'];
1071
  $manual = $args['manual'];
1085
 
1086
  $url = esc_url( wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id ) );
1087
 
1088
+ $result = '';
 
 
1089
 
1090
+ if ( $lightbox ) {
1091
+ $result .= $id . '.';
1092
+ }
1093
 
1094
+ if ( $haslink ) {
1095
+ $result .= '</a>';
1096
+ }
 
 
 
1097
 
1098
+ // The overall container
1099
+ if ( $lightbox ) {
1100
+ $result .= '<div id="wppa-ovl-pan-container" >';
1101
+ }
 
 
 
 
1102
 
1103
+ // The canvas container
1104
+ $result .=
1105
+ '<div
1106
+ id="wppa-pan-div-' . $mocc . '"
1107
+ class="wppa-pan-div wppa-pan-div-' . $mocc . '"
1108
+ style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'line-height:0;"
1109
+ >' .
1110
+
1111
+ // The actual drawing area
1112
+ '<canvas
1113
+ id="wppa-pan-canvas-' . $mocc . '"
1114
+ style="background-color:black;' . ( $manual ? 'cursor:grab;' : '' ) . '"
1115
+ width="' . $width . '"
1116
+ height="' . ( $width / 2 ) . '"' .
1117
+ ( $lightbox && wppa_is_mobile() ? '
1118
+ ontouchstart="wppaTouchStart( event, \'wppa-pan-canvas-' . $mocc . '\', -1 );"
1119
+ ontouchend="wppaTouchEnd( event );"
1120
+ ontouchmove="wppaTouchMove( event );"
1121
+ ontouchcancel="wppaTouchCancel( event );"' : ''
1122
+ ) . '
1123
+ >
1124
+ </canvas>' .
1125
+
1126
+ // The preview image
1127
+ '<canvas
1128
+ id="wppa-pan-prev-canvas-' . $mocc . '"
1129
+ style="margin-top:4px;background-color:black;"
1130
+ width="' . $width . '"
1131
+ height=' . $height . '"
1132
+ >
1133
+ </canvas>
1134
+ </div>';
1135
 
1136
+ // The controlbar
1137
+ if ( $controls ) {
1138
+ $result .=
1139
  '<div
1140
  id="wppa-pctl-div-' . $mocc . '"
1141
+ class="wppa-pctl-div wppa-pctl-div-' . $mocc . ' ' . ( $lightbox ? 'wppa-pctl-div-lb' : '' ) . '"
1142
+ style="text-align:center;' . ( $lightbox ? 'visibility:hidden;' : '' ) . '"
1143
+ >';
1144
 
1145
+ // If lightbox: prev button
1146
+ if ( $lightbox ) {
1147
+ $result .=
1148
  '<span
1149
  id="wppa-pctl-prev-' . $mocc . '"
1150
  class="wppa-pan-prevnext"
1151
  style="margin:0 2px 0 0;float:left;display:inline-block;"
1152
  >' .
1153
  wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1154
  '</span>
1155
  <span
1156
+ id="wppa-ovl-start-btn"
1157
+ style="margin:0 2px;float:left;display:none;"
1158
+ title="' . esc_attr( __( 'Start', 'wp-photo-album-plus' ) ) . '"
1159
+ onclick="wppaOvlStartStop()"
1160
  >' .
1161
+ wppa_get_svghtml( 'Play-Button', $iconsize, true ) .
1162
  '</span>
1163
  <span
1164
+ id="wppa-ovl-stop-btn"
1165
+ style="margin:0 2px;float:left;display:none;"
1166
+ title="' . esc_attr( __( 'Stop', 'wp-photo-album-plus' ) ) . '"
1167
+ onclick="wppaOvlStartStop()"
1168
  >' .
1169
+ wppa_get_svghtml( 'Pause-Button', $iconsize, true ) .
1170
+ '</span>';
1171
+ }
1172
 
1173
+ // The nav buttons
1174
+ $result .=
1175
+ '<span
1176
+ id="wppa-pctl-left-' . $mocc . '"
1177
+ style="margin:0 2px;display:inline-block;"
1178
+ >' .
1179
+ wppa_get_svghtml( 'Left-4', $iconsize, true ) .
1180
+ '</span>
1181
+ <span
1182
+ id="wppa-pctl-right-' . $mocc . '"
1183
+ style="margin:0 2px;display:inline-block;"
1184
+ >' .
1185
+ wppa_get_svghtml( 'Right-4', $iconsize, true ) .
1186
+ '</span>
1187
+ <span
1188
+ id="wppa-pctl-up-' . $mocc . '"
1189
+ style="margin:0 2px;display:inline-block;"
1190
+ >' .
1191
+ wppa_get_svghtml( 'Up-4', $iconsize, true ) .
1192
+ '</span>
1193
+ <span
1194
+ id="wppa-pctl-down-' . $mocc . '"
1195
+ style="margin:0 2px;display:inline-block;"
1196
+ >' .
1197
+ wppa_get_svghtml( 'Down-4', $iconsize, true ) .
1198
+ '</span>
1199
+ <span
1200
+ id="wppa-pctl-zoomin-' . $mocc . '"
1201
+ style="margin:0 2px;display:inline-block;"
1202
+ >' .
1203
+ wppa_get_svghtml( 'ZoomIn', $iconsize, true ) .
1204
+ '</span>
1205
+ <span
1206
+ id="wppa-pctl-zoomout-' . $mocc . '"
1207
+ style="margin:0 2px;display:inline-block;"
1208
+ >' .
1209
+ wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
1210
+ '</span>';
1211
+
1212
+ // If lightbox: next button
1213
+ if ( $lightbox ) {
1214
+ $result .=
1215
  '<span
1216
  id="wppa-pctl-next-' . $mocc . '"
1217
  class="wppa-pan-prevnext"
1218
  style="margin:0 0 0 2px;float:right;display:inline-block;"
1219
  >' .
1220
  wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
1221
+ '</span>
1222
+ <span
1223
+ id="wppa-exit-btn-2"
1224
+ class=""
1225
+ style="margin:0 2px;float:right;display:inline-block;"
1226
+ title="' . esc_attr( __( 'Exit', 'wp-photo-album-plus' ) ) . '"
1227
+ onclick="wppaOvlHide()"
1228
+ >' .
1229
+ wppa_get_svghtml( 'Exit-2', $iconsize, true ) .
1230
+ '</span>';
1231
 
1232
+ // Mobile is always on fullscreen mode
1233
+ if ( ! wppa_is_mobile() ) {
1234
+ $result .=
1235
+ '<span
1236
+ id="wppa-fulls-btn-2"
1237
+ class=""
1238
+ style="margin:0 2px;float:right;display:inline-block;"
1239
+ title="' . esc_attr( __( 'Enter fullscreen', 'wp-photo-album-plus' ) ) . '"
1240
+ onclick="wppaOvlFull()"
1241
+ >' .
1242
+ wppa_get_svghtml( 'Full-Screen-2', $iconsize, true ) .
1243
+ '</span>' .
1244
+ '<span
1245
+ id="wppa-exit-fulls-btn-2"
1246
+ class=""
1247
+ style="margin:0 2px;float:right;display:inline-block;"
1248
+ title="' . esc_attr( __( 'Leave fullscreen', 'wp-photo-album-plus' ) ) . '"
1249
+ onclick="wppaOvlNorm()"
1250
+ >' .
1251
+ wppa_get_svghtml( 'Exit-Full-Screen-2', $iconsize, true ) .
1252
+ '</span>';
1253
+ }
1254
+ }
1255
+
1256
+ $result .=
1257
+ '</div>';
1258
+ }
1259
+
1260
+ // wppa-ovl-pan-container
1261
+ ( $lightbox ? '</div>' : '' );
1262
 
1263
  // The js part
1264
  $result .=
1354
 
1355
  // Common event handlers
1356
  ( $lightbox ? '
1357
+ $("#wppa-fulls-btn-2").on("click", function(){abort=true;});
1358
  if (prev) {
1359
  prev.on("click", panPrev);
1360
  next.on("click", panNext);
1443
  'else {setTimeout(function(){render()},5);}' .
1444
  '}
1445
  if(run<5)run--;' .
1446
+
1447
+ 'wppaAdjustControlbar();' .
1448
+
1449
  '}' .
1450
 
1451
  // Previous
1513
  'function onDivWheel(e) {
1514
  e.preventDefault();
1515
  run=(autorun?5:4);
1516
+ deltaFactor = 1 + e.deltaY * zoomsensitivity / ( wppaIsChrome ? 10000 : 1000 );
1517
  if ( ! autorun ) render();
1518
  setTimeout(function(){deltaFactor = 1}, 25);
1519
  e.stopPropagation();
1630
  marginLeft:(contWidth-newWidth)/2
1631
  });
1632
  $("#wppa-pctl-div-' . $mocc . '").css({marginLeft:0});
1633
+
1634
+ wppaAdjustControlbar();
1635
+
1636
  }' .
1637
 
1638
  'run=(autorun?5:4);
1742
  $width = $args['width'] ? $args['width'] : wppa_get_container_width();
1743
  $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
1744
  $haslink = $args['haslink'];
 
 
1745
  $lightbox = $args['lightbox'];
1746
+ $icsiz = ( $lightbox ? wppa_opt( 'nav_icon_size_lightbox' ) : wppa_opt( 'nav_icon_size_panorama' ) );
1747
+ $iconsize = $icsiz . 'px;';
1748
  $controls = $args['controls'];
1749
  $zoomsensitivity = $args['zoomsensitivity'];
1750
  $url = esc_url( wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id ) );
1756
  $itemid = '0-' . $id;
1757
  }
1758
 
1759
+ $result = '';
1760
+
1761
+ // Lightbox starts with 'PhotoID.'
1762
+ if ( $lightbox ) {
1763
+ $result .=
1764
+ $id . '.';
1765
+ }
1766
+
1767
+ // Close possible link
1768
+ if ( $haslink ) {
1769
+ $result .=
1770
+ '</a>';
1771
+ }
1772
 
1773
+ // The overall container
1774
+ if ( $lightbox ) {
1775
+ $result .=
1776
  '<div
1777
  id="wppa-ovl-pan-container"
1778
  style="background-color:' . wppa_opt( 'ovl_theme' ) . ';"
1779
+ >';
1780
+ }
1781
 
1782
+ // The canvas container
1783
+ $result .=
1784
+ '<div
1785
+ id="wppa-pan-div-' . $itemid . '"
1786
+ class="wppa-pan-div wppa-pan-div-' . $mocc . '"
1787
+ style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'line-height:0;"
1788
+ >' .
1789
 
1790
+ // The actual drawing area
1791
+ '<canvas
1792
+ id="wppa-pan-canvas-' . $itemid . '"
1793
+ style="background-color:black;' . ( $manual ? 'cursor:grab;' : '' ) . ';"
1794
+ data-mocc="' . $mocc . '"' .
1795
+ ( $lightbox && wppa_is_mobile() ? '
1796
+ ontouchstart="wppaTouchStart( event, \'wppa-pan-canvas-' . $itemid . '\', -1 );"
1797
+ ontouchend="wppaTouchEnd( event );"
1798
+ ontouchmove="wppaTouchMove( event );"
1799
+ ontouchcancel="wppaTouchCancel( event );"' : ''
1800
+ ) . '
1801
+ >
1802
+ </canvas>
1803
+ </div>';
1804
+
1805
+ // The controlbar
1806
+ if ( $controls ) {
1807
 
1808
+ // Open controlbar
1809
+ $result .=
1810
  '<div
1811
  id="wppa-pctl-div-' . $itemid . '"
1812
+ class="wppa-pctl-div wppa-pctl-div-' . $itemid . ' wppa-pctl-div-' . $mocc . ' ' . ( $lightbox ? 'wppa-pctl-div-lb' : '' ) . '"
1813
+ style="text-align:center;' . ( $lightbox ? 'visibility:hidden;' : '' ) . '"
1814
+ >';
1815
+
1816
+ // If lightbox: prev button, start / stop buttons
1817
+ if ( $lightbox ) {
1818
+ $result .=
1819
+ '<span
1820
+ id="wppa-pctl-prev-' . $itemid . '"
1821
+ class="wppa-pan-prevnext"
1822
+ style="margin:0 2px 0 0;float:left;display:inline-block;"
1823
+ title="' . esc_attr( __( 'Previous image', 'wp-photo-album-plus' ) ) . '"
1824
+ onclick="wppaOvlShowPrev()"
1825
+ >' .
1826
+ wppa_get_svghtml( 'Prev-Button', $iconsize, true ) .
1827
+ '</span>' .
1828
+ '<span
1829
+ id="wppa-ovl-start-btn"
1830
+ style="margin:0 2px;float:left;display:none;"
1831
+ title="' . esc_attr( __( 'Start', 'wp-photo-album-plus' ) ) . '"
1832
+ onclick="wppaOvlStartStop()"
1833
+ >' .
1834
+ wppa_get_svghtml( 'Play-Button', $iconsize, true ) .
1835
+ '</span>' .
1836
+ '<span
1837
+ id="wppa-ovl-stop-btn"
1838
+ style="margin:0 2px;float:left;display:none;"
1839
+ title="' . esc_attr( __( 'Stop', 'wp-photo-album-plus' ) ) . '"
1840
+ onclick="wppaOvlStartStop()"
1841
+ >' .
1842
+ wppa_get_svghtml( 'Pause-Button', $iconsize, true ) .
1843
+ '</span>';
1844
+ }
1845
 
1846
+ // Always The nav buttons
1847
+ $result .=
1848
  '<span
1849
  id="wppa-pctl-left-' . $itemid . '"
1850
  style="margin:0 2px;display:inline-block;"
1851
+ title="' . esc_attr( __( 'Camera left', 'wp-photo-album-plus' ) ) . '"
1852
  data-mocc="' . $mocc . '"
1853
  >' .
1854
  wppa_get_svghtml( 'Left-4', $iconsize, true ) .
1855
+ '</span>' .
1856
+ '<span
1857
  id="wppa-pctl-right-' . $itemid . '"
1858
  style="margin:0 2px;display:inline-block;"
1859
+ title="' . esc_attr( __( 'Camera right', 'wp-photo-album-plus' ) ) . '"
1860
  data-mocc="' . $mocc . '"
1861
  >' .
1862
  wppa_get_svghtml( 'Right-4', $iconsize, true ) .
1863
+ '</span>' .
1864
+ '<span
1865
  id="wppa-pctl-up-' . $itemid . '"
1866
  style="margin:0 2px;display:inline-block;"
1867
+ title="' . esc_attr( __( 'Camera up', 'wp-photo-album-plus' ) ) . '"
1868
  data-mocc="' . $mocc . '"
1869
  >' .
1870
  wppa_get_svghtml( 'Up-4', $iconsize, true ) .
1871
+ '</span>' .
1872
+ '<span
1873
  id="wppa-pctl-down-' . $itemid . '"
1874
  style="margin:0 2px;display:inline-block;"
1875
+ title="' . esc_attr( __( 'Camera down', 'wp-photo-album-plus' ) ) . '"
1876
  data-mocc="' . $mocc . '"
1877
  >' .
1878
  wppa_get_svghtml( 'Down-4', $iconsize, true ) .
1879
+ '</span>' .
1880
+ '<span
1881
  id="wppa-pctl-zoomin-' . $itemid . '"
1882
  style="margin:0 2px;display:inline-block;"
1883
+ title="' . esc_attr( __( 'Zoom in', 'wp-photo-album-plus' ) ) . '"
1884
  data-mocc="' . $mocc . '"
1885
  >' .
1886
  wppa_get_svghtml( 'ZoomIn', $iconsize, true ) .
1887
+ '</span>' .
1888
+ '<span
1889
  id="wppa-pctl-zoomout-' . $itemid . '"
1890
  style="margin:0 2px;display:inline-block;"
1891
+ title="' . esc_attr( __( 'Zoom out', 'wp-photo-album-plus' ) ) . '"
1892
  data-mocc="' . $mocc . '"
1893
  >' .
1894
  wppa_get_svghtml( 'ZoomOut', $iconsize, true ) .
1895
+ '</span>';
1896
+
1897
+ // If lightbox: next button and fullscreen buttons
1898
+ if ( $lightbox ) {
1899
+ $result .=
1900
+ '<span
1901
+ id="wppa-pctl-next-' . $mocc . '"
1902
+ class="wppa-pan-prevnext"
1903
+ style="margin:0 0 0 2px;float:right;display:inline-block;"
1904
+ title="' . esc_attr( __( 'Next image', 'wp-photo-album-plus' ) ) . '"
1905
+ onclick="wppaOvlShowNext()"
1906
+ >' .
1907
+ wppa_get_svghtml( 'Next-Button', $iconsize, true ) .
1908
+ '</span>' .
1909
+ '<span
1910
+ id="wppa-exit-btn-2"
1911
+ class=""
1912
+ style="margin:0 2px;float:right;display:inline-block;"
1913
+ title="' . esc_attr( __( 'Exit', 'wp-photo-album-plus' ) ) . '"
1914
+ onclick="wppaOvlHide()"
1915
+ >' .
1916
+ wppa_get_svghtml( 'Exit-2', $iconsize, true ) .
1917
+ '</span>';
1918
+
1919
+ // Mobile is always on fullscreen mode
1920
+ if ( ! wppa_is_mobile() ) {
1921
+ $result .=
1922
+ '<span
1923
+ id="wppa-fulls-btn-2"
1924
+ class=""
1925
+ style="margin:0 2px;float:right;display:inline-block;"
1926
+ title="' . esc_attr( __( 'Enter fullscreen', 'wp-photo-album-plus' ) ) . '"
1927
+ onclick="wppaOvlFull()"
1928
+ >' .
1929
+ wppa_get_svghtml( 'Full-Screen-2', $iconsize, true ) .
1930
+ '</span>' .
1931
+ '<span
1932
+ id="wppa-exit-fulls-btn-2"
1933
+ class=""
1934
+ style="margin:0 2px;float:right;display:inline-block;"
1935
+ title="' . esc_attr( __( 'Leave fullscreen', 'wp-photo-album-plus' ) ) . '"
1936
+ onclick="wppaOvlNorm()"
1937
+ >' .
1938
+ wppa_get_svghtml( 'Exit-Full-Screen-2', $iconsize, true ) .
1939
+ '</span>';
1940
+ }
1941
+ }
1942
 
1943
+ // End controlbar
1944
+ $result .=
1945
+ '</div>';
1946
+ }
 
 
 
 
 
 
 
 
1947
 
1948
+ // wppa-ovl-pan-container
1949
+ if ( $lightbox ) {
1950
+ $result .=
1951
+ '</div>';
1952
+ }
1953
 
1954
  // The js part
1955
  $result .=
1970
  height:' . $height . ',
1971
  width:' . $width . ',
1972
  initialized:false,
1973
+ icsize:' . ( $lightbox ? wppa_opt( 'nav_icon_size_lightbox' ) : wppa_opt( 'nav_icon_size_panorama' ) ) . ',
1974
  backgroundColor:\'' . wppa_opt( 'ovl_theme' ) . '\',
1975
  borderRadius:' . wppa_opt( 'ovl_border_radius' ) . ',
1976
  padding:' . wppa_opt( 'ovl_border_width' ) . '
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.4.02
7
  *
8
  */
9
 
@@ -1666,17 +1666,6 @@ global $wppa_supported_camara_brands;
1666
  $tags = 'size,lightbox,layout';
1667
  wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
1668
 
1669
- $name = __('Fullscreen button size', 'wp-photo-album-plus');
1670
- $desc = __('Fullscreen and exit button size', 'wp-photo-album-plus');
1671
- $help = '';
1672
- $slug = 'wppa_ovl_fsx_btn_size';
1673
- $opts = array( '16', '24', '32', '40', '48', '56', '60' );
1674
- $vals = $opts;
1675
- $html = wppa_select($slug, $opts, $vals) . __('pixels', 'wp-photo-album-plus');
1676
- $clas = '';
1677
- $tags = 'size,lightbox,layout';
1678
- wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
1679
-
1680
  }
1681
  wppa_setting_subheader( 'H', '1', __( 'Video related size settings' , 'wp-photo-album-plus'), 'wppa-video' );
1682
  {
@@ -2983,15 +2972,6 @@ global $wppa_supported_camara_brands;
2983
  $tags = 'lightbox,layout';
2984
  wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
2985
 
2986
- $name = __('Overlay show legenda', 'wp-photo-album-plus');
2987
- $desc = __('Show "Press f for fullsize" etc. on lightbox.', 'wp-photo-album-plus');
2988
- $help = (__('Independant of this setting, it will not show up on mobile devices.', 'wp-photo-album-plus'));
2989
- $slug = 'wppa_ovl_show_legenda';
2990
- $html = wppa_checkbox($slug);
2991
- $clas = '';
2992
- $tags = 'lightbox,layout';
2993
- wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
2994
-
2995
  $name = __('Show fullscreen icons', 'wp-photo-album-plus');
2996
  $desc = __('Shows fullscreen and back to normal icon buttons on upper right corner', 'wp-photo-album-plus');
2997
  $help = '';
@@ -5595,7 +5575,7 @@ global $wppa_supported_camara_brands;
5595
  $clas = '';
5596
  $tags = 'lightbox,audio';
5597
  wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
5598
-
5599
  $name = __('Lightbox start mode', 'wp-photo-album-plus');
5600
  $desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
5601
  $help = '';
@@ -5637,6 +5617,7 @@ global $wppa_supported_camara_brands;
5637
  $clas = '';
5638
  $tags = 'lightbox,layout';
5639
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
 
5640
  }
5641
 
5642
  if ( wppa_switch( 'enable_panorama' ) ) {
@@ -5722,7 +5703,7 @@ global $wppa_supported_camara_brands;
5722
  $html = wppa_select($slug, $opts, $vals);
5723
  $clas = '';
5724
  $tags = '';
5725
- wppa_setting( $slug, '3.1', $name, $desc, $html, $help, $clas, $tags );
5726
 
5727
  }
5728
  ?>
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.5.02
7
  *
8
  */
9
 
1666
  $tags = 'size,lightbox,layout';
1667
  wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
1668
 
 
 
 
 
 
 
 
 
 
 
 
1669
  }
1670
  wppa_setting_subheader( 'H', '1', __( 'Video related size settings' , 'wp-photo-album-plus'), 'wppa-video' );
1671
  {
2972
  $tags = 'lightbox,layout';
2973
  wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
2974
 
 
 
 
 
 
 
 
 
 
2975
  $name = __('Show fullscreen icons', 'wp-photo-album-plus');
2976
  $desc = __('Shows fullscreen and back to normal icon buttons on upper right corner', 'wp-photo-album-plus');
2977
  $help = '';
5575
  $clas = '';
5576
  $tags = 'lightbox,audio';
5577
  wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
5578
+ /*
5579
  $name = __('Lightbox start mode', 'wp-photo-album-plus');
5580
  $desc = __('The mode lightbox starts in.', 'wp-photo-album-plus');
5581
  $help = '';
5617
  $clas = '';
5618
  $tags = 'lightbox,layout';
5619
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
5620
+ */
5621
  }
5622
 
5623
  if ( wppa_switch( 'enable_panorama' ) ) {
5703
  $html = wppa_select($slug, $opts, $vals);
5704
  $clas = '';
5705
  $tags = '';
5706
+ wppa_setting( $slug, '3.2', $name, $desc, $html, $help, $clas, $tags );
5707
 
5708
  }
5709
  ?>
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 7.4.03
7
  *
8
  */
9
 
@@ -3541,53 +3541,31 @@ $border = false; // debug
3541
  break;
3542
  }
3543
 
3544
- $use_svg = wppa_use_svg();
3545
- $src = $use_svg ? $name . '.svg' : $name . '.png';
3546
-
3547
- // Compose the html. Native svg html
3548
- if ( $use_svg && in_array( $name, array( 'Next-Button',
3549
- 'Prev-Button',
3550
- 'Backward-Button',
3551
- 'Forward-Button',
3552
- 'Pause-Button',
3553
- 'Play-Button',
3554
- 'Stop-Button',
3555
- 'Eagle-1',
3556
- 'Snail',
3557
- 'Exit',
3558
- 'Full-Screen',
3559
- 'Exit-Full-Screen',
3560
- 'Content-View',
3561
- 'Left-4',
3562
- 'Right-4',
3563
- 'Up-4',
3564
- 'Down-4',
3565
- 'ZoomIn',
3566
- 'ZoomOut',
3567
- 'Redo',
3568
-
3569
- ) ) ) {
3570
-
3571
- $result = '<svg' .
3572
- ' version="1.1"' .
3573
- ' xmlns="http://www.w3.org/2000/svg"' .
3574
- ' xmlns:xlink="http://www.w3.org/1999/xlink"' .
3575
- ' x="0px"' .
3576
- ' y="0px"' .
3577
- ' viewBox="0 0 30 30"' .
3578
- ' style="' .
3579
- 'enable-background:new 0 0 30 30;' .
3580
- ( $height ? 'height:' . $height . ';' : '' ) .
3581
- 'fill:' . $fillcolor . ';' .
3582
- 'background-color:' . $bgcolor . ';' .
3583
- 'text-decoration:none !important;' .
3584
- 'vertical-align:middle;' .
3585
- ( $bradius ? 'border-radius:' . $bradius . '%;' : '' ) .
3586
- ( $border ? 'border:2px solid ' . $bgcolor . ';box-sizing:content-box;' : '' ) .
3587
- '"' .
3588
- ' xml:space="preserve"' .
3589
- ' >' .
3590
- '<g>';
3591
 
3592
  switch ( $name ) {
3593
 
@@ -3678,12 +3656,40 @@ $border = false; // debug
3678
  case 'Exit':
3679
  $result .= '<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';
3680
  break;
 
 
 
 
 
 
 
3681
  case 'Full-Screen':
3682
  $result .= '<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';
 
 
 
 
 
 
 
 
 
 
 
3683
  break;
3684
  case 'Exit-Full-Screen':
3685
  $result .= '<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';
3686
  break;
 
 
 
 
 
 
 
 
 
 
3687
  case 'Content-View':
3688
  $result .= '<path' .
3689
  ' d="M21.5,25.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,25.5,21.5,25.5z' .
@@ -3762,6 +3768,7 @@ $border = false; // debug
3762
  c0.2,0.1,0.4,0.1,0.5,0l14-10c0.1-0.1,0.2-0.3,0.2-0.4S29.9,12.7,29.8,12.6z"/>';
3763
  break;
3764
  default:
 
3765
  break;
3766
  }
3767
 
@@ -3771,30 +3778,9 @@ $border = false; // debug
3771
  if ( is_ssl() ) {
3772
  $result = str_replace( 'http://', 'https://', $result );
3773
  }
 
3774
  return $result;
3775
- }
3776
 
3777
- // Compose html. Non native svg or gif/png
3778
- else {
3779
- $result =
3780
- '<img' .
3781
- ' src="' . wppa_get_imgdir( $src ) . '"' .
3782
- ( $use_svg ? ' class="wppa-svg"' : '' ) .
3783
- ' style="' .
3784
- ( $height ? 'height:' . $height . ';' : '' ) .
3785
- 'fill:' . $fillcolor . ';' .
3786
- 'background-color:' . $bgcolor . ';' .
3787
- ( $use_svg ? 'display:none;' : '' ) .
3788
- 'text-decoration:none !important;' .
3789
- 'vertical-align:middle;' .
3790
- ( $bradius ? 'border-radius:' . $bradius . '%;' : '' ) .
3791
- ( $border ? 'border:2px solid ' . $bgcolor . ';box-sizing:border-box;' : '' ) .
3792
-
3793
- '"' .
3794
- ' alt="' . $name . '"' .
3795
- ' />';
3796
- }
3797
- return $result;
3798
  }
3799
 
3800
  function wppa_get_mime_type( $id ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 7.5.02
7
  *
8
  */
9
 
3541
  break;
3542
  }
3543
 
3544
+ // Open svg tag
3545
+ $result = '
3546
+ <svg
3547
+ version="1.1"
3548
+ xmlns="http://www.w3.org/2000/svg"
3549
+ xmlns:xlink="http://www.w3.org/1999/xlink"
3550
+ x="0px"
3551
+ y="0px"
3552
+ viewBox="0 0 30 30"
3553
+ style="
3554
+ enable-background:new 0 0 30 30;' .
3555
+ ( $height ? 'height:' . $height . ';' : '' ) . '
3556
+ fill:' . $fillcolor . ';
3557
+ background-color:' . $bgcolor . ';
3558
+ text-decoration:none !important;
3559
+ vertical-align:middle;' .
3560
+ ( $bradius ? 'border-radius:' . $bradius . '%;' : '' ) .
3561
+ ( $border ? 'border:2px solid ' . $bgcolor . ';box-sizing:content-box;' : '' ) . '
3562
+ "
3563
+ xml:space="preserve"
3564
+ >';
3565
+
3566
+ // Open g tag
3567
+ $result .= '
3568
+ <g>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3569
 
3570
  switch ( $name ) {
3571
 
3656
  case 'Exit':
3657
  $result .= '<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';
3658
  break;
3659
+ case 'Exit-2':
3660
+ $result .= '<path' .
3661
+ ' d="M30,0H0V30H30V0z ' .
3662
+ 'M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z' .
3663
+ '"' .
3664
+ ' />';
3665
+ break;
3666
  case 'Full-Screen':
3667
  $result .= '<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';
3668
+ break;
3669
+ case 'Full-Screen-2':
3670
+ $result .= '<path' .
3671
+ ' d="M30,0H0V30H30V0z ' .
3672
+ 'M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z' .
3673
+ 'M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z' .
3674
+ 'M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z' .
3675
+ 'M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z' .
3676
+ '"' .
3677
+ ' />';
3678
+
3679
  break;
3680
  case 'Exit-Full-Screen':
3681
  $result .= '<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';
3682
  break;
3683
+ case 'Exit-Full-Screen-2':
3684
+ $result .= '<path' .
3685
+ ' d="M30,0H0V30H30V0z ' .
3686
+ 'M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z' .
3687
+ 'M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z' .
3688
+ 'M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z' .
3689
+ 'M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z' .
3690
+ '"' .
3691
+ ' />';
3692
+ break;
3693
  case 'Content-View':
3694
  $result .= '<path' .
3695
  ' d="M21.5,25.5h4c0.276,0,0.5-0.224,0.5-0.5s-0.224-0.5-0.5-0.5h-4c-0.276,0-0.5,0.224-0.5,0.5S21.224,25.5,21.5,25.5z' .
3768
  c0.2,0.1,0.4,0.1,0.5,0l14-10c0.1-0.1,0.2-0.3,0.2-0.4S29.9,12.7,29.8,12.6z"/>';
3769
  break;
3770
  default:
3771
+ $result .= '<path d="M30,0H0V30H30V0z" />';
3772
  break;
3773
  }
3774
 
3778
  if ( is_ssl() ) {
3779
  $result = str_replace( 'http://', 'https://', $result );
3780
  }
3781
+ $result = wppa_compress_html( $result );
3782
  return $result;
 
3783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3784
  }
3785
 
3786
  function wppa_get_mime_type( $id ) {
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 7.5.01.001
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -23,8 +23,8 @@ global $wpdb;
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
- global $wppa_revno; $wppa_revno = '7501'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.5.01.001'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 7.5.02.008
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
+ global $wppa_revno; $wppa_revno = '7502'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.5.02.008'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';