WP Photo Album Plus - Version 6.9.11.011

Version Description

= 6.9.11 =

  • version addresses various minor bug fixes and performance improvements.

= 6.9.10 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.09 =

  • Panorama support phase III.

= 6.9.08 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase II.

= 6.9.07 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase I.

= 6.9.06 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.05 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.04 =

  • This version addresses various minor bug fixes and feature requests.
  • Local CDN functionality has been added.

= 6.9.03 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.02 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.01 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.00 =

  • This version includes the code for the privacy policy requirements.

= 6.8.09

  • This version addresses various bug fixes and code edits.

= 6.8.08 =

  • This version addresses various minor bug fixes and feature requests.
  • This version offers substantial performance improvements when the box in Table IV-A13: Defer Javascript is ticked. This setting is now recommended and set ticked as the default.
  • For more info on performance improvements and compatibility with optimizers: see the changelog.txt

= 6.8.07 =

  • This version addresses various minor bug fixes and enhancements, and a new widget: Statistics.

= 6.8.06 =

  • This version addresses various minor bug fixes and improved cache handling.

= 6.8.05 =

  • This version addresses various minor bug fixes and feture requests.

= 6.8.04 =

  • This version addresses various display issues and a few fixes of bugs that seldom affected the plugins behaviour.
Download this release

Release Info

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

Code changes from version 6.9.10 to 6.9.11.011

changelog.txt CHANGED
@@ -1,5 +1,16 @@
1
  WP Photo Album Plus Changelog
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 6.9.10 =
4
 
5
  = Bug Fixes =
@@ -8,7 +19,7 @@ WP Photo Album Plus Changelog
8
 
9
  = Other Changes =
10
 
11
- * Increase stability and reduced codesize for panoramas.
12
 
13
  = 6.9.09 =
14
 
1
  WP Photo Album Plus Changelog
2
 
3
+ = 6.9.11 =
4
+
5
+ = Bug Fixes =
6
+
7
+ * Performance improvement on panoramas on lightbox. A.o.: the wrong image was pre-loaded. Fixed.
8
+
9
+ = New Features =
10
+
11
+ * Additional panorama settings. See Table IV-H.
12
+ * Zoom by the mousewheel on panoramas.
13
+
14
  = 6.9.10 =
15
 
16
  = Bug Fixes =
19
 
20
  = Other Changes =
21
 
22
+ * Increase stability, improved performance and reduced codesize for panoramas.
23
 
24
  = 6.9.09 =
25
 
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 = '6.9.10';
7
 
8
  // Global inits
9
  var wppaNormsBtnOpac = 0.75;
@@ -17,6 +17,7 @@ var wppaOvlSvgInverse = false;
17
  var wppaOvlFsExitBtnSize = '48';
18
  var wppaOvlActivePanorama = 0;
19
  var wppaOvlHasPanoramas = false;
 
20
 
21
  // Global size specs
22
  var wppaSavedContainerWidth = 0;
@@ -26,6 +27,9 @@ var wppaSavedMarginTop;
26
  var wppaSavedImageWidth;
27
  var wppaSavedImageHeight;
28
 
 
 
 
29
  // Initial initialization
30
  jQuery( document ).ready( function( e ) {
31
  wppaInitOverlay();
@@ -141,7 +145,7 @@ wppaConsoleLog( 'wppaOvlFull' );
141
  } else if ( elem.webkitRequestFullscreen ) {
142
  elem.webkitRequestFullscreen();
143
  }
144
- setTimeout( function(){wppaOvlShow( wppaOvlIdx )}, 50 );
145
  }
146
 
147
  // Cancel fullscreen. This is browser dependant
@@ -455,7 +459,15 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
455
 
456
  // Fullsize panorama?
457
  if ( wppaOvlActivePanorama ) {
458
- html = wppaOvlPanoramaHtml[idx];
 
 
 
 
 
 
 
 
459
  }
460
 
461
  // Fullsize Video
@@ -1001,10 +1013,15 @@ wppaConsoleLog( 'wppaOvlSize' );
1001
  function wppaOvlFormatFull() {
1002
  wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1003
 
 
 
 
 
 
1004
  // Panoramas do their own resize
1005
  if ( wppaOvlActivePanorama > 0 ) {
1006
  setTimeout(function(){
1007
- wppaConsoleLog('kicking panorama');
1008
  jQuery(window).trigger("kickpanorama");
1009
  },125);
1010
  return;
@@ -1417,7 +1434,7 @@ wppaConsoleLog( 'wppaOvlResize' );
1417
  // Panoramas do their own resize
1418
  if ( wppaOvlActivePanorama > 0 ) {
1419
  setTimeout(function(){
1420
- wppaConsoleLog('kicking panorama');
1421
  jQuery(window).trigger("kickpanorama");
1422
  },125);
1423
  return;
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaLightboxVersion = '6.9.11';
7
 
8
  // Global inits
9
  var wppaNormsBtnOpac = 0.75;
17
  var wppaOvlFsExitBtnSize = '48';
18
  var wppaOvlActivePanorama = 0;
19
  var wppaOvlHasPanoramas = false;
20
+ var wppaGlobalOvlPanoramaId = 0;
21
 
22
  // Global size specs
23
  var wppaSavedContainerWidth = 0;
27
  var wppaSavedImageWidth;
28
  var wppaSavedImageHeight;
29
 
30
+ // Panorama related vars
31
+ var renderer, scene, camera, sphere, sphereMaterial, sphereMesh;
32
+
33
  // Initial initialization
34
  jQuery( document ).ready( function( e ) {
35
  wppaInitOverlay();
145
  } else if ( elem.webkitRequestFullscreen ) {
146
  elem.webkitRequestFullscreen();
147
  }
148
+ // if ( ! init ) setTimeout( function(){wppaOvlShow( wppaOvlIdx )}, 50 );
149
  }
150
 
151
  // Cancel fullscreen. This is browser dependant
459
 
460
  // Fullsize panorama?
461
  if ( wppaOvlActivePanorama ) {
462
+ html = wppaOvlPanoramaHtml[idx] +
463
+ '<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\';" >';
464
+ if ( wppaOvlShowLegenda && wppaOvlMode != 'normal' ) {
465
+ html +=
466
+ '<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+';" >'+
467
+ 'Mode=fullscreen. '+( wppaOvlIsSingle ? wppaOvlFullLegendaSinglePanorama : wppaOvlFullLegendaPanorama )+
468
+ '</div>';
469
+ }
470
+ html += '</div>';
471
  }
472
 
473
  // Fullsize Video
1013
  function wppaOvlFormatFull() {
1014
  wppaConsoleLog( 'wppaOvlFormatFull '+wppaOvlMode );
1015
 
1016
+ // Are we still in?
1017
+ if ( ! wppaOvlOpen ) {
1018
+ return;
1019
+ }
1020
+
1021
  // Panoramas do their own resize
1022
  if ( wppaOvlActivePanorama > 0 ) {
1023
  setTimeout(function(){
1024
+ wppaConsoleLog('kicking panorama from wppaOvlFormatFull');
1025
  jQuery(window).trigger("kickpanorama");
1026
  },125);
1027
  return;
1434
  // Panoramas do their own resize
1435
  if ( wppaOvlActivePanorama > 0 ) {
1436
  setTimeout(function(){
1437
+ wppaConsoleLog('kicking panorama from wppaOvlResize');
1438
  jQuery(window).trigger("kickpanorama");
1439
  },125);
1440
  return;
js/wppa-lightbox.min.js CHANGED
@@ -1 +1 @@
1
- var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaLightboxVersion="6.9.10",wppaNormsBtnOpac=.75,wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlMode="",wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlFsExitBtnSize="48",wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!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,e=27;var t=String.fromCharCode(a).toLowerCase();switch(a){case e:wppaStopVideo(mocc),"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(mocc),"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(),setTimeout(function(){wppaOvlShow(wppaOvlIdx)},50)),"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)),"object"==typeof p){wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlImgs=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!1;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),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")):"",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),o.href==p.href&&(wppaOvlIdx=r),r++)}else wppaOvlUrls[0]=p.href,jQuery(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(jQuery(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),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")):"",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],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)))),wppaPhotoId=wppaUrlToId(wppaOvlUrls[p]),_bumpViewCount(wppaPhotoId),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]:(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 );" 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';\" >":(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 );" 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 );" 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):(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 );" 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||(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","48px",!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","48px",!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","48px",!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=jQuery(window).width(),v=jQuery(window).height();wppaOvlIsVideo?(t=a.clientWidth,o=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],l=wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):(t=a.clientWidth,o=a.naturalWidth,l=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();"auto"==wppaOvlTxtHeight?(0==s&&(s=20+2*wppaOvlBorderWidth),w=v-s-20-2*wppaOvlBorderWidth):w=v-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth;var u=parseInt(w*o/l),h=(wppaOvlPadTop,parseInt((d-u)/2),u);l<w&&(wppaOvlPadTop+(w-l)/2,parseInt((d-o)/2),h=o);var O=wppaSavedImageWidth-h<3&&h-wppaSavedImageWidth<3;return h<=10&&(l=180,O=!(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),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="+o+", img complete="+document.getElementById("wppa-overlay-img").complete)),!0}wppaOvlFormatFull()}else wppaConsoleLog("Lb quitted")}}function wppaOvlFormatFull(){if(wppaConsoleLog("wppaOvlFormatFull "+wppaOvlMode),!(0<wppaOvlActivePanorama)){var p,a,e;if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),a=wppaOvlVideoNaturalWidths[wppaOvlIdx],e=wppaOvlVideoNaturalHeights[wppaOvlIdx];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":o<t?(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,r=screen.height*o):(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,r=screen.width);break;case"stretched":i=l=0,n=screen.height,r=screen.width;break;case"clipped":o<t?(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,r=screen.width):(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,r=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}setTimeout(function(){wppaConsoleLog("kicking panorama"),jQuery(window).trigger("kickpanorama")},125)}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","48px",!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"),"48px",!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"),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIsSingle||(wppaOvlIdx<1&&(wppaOvlIdx=wppaOvlUrls.length),wppaOvlShow(wppaOvlIdx-1)),!1}function wppaOvlShowNext(){return wppaConsoleLog("wppaOvlShowNext"),jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIsSingle||(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),wppaKbHandlerInstalled=!1,wppaOvlFirst=!0,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}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(){wppaConsoleLog("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++)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]&&(wppaWppaOverlayActivated=!0,jQuery(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),jQuery(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto"));wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange)}function wppaOvlResize(){wppaConsoleLog("wppaOvlResize"),0<wppaOvlActivePanorama?setTimeout(function(){wppaConsoleLog("kicking panorama"),jQuery(window).trigger("kickpanorama")},125):(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)}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,renderer,scene,camera,sphere,sphereMaterial,sphereMesh,wppaLightboxVersion="6.9.11",wppaNormsBtnOpac=.75,wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlMode="",wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlFsExitBtnSize="48",wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!1,wppaGlobalOvlPanoramaId=0,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,e=27;var t=String.fromCharCode(a).toLowerCase();switch(a){case e:wppaStopVideo(mocc),"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(mocc),"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)),"object"==typeof p){wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlImgs=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!1;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),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")):"",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),o.href==p.href&&(wppaOvlIdx=r),r++)}else wppaOvlUrls[0]=p.href,jQuery(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(jQuery(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),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")):"",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],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)))),wppaPhotoId=wppaUrlToId(wppaOvlUrls[p]),_bumpViewCount(wppaPhotoId),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 );" 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';\" >":(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 );" 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 );" 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):(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 );" 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||(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","48px",!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","48px",!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","48px",!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=jQuery(window).width(),v=jQuery(window).height();wppaOvlIsVideo?(t=a.clientWidth,o=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],l=wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):(t=a.clientWidth,o=a.naturalWidth,l=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();"auto"==wppaOvlTxtHeight?(0==s&&(s=20+2*wppaOvlBorderWidth),w=v-s-20-2*wppaOvlBorderWidth):w=v-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth;var u=parseInt(w*o/l),h=(wppaOvlPadTop,parseInt((d-u)/2),u);l<w&&(wppaOvlPadTop+(w-l)/2,parseInt((d-o)/2),h=o);var O=wppaSavedImageWidth-h<3&&h-wppaSavedImageWidth<3;return h<=10&&(l=180,O=!(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),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="+o+", img complete="+document.getElementById("wppa-overlay-img").complete)),!0}wppaOvlFormatFull()}else wppaConsoleLog("Lb quitted")}}function wppaOvlFormatFull(){if(wppaConsoleLog("wppaOvlFormatFull "+wppaOvlMode),wppaOvlOpen){if(!(0<wppaOvlActivePanorama)){var p,a,e;if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),a=wppaOvlVideoNaturalWidths[wppaOvlIdx],e=wppaOvlVideoNaturalHeights[wppaOvlIdx];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":o<t?(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,r=screen.height*o):(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,r=screen.width);break;case"stretched":i=l=0,n=screen.height,r=screen.width;break;case"clipped":o<t?(l=0,i=(screen.height-screen.width/o)/2,n=screen.width/o,r=screen.width):(l=(screen.width-screen.height*o)/2,i=0,n=screen.height,r=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}setTimeout(function(){wppaConsoleLog("kicking panorama from wppaOvlFormatFull"),jQuery(window).trigger("kickpanorama")},125)}}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","48px",!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"),"48px",!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"),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIsSingle||(wppaOvlIdx<1&&(wppaOvlIdx=wppaOvlUrls.length),wppaOvlShow(wppaOvlIdx-1)),!1}function wppaOvlShowNext(){return wppaConsoleLog("wppaOvlShowNext"),jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlIsSingle||(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),wppaKbHandlerInstalled=!1,wppaOvlFirst=!0,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}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(){wppaConsoleLog("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++)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]&&(wppaWppaOverlayActivated=!0,jQuery(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),jQuery(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto"));wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange)}function wppaOvlResize(){wppaConsoleLog("wppaOvlResize"),0<wppaOvlActivePanorama?setTimeout(function(){wppaConsoleLog("kicking panorama from wppaOvlResize"),jQuery(window).trigger("kickpanorama")},125):(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)}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");
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: 6.9.10
6
- Stable tag: 6.9.09
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
@@ -137,9 +137,13 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
137
 
138
  == Upgrade Notice ==
139
 
 
 
 
 
140
  = 6.9.10 =
141
 
142
- * This version addresses various minor bug fixes and feature requests.
143
 
144
  = 6.9.09 =
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: 6.9.11
6
+ Stable tag: 6.9.10
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
137
 
138
  == Upgrade Notice ==
139
 
140
+ = 6.9.11 =
141
+
142
+ * version addresses various minor bug fixes and performance improvements.
143
+
144
  = 6.9.10 =
145
 
146
+ * This version addresses various minor bug fixes and performance improvements.
147
 
148
  = 6.9.09 =
149
 
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 6.9.09
7
  *
8
  */
9
 
@@ -1537,7 +1537,7 @@ global $wpdb;
1537
  //$result['url'] = str_replace( 'xxx', $is_video['0'], $result['url'] );
1538
  }
