WP Photo Album Plus - Version 7.4.02.005

Version Description

= 7.4.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.4.02.005
Comparing to
See all releases

Code changes from version 7.4.02.004 to 7.4.02.005

changelog.txt CHANGED
@@ -5,7 +5,8 @@ WP Photo Album Plus Changelog
5
  * Missing IPTC or EXIF data will no longer be displayed as N.a., but will show empty.
6
  * The parent shortcode attribute will now also work for virtual albums. E.g. [wppa type="content" parent="#featen,1,5"].
7
  * Shortcode type="url" did no longer work due to concatenated html comment. Fixed.
8
- * New setting: Table IV-A37: Enable zooming.
 
9
  * New setting: Table IX-B21: The max number of photos in the selectionbox in the shortcode generators is now selectable.
10
  * You should no longer receive duplicate emails.
11
 
5
  * Missing IPTC or EXIF data will no longer be displayed as N.a., but will show empty.
6
  * The parent shortcode attribute will now also work for virtual albums. E.g. [wppa type="content" parent="#featen,1,5"].
7
  * Shortcode type="url" did no longer work due to concatenated html comment. Fixed.
8
+ * New setting: Table IV-A37: Enable zooming. Enables zooming and panning on non-panorama images the same way as panoramas work.
9
+ Note: Like panoramas, also zooming does not work in slideshows and in lightbox when linked from slideshows.
10
  * New setting: Table IX-B21: The max number of photos in the selectionbox in the shortcode generators is now selectable.
11
  * You should no longer receive duplicate emails.
12
 
js/wppa-lightbox.js CHANGED
@@ -3,7 +3,7 @@
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaLightboxVersion = '7.4.02';
7
 
8
  // Global inits
9
  var wppaNormsBtnOpac = 0.75;
@@ -161,12 +161,7 @@ wppaConsoleLog( 'wppaOvlFull' );
161
  }
162
  }
163
 
164
- setTimeout( function(){
165
- wppaShowFsButtons(0.75);
166
- if ( wppaDoZoomPan ) {
167
- wppaDoZoomPan();
168
- }
169
- }, 1000 );
170
 
171
  // Remove legenda
172
  jQuery( '#wppa-ovl-legenda-1' ).html( '' );
@@ -195,12 +190,7 @@ wppaConsoleLog( 'wppaOvlNorm' );
195
  return;
196
  }
197
 
198
- setTimeout( function(){
199
- wppaShowFsButtons(0.75);
200
- if ( wppaDoZoomPan ) {
201
- wppaDoZoomPan();
202
- }
203
- }, 1000 );
204
 
205
  setTimeout( function(){wppaOvlShow(wppaOvlIdx)}, 50 );
206
  }
@@ -342,7 +332,7 @@ wppaConsoleLog( 'wppaOvlShow arg=' + arg );
342
  decodeURI( jQuery( anchor ).attr( 'data-audiohtml' ) ) == decodeURI( jQuery( arg ).attr( 'data-audiohtml' ) ) &&
343
  anchor.href == arg.href ) {
344
  wppaOvlIdx = j; // Current index
345
- // wppaConsoleLog('Found '+j+': '+arg.href);
346
  }
347
  j++;
348
  }
@@ -397,7 +387,7 @@ wppaConsoleLog( 'wppaOvlShow arg=' + arg );
397
  // Show the lightbox overlay.
398
  // idx is the numeric index to current lightbox set