1539
  else {
1540
- if ( wppa_switch( 'lb_hres' ) && ! wppa_is_stereo( $id ) || wppa_is_panorama( $id ) ) {
1541
  $result['url'] = wppa_get_hires_url( $id );
1542
  }
1543
  else {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 6.9.11
7
  *
8
  */
9
 
1537
  //$result['url'] = str_replace( 'xxx', $is_video['0'], $result['url'] );
1538
  }
1539
  else {
1540
+ if ( ( wppa_switch( 'lb_hres' ) && ! wppa_is_stereo( $id ) && ! wppa_is_panorama( $id ) ) || ( wppa_is_panorama( $id ) && ! wppa_is_mobile() ) ) {
1541
  $result['url'] = wppa_get_hires_url( $id );
1542
  }
1543
  else {
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 6.9.09
7
  *
8
  */
9
 
@@ -612,6 +612,8 @@ global $wppa_js_page_data_file;
612
  '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'"' : '').'
613
  wppaOvlFullLegenda = "'.__('Keys: f = next mode; q,x = exit; p = previous, n = next, s = start/stop, d = dismiss this notice.', 'wp-photo-album-plus').'";
614
  wppaOvlFullLegendaSingle = "'.__('Keys: f = next mode; q,x = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
 
 
615
  wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
616
  wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
617
  wppaOvlShowLegenda = '.( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ? 'true' : 'false' ).';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 6.9.11
7
  *
8
  */
9
 
612
  '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'"' : '').'
613
  wppaOvlFullLegenda = "'.__('Keys: f = next mode; q,x = exit; p = previous, n = next, s = start/stop, d = dismiss this notice.', 'wp-photo-album-plus').'";
614
  wppaOvlFullLegendaSingle = "'.__('Keys: f = next mode; q,x = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
615
+ wppaOvlFullLegendaPanorama = "'.__('Keys: q,x = exit; p = previous, n = next, s = start/stop, d = dismiss this notice.', 'wp-photo-album-plus').'";
616
+ wppaOvlFullLegendaSinglePanorama = "'.__('Keys: q,x = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
617
  wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
618
  wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
619
  wppaOvlShowLegenda = '.( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ? 'true' : 'false' ).';
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 6.9.08
7
  *
8
  */
9
 
@@ -536,10 +536,10 @@ function wppaToggleExif( id, count ) {
536
  $linktitle = stripslashes( $photo['linktitle'] );
537
  $alt = stripslashes( $photo['alt'] );
538
  $filename = $photo['filename'];
539
- $photox = $photo['photox'];
540
- $photoy = $photo['photoy'];
541
- $videox = $photo['videox'];
542
- $videoy = $photo['videoy'];
543
  $location = $photo['location'];
544
  $status = $photo['status'];
545
  $tags = trim( stripslashes( $photo['tags'] ), ',' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 6.9.11
7
  *
8
  */
9
 
536
  $linktitle = stripslashes( $photo['linktitle'] );
537
  $alt = stripslashes( $photo['alt'] );
538
  $filename = $photo['filename'];
539
+ $photox = wppa_get_photox( $id );
540
+ $photoy = wppa_get_photoy( $id );
541
+ $videox = wppa_get_videox( $id );
542
+ $videoy = wppa_get_videoy( $id );
543
  $location = $photo['location'];
544
  $status = $photo['status'];
545
  $tags = trim( stripslashes( $photo['tags'] ), ',' );
wppa-picture.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
- * Version 6.9.10
7
  *
8
  */
9
 
@@ -299,6 +299,12 @@ function wppa_get_panorama_html( $args ) {
299
 
300
  if ( ! isset( $args['id'] ) ) return;
301
 
 
 
 
 
 
 
302
  switch( wppa_is_panorama( $args['id'] ) ) {
303
 
304
  case '1':
@@ -318,24 +324,36 @@ function wppa_get_panorama_html( $args ) {
318
  function wppa_get_spheric_pan_html( $args ) {
319
 
320
  // Init
321
- $defaults = array( 'id' => '0',
322
- 'mocc' => '0',
323
- 'width' => false,
324
- 'height' => false,
325
- 'haslink' => false,
326
- 'lightbox' => 0,
 
 
 
 
 
 
327
  );
328
 
329
- $args = wp_parse_args( $args, $defaults );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
 
331
- $id = strval( intval ( $args['id'] ) );
332
- $mocc = $args['mocc'] ? $args['mocc'] : wppa( 'mocc' );
333
- $width = $args['width'] ? $args['width'] : wppa_get_container_width();
334
- $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
335
- $haslink = $args['haslink'];
336
- $icsiz = wppa_opt( 'nav_icon_size_panorama' );
337
- $iconsize = $icsiz . 'px;';
338
- $lightbox = $args['lightbox'];
339
  $url = wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id );
340
 
341
  $result =
@@ -345,10 +363,11 @@ function wppa_get_spheric_pan_html( $args ) {
345
  '<div
346
  id="wppa-pan-div-' . $mocc . '"
347
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
348
- style="margin-bottom:4px;cursor:grab;"
349
  >
350
- </div>
351
- <div
 
352
  id="wppa-pctl-div-' . $mocc . '"
353
  class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
354
  style="text-align:center;"
@@ -411,7 +430,9 @@ function wppa_get_spheric_pan_html( $args ) {
411
  :
412
  ''
413
  ) .
414
- '</div>' .
 
 
415
 
416
  ( $lightbox ? '</div>' : '' ) .
417
 
@@ -433,19 +454,20 @@ function wppa_get_spheric_pan_html( $args ) {
433
  // Var declarations
434
  'var
435
  $ = jQuery,
 
436
  manualControl = false,
437
  longitude = 180,
438
  latitude = 0,
439
  savedX,
440
  savedY,
441
  savedLongitude,
442
- savedLatitude,
443
- deltaX = 0,
444
- deltaY = 0,
 
 
445
  deltaFov = 0,
446
  fov = 75,
447
- run = 4,
448
- busy = false,
449
  abort = false,
450
  aspect = ' . $width / $height . ',
451
  div = $( "#wppa-pan-div-' . $mocc . '" ),
@@ -458,31 +480,66 @@ function wppa_get_spheric_pan_html( $args ) {
458
  prev = $("#wppa-pctl-prev-' . $mocc . '" ),
459
  next = $("#wppa-pctl-next-' . $mocc . '" );' .
460
 
461
- // setting up the renderer
462
- 'renderer' . $mocc . ' = new THREE.WebGLRenderer();
463
- renderer' . $mocc . '.setSize(' . $width . ', ' . $height . ');' .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
 
465
- // Place the element
466
- '$(div).append(renderer' . $mocc . '.domElement);' .
467
 
468
- // creating a new scene
469
- 'var scene = new THREE.Scene();' .
470
 
471
- // adding a camera
472
- 'var camera = new THREE.PerspectiveCamera(fov, aspect, 1, 1000);
473
- camera.target = new THREE.Vector3(0, 0, 0);' .
474
 
475
- // creation of a big sphere geometry
476
- 'var sphere = new THREE.SphereGeometry(100, 100, 40);
477
- sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1));' .
478
 
479
- // creation of the sphere material
480
- 'var sphereMaterial = new THREE.MeshBasicMaterial();
481
- sphereMaterial.map = THREE.ImageUtils.loadTexture("' . $url . '");' .
482
 
483
- // geometry + material = mesh (actual object)
484
- 'var sphereMesh = new THREE.Mesh(sphere, sphereMaterial);
485
- scene.add(sphereMesh);' .
 
486
 
487
  // listeners
488
  ( wppa_is_mobile() ?
@@ -499,11 +556,12 @@ function wppa_get_spheric_pan_html( $args ) {
499
  $(zoomout).on("touchstart", onZoomOutMouseDown);
500
  $(zoomout).on("touchend", onButtonUp);'
501
  :
 
502
  '$(div).on("mousedown", onDivMouseDown);
503
  $(div).on("mousemove", onDivMouseMove);
504
  $(div).on("mouseup", onDivMouseUp);
505
- $(div).on("mouseout", onDivMouseUp);
506
- $(right).on("mousedown", onRightMouseDown);
507
  $(right).on("mouseup", onButtonUp);
508
  $(left).on("mousedown", onLeftMouseDown);
509
  $(left).on("mouseup", onButtonUp);
@@ -514,18 +572,23 @@ function wppa_get_spheric_pan_html( $args ) {
514
  $(zoomin).on("mousedown", onZoomInMouseDown);
515
  $(zoomin).on("mouseup", onButtonUp);
516
  $(zoomout).on("mousedown", onZoomOutMouseDown);
517
- $(zoomout).on("mouseup", onButtonUp);'
 
518
  ) .
519
- 'if (prev) {
520
- prev.on("click", panPrev);
521
- next.on("click", panNext);
522
- }' .
 
 
 
 
523
 
524
  // Install Resize hanler
525
- '$(window).on("DOMContentLoaded load resize orientationchange kickpanorama",onResize' . $mocc . ');' .
526
 
527
  // Resize
528
- 'onResize' . $mocc . '();' .
529
 
530
  // Remove spinner
531
  '$("#wppa-ovl-spin").hide();' .
@@ -536,25 +599,16 @@ function wppa_get_spheric_pan_html( $args ) {
536
  // The rendering function
537
  'function render(){' .
538
 
539
- // 'wppaConsoleLog("Spheric, run="+run+", busy="+busy+", abort="+abort);' .
 
540
 
541
- ( $lightbox ? 'if (!wppaOvlOpen) abort=true;' :'' ) .
542
  'if(abort){
543
- scene = null;
544
- camera = null;
545
- sphere = null;
546
- sphereMaterial = null;
547
- sphereMesh = null;
548
  return;
549
- }
550
- if(run==0)return;
551
- if(busy)return;' .
552
-
553
- ( $lightbox ? 'if ( wppaOvlActivePanorama != ' . $id . ' ) return;' : '' ) .
554
-
555
- 'busy = true;
556
 
557
- requestAnimationFrame(render);
558
 
559
  if ( ! manualControl ) {
560
  longitude += deltaX;
@@ -571,45 +625,52 @@ function wppa_get_spheric_pan_html( $args ) {
571
  camera.lookAt(camera.target);' .
572
 
573
  // calling again render function
574
- 'renderer' . $mocc . '.render(scene, camera);
 
575
 
576
- busy = false;
577
- if (run<5) run--;
 
 
 
578
  }' .
579
 
580
  // Zoom in/out
581
- 'function doZoom(){
582
  fov += deltaFov;
583
  fov = Math.max(20, Math.min(120, fov));
584
  camera = new THREE.PerspectiveCamera(fov, aspect, 1, 1000);
585
  camera.target = new THREE.Vector3(0, 0, 0);
586
- if (run>0) setTimeout(function(){doZoom()}, 25);
 
 
 
 
 
587
  }' .
588
 
589
  // Previous
590
  'function panPrev(e) {
591
- e.preventDefault();
592
  var stop;
593
  if ( ! stop ) {
594
  stop = true;
595
  $(this).css({opacity:0.5});
596
  $("#wppa-overlay-ic").css({display:"none"});
597
  $("#wppa-ovl-spin").show();
598
- abort = true;
599
  wppaOvlShowPrev();
600
  }
601
  }' .
602
 
603
  // Next
604
  'function panNext(e) {
605
- e.preventDefault();
606
  var stop;
607
  if ( ! stop ) {
608
  stop = true;
609
  $(this).css({opacity:0.5});
610
  $("#wppa-overlay-ic").css({display:"none"});
611
  $("#wppa-ovl-spin").show();
612
- abort = true;
613
  wppaOvlShowNext();
614
  }
615
  }' .
@@ -622,8 +683,6 @@ function wppa_get_spheric_pan_html( $args ) {
622
  savedY = e.clientY;
623
  savedLongitude = longitude;
624
  savedLatitude = latitude;
625
- run=5;
626
- render();
627
  }' .
628
  'function onDivMouseMove(e){
629
  if(manualControl){
@@ -633,70 +692,57 @@ function wppa_get_spheric_pan_html( $args ) {
633
  }' .
634
  'function onDivMouseUp(e){
635
  manualControl = false;
636
- ' . ( $lightbox ? '' : 'run=1;' ) . '
637
- run=4;
638
  }' .
639
 
640
  // Horizontal movement by buttons
641
  'function onRightMouseDown(e) {
642
- e.preventDefault();
643
- run=5;
644
  deltaX=0.2;
645
- render();
646
  }' .
647
  'function onLeftMouseDown(e) {
648
- e.preventDefault();
649
- run=5;
650
  deltaX=-0.2;
651
- render();
652
  }' .
653
 
654
  // Vertical movement by buttons
655
  'function onUpMouseDown(e) {
656
- e.preventDefault();
657
- run=5;
658
  deltaY=0.2;
659
- render();
660
  }' .
661
  'function onDownMouseDown(e) {
662
- e.preventDefault();
663
- run=5;
664
  deltaY=-0.2;
665
- render();
666
  }' .
667
 
668
  // Zooming
669
  'function onZoomInMouseDown(e) {
670
- e.preventDefault();
671
- run=5;
672
  deltaFov=-0.4;
673
  doZoom();
674
- render();
675
  }' .
676
  'function onZoomOutMouseDown(e) {
677
- e.preventDefault();
678
- run=5;
679
  deltaFov=0.4;
680
  doZoom();
681
- render();
682
  }' .
683
 
684
- // Release a button resets all deltas and indicates one rendering to go
685
  'function onButtonUp(e) {
686
- e.preventDefault();
687
  deltaX=0;
688
  deltaY=0;
689
  deltaFov=0;
690
- if ( ! ' . $lightbox . ' ) run--;
691
- run=4;
692
  }' .
693
 
694
- // When a (responsive) resize is required, we resize the scene
695
- 'function onResize' . $mocc . '(e){' .
696
-
697
- // 'wppaConsoleLog("Resize spheric");' .
 
 
 
 
 
 
 
 
698
 
699
- 'if (abort) return;' .
 
700
 
701
  ( $lightbox ?
702
 
@@ -725,7 +771,7 @@ function wppa_get_spheric_pan_html( $args ) {
725
  topMarg,
726
  leftMarg,
727
  extraX = 8,
728
- extraY = 8 + ' . $icsiz . ' + 40;' .
729
 
730
  // Add borderwidth in case of mode == normal
731
  'if ( modeIsNormal ) {
@@ -765,7 +811,8 @@ function wppa_get_spheric_pan_html( $args ) {
765
  backgroundColor:"' . wppa_opt( 'ovl_theme' ) . '",
766
  padding:"' . wppa_opt( 'ovl_border_width' ) . 'px",
767
  borderRadius:"' . wppa_opt( 'ovl_border_radius' ) . 'px",
768
- width:newWidth
 
769
  });
770
  $( "#wppa-pctl-div-' . $mocc . '" ).css({marginLeft:0});' .
771
 
@@ -799,19 +846,15 @@ function wppa_get_spheric_pan_html( $args ) {
799
  }
800
  }
801
 
802
- renderer' . $mocc . '.setSize(newWidth, newHeight);
803
- run=4;
804
- render();
805
- doZoom();
806
  ' :
807
  '
808
  var containerwidth = $(div).parent().width();
809
  var newWidth = containerwidth;
810
  var newHeight = newWidth * ' . ( $height / $width ) . ';
811
- renderer' . $mocc . '.setSize(newWidth, newHeight);
812
- run=4;
813
- render();
814
- doZoom();'
815
  ) . '
816
  }' .
817
  '};
@@ -819,7 +862,6 @@ function wppa_get_spheric_pan_html( $args ) {
819
  </script>
820
  ' . ( $haslink ? '<a>' : '' ) . '';
821
 
822
- //return $result;
823
  return wppa_pan_min( $result );
824
  }
825
 
@@ -827,24 +869,45 @@ function wppa_get_spheric_pan_html( $args ) {
827
  function wppa_get_flat_pan_html( $args ) {
828
 
829
  // Init
830
- $defaults = array( 'id' => '0',
831
- 'mocc' => '0',
832
- 'width' => false,
833
- 'height' => false,
834
- 'haslink' => false,
835
- 'lightbox' => 0,
 
 
 
 
 
836
  );
837
 
838
  $args = wp_parse_args( $args, $defaults );
839
 
840
- $id = strval( intval ( $args['id'] ) );
841
- $mocc = $args['mocc'] ? $args['mocc'] : wppa( 'mocc' );
842
- $width = $args['width'] ? $args['width'] : wppa_get_container_width();
843
- $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
844
- $haslink = $args['haslink'];
845
- $icsiz = wppa_opt( 'nav_icon_size_panorama' );
846
- $iconsize = $icsiz . 'px;';
847
- $lightbox = $args['lightbox'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
848
 
849
  $url = wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id );
850
 
@@ -859,13 +922,13 @@ function wppa_get_flat_pan_html( $args ) {
859
  '<div
860
  id="wppa-pan-div-' . $mocc . '"
861
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
862
- style="margin-bottom:4px;"
863
  >' .
864
 
865
  // The actual drawing area
866
  '<canvas
867
  id="wppa-pan-canvas-' . $mocc . '"
868
- style="background-color:black;cursor:grab;"
869
  width="' . $width . '"
870
  height="' . ( $width / 2 ) . '"
871
  ></canvas>' .
@@ -881,6 +944,7 @@ function wppa_get_flat_pan_html( $args ) {
881
  </div>' .
882
 
883
  // The controlbar
 
884
  '<div
885
  id="wppa-pctl-div-' . $mocc . '"
886
  class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
@@ -944,7 +1008,9 @@ function wppa_get_flat_pan_html( $args ) {
944
  :
945
  ''
946
  ) .
947
- '</div>' .
 
 
948
 
949
  ( $lightbox ? '</div>' : '' ) .
950
 
@@ -967,10 +1033,12 @@ function wppa_get_flat_pan_html( $args ) {
967
  'var
968
  $ = jQuery,
969
  manualControl = false,
970
- deltaX = 0,
 
971
  deltaY = 0,
972
  deltaFactor = 1.0,
973
- run = 4,
 
974
  busy = false,
975
  abort = false,
976
  div = $("#wppa-pan-div-' . $mocc . '"),
@@ -1010,15 +1078,17 @@ function wppa_get_flat_pan_html( $args ) {
1010
  zoomout.on("touchstart", onZoomOutMouseDown);
1011
  zoomout.on("touchend", onButtonUp);'
1012
  :
 
1013
  'canvas.addEventListener("mousedown", onCanvasMouseDown);
1014
  canvas.addEventListener("mousemove", onCanvasMouseMove);
1015
  canvas.addEventListener("mouseup", onCanvasMouseUp);
1016
  canvas.addEventListener("mouseout", onCanvasMouseUp);
 
1017
  prevCanvas.addEventListener("mousedown", onCanvasMouseDown);
1018
  prevCanvas.addEventListener("mousemove", onPrevCanvasMouseMove);
1019
  prevCanvas.addEventListener("mouseup", onCanvasMouseUp);
1020
- prevCanvas.addEventListener("mouseout", onCanvasMouseUp);
1021
- right.on("mousedown", onRightMouseDown);
1022
  right.on("mouseup", onButtonUp);
1023
  left.on("mousedown", onLeftMouseDown);
1024
  left.on("mouseup", onButtonUp);
@@ -1032,10 +1102,13 @@ function wppa_get_flat_pan_html( $args ) {
1032
  zoomout.on("mouseup", onButtonUp);'
1033
  ) .
1034
 
1035
- 'if (prev) {
1036
- prev.on("click", panPrev);
1037
- next.on("click", panNext);
1038
- }' .
 
 
 
1039
 
1040
  // Install Resize handler
1041
  '$(window).on("DOMContentLoaded load resize kickpanorama orientationchange",onResize' . $mocc . ');' .
@@ -1052,8 +1125,6 @@ function wppa_get_flat_pan_html( $args ) {
1052
  // The render function
1053
  'function render(){' .
1054
 
1055
- // 'wppaConsoleLog("Flat, run="+run+", busy="+busy+", abort="+abort);' .
1056
-
1057
  ( $lightbox ? 'if (!wppaOvlOpen) abort=true;' :'' ) .
1058
  'if (abort) {
1059
  ctx = null;
@@ -1090,6 +1161,13 @@ function wppa_get_flat_pan_html( $args ) {
1090
  'fromX = Math.max(0, Math.min(image' . $mocc . '.width-fromWidth, fromX));' .
1091
  'fromY = Math.max(0, Math.min(image' . $mocc . '.height-fromHeight, fromY));' .
1092
 
 
 
 
 
 
 
 
1093
  // Draw the image
1094
  'var ctx = canvas.getContext("2d");' .
1095
  'ctx.drawImage(image' . $mocc . ',fromX,fromY,fromWidth,fromHeight,0,0,canvas.width,canvas.height);' .
@@ -1108,7 +1186,7 @@ function wppa_get_flat_pan_html( $args ) {
1108
 
1109
  // Re-render if needed
1110
  'if (run>0) {' .
1111
- 'if (manualControl){setTimeout(function(){render()},25);}' .
1112
  'else {setTimeout(function(){render()},5);}' .
1113
  '}
1114
  if(run<5)run--;' .
@@ -1117,13 +1195,13 @@ function wppa_get_flat_pan_html( $args ) {
1117
  // Previous
1118
  'function panPrev(e) {
1119
  e.preventDefault();
 
1120
  var stop;
1121
  if ( ! stop ) {
1122
  stop = true;
1123
  $(this).css({opacity:0.5});
1124
  $("#wppa-overlay-ic").css({display:"none"});
1125
  $("#wppa-ovl-spin").show();
1126
- abort = true;
1127
  wppaOvlShowPrev();
1128
  }
1129
  }' .
@@ -1131,13 +1209,13 @@ function wppa_get_flat_pan_html( $args ) {
1131
  // Next
1132
  'function panNext(e) {
1133
  e.preventDefault();
 
1134
  var stop;
1135
  if ( ! stop ) {
1136
  stop = true;
1137
  $(this).css({opacity:0.5});
1138
  $("#wppa-overlay-ic").css({display:"none"});
1139
  $("#wppa-ovl-spin").show();
1140
- abort = true;
1141
  wppaOvlShowNext();
1142
  }
1143
  }' .
@@ -1168,7 +1246,6 @@ function wppa_get_flat_pan_html( $args ) {
1168
  'function onZoomInMouseDown(e){
1169
  e.preventDefault();
1170
  run=5;deltaFactor=1.005;render();
1171
- e.preventDefault();
1172
  }' .
1173
 
1174
  'function onZoomOutMouseDown(e){
@@ -1176,6 +1253,15 @@ function wppa_get_flat_pan_html( $args ) {
1176
  run=5;deltaFactor=0.995;render();
1177
  }' .
1178
 
 
 
 
 
 
 
 
 
 
1179
  // When a navigation button is released, stop and reset all deltas
1180
  'function onButtonUp(e) {
1181
  e.preventDefault();
@@ -1189,8 +1275,6 @@ function wppa_get_flat_pan_html( $args ) {
1189
 
1190
  'if (abort) return;' .
1191
 
1192
- // 'wppaConsoleLog("Resize flat");' .
1193
-
1194
  ( $lightbox ?
1195
 
1196
  // Show image container
@@ -1221,7 +1305,7 @@ function wppa_get_flat_pan_html( $args ) {
1221
  topMarg,
1222
  leftMarg,
1223
  extraX = 8,
1224
- extraY = 24 + ' . $icsiz . ' + contWidth * ' . $height . ' / ' . $width . ' + 40;' .
1225
 
1226
  // Add borderwidth in case of mode == normal
1227
  'if ( modeIsNormal ) {
@@ -1240,7 +1324,7 @@ function wppa_get_flat_pan_html( $args ) {
1240
  topMarg = ( contHeight - newHeight - extraY ) / 2 + 20;' .
1241
  '}
1242
  else {
1243
- newWidth = 2 * ( contHeight - ' . $icsiz . ' - 24 - 40 ) / ( 1 + 2 * ' . $height . ' / ' . $width . ' );
1244
  newHeight = newWidth / 2;
1245
  topMarg = 20;' .
1246
 
@@ -1263,7 +1347,8 @@ function wppa_get_flat_pan_html( $args ) {
1263
  backgroundColor:"' . wppa_opt( 'ovl_theme' ) . '",
1264
  padding:"' . wppa_opt( 'ovl_border_width' ) . 'px",
1265
  borderRadius:"' . wppa_opt( 'ovl_border_radius' ) . 'px",
1266
- width:newWidth
 
1267
  });
1268
  $( "#wppa-pctl-div-' . $mocc . '" ).css({marginLeft:0});' .
1269
 
@@ -1302,7 +1387,7 @@ function wppa_get_flat_pan_html( $args ) {
1302
  } */ '
1303
  }' .
1304
 
1305
- 'run=4;
1306
  render();
1307
 
1308
  ' :
@@ -1312,7 +1397,7 @@ function wppa_get_flat_pan_html( $args ) {
1312
  'canvas.height = canvasHeight;' .
1313
  'prevCanvas.width = canvasWidth;' .
1314
  'prevCanvas.height = canvasWidth * ' . $height . ' / ' . $width . ';' .
1315
- 'run=4;' .
1316
  'render();'
1317
  ) .
1318
 
@@ -1328,9 +1413,6 @@ function wppa_get_flat_pan_html( $args ) {
1328
  savedCanvasX = e.offsetX;
1329
  savedCanvasY = e.offsetY;
1330
 
1331
- fromX = fromX;
1332
- fromY = fromY;
1333
-
1334
  run=5;
1335
  render();
1336
 
@@ -1338,17 +1420,22 @@ function wppa_get_flat_pan_html( $args ) {
1338
 
1339
  'function onCanvasMouseMove(e){
1340
 
1341
- if ( manualControl && !busy ){
1342
 
1343
- var factor = canvasWidth / fromWidth;
1344
 
1345
- fromX = ( savedCanvasX - e.offsetX ) / factor + fromX;
1346
- fromY = ( savedCanvasY - e.offsetY ) / factor + fromY;
1347
 
1348
- savedCanvasX = e.offsetX;
1349
- savedCanvasY = e.offsetY;
1350
- }
 
1351
 
 
 
 
 
1352
  }' .
1353
 
1354
  'function onPrevCanvasMouseMove(e){
@@ -1360,10 +1447,10 @@ function wppa_get_flat_pan_html( $args ) {
1360
  e.offsetY > factor * fromY &&
1361
  e.offsetY < factor * ( fromY + fromHeight ) ) {
1362
 
1363
- $(prevCanvas).css(\'cursor\',\'grab\');
1364
  }
1365
  else {
1366
- $(prevCanvas).css(\'cursor\',\'default\');
1367
  }
1368
 
1369
  if ( manualControl && !busy ){
@@ -1385,12 +1472,11 @@ function wppa_get_flat_pan_html( $args ) {
1385
 
1386
  'function onCanvasMouseUp(e){
1387
 
1388
- manualControl = false;
1389
- ' . ( $lightbox ? '' : 'run=1;' ) . '
1390
- run=4;
1391
-
1392
  }' .
1393
-
1394
  '}
1395
 
1396
  </script>
@@ -1401,20 +1487,40 @@ function wppa_get_flat_pan_html( $args ) {
1401
 
1402
  // Minimize inine mixed html / js code
1403
  function wppa_pan_min( $result ) {
 
 
1404
 
 
1405
  $result = str_replace( "\t", '', $result );
1406
- $result = str_replace( "\n", ' ', $result );
1407
 
 
 
 
 
1408
  $result = str_replace( array( ' = ',' + ',' * ',' / ' ), array( '=','+','*','/' ), $result );
 
 
1409
  $olen = 0;
1410
  $nlen = strlen( $result );
1411
  do {
1412
  $olen = $nlen;
1413
- $result = str_replace( " ", ' ', $result );
1414
  $nlen = strlen( $result );
1415
  } while ( $nlen != $olen );
1416
- $result = str_replace( array( ', ', '; ', '( ', ' )', '{ ', ' }', '( "', '" )' ), array( ',', ';', '(', ')', '{', '}', '("', '")' ), $result );
 
 
 
 
 
 
 
 
 
 
 
1417
  $result = str_replace( '> <', '><', $result );
1418
- wppa_log('dbg','len='.strlen($result));
 
1419
  return $result;
1420
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
+ * Version 6.9.11
7
  *
8
  */
9
 
299
 
300
  if ( ! isset( $args['id'] ) ) return;
301
 
302
+ $args['controls'] = wppa_opt( 'panorama_control' ) == 'all' || wppa_is_mobile();
303
+ $args['manual'] = wppa_opt( 'panorama_manual' ) == 'all' ? true : false;
304
+ $args['autorun'] = wppa_opt( 'panorama_autorun' ) == 'none' ? '' : wppa_opt( 'panorama_autorun' );
305
+ $args['autorunspeed'] = wppa_opt( 'panorama_autorun_speed' );
306
+ $args['zoomsensitivity'] = wppa_opt( 'panorama_wheel_sensitivity' );
307
+
308
  switch( wppa_is_panorama( $args['id'] ) ) {
309
 
310
  case '1':
324
  function wppa_get_spheric_pan_html( $args ) {
325
 
326
  // Init
327
+ $defaults = array( 'id' => '0',
328
+ 'mocc' => '0',
329
+ 'width' => false,
330
+ 'height' => false,
331
+ 'haslink' => false,
332
+ 'lightbox' => 0,
333
+ 'controls' => true,
334
+ 'autorun' => '',
335
+ 'manual' => true,
336
+ 'autorunspeed' => '3',
337
+ 'zoomsensitivity' => '3',
338
+
339
  );
340
 
341
+ $args = wp_parse_args( $args, $defaults );
342
+
343
+ $id = strval( intval ( $args['id'] ) );
344
+ $mocc = $args['mocc'] ? $args['mocc'] : wppa( 'mocc' );
345
+ $width = $args['width'] ? $args['width'] : wppa_get_container_width();
346
+ $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
347
+ $haslink = $args['haslink'];
348
+ $icsiz = wppa_opt( 'nav_icon_size_panorama' );
349
+ $iconsize = $icsiz . 'px;';
350
+ $lightbox = $args['lightbox'];
351
+ $controls = $args['controls'];
352
+ $autorun = $args['autorun'];
353
+ $manual = $args['manual'];
354
+ $autorunspeed = $args['autorunspeed'];
355
+ $zoomsensitivity = $args['zoomsensitivity'];
356
 
 
 
 
 
 
 
 
 
357
  $url = wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id );
358
 
359
  $result =
363
  '<div
364
  id="wppa-pan-div-' . $mocc . '"
365
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
366
+ style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'cursor:grab;line-height:0;"
367
  >
368
+ </div>' .
369
+ ( $controls ?
370
+ '<div
371
  id="wppa-pctl-div-' . $mocc . '"
372
  class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
373
  style="text-align:center;"
430
  :
431
  ''
432
  ) .
433
+ '</div>'
434
+ :
435
+ '' ) .
436
 
437
  ( $lightbox ? '</div>' : '' ) .
438
 
454
  // Var declarations
455
  'var
456
  $ = jQuery,
457
+ uniqueId,
458
  manualControl = false,
459
  longitude = 180,
460
  latitude = 0,
461
  savedX,
462
  savedY,
463
  savedLongitude,
464
+ savedLatitude,' .
465
+ ( $autorun == 'right' ? 'deltaX = 0.05 * ' . $autorunspeed . ' / 3,' : '' ) .
466
+ ( $autorun == 'left' ? 'deltaX = -0.05 * ' . $autorunspeed . ' / 3,' : '' ) .
467
+ ( $autorun == '' ? 'deltaX = 0,' : '' ) .
468
+ 'deltaY = 0,
469
  deltaFov = 0,
470
  fov = 75,
 
 
471
  abort = false,
472
  aspect = ' . $width / $height . ',
473
  div = $( "#wppa-pan-div-' . $mocc . '" ),
480
  prev = $("#wppa-pctl-prev-' . $mocc . '" ),
481
  next = $("#wppa-pctl-next-' . $mocc . '" );' .
482
 
483
+ // Setting the global id, indicating the most recent invocation
484
+ ( $lightbox ? '
485
+ wppaGlobalOvlPanoramaId++;
486
+ uniqueId = wppaGlobalOvlPanoramaId;' :
487
+ '' ) .
488
+
489
+ // Lghtbox uses the global vars used for the webGL context
490
+ ( $lightbox ?
491
+ 'if ( ! renderer ) {
492
+ renderer = new THREE.WebGLRenderer();
493
+ }
494
+ renderer.setSize(' . $width . ', ' . $height . ');
495
+ $(div).append(renderer.domElement);
496
+ if ( ! scene ) {
497
+ scene = new THREE.Scene();
498
+ }
499
+ if ( ! camera ) {
500
+ camera = new THREE.PerspectiveCamera(fov, aspect, 1, 1000);
501
+ camera.target = new THREE.Vector3(0, 0, 0);
502
+ }
503
+ if ( ! sphere ) {
504
+ sphere = new THREE.SphereGeometry(100, 100, 40);
505
+ sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1));
506
+ }
507
+ if ( ! sphereMaterial ) {
508
+ sphereMaterial = new THREE.MeshBasicMaterial();
509
+ }
510
+ sphereMaterial.map = THREE.ImageUtils.loadTexture("' . $url . '");
511
+ if ( ! sphereMesh ) {
512
+ sphereMesh = new THREE.Mesh(sphere, sphereMaterial);
513
+ scene.add(sphereMesh);
514
+ }
515
+ ' :
516
+
517
+ // setting up the renderer
518
+ 'var renderer = new THREE.WebGLRenderer();
519
+ renderer.setSize(' . $width . ', ' . $height . ');' .
520
 
521
+ // Place the element
522
+ '$(div).append(renderer.domElement);' .
523
 
524
+ // creating a new scene
525
+ 'var scene = new THREE.Scene();' .
526
 
527
+ // adding a camera
528
+ 'var camera = new THREE.PerspectiveCamera(fov, aspect, 1, 1000);
529
+ camera.target = new THREE.Vector3(0, 0, 0);' .
530
 
531
+ // creation of a big sphere geometry
532
+ 'var sphere = new THREE.SphereGeometry(100, 100, 40);
533
+ sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1));' .
534
 
535
+ // creation of the sphere material
536
+ 'var sphereMaterial = new THREE.MeshBasicMaterial();
537
+ sphereMaterial.map = THREE.ImageUtils.loadTexture("' . $url . '");' .
538
 
539
+ // geometry + material = mesh (actual object)
540
+ 'var sphereMesh = new THREE.Mesh(sphere, sphereMaterial);
541
+ scene.add(sphereMesh);'
542
+ ) .
543
 
544
  // listeners
545
  ( wppa_is_mobile() ?
556
  $(zoomout).on("touchstart", onZoomOutMouseDown);
557
  $(zoomout).on("touchend", onButtonUp);'
558
  :
559
+ ( $manual ?
560
  '$(div).on("mousedown", onDivMouseDown);
561
  $(div).on("mousemove", onDivMouseMove);
562
  $(div).on("mouseup", onDivMouseUp);
563
+ document.getElementById("wppa-pan-div-' . $mocc . '").addEventListener("wheel", onDivWheel);' : '' ) .
564
+ '$(right).on("mousedown", onRightMouseDown);
565
  $(right).on("mouseup", onButtonUp);
566
  $(left).on("mousedown", onLeftMouseDown);
567
  $(left).on("mouseup", onButtonUp);
572
  $(zoomin).on("mousedown", onZoomInMouseDown);
573
  $(zoomin).on("mouseup", onButtonUp);
574
  $(zoomout).on("mousedown", onZoomOutMouseDown);
575
+ $(zoomout).on("mouseup", onButtonUp);
576
+ '
577
  ) .
578
+
579
+ // Common event handlers
580
+ ( $lightbox ? '
581
+ $("#wppa-fulls-btn").on("click", panDie);
582
+ if (prev) {
583
+ prev.on("click", panPrev);
584
+ next.on("click", panNext);
585
+ }' : '' ) .
586
 
587
  // Install Resize hanler
588
+ '$(window).on("DOMContentLoaded load resize orientationchange",onResize);' .
589
 
590
  // Resize
591
+ 'onResize();' .
592
 
593
  // Remove spinner
594
  '$("#wppa-ovl-spin").hide();' .
599
  // The rendering function
600
  'function render(){' .
601
 
602
+ // See if a lightbox instance has to die
603
+ ( $lightbox ? 'if ( ! wppaOvlOpen || wppaOvlActivePanorama != ' . $id . ' || wppaGlobalOvlPanoramaId > uniqueId ) abort=true;' : '' ) .
604
 
605
+ // If the abort flag is risen, die gracefully
606
  'if(abort){
607
+ panDie();
 
 
 
 
608
  return;
609
+ }' .
 
 
 
 
 
 
610
 
611
+ 'requestAnimationFrame(render);
612
 
613
  if ( ! manualControl ) {
614
  longitude += deltaX;
625
  camera.lookAt(camera.target);' .
626
 
627
  // calling again render function
628
+ 'renderer.render(scene, camera);
629
+ }' .
630
 
631
+ // Mouse wheel
632
+ 'function onDivWheel(e) {
633
+ e.preventDefault();
634
+ deltaFov=-e.deltaY * ' . $zoomsensitivity . ' / 6;
635
+ doZoom(true);
636
  }' .
637
 
638
  // Zoom in/out
639
+ 'function doZoom(once){
640
  fov += deltaFov;
641
  fov = Math.max(20, Math.min(120, fov));
642
  camera = new THREE.PerspectiveCamera(fov, aspect, 1, 1000);
643
  camera.target = new THREE.Vector3(0, 0, 0);
644
+ if ( ! once && deltaFov != 0 ) {
645
+ setTimeout(function(){doZoom()}, 25);
646
+ }
647
+ if ( once ) {
648
+ deltaFov = 0;
649
+ }
650
  }' .
651
 
652
  // Previous
653
  'function panPrev(e) {
654
+ panDie();
655
  var stop;
656
  if ( ! stop ) {
657
  stop = true;
658
  $(this).css({opacity:0.5});
659
  $("#wppa-overlay-ic").css({display:"none"});
660
  $("#wppa-ovl-spin").show();
 
661
  wppaOvlShowPrev();
662
  }
663
  }' .
664
 
665
  // Next
666
  'function panNext(e) {
667
+ panDie();
668
  var stop;
669
  if ( ! stop ) {
670
  stop = true;
671
  $(this).css({opacity:0.5});
672
  $("#wppa-overlay-ic").css({display:"none"});
673
  $("#wppa-ovl-spin").show();
 
674
  wppaOvlShowNext();
675
  }
676
  }' .
683
  savedY = e.clientY;
684
  savedLongitude = longitude;
685
  savedLatitude = latitude;
 
 
686
  }' .
687
  'function onDivMouseMove(e){
688
  if(manualControl){
692
  }' .
693
  'function onDivMouseUp(e){
694
  manualControl = false;
695
+ deltaX=0;
 
696
  }' .
697
 
698
  // Horizontal movement by buttons
699
  'function onRightMouseDown(e) {
 
 
700
  deltaX=0.2;
 
701
  }' .
702
  'function onLeftMouseDown(e) {
 
 
703
  deltaX=-0.2;
 
704
  }' .
705
 
706
  // Vertical movement by buttons
707
  'function onUpMouseDown(e) {
 
 
708
  deltaY=0.2;
 
709
  }' .
710
  'function onDownMouseDown(e) {
 
 
711
  deltaY=-0.2;
 
712
  }' .
713
 
714
  // Zooming
715
  'function onZoomInMouseDown(e) {
 
 
716
  deltaFov=-0.4;
717
  doZoom();
 
718
  }' .
719
  'function onZoomOutMouseDown(e) {
 
 
720
  deltaFov=0.4;
721
  doZoom();
 
722
  }' .
723
 
724
+ // Release a button resets all deltas
725
  'function onButtonUp(e) {
 
726
  deltaX=0;
727
  deltaY=0;
728
  deltaFov=0;
 
 
729
  }' .