399
  function _wppaOvlShow( idx ) {
400
- //wppaConsoleLog( '_wppaOvlShow, idx='+idx );
401
 
402
  // Globalize index
403
  wppaOvlCurIdx = idx;
@@ -417,9 +407,9 @@ function _wppaOvlShow( idx ) {
417
  if ( wppaOvlUrls[idx].length > 0 && ! wppaIsVideo ) {
418
  wppaOvlImgs[idx] = new Image();
419
  wppaOvlImgs[idx].src = wppaOvlUrls[idx]; // Preload
420
- // wppaConsoleLog( 'Preloading ' + ( idx + 1 ) + '/' + wppaOvlUrls.length + ' (current)' );
421
  if ( ! wppaIsIe && ! wppaOvlImgs[idx].complete && wppaOvlOpen ) {
422
- // wppaConsoleLog( 'Retrying preload current image' );
423
  setTimeout( '_wppaOvlShow(' + idx + ')', 500 );
424
  return;
425
  }
@@ -439,7 +429,7 @@ function _wppaOvlShow( idx ) {
439
  if ( wppaOvlVideoHtmls[next] == '' && wppaOvlOpen ) {
440
  wppaOvlImgs[next] = new Image();
441
  wppaOvlImgs[next].src = wppaOvlUrls[next]; // Preload
442
- // wppaConsoleLog( 'Preloading > ' + ( next + 1 ) );
443
  }
444
 
445
  // Preload previous ( for hitting the prev button )
@@ -455,7 +445,7 @@ function _wppaOvlShow( idx ) {
455
  if ( wppaOvlVideoHtmls[prev] == '' ) {
456
  wppaOvlImgs[prev] = new Image();
457
  wppaOvlImgs[prev].src = wppaOvlUrls[prev]; // Preload
458
- // wppaConsoleLog( 'Preloading < ' + ( prev + 1 ) );
459
  }
460
  }
461
 
@@ -772,8 +762,8 @@ function _wppaOvlShow( idx ) {
772
  else {
773
  html += '<img' +
774
  ' id="wppa-overlay-img"'+
775
- // ' onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);"' +
776
- // ' onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);"' +
777
  ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
778
  ' ontouchend="wppaTouchEnd( event );"' +
779
  ' ontouchmove="wppaTouchMove( event );"' +
@@ -853,91 +843,99 @@ function _wppaOvlShow( idx ) {
853
  '</div>';
854
  }
855
 
856
- // Close the #img-sb-img-cont
857
- html += '</div>';
858
-
859
- // The subtext container
860
- var showCounter = ! wppaOvlIsSingle && wppaOvlShowCounter;
861
- html +=
862
- '<div id="wppa-overlay-txt-container"' +
863
- ' style="' +
864
- 'position:relative;' +
865
- 'padding:10px;' +
866
- 'background-color:' + wppaOvlTheme + ';' +
867
- 'color:' + txtcol + ';' +
868
- 'text-align:center;' +
869
- 'font-family:' + wppaOvlFontFamily + ';' +
870
- 'font-size:' + wppaOvlFontSize + 'px;' +
871
- 'font-weight:' + wppaOvlFontWeight + ';' +
872
- 'line-height:' + wppaOvlLineHeight + 'px;' +
873
- 'box-shadow:none;' +
874
- 'border-bottom-left-radius:'+wppaOvlRadius+'px;' +
875
- 'border-bottom-right-radius:'+wppaOvlRadius+'px;' +
876
- '"' +
877
- ' >';
878
-
879
- // The prev button
880
  if ( ! wppaOvlIsSingle ) {
881
 
882
- html +=
883
- '<div' +
884
- ' id="wppa-ovl-prev-btn"' +
885
- ' class="wppa-ovl-nav-btn"' +
886
- ' style="' +
887
- 'float:left;' +
888
- 'z-index:100101;' +
889
- 'width:' + wppaOvlIconSize + ';' +
890
- 'box-shadow:none;' +
891
- '"' +
892
- ' onclick="wppaOvlShowPrev()"' +
893
- ' >' +
894
- wppaSvgHtml( 'Prev-Button', wppaOvlIconSize, true, true ) +
895
- '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
896
  }
897
 
898
- // The next button
899
- if ( ! wppaOvlIsSingle ) {
900
 
901
- html +=
902
- '<div' +
903
- ' id="wppa-ovl-next-btn"' +
904
- ' class="wppa-ovl-nav-btn"' +
905
  ' style="' +
906
- 'float:right;' +
907
- 'z-index:100101;' +
908
- 'width:' + wppaOvlIconSize + ';' +
 
 
 
 
 
 
909
  'box-shadow:none;' +
 
 
910
  '"' +
911
- ' onclick="wppaOvlShowNext()"' +
912
  ' >' +
913
- wppaSvgHtml( 'Next-Button', wppaOvlIconSize, true, true ) +
 
 
 
 
 
 
 
 
 
 
 
 
 
914
  '</div>';
915
- }
916
-
917
- // The actual text
918
- html +=
919
- '<div' +
920
- ' id="wppa-overlay-txt"' +
921
- ' style="' +
922
- 'text-align:center;' +
923
- 'min-height:36px;' +
924
- ( wppaOvlTxtHeight == 'auto' ? 'max-height:200px;' : 'max-height:' + wppaOvlTxtHeight + 'px;' ) +
925
- 'overflow:auto;' +
926
- 'box-shadow:none;' +
927
- '"' +
928
- ' >' +
929
- ( showCounter ? ( wppaOvlIdx + 1 ) + '/' + wppaOvlUrls.length + '<br />' : '' ) +
930
- wppaOvlTitles[idx] +
931
- '</div>';
932
-
933
- // Close the subtext
934
- html +=
935
- '<div style="clear:both;" ></div>' +
936
- '</div>';
937
 
938
  // Insert the html
939
  jQuery( '#wppa-overlay-ic' ).html( html );
940
 
 
 
 
941
  // Restore opacity of fs and exit buttons
942
  wppaShowFsButtons();
943
 
@@ -1027,14 +1025,13 @@ wppaConsoleLog( 'wppaOvlSize' );
1027
 
1028
  var mh; // max image height
1029
  var tch = jQuery( '#wppa-overlay-txt' ).height();
1030
- tch = Math.max( tch, wppaOvlIconSize );
1031
 
1032
  if ( wppaOvlTxtHeight == 'auto' ) {
1033
  if ( tch == 0 ) tch = 20 + 2 * wppaOvlBorderWidth;
1034
- mh = ih - tch - 40 - 2 * wppaOvlBorderWidth;
1035
  }
1036
  else {
1037
- mh = ih - wppaOvlTxtHeight - 40 - 2 * wppaOvlBorderWidth;
1038
  }
1039
 
1040
  var mw = parseInt( mh * nw / nh );
@@ -1088,8 +1085,8 @@ wppaConsoleLog( 'wppaOvlSize' );
1088
  // Done?
1089
  if ( ! done ) {
1090
  setTimeout( function(){ wppaOvlSize(wppaOvlAnimSpeed) }, speed + 10 );
1091
- // wppaConsoleLog( 'Not done '+wppaOvlIdx+' saved='+wppaSavedImageWidth+', wid='+wid+', cw='+cw+', nw='+nw+
1092
- // ', img complete='+document.getElementById( 'wppa-overlay-img' ).complete );
1093
  }
1094
  else {
1095
 
@@ -1103,7 +1100,7 @@ wppaConsoleLog( 'wppaOvlSize' );
1103
 
1104
  // Show fullscreen lightbox image
1105
  function wppaOvlFormatFull() {
1106
- // wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1107
 
1108
  // Are we still in?
1109
  if ( ! wppaOvlOpen ) {
@@ -1555,6 +1552,10 @@ wppaConsoleLog( 'wppaOvlResize' );
1555
 
1556
  // Panoramas do their own resize
1557
  if ( wppaOvlActivePanorama > 0 ) {
 
 
 
 
1558
  return;
1559
  }
1560
 
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;
161
  }
162
  }
163
 
164
+ setTimeout( function(){wppaShowFsButtons(0.75)}, 30 );
 
 
 
 
 
165
 
166
  // Remove legenda
167
  jQuery( '#wppa-ovl-legenda-1' ).html( '' );
190
  return;
191
  }
192
 
193
+ setTimeout( function(){wppaShowFsButtons(0.75)}, 30 );
 
 
 
 
 
194
 
195
  setTimeout( function(){wppaOvlShow(wppaOvlIdx)}, 50 );
196
  }
332
  decodeURI( jQuery( anchor ).attr( 'data-audiohtml' ) ) == decodeURI( jQuery( arg ).attr( 'data-audiohtml' ) ) &&
333
  anchor.href == arg.href ) {
334
  wppaOvlIdx = j; // Current index
335
+ wppaConsoleLog('Found '+j+': '+arg.href);
336
  }
337
  j++;
338
  }
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;
407
  if ( wppaOvlUrls[idx].length > 0 && ! wppaIsVideo ) {
408
  wppaOvlImgs[idx] = new Image();
409
  wppaOvlImgs[idx].src = wppaOvlUrls[idx]; // Preload
410
+ wppaConsoleLog( 'Preloading ' + ( idx + 1 ) + '/' + wppaOvlUrls.length + ' (current)' );
411
  if ( ! wppaIsIe && ! wppaOvlImgs[idx].complete && wppaOvlOpen ) {
412
+ wppaConsoleLog( 'Retrying preload current image' );
413
  setTimeout( '_wppaOvlShow(' + idx + ')', 500 );
414
  return;
415
  }
429
  if ( wppaOvlVideoHtmls[next] == '' && wppaOvlOpen ) {
430
  wppaOvlImgs[next] = new Image();
431
  wppaOvlImgs[next].src = wppaOvlUrls[next]; // Preload
432
+ wppaConsoleLog( 'Preloading > ' + ( next + 1 ) );
433
  }
434
 
435
  // Preload previous ( for hitting the prev button )
445
  if ( wppaOvlVideoHtmls[prev] == '' ) {
446
  wppaOvlImgs[prev] = new Image();
447
  wppaOvlImgs[prev].src = wppaOvlUrls[prev]; // Preload
448
+ wppaConsoleLog( 'Preloading < ' + ( prev + 1 ) );
449
  }
450
  }
451
 
762
  else {
763
  html += '<img' +
764
  ' id="wppa-overlay-img"'+
765
+ ' onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);"' +
766
+ ' onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);"' +
767
  ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
768
  ' ontouchend="wppaTouchEnd( event );"' +
769
  ' ontouchmove="wppaTouchMove( event );"' +
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
 
1025
 
1026
  var mh; // max image height
1027
  var tch = jQuery( '#wppa-overlay-txt' ).height();
 
1028
 
1029
  if ( wppaOvlTxtHeight == 'auto' ) {
1030
  if ( tch == 0 ) tch = 20 + 2 * wppaOvlBorderWidth;
1031
+ mh = ih - tch - 20 - 2 * wppaOvlBorderWidth;
1032
  }
1033
  else {
1034
+ mh = ih - wppaOvlTxtHeight - 20 - 2 * wppaOvlBorderWidth;
1035
  }
1036
 
1037
  var mw = parseInt( mh * nw / nh );
1085
  // Done?
1086
  if ( ! done ) {
1087
  setTimeout( function(){ wppaOvlSize(wppaOvlAnimSpeed) }, speed + 10 );
1088
+ wppaConsoleLog( 'Not done '+wppaOvlIdx+' saved='+wppaSavedImageWidth+', wid='+wid+', cw='+cw+', nw='+nw+
1089
+ ', img complete='+document.getElementById( 'wppa-overlay-img' ).complete );
1090
  }
1091
  else {
1092
 
1100
 
1101
  // Show fullscreen lightbox image
1102
  function wppaOvlFormatFull() {
1103
+ wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1104
 
1105
  // Are we still in?
1106
  if ( ! wppaOvlOpen ) {
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
 
js/wppa-lightbox.min.js CHANGED
@@ -1 +1 @@
1
- var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaRenderer,wppaScene,wppaCamera,wppaSphere,wppaSphereMaterial,wppaSphereMesh,wppaLightboxVersion="7.4.02",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=(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){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),wppaDoZoomPan&&wppaDoZoomPan()},1e3),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),wppaDoZoomPan&&wppaDoZoomPan()},1e3),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])for(var o,l=t[1],i=jQuery("a"),n=0,w=0;w<i.length;w++)o=i[w],1<(t=!!jQuery(o).attr("data-rel")&&jQuery(o).attr("data-rel").split("[")).length&&"wppa"==t[0]&&t[1]==l&&(wppaOvlUrls[n]=o.href,jQuery(o).attr("data-lbtitle")?wppaOvlTitles[n]=wppaRepairScriptTags(jQuery(o).attr("data-lbtitle")):wppaOvlTitles[n]=wppaRepairScriptTags(o.title),wppaOvlIds[n]=jQuery(o).attr("data-id")?jQuery(o).attr("data-id"):"0",wppaOvlAlts[n]=jQuery(o).attr("data-alt")?jQuery(o).attr("data-alt"):"",wppaOvlVideoHtmls[n]=jQuery(o).attr("data-videohtml")?decodeURI(jQuery(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[n]=jQuery(o).attr("data-pdfhtml")?decodeURI(jQuery(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[n]=jQuery(o).attr("data-audiohtml")?decodeURI(jQuery(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[n]=jQuery(o).attr("data-videonatwidth")?jQuery(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[n]=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[n]=a.substr(e+1),wppaOvlPanoramaIds[n]=a.substr(0,e)):(wppaOvlPanoramaHtml[n]="",wppaOvlPanoramaIds[n]=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=n),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],wppaIsIe||wppaOvlImgs[p].complete||!wppaOvlOpen)){var a,e=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1;if(""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(wppaOvlImgs[e]=new Image,wppaOvlImgs[e].src=wppaOvlUrls[e]),!wppaOvlRunning&&wppaOvlOpen&&(a=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1,""==wppaOvlVideoHtmls[a]&&(wppaOvlImgs[a]=new Image,wppaOvlImgs[a].src=wppaOvlUrls[a])),_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" 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>"),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;" >',wppaOvlIsSingle||(l+='<div id="wppa-ovl-prev-btn" class="wppa-ovl-nav-btn" style="float:left;z-index:100101;width:'+wppaOvlIconSize+';box-shadow:none;" onclick="wppaOvlShowPrev()" >'+wppaSvgHtml("Prev-Button",wppaOvlIconSize,!0,!0)+"</div>"),wppaOvlIsSingle||(l+='<div id="wppa-ovl-next-btn" class="wppa-ovl-nav-btn" style="float:right;z-index:100101;width:'+wppaOvlIconSize+';box-shadow:none;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</div>"),l+='<div id="wppa-overlay-txt" style="text-align:center;min-height:36px;'+("auto"==wppaOvlTxtHeight?"max-height:200px;":"max-height:"+wppaOvlTxtHeight+"px;")+'overflow:auto;box-shadow:none;" >'+(i?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[p]+"</div>",l+='<div style="clear:both;" ></div></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}setTimeout("_wppaOvlShow("+p+")",500)}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=wppaWindowWidth(),w=wppaWindowHeight(),r=wppaOvlIsVideo?(a.clientWidth,t=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):wppaOvlIsPdf?(wppaWindowWidth(),t=.9*wppaWindowWidth(),.9*wppaWindowHeight()):(a.clientWidth,t=a.naturalWidth,a.naturalHeight);void 0===t&&(t=a.clientWidth,r=a.clientHeight),(i=(o=(n-3*wppaOvlBorderWidth)/t)<(l=w/r)?o:l)<1&&(t=parseInt(t*i),r=parseInt(r*i));var d=jQuery("#wppa-overlay-txt").height(),d=Math.max(d,wppaOvlIconSize),v="auto"==wppaOvlTxtHeight?(0==d&&(d=20+2*wppaOvlBorderWidth),w-d-40-2*wppaOvlBorderWidth):w-wppaOvlTxtHeight-40-2*wppaOvlBorderWidth,s=parseInt(v*t/r),u=(wppaOvlPadTop,parseInt((n-s)/2),s);r<v&&(wppaOvlPadTop,parseInt((n-t)/2),u=t);var h=wppaSavedImageWidth-u<3&&u-wppaSavedImageWidth<3;return u<=10&&(r=180,h=!(t=u=240)),u=parseInt(u),wppaSavedImageWidth=parseInt(u),wppaSavedImageHeight=parseInt(u*r/t),wppaSavedMarginLeft=-parseInt(u/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(u+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),h?(jQuery("#wppa-ovl-spin").hide(),wppaConsoleLog("Done "+wppaOvlIdx),wppaOvlFirst=!1):setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},p+10),!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,o=a/e,l=0,i=0,n=0,w=0,r=0,d=0,v="hidden";switch(wppaOvlMode){case"padded":w=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,w=screen.width;break;case"clipped":w=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&&(r=parseInt(-i),i=0),n=e,w=a,v="auto"}return l=parseInt(l),i=parseInt(i),n=parseInt(n),w=parseInt(w),jQuery(p).css({height:n,width:w,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(r),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=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.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");
js/wppa-zoom.js CHANGED
@@ -146,6 +146,10 @@ function wppaDoZoomPan() {
146
  if (args.busy) return;
147
  args.busy = true;
148
 
 
 
 
 
149
  // manualControl is true when a drag on the canvas is being performed
150
  if( ! args.manualControl ) {
151
 
@@ -344,7 +348,7 @@ function wppaDoZoomPan() {
344
  contWidth = screen.width;
345
  contHeight = screen.height;
346
  }
347
- wppaConsoleLog( 'contw='+contWidth+', conth='+contHeight, 'force');
348
  // Initialize new display sizes
349
  var newWidth,
350
  newHeight,
@@ -352,12 +356,9 @@ wppaConsoleLog( 'contw='+contWidth+', conth='+contHeight, 'force');
352
  leftMarg,
353
  extraX = 8,
354
  extraY = 8 + ( args.controls ? args.icsize + 10 : 0 ) + contWidth * args.height / args.width + 30;
355
- wppaConsoleLog( 'args.icsize='+args.icsize+', args.width='+args.width, 'force');
356
 
357
- wppaConsoleLog( '1 extrax='+extraX+', extray='+extraY, 'force');
358
  var ratio = args.image.width / args.image.height;
359
- wppaConsoleLog( 'ratio='+ratio);
360
- wppaConsoleLog( '2 extrax='+extraX+', extray='+extraY, 'force');
361
  // Add borderwidth in case of mode == normal
362
  if ( modeIsNormal ) {
363
  extraX += 2 * args.borderWidth;
@@ -366,7 +367,7 @@ wppaConsoleLog( '2 extrax='+extraX+', extray='+extraY, 'force');
366
 
367
  // Find out if the width is the limitng dimension
368
  widthIsLim = ( contHeight > ( ( contWidth / ratio ) + extraY ) );
369
- wppaConsoleLog('widthislim='+widthIsLim, 'force');
370
  // Compute new sizes and margins
371
  if ( widthIsLim ) {
372
  newWidth = contWidth - extraX;
146
  if (args.busy) return;
147
  args.busy = true;
148
 
149
+ // if ( args.isLightbox ) {
150
+ // if ( wppaOvlActivePanorama != args.id ) return;
151
+ // }
152
+
153
  // manualControl is true when a drag on the canvas is being performed
154
  if( ! args.manualControl ) {
155
 
348
  contWidth = screen.width;
349
  contHeight = screen.height;
350
  }
351
+
352
  // Initialize new display sizes
353
  var newWidth,
354
  newHeight,
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
+
 
362
  // Add borderwidth in case of mode == normal
363
  if ( modeIsNormal ) {
364
  extraX += 2 * args.borderWidth;
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;
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),wppaConsoleLog("contw="+n+", conth="+i,"force"),s=(d=8)+(o.controls?o.icsize+10:0)+n*o.height/o.width+30,wppaConsoleLog("args.icsize="+o.icsize+", args.width="+o.width,"force"),wppaConsoleLog("1 extrax="+d+", extray="+s,"force"),c=o.image.width/o.image.height,wppaConsoleLog("ratio="+c),wppaConsoleLog("2 extrax="+d+", extray="+s,"force"),e&&(d+=2*o.borderWidth,s+=2*o.borderWidth),t=n/c+s<i,wppaConsoleLog("widthislim="+t,"force"),m=t?(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.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");
readme.txt CHANGED
@@ -2,12 +2,12 @@
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.4.02.004
6
- Stable tag: 7.4.01.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
10
- Tested up to: 5.4.1
11
  Requires PHP: 5.5
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
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.4.02.005
6
+ Stable tag: 7.4.02.005
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
10
+ Tested up to: 5.4.2
11
  Requires PHP: 5.5
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
wppa-non-admin.php CHANGED
@@ -1164,14 +1164,5 @@ function wppa_dummy() {
1164
  __( 'delay', 'wp-photo-album-plus' );
1165
  __( 'cache', 'wp-photo-album-plus' );
1166
  __( 'single image', 'wp-photo-album-plus' );
1167
- __( 'tagcloud', 'wp-photo-album-plus' );
1168
- __( 'choice', 'wp-photo-album-plus' );
1169
- __( 'upload', 'wp-photo-album-plus' );
1170
- __( 'multitag', 'wp-photo-album-plus' );
1171
- __( 'bestof', 'wp-photo-album-plus' );
1172
- __( 'superview', 'wp-photo-album-plus' );
1173
- __( 'search', 'wp-photo-album-plus' );
1174
- __( 'supersearch', 'wp-photo-album-plus' );
1175
- __( 'choice', 'wp-photo-album-plus' );
1176
- __( 'stereo', 'wp-photo-album-plus' );
1177
  }
1164
  __( 'delay', 'wp-photo-album-plus' );
1165
  __( 'cache', 'wp-photo-album-plus' );
1166
  __( 'single image', 'wp-photo-album-plus' );
1167
+
 
 
 
 
 
 
 
 
 
1168
  }
wppa-picture.php CHANGED
@@ -349,7 +349,7 @@ function wppa_get_picture_html( $args ) {
349
 
350
  // Get full html for a lightbox pan image, e.g. ' data-panorama="'..."' for use in lightbox anchor link
351
  function wppa_get_lb_panorama_full_html( $id ) {
352
-
353
  $result = wppa_get_lb_panorama_html( $id );
354
  if ( $result ) {
355
  return ' data-panorama="' . esc_attr( $result ) . '"';
@@ -398,6 +398,7 @@ function wppa_get_panorama_html( $args ) {
398
  }
399
  }
400
 
 
401
  return $result;
402
  }
403
 
349
 
350
  // Get full html for a lightbox pan image, e.g. ' data-panorama="'..."' for use in lightbox anchor link
351
  function wppa_get_lb_panorama_full_html( $id ) {
352
+ wppa_log('ERR', 'wppa_get_lb_panorama_full_html('.$id.') called', true);
353
  $result = wppa_get_lb_panorama_html( $id );
354
  if ( $result ) {
355
  return ' data-panorama="' . esc_attr( $result ) . '"';
398
  }
399
  }
400
 
401
+ wppa_log('ERR', 'wppa_get_panorama_html returned '.strlen($result).' chars for item id '.$args['id']);
402
  return $result;
403
  }
404
 
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.4.02.004
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/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7402'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.4.02.004'; // 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.4.02.005
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/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7402'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.4.02.005'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';