730
 
731
+ // Stop this panorama
732
+ 'function panDie() {
733
+ /*
734
+ wppaConsoleLog("Killing "+uniqueId);
735
+ abort = true;
736
+ scene = null;
737
+ camera = null;
738
+ sphere = null;
739
+ sphereMaterial = null;
740
+ sphereMesh = null;
741
+ */
742
+ }' .
743
 
744
+ // When a (responsive) resize is required, we resize the scene
745
+ 'function onResize(e){' .
746
 
747
  ( $lightbox ?
748
 
771
  topMarg,
772
  leftMarg,
773
  extraX = 8,
774
+ extraY = 8 + ' . ( $controls ? $icsiz + 10 : 0 ) . ' + 30;' .
775
 
776
  // Add borderwidth in case of mode == normal
777
  'if ( modeIsNormal ) {
811
  backgroundColor:"' . wppa_opt( 'ovl_theme' ) . '",
812
  padding:"' . wppa_opt( 'ovl_border_width' ) . 'px",
813
  borderRadius:"' . wppa_opt( 'ovl_border_radius' ) . 'px",
814
+ width:newWidth,
815
+ marginLeft:0
816
  });
817
  $( "#wppa-pctl-div-' . $mocc . '" ).css({marginLeft:0});' .
818
 
846
  }
847
  }
848
 
849
+ renderer.setSize(newWidth, newHeight);
850
+ doZoom(true);
 
 
851
  ' :
852
  '
853
  var containerwidth = $(div).parent().width();
854
  var newWidth = containerwidth;
855
  var newHeight = newWidth * ' . ( $height / $width ) . ';
856
+ renderer.setSize(newWidth, newHeight);
857
+ doZoom(true);'
 
 
858
  ) . '
859
  }' .
860
  '};
862
  </script>
863
  ' . ( $haslink ? '<a>' : '' ) . '';
864
 
 
865
  return wppa_pan_min( $result );
866
  }
867
 
869
  function wppa_get_flat_pan_html( $args ) {
870
 
871
  // Init
872
+ $defaults = array( 'id' => '0',
873
+ 'mocc' => '0',
874
+ 'width' => false,
875
+ 'height' => false,
876
+ 'haslink' => false,
877
+ 'lightbox' => 0,
878
+ 'controls' => true,
879
+ 'autorun' => '',
880
+ 'manual' => true,
881
+ 'autorunspeed' => '3',
882
+ 'zoomsensitivity' => '3',
883
  );
884
 
885
  $args = wp_parse_args( $args, $defaults );
886
 
887
+ $id = strval( intval ( $args['id'] ) );
888
+ $mocc = $args['mocc'] ? $args['mocc'] : wppa( 'mocc' );
889
+ $width = $args['width'] ? $args['width'] : wppa_get_container_width();
890
+ $height = $args['height'] ? $args['height'] : round( $width * wppa_get_photoy( $id ) / wppa_get_photox( $id ) );
891
+ $haslink = $args['haslink'];
892
+ $icsiz = wppa_opt( 'nav_icon_size_panorama' );
893
+ $iconsize = $icsiz . 'px;';
894
+ $lightbox = $args['lightbox'];
895
+ $controls = $args['controls'];
896
+ $autorun = $args['autorun'];
897
+ $manual = $args['manual'];
898
+ $autorunspeed = $args['autorunspeed'];
899
+ $zoomsensitivity = $args['zoomsensitivity'];
900
+
901
+ switch ( $autorun ) {
902
+ case 'right':
903
+ $deltaX = $autorunspeed / 3;
904
+ break;
905
+ case 'left':
906
+ $deltaX = - $autorunspeed / 3;
907
+ break;
908
+ default:
909
+ $deltaX = '0';
910
+ }
911
 
912
  $url = wppa_is_mobile() ? wppa_get_photo_url( $id ) : wppa_get_hires_url( $id );
913
 
922
  '<div
923
  id="wppa-pan-div-' . $mocc . '"
924
  class="wppa-pan-div wppa-pan-div-' . $mocc . '"
925
+ style="' . ( $controls ? 'margin-bottom:4px;' : '' ) . 'line-height:0;"
926
  >' .
927
 
928
  // The actual drawing area
929
  '<canvas
930
  id="wppa-pan-canvas-' . $mocc . '"
931
+ style="background-color:black;' . ( $manual ? 'cursor:grab;' : '' ) . '"
932
  width="' . $width . '"
933
  height="' . ( $width / 2 ) . '"
934
  ></canvas>' .
944
  </div>' .
945
 
946
  // The controlbar
947
+ ( $controls ?
948
  '<div
949
  id="wppa-pctl-div-' . $mocc . '"
950
  class="wppa-pctl-div wppa-pctl-div-' . $mocc . '"
1008
  :
1009
  ''
1010
  ) .
1011
+ '</div>'
1012
+ :
1013
+ '' ) .
1014
 
1015
  ( $lightbox ? '</div>' : '' ) .
1016
 
1033
  'var
1034
  $ = jQuery,
1035
  manualControl = false,
1036
+ zoomsensitivity = ' . $zoomsensitivity . ',
1037
+ deltaX = ' . $deltaX . ',
1038
  deltaY = 0,
1039
  deltaFactor = 1.0,
1040
+ autorun = ' . ( $autorun ? 'true' : 'false' ) . ',
1041
+ run = deltaX ? 5 : 4,
1042
  busy = false,
1043
  abort = false,
1044
  div = $("#wppa-pan-div-' . $mocc . '"),
1078
  zoomout.on("touchstart", onZoomOutMouseDown);
1079
  zoomout.on("touchend", onButtonUp);'
1080
  :
1081
+ ( $manual ?
1082
  'canvas.addEventListener("mousedown", onCanvasMouseDown);
1083
  canvas.addEventListener("mousemove", onCanvasMouseMove);
1084
  canvas.addEventListener("mouseup", onCanvasMouseUp);
1085
  canvas.addEventListener("mouseout", onCanvasMouseUp);
1086
+ document.getElementById("wppa-pan-canvas-' . $mocc . '").addEventListener("wheel", onDivWheel);
1087
  prevCanvas.addEventListener("mousedown", onCanvasMouseDown);
1088
  prevCanvas.addEventListener("mousemove", onPrevCanvasMouseMove);
1089
  prevCanvas.addEventListener("mouseup", onCanvasMouseUp);
1090
+ prevCanvas.addEventListener("mouseout", onCanvasMouseUp);' : '' ) .
1091
+ 'right.on("mousedown", onRightMouseDown);
1092
  right.on("mouseup", onButtonUp);
1093
  left.on("mousedown", onLeftMouseDown);
1094
  left.on("mouseup", onButtonUp);
1102
  zoomout.on("mouseup", onButtonUp);'
1103
  ) .
1104
 
1105
+ // Common event handlers
1106
+ ( $lightbox ? '
1107
+ $("#wppa-fulls-btn").on("click", function(){abort=true;});
1108
+ if (prev) {
1109
+ prev.on("click", panPrev);
1110
+ next.on("click", panNext);
1111
+ }' : '' ) .
1112
 
1113
  // Install Resize handler
1114
  '$(window).on("DOMContentLoaded load resize kickpanorama orientationchange",onResize' . $mocc . ');' .
1125
  // The render function
1126
  'function render(){' .
1127
 
 
 
1128
  ( $lightbox ? 'if (!wppaOvlOpen) abort=true;' :'' ) .
1129
  'if (abort) {
1130
  ctx = null;
1161
  'fromX = Math.max(0, Math.min(image' . $mocc . '.width-fromWidth, fromX));' .
1162
  'fromY = Math.max(0, Math.min(image' . $mocc . '.height-fromHeight, fromY));' .
1163
 
1164
+ // Check for turningpoint in case autrun
1165
+ 'if ( autorun ) {
1166
+ if ( fromX == 0 || fromX == ( image' . $mocc . '.width-fromWidth ) ) {
1167
+ deltaX *= -1;
1168
+ }
1169
+ }' .
1170
+
1171
  // Draw the image
1172
  'var ctx = canvas.getContext("2d");' .
1173
  'ctx.drawImage(image' . $mocc . ',fromX,fromY,fromWidth,fromHeight,0,0,canvas.width,canvas.height);' .
1186
 
1187
  // Re-render if needed
1188
  'if (run>0) {' .
1189
+ 'if (manualControl||autorun){setTimeout(function(){render()},25);}' .
1190
  'else {setTimeout(function(){render()},5);}' .
1191
  '}
1192
  if(run<5)run--;' .
1195
  // Previous
1196
  'function panPrev(e) {
1197
  e.preventDefault();
1198
+ abort = true;
1199
  var stop;
1200
  if ( ! stop ) {
1201
  stop = true;
1202
  $(this).css({opacity:0.5});
1203
  $("#wppa-overlay-ic").css({display:"none"});
1204
  $("#wppa-ovl-spin").show();
 
1205
  wppaOvlShowPrev();
1206
  }
1207
  }' .
1209
  // Next
1210
  'function panNext(e) {
1211
  e.preventDefault();
1212
+ abort = true;
1213
  var stop;
1214
  if ( ! stop ) {
1215
  stop = true;
1216
  $(this).css({opacity:0.5});
1217
  $("#wppa-overlay-ic").css({display:"none"});
1218
  $("#wppa-ovl-spin").show();
 
1219
  wppaOvlShowNext();
1220
  }
1221
  }' .
1246
  'function onZoomInMouseDown(e){
1247
  e.preventDefault();
1248
  run=5;deltaFactor=1.005;render();
 
1249
  }' .
1250
 
1251
  'function onZoomOutMouseDown(e){
1253
  run=5;deltaFactor=0.995;render();
1254
  }' .
1255
 
1256
+ // Mouse wheel
1257
+ 'function onDivWheel(e) {
1258
+ e.preventDefault();
1259
+ run=(autorun?5:4);
1260
+ deltaFactor = 1 + e.deltaY * zoomsensitivity / 1000;
1261
+ if ( ! autorun ) render();
1262
+ setTimeout(function(){deltaFactor = 1}, 25);
1263
+ }' .
1264
+
1265
  // When a navigation button is released, stop and reset all deltas
1266
  'function onButtonUp(e) {
1267
  e.preventDefault();
1275
 
1276
  'if (abort) return;' .
1277
 
 
 
1278
  ( $lightbox ?
1279
 
1280
  // Show image container
1305
  topMarg,
1306
  leftMarg,
1307
  extraX = 8,
1308
+ extraY = 24 + ' . ( $controls ? $icsiz : 0 ) . ' + contWidth * ' . $height . ' / ' . $width . ' + 40;' .
1309
 
1310
  // Add borderwidth in case of mode == normal
1311
  'if ( modeIsNormal ) {
1324
  topMarg = ( contHeight - newHeight - extraY ) / 2 + 20;' .
1325
  '}
1326
  else {
1327
+ newWidth = 2 * ( contHeight - ' . ( $controls ? $icsiz : 0 ) . ' - 24 - 40 ) / ( 1 + 2 * ' . $height . ' / ' . $width . ' );
1328
  newHeight = newWidth / 2;
1329
  topMarg = 20;' .
1330
 
1347
  backgroundColor:"' . wppa_opt( 'ovl_theme' ) . '",
1348
  padding:"' . wppa_opt( 'ovl_border_width' ) . 'px",
1349
  borderRadius:"' . wppa_opt( 'ovl_border_radius' ) . 'px",
1350
+ width:newWidth,
1351
+ marginLeft:0
1352
  });
1353
  $( "#wppa-pctl-div-' . $mocc . '" ).css({marginLeft:0});' .
1354
 
1387
  } */ '
1388
  }' .
1389
 
1390
+ 'run=(autorun?5:4);
1391
  render();
1392
 
1393
  ' :
1397
  'canvas.height = canvasHeight;' .
1398
  'prevCanvas.width = canvasWidth;' .
1399
  'prevCanvas.height = canvasWidth * ' . $height . ' / ' . $width . ';' .
1400
+ 'run=(autorun?5:4);' .
1401
  'render();'
1402
  ) .
1403
 
1413
  savedCanvasX = e.offsetX;
1414
  savedCanvasY = e.offsetY;
1415
 
 
 
 
1416
  run=5;
1417
  render();
1418
 
1420
 
1421
  'function onCanvasMouseMove(e){
1422
 
1423
+ var factor = canvas.width / fromWidth;
1424
 
1425
+ if ( manualControl ){
1426
 
1427
+ var x = ( savedCanvasX - e.offsetX ) / factor + fromX;
1428
+ var y = ( savedCanvasY - e.offsetY ) / factor + fromY;
1429
 
1430
+ if ( x > 0 && y > 0 && ( x + fromWidth ) < image' . $mocc . '.width && ( y + fromHeight ) < image' . $mocc . '.height ) {
1431
+
1432
+ fromX = x;
1433
+ fromY = y;
1434
 
1435
+ savedCanvasX = e.offsetX;
1436
+ savedCanvasY = e.offsetY;
1437
+ }
1438
+ }
1439
  }' .
1440
 
1441
  'function onPrevCanvasMouseMove(e){
1447
  e.offsetY > factor * fromY &&
1448
  e.offsetY < factor * ( fromY + fromHeight ) ) {
1449
 
1450
+ $(prevCanvas).css("cursor","grab");
1451
  }
1452
  else {
1453
+ $(prevCanvas).css("cursor","default");
1454
  }
1455
 
1456
  if ( manualControl && !busy ){
1472
 
1473
  'function onCanvasMouseUp(e){
1474
 
1475
+ if ( manualControl ) {
1476
+ run=4;
1477
+ manualControl = false;
1478
+ }
1479
  }' .
 
1480
  '}
1481
 
1482
  </script>
1487
 
1488
  // Minimize inine mixed html / js code
1489
  function wppa_pan_min( $result ) {
1490
+ // return $result; // debug
1491
+ // wppa_log('dbg','voor len='.strlen($result));
1492
 
1493
+ // Remove tabs
1494
  $result = str_replace( "\t", '', $result );
 
1495
 
1496
+ // Remove newlines
1497
+ $result = str_replace( array( "\r\n", "\n\r", "\n", "\r" ), ' ', $result );
1498
+
1499
+ // Trim operators
1500
  $result = str_replace( array( ' = ',' + ',' * ',' / ' ), array( '=','+','*','/' ), $result );
1501
+
1502
+ // Replace multiple spaces by one
1503
  $olen = 0;
1504
  $nlen = strlen( $result );
1505
  do {
1506
  $olen = $nlen;
1507
+ $result = str_replace( ' ', ' ', $result );
1508
  $nlen = strlen( $result );
1509
  } while ( $nlen != $olen );
1510
+
1511
+ // Trim , ; and !
1512
+ $result = str_replace( array( ', ', '; ', '! ' ), array( ',', ';', '!' ), $result );
1513
+
1514
+ // Trim braces
1515
+ // $result = str_replace( array( ' ( ', '( ', ' (' ), '(', $result ); // Causes undefined error
1516
+ $result = str_replace( ' ( ', '(', $result );
1517
+ $result = str_replace( '( ', '(', $result );
1518
+ // $result = str_replace( ' (', '(', $result ); // Causes undefined error
1519
+ $result = str_replace( array( ' ) ', ') ', ' )' ), ')', $result );
1520
+
1521
+ // Remove space between html tags
1522
  $result = str_replace( '> <', '><', $result );
1523
+
1524
+ // wppa_log('dbg',' na len='.strlen($result));
1525
  return $result;
1526
  }
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 6.9.08
7
  *
8
  */
9
 
@@ -794,26 +794,26 @@ echo '<input type="button" vaue="Click me" onclick="wppaTimedConfirm( \'My Text\
794
  $help .= '\n'.esc_js(__('The use of a non-default value is particularly usefull when you make use of lightbox functionality.', 'wp-photo-album-plus'));
795
  $slug = 'wppa_resize_to';
796
  $px = __('pixels', 'wp-photo-album-plus');
797
- $options = array( __('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
798
- '640 x 480 '.$px,
799
- '800 x 600 '.$px,
800
- '1024 x 768 '.$px,
801
- '1200 x 900 '.$px,
802
- '1280 x 960 '.$px,
803
- '1366 x 768 '.$px,
804
  '1920 x 1080 '.$px,
805
  '2400 x 1200 '.$px,
806
  '3600 x 1800 '.$px,
807
  '4800 x 2400 '.$px,
808
  '6000 x 3000 '.$px,
809
  );
810
- $values = array( '0',
811
- '640x480',
812
- '800x600',
813
- '1024x768',
814
- '1200x900',
815
- '1280x960',
816
- '1366x768',
817
  '1920x1080',
818
  '2400x1200',
819
  '3600x1800',
@@ -1172,7 +1172,7 @@ echo '<input type="button" vaue="Click me" onclick="wppaTimedConfirm( \'My Text\
1172
  wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
1173
 
1174
  $name = __('Thumbnail area max size', 'wp-photo-album-plus');
1175
- $desc = __('The max height of the thumbnais area', 'wp-photo-album-plus');
1176
  $help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
1177
  $slug = 'wppa_thumb_area_size';
1178
  $html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
@@ -4088,7 +4088,8 @@ echo '<input type="button" vaue="Click me" onclick="wppaTimedConfirm( \'My Text\
4088
  $desc = __('Enable panorama photo support.', 'wp-photo-album-plus');
4089
  $help = '';
4090
  $slug = 'wppa_enable_panorama';
4091
- $html = wppa_checkbox($slug);
 
4092
  $clas = '';
4093
  $tags = 'system';
4094
  wppa_setting($slug, '24.2', $name, $desc, $html, $help, $clas, $tags);
@@ -5033,7 +5034,6 @@ echo '<input type="button" vaue="Click me" onclick="wppaTimedConfirm( \'My Text\
5033
  $tags = 'comment,mail';
5034
  wppa_setting($slug, '5.4', $name, $desc, $html, $help, $clas, $tags);
5035
 
5036
-
5037
  $name = __('Comment ntfy added', 'wp-photo-album-plus');
5038
  $desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
5039
  $help = '';
@@ -5230,6 +5230,91 @@ echo '<input type="button" vaue="Click me" onclick="wppaTimedConfirm( \'My Text\
5230
  $tags = 'lightbox,layout';
5231
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
5232
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5233
  ?>
5234
  </tbody>
5235
  <tfoot style="font-weight: bold;" class="wppa_table_4">
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 6.9.11
7
  *
8
  */
9
 
794
  $help .= '\n'.esc_js(__('The use of a non-default value is particularly usefull when you make use of lightbox functionality.', 'wp-photo-album-plus'));
795
  $slug = 'wppa_resize_to';
796
  $px = __('pixels', 'wp-photo-album-plus');
797
+ $options = array( __('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
798
+ '640 x 480 '.$px,
799
+ '800 x 600 '.$px,
800
+ '1024 x 768 '.$px,
801
+ '1200 x 900 '.$px,
802
+ '1280 x 960 '.$px,
803
+ '1366 x 768 '.$px,
804
  '1920 x 1080 '.$px,
805
  '2400 x 1200 '.$px,
806
  '3600 x 1800 '.$px,
807
  '4800 x 2400 '.$px,
808
  '6000 x 3000 '.$px,
809
  );
810
+ $values = array( '0',
811
+ '640x480',
812
+ '800x600',
813
+ '1024x768',
814
+ '1200x900',
815
+ '1280x960',
816
+ '1366x768',
817
  '1920x1080',
818
  '2400x1200',
819
  '3600x1800',
1172
  wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
1173
 
1174
  $name = __('Thumbnail area max size', 'wp-photo-album-plus');
1175
+ $desc = __('The max height of the thumbnail area', 'wp-photo-album-plus');
1176
  $help = __('A number > 1 is pixelsize, a number < 1 is fraction of the viewport height, 0 is no limit', 'wp-photo-album-plus');
1177
  $slug = 'wppa_thumb_area_size';
1178
  $html = wppa_input($slug, '40px', '', __('pixels / fraction', 'wp-photo-album-plus'));
4088
  $desc = __('Enable panorama photo support.', 'wp-photo-album-plus');
4089
  $help = '';
4090
  $slug = 'wppa_enable_panorama';
4091
+ $onch = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
4092
+ $html = wppa_checkbox($slug, $onch);
4093
  $clas = '';
4094
  $tags = 'system';
4095
  wppa_setting($slug, '24.2', $name, $desc, $html, $help, $clas, $tags);
5034
  $tags = 'comment,mail';
5035
  wppa_setting($slug, '5.4', $name, $desc, $html, $help, $clas, $tags);
5036
 
 
5037
  $name = __('Comment ntfy added', 'wp-photo-album-plus');
5038
  $desc = __('Show "Comment added" after successfull adding a comment.', 'wp-photo-album-plus');
5039
  $help = '';
5230
  $tags = 'lightbox,layout';
5231
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
5232
  }
5233
+
5234
+ if ( wppa_switch( 'enable_panorama' ) ) {
5235
+
5236
+ wppa_setting_subheader( 'H', '1', __( 'Panorama related settings. These settings have effect only when Table IV-A24.2 is ticked' , 'wp-photo-album-plus') );
5237
+
5238
+ $name = __( 'Control bar', 'wp-photo-album-plus' );
5239
+ $desc = __( 'Select when the control bar must be displayed', 'wp-photo-album-plus' );
5240
+ $help = '';
5241
+ $slug = 'wppa_panorama_control';
5242
+ $opts = array( __( 'Always', 'wp-photo-album-plus' ),
5243
+ __( 'On mobile only', 'wp-photo-album-plus' ),
5244
+ );
5245
+ $vals = array( 'all',
5246
+ 'mobile',
5247
+ );
5248
+ $html = wppa_select($slug, $opts, $vals);
5249
+ $clas = '';
5250
+ $tags = '';
5251
+ wppa_setting( $slug, '1', $name, $desc, $html, $help, $clas, $tags );
5252
+
5253
+ $name = __( 'Manual movement', 'wp-photo-album-plus' );
5254
+ $desc = __( 'Select if movement by drag and drop is allowed', 'wp-photo-album-plus' );
5255
+ $help = '';
5256
+ $slug = 'wppa_panorama_manual';
5257
+ $opts = array( __( 'Yes', 'wp-photo-album-plus' ),
5258
+ __( 'No', 'wp-photo-album-plus' ),
5259
+ );
5260
+ $vals = array( 'all',
5261
+ 'none',
5262
+ );
5263
+ $html = wppa_select($slug, $opts, $vals);
5264
+ $clas = '';
5265
+ $tags = '';
5266
+ wppa_setting( $slug, '2', $name, $desc, $html, $help, $clas, $tags );
5267
+
5268
+ $name = __( 'Auto panning', 'wp-photo-album-plus' );
5269
+ $desc = __( 'Start the display panning', 'wp-photo-album-plus' );
5270
+ $help = '';
5271
+ $slug = 'wppa_panorama_autorun';
5272
+ $opts = array( __( 'no', 'wp-photo-album-plus' ),
5273
+ __( 'left', 'wp-photo-album-plus' ),
5274
+ __( 'right', 'wp-photo-album-plus' ),
5275
+ );
5276
+ $vals = array( 'none',
5277
+ 'left',
5278
+ 'right',
5279
+ );
5280
+ $html = wppa_select($slug, $opts, $vals);
5281
+ $clas = '';
5282
+ $tags = '';
5283
+ wppa_setting( $slug, '3', $name, $desc, $html, $help, $clas, $tags );
5284
+
5285
+ $name = __( 'Auto panning speed', 'wp-photo-album-plus' );
5286
+ $desc = __( 'The speed of the auto panning movement', 'wp-photo-album-plus' );
5287
+ $help = '';
5288
+ $slug = 'wppa_panorama_autorun_speed';
5289
+ $opts = array( __( 'very slow', 'wp-photo-album-plus' ),
5290
+ __( 'slow', 'wp-photo-album-plus' ),
5291
+ __( 'normal', 'wp-photo-album-plus' ),
5292
+ __( 'fast', 'wp-photo-album-plus' ),
5293
+ __( 'very fast', 'wp-photo-album-plus' ),
5294
+ );
5295
+ $vals = array( '1', '2', '3', '5', '8' );
5296
+ $html = wppa_select($slug, $opts, $vals);
5297
+ $clas = '';
5298
+ $tags = '';
5299
+ wppa_setting( $slug, '3.1', $name, $desc, $html, $help, $clas, $tags );
5300
+
5301
+ $name = __( 'Zoom sensitivity', 'wp-photo-album-plus' );
5302
+ $desc = __( 'The speed of zooming by mouse wheel', 'wp-photo-album-plus' );
5303
+ $help = '';
5304
+ $slug = 'wppa_panorama_wheel_sensitivity';
5305
+ $opts = array( __( 'very low', 'wp-photo-album-plus' ),
5306
+ __( 'low', 'wp-photo-album-plus' ),
5307
+ __( 'normal', 'wp-photo-album-plus' ),
5308
+ __( 'high', 'wp-photo-album-plus' ),
5309
+ __( 'very high', 'wp-photo-album-plus' ),
5310
+ );
5311
+ $vals = array( '1', '2', '3', '5', '8' );
5312
+ $html = wppa_select($slug, $opts, $vals);
5313
+ $clas = '';
5314
+ $tags = '';
5315
+ wppa_setting( $slug, '3.1', $name, $desc, $html, $help, $clas, $tags );
5316
+
5317
+ }
5318
  ?>
5319
  </tbody>
5320
  <tfoot style="font-weight: bold;" class="wppa_table_4">
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 6.9.08
7
  *
8
  */
9
 
@@ -1315,6 +1315,13 @@ cursorborder:'2px solid transparent',";
1315
  'wppa_ovl_mode_initial' => 'normal',
1316
  'wppa_ovl_mode_initial_mob' => 'padded',
1317
 
 
 
 
 
 
 
 
1318
  // Table V: Fonts
1319
  'wppa_fontfamily_title' => '',
1320
  'wppa_fontsize_title' => '',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 6.9.11
7
  *
8
  */
9
 
1315
  'wppa_ovl_mode_initial' => 'normal',
1316
  'wppa_ovl_mode_initial_mob' => 'padded',
1317
 
1318
+ // H Panorama
1319
+ 'wppa_panorama_control' => 'all',
1320
+ 'wppa_panorama_manual' => 'all',
1321
+ 'wppa_panorama_autorun' => 'none',
1322
+ 'wppa_panorama_autorun_speed' => '3',
1323
+ 'wppa_panorama_wheel_sensitivity' => '3',
1324
+
1325
  // Table V: Fonts
1326
  'wppa_fontfamily_title' => '',
1327
  'wppa_fontsize_title' => '',
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: 6.9.10.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/
@@ -22,8 +22,8 @@ global $wpdb;
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
- global $wppa_revno; $wppa_revno = '6910'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '6-9-10-005'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );
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: 6.9.11.011
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/
22
  global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
+ global $wppa_revno; $wppa_revno = '6911'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '6-9-11-011'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );