WP Photo Album Plus - Version 7.6.05.009

Version Description

= 7.6.05 =

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

Release Info

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

Code changes from version 7.6.05.008 to 7.6.05.009

js/wppa-all.js CHANGED
@@ -15,4 +15,4 @@ var wppaJsTouchVersion="7.5.03",wppaTriggerElementID=null,wppaFingerCount=0,wppa
15
  // wppa-zoom
16
  var wppaJsZoomVersion="7.6.05.002";function wppaDoZoomPan(o){var m=jQuery,e=l(o);if(!e.initialized&&!e.abort){if(e.isLightbox&&m("#wppa-ovl-spin").show(),!e.image.complete)return wppaConsoleLog("Loading image "+o),void setTimeout(function(){wppaDoZoomPan(o)},200);wppaConsoleLog("Loading image "+o+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),e.manual=!1,e.deltaX=0,e.deltaY=0,e.deltaFactor=1,e.busy=!1,e.div=m("#wppa-pan-div-"+e.itemId),e.canvas=document.getElementById("wppa-pan-canvas-"+e.itemId),e.left=m("#wppa-pctl-left-"+e.itemId),e.right=m("#wppa-pctl-right-"+e.itemId),e.up=m("#wppa-pctl-up-"+e.itemId),e.down=m("#wppa-pctl-down-"+e.itemId),e.zoomin=m("#wppa-pctl-zoomin-"+e.itemId),e.zoomout=m("#wppa-pctl-zoomout-"+e.itemId),e.prev=m("#wppa-pctl-prev-"+e.itemId),e.next=m("#wppa-pctl-next-"+e.itemId),e.exit=m("#wppa-exit-btn-2"),e.canvasWidth=e.width,e.canvasHeight=e.height,e.savedCanvasX=0,e.savedCanvasY=0,e.fromHeight=e.image.height,e.fromWidth=e.image.width,e.imageRatio=e.image.width/e.image.height,e.fromX=0,e.fromY=0,e.centerX=e.fromX+e.fromWidth/2,e.centerY=e.fromY+e.fromHeight/2,e.ctx=null,e.buttondown=!1,e.enableManual=!0,e.ctrlbarUpdate=!0,e.pause=!1,e.time=0,wppaIsMobile?(e.right.on("touchstart",function(a){n(o)}),e.right.on("touchend",function(a){p(o)}),e.left.on("touchstart",function(a){i(o)}),e.left.on("touchend",function(a){p(o)}),e.up.on("touchstart",function(a){s(o)}),e.up.on("touchend",function(a){p(o)}),e.down.on("touchstart",function(a){r(o)}),e.down.on("touchend",function(a){p(o)}),e.zoomin.on("touchstart",function(a){c(o)}),e.zoomin.on("touchend",function(a){p(o)}),e.zoomout.on("touchstart",function(a){u(o)}),e.zoomout.on("touchend",function(a){p(o)}),e.canvas.addEventListener("touchstart",function(a){f(o,a)}),e.canvas.addEventListener("touchmove",function(a){g(o,a)}),e.canvas.addEventListener("touchend",function(a){w(o)})):(e.canvas.addEventListener("mousedown",function(a){f(o,a)}),e.canvas.addEventListener("mousemove",function(a){g(o,a)}),e.canvas.addEventListener("mouseup",function(a){w(o)}),e.canvas.addEventListener("mouseleave",function(a){(e=l(o)).manual&&l(o,{pause:!0})}),e.canvas.addEventListener("mouseenter",function(a){var t;l(t=o,{pause:!1}).manual&&h(t)}),document.getElementById("wppa-pan-canvas-"+e.itemId).addEventListener("wheel",function(a){var t,n;t=o,(n=a).preventDefault(),n.stopPropagation(),e=l(t),l(t,{deltaFactor:1+n.deltaY*e.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),h(t),setTimeout(function(){l(t,{deltaFactor:1})},25)}),e.right.on("mousedown",function(a){n(o)}),e.right.on("mouseup",function(a){p(o)}),e.left.on("mousedown",function(a){i(o)}),e.left.on("mouseup",function(a){p(o)}),e.up.on("mousedown",function(a){s(o)}),e.up.on("mouseup",function(a){p(o)}),e.down.on("mousedown",function(a){r(o)}),e.down.on("mouseup",function(a){p(o)}),e.zoomin.off("mousedown"),e.zoomin.on("mousedown",function(a){c(o)}),e.zoomin.off("mouseup"),e.zoomin.on("mouseup",function(a){p(o)}),e.zoomout.on("mousedown",function(a){u(o)}),e.zoomout.on("mouseup",function(a){p(o)})),e.isLightbox&&(m("body").on("quitimage",function(a){var t;t=o,wppaConsoleLog("Zoom Quit Image"),e=l(t,{abort:!0}),m(e.canvas).hide(),m("#wppa-pctl-div-"+e.itemId).hide()}),m("#wppa-pctl-div-"+e.itemId).on("click",function(a){wppaKillEvent(a)})),e.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(a){t(o)}),t(o),e.initialized=!0,l(o,e),m("#wppa-ovl-spin").hide()}function h(a){var t,n,o,e,i,s=l(a);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+a):(l(a,{time:L()}),wppaConsoleLog("Zoom render "+a),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(a,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,(s=l(a,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,t=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<t&&1!=s.deltaFactor&&(wppaIsFs()||t<=s.image.height)&&(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(t-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=t)),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&t>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,l(a,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){h(a)},10),s.pause&&l(a,{pause:!1}))))}function t(a){var t,n,o,e,i,s,r,c,d,u=l(a);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,t=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&t&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!t&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&t&&(i=(s=screen.height)*u.imageRatio,r=0),n||t||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({marginTop:r}),m("#wppa-overlay-ic").css({marginTop:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),t?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(a,u),setTimeout(function(){h(a)},250))}function n(a){var t=l(a),n=t.image.naturalWidth/t.canvas.width;n<1.5&&(n=1.5),l(a,{deltaX:n*=1.5,buttondown:!0,manual:!1}),h(a)}function i(a){var t=l(a),n=t.image.naturalWidth/t.canvas.width;n<1.5&&(n=1.5),l(a,{deltaX:-(n*=1.5),buttondown:!0,manual:!1}),h(a)}function s(a){var t=l(a),n=t.image.naturalHeight/t.canvas.height;n<1.5&&(n=1.5),l(a,{deltaY:-(n*=1.5),buttondown:!0,manual:!1}),h(a)}function r(a){var t=l(a),n=t.image.naturalHeight/t.canvas.height;n<1.5&&(n=1.5),l(a,{deltaY:n*=1.5,buttondown:!0,manual:!1}),h(a)}function c(a){l(a,{deltaFactor:1.005,buttondown:!0,manual:!1}),h(a)}function u(a){l(a,{deltaFactor:.995,buttondown:!0,manual:!1}),h(a)}function p(a){l(a,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(a,t){var n=l(a),o=v(t).X,e=v(t).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(a,{manual:!0,savedCanvasX:o=b(a,t).X,savedCanvasY:e=b(a,t).Y,buttondown:!1}),h(a))}function g(a,t){var n,o,e,i=l(a),s=b(a,t).X,r=b(a,t).Y;i.manual&&(n=i.canvas.width/i.fromWidth,o=(i.savedCanvasX-s)/n+i.fromX,e=(i.savedCanvasY-r)/n+i.fromY,0<o&&0<e&&o+i.fromWidth<i.image.width&&e+i.fromHeight<i.image.height&&l(a,{fromX:o,fromY:e,savedCanvasX:s,savedCanvasY:r}))}function w(a){l(a,{manual:!1})}function l(a,t){if(!wppaZoomData[a])return!1;if(t)for(var n in t)wppaZoomData[a][n]=t[n];return wppaZoomData[a]}function v(a){var t,n;return n=wppaIsMobile?(t=a.touches[0].screenX,a.touches[0].screenY):(t=a.screenX,a.screenY),{X:t,Y:n}}function b(a,t){var n,o,e;return e=wppaIsMobile?(n=l(a),o=t.touches[0].screenX-n.fsMaskLeft,t.touches[0].screenY-n.fsMaskTop):(o=t.offsetX,t.offsetY),{X:o,Y:e}}function L(){return d=new Date,d.getTime()}}
17
  // wppa-spheric
18
- var wppaJsSphericVersion="7.6.05.007";function wppaDoSphericPan(a){var w=jQuery,c=v(a);function l(n){var e=v(n),t=wppaIsElementInViewport(w("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25))if(t){if(v(n,{time:g()}),e.isLightbox)(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0);else if(!wppaIsElementInViewport(w("#wppa-pan-div-"+n)))return void setTimeout(function(){l(n)},200);e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),w("#wppa-ovl-spin").hide(),e.manCtrl&&0,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){l(n)},25)),v(n,e))}else setTimeout(function(){l(n)},200)}function e(n){var e=!wppaIsFs();if(c=v(n)){if(c.isLightbox){if(!wppaOvlOpen)return;w("#wppa-overlay-ic").css("display",""),w("#wppa-overlay-ic").css("width","");var t,a,o,p=(e=!wppaIsFs())?(a=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(a=screen.width,screen.height),i=8,r=8+(c.controls?c.icsize+10:0)+30;e&&(i+=2*c.borderWidth,r+=2*c.borderWidth),t=(a-i)/2+r<p,o=e?t?(p-(s=(u=a-i)/2)-r)/2+20:(u=2*(s=p-r),20):(u=screen.width,s=screen.height,0),c.aspect=u/s,w("#wppa-ovl-pan-container").css({top:o}),w("#wppa-overlay-ic").css({top:0}),e?(w("#wppa-ovl-pan-container").css({backgroundColor:c.backgroundColor,padding:c.padding+"px",borderRadius:c.borderRadius+"px",width:u,marginLeft:0}),t?w("#wppa-overlay-ic").css({left:4,marginLeft:0}):w("#wppa-overlay-ic").css({left:(a-u)/2,marginLeft:0})):(w("#wppa-overlay-ic").css({marginLeft:0}),w("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:u,left:(a-u)/2})),c.wppaRenderer.setSize(u,s)}else{var u=w(c.div).parent().width(),s=parseInt(u/2);c.wppaRenderer.setSize(u,s)}c.width=u,c.height=s,v(n,c),c.timer=setTimeout(function(){l(n)},250)}}function t(n,e){e.preventDefault(),e.stopPropagation(),c=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),wppaIsMobile?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:c.lon,sLat:c.lat}),l(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(c=v(n)).manCtrl&&(wppaIsMobile?v(n,{lon:.1*(c.sX-e.touches[0].clientX)+c.sLon,lat:.1*(e.touches[0].clientY-c.sY)+c.sLat,pause:!1}):v(n,{lon:.1*(c.sX-e.clientX)+c.sLon,lat:.1*(e.clientY-c.sY)+c.sLat,pause:!1}),l(n))}function p(n){v(n,{manCtrl:!1})}function i(n){c=v(n),v(n,{dFov:-.4*c.mFakt,butDown:!0}),l(n)}function r(n){c=v(n),v(n,{dFov:.4*c.mFakt,butDown:!0}),l(n)}function u(n){c=v(n),v(n,{dX:.2*c.mFakt,butDown:!0}),l(n)}function s(n){c=v(n),v(n,{dX:-.2*c.mFakt,butDown:!0}),l(n)}function h(n){c=v(n),v(n,{dY:.2*c.mFakt,butDown:!0}),l(n)}function m(n){c=v(n),v(n,{dY:-.2*c.mFakt,butDown:!0}),l(n)}function f(n){c=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}c.initialized||c.abort||(c.isLightbox||wppaIsElementInViewport(w("#wppa-pan-div-"+a))?(c.wppaRenderer&&(c.wppaRenderer.state.reset(),c.wppaSphere.dispose(),c.wppaSphereMaterial.dispose(),c.texture.dispose()),c.isLightbox&&w("#wppa-ovl-spin").show(),c.image.complete?(w(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),c.manCtrl=!1,c.butDown=!1,c.lon=180,c.lat=0,c.dFov=0,c.abort=!1,c.aspect=2,c.div=w("#wppa-pan-div-"+a),c.left=w("#wppa-pctl-left-"+a),c.right=w("#wppa-pctl-right-"+a),c.up=w("#wppa-pctl-up-"+a),c.down=w("#wppa-pctl-down-"+a),c.zoomin=w("#wppa-pctl-zoomin-"+a),c.zoomout=w("#wppa-pctl-zoomout-"+a),c.prev=w("#wppa-pctl-prev-"+a),c.next=w("#wppa-pctl-next-"+a),c.pause=!1,c.mFakt=wppaIsMobile?"2":"1",c.time=0,c.isLightbox&&(wppaGlobalOvlPanoramaId++,c.uId=wppaGlobalOvlPanoramaId),w(c.div).html(""),c.wppaRenderer=new THREE.WebGLRenderer,c.wppaRenderer.setSize(c.width,c.height),w(c.div).append(c.wppaRenderer.domElement),c.wppaScene=new THREE.Scene,c.wppaSphere=new THREE.SphereGeometry(100,100,40),c.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),c.texture=(new THREE.TextureLoader).load(c.url),c.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:c.texture}),c.wppaSphereMesh=new THREE.Mesh(c.wppaSphere,c.wppaSphereMaterial),c.wppaScene.add(c.wppaSphereMesh),wppaIsMobile?(c.right.on("touchstart",function(n){u(a)}),c.right.on("touchend",function(n){f(a)}),c.left.on("touchstart",function(n){s(a)}),c.left.on("touchend",function(n){f(a)}),c.up.on("touchstart",function(n){h(a)}),c.up.on("touchend",function(n){f(a)}),c.down.on("touchstart",function(n){m(a)}),c.down.on("touchend",function(n){f(a)}),c.zoomin.on("touchstart",function(n){i(a)}),c.zoomin.on("touchend",function(n){f(a)}),c.zoomout.on("touchstart",function(n){r(a)}),c.zoomout.on("touchend",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchstart",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchmove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchend",function(n){p(a)}))):(c.right.on("mousedown",function(n){u(a)}),c.right.on("mouseup",function(n){f(a)}),c.left.on("mousedown",function(n){s(a)}),c.left.on("mouseup",function(n){f(a)}),c.up.on("mousedown",function(n){h(a)}),c.up.on("mouseup",function(n){f(a)}),c.down.on("mousedown",function(n){m(a)}),c.down.on("mouseup",function(n){f(a)}),c.zoomin.off("mousedown"),c.zoomin.on("mousedown",function(n){i(a)}),c.zoomin.off("mouseup"),c.zoomin.on("mouseup",function(n){f(a)}),c.zoomout.on("mousedown",function(n){r(a)}),c.zoomout.on("mouseup",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas").on("mousedown",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mousemove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mouseup",function(n){p(a)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("wheel",function(n){var e,t;e=a,(t=n).preventDefault(),t.stopPropagation(),c=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-t.deltaY*c.zoomsensitivity/(wppaIsChrome?60:6)}),l(e),setTimeout(function(){v(e,{dFov:0})},25)}))),c.isLightbox&&(w("body").on("quitimage",function(n){var e;c=v(e=a,{abort:!0,autorun:!1}),clearTimeout(c.timer),w("#wppa-pan-div-"+e+" canvas").hide(),w("#wppa-pctl-div-"+e).hide()}),w("#wppa-pctl-div-"+a).on("click",function(n){wppaKillEvent(n)})),v(a,c),c.isLightbox?(w(window).off("wpparesizeend",wppaOvlShowSame),w(window).on("wpparesizeend",wppaOvlShowSame)):w(window).on("wpparesizeend",function(n){e(a)}),w(document).on("tabbychange",function(n){var e;e=a,c.wppaRenderer.state.reset(),c=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200)}),e(a)):setTimeout(function(){wppaDoSphericPan(a)},400)):setTimeout(function(){wppaDoSphericPan(a)},400))}
15
  // wppa-zoom
16
  var wppaJsZoomVersion="7.6.05.002";function wppaDoZoomPan(o){var m=jQuery,e=l(o);if(!e.initialized&&!e.abort){if(e.isLightbox&&m("#wppa-ovl-spin").show(),!e.image.complete)return wppaConsoleLog("Loading image "+o),void setTimeout(function(){wppaDoZoomPan(o)},200);wppaConsoleLog("Loading image "+o+" complete"),m(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),e.manual=!1,e.deltaX=0,e.deltaY=0,e.deltaFactor=1,e.busy=!1,e.div=m("#wppa-pan-div-"+e.itemId),e.canvas=document.getElementById("wppa-pan-canvas-"+e.itemId),e.left=m("#wppa-pctl-left-"+e.itemId),e.right=m("#wppa-pctl-right-"+e.itemId),e.up=m("#wppa-pctl-up-"+e.itemId),e.down=m("#wppa-pctl-down-"+e.itemId),e.zoomin=m("#wppa-pctl-zoomin-"+e.itemId),e.zoomout=m("#wppa-pctl-zoomout-"+e.itemId),e.prev=m("#wppa-pctl-prev-"+e.itemId),e.next=m("#wppa-pctl-next-"+e.itemId),e.exit=m("#wppa-exit-btn-2"),e.canvasWidth=e.width,e.canvasHeight=e.height,e.savedCanvasX=0,e.savedCanvasY=0,e.fromHeight=e.image.height,e.fromWidth=e.image.width,e.imageRatio=e.image.width/e.image.height,e.fromX=0,e.fromY=0,e.centerX=e.fromX+e.fromWidth/2,e.centerY=e.fromY+e.fromHeight/2,e.ctx=null,e.buttondown=!1,e.enableManual=!0,e.ctrlbarUpdate=!0,e.pause=!1,e.time=0,wppaIsMobile?(e.right.on("touchstart",function(a){n(o)}),e.right.on("touchend",function(a){p(o)}),e.left.on("touchstart",function(a){i(o)}),e.left.on("touchend",function(a){p(o)}),e.up.on("touchstart",function(a){s(o)}),e.up.on("touchend",function(a){p(o)}),e.down.on("touchstart",function(a){r(o)}),e.down.on("touchend",function(a){p(o)}),e.zoomin.on("touchstart",function(a){c(o)}),e.zoomin.on("touchend",function(a){p(o)}),e.zoomout.on("touchstart",function(a){u(o)}),e.zoomout.on("touchend",function(a){p(o)}),e.canvas.addEventListener("touchstart",function(a){f(o,a)}),e.canvas.addEventListener("touchmove",function(a){g(o,a)}),e.canvas.addEventListener("touchend",function(a){w(o)})):(e.canvas.addEventListener("mousedown",function(a){f(o,a)}),e.canvas.addEventListener("mousemove",function(a){g(o,a)}),e.canvas.addEventListener("mouseup",function(a){w(o)}),e.canvas.addEventListener("mouseleave",function(a){(e=l(o)).manual&&l(o,{pause:!0})}),e.canvas.addEventListener("mouseenter",function(a){var t;l(t=o,{pause:!1}).manual&&h(t)}),document.getElementById("wppa-pan-canvas-"+e.itemId).addEventListener("wheel",function(a){var t,n;t=o,(n=a).preventDefault(),n.stopPropagation(),e=l(t),l(t,{deltaFactor:1+n.deltaY*e.zoomsensitivity/(wppaIsChrome?1e4:1e3),manual:!1,burrondown:!1}),h(t),setTimeout(function(){l(t,{deltaFactor:1})},25)}),e.right.on("mousedown",function(a){n(o)}),e.right.on("mouseup",function(a){p(o)}),e.left.on("mousedown",function(a){i(o)}),e.left.on("mouseup",function(a){p(o)}),e.up.on("mousedown",function(a){s(o)}),e.up.on("mouseup",function(a){p(o)}),e.down.on("mousedown",function(a){r(o)}),e.down.on("mouseup",function(a){p(o)}),e.zoomin.off("mousedown"),e.zoomin.on("mousedown",function(a){c(o)}),e.zoomin.off("mouseup"),e.zoomin.on("mouseup",function(a){p(o)}),e.zoomout.on("mousedown",function(a){u(o)}),e.zoomout.on("mouseup",function(a){p(o)})),e.isLightbox&&(m("body").on("quitimage",function(a){var t;t=o,wppaConsoleLog("Zoom Quit Image"),e=l(t,{abort:!0}),m(e.canvas).hide(),m("#wppa-pctl-div-"+e.itemId).hide()}),m("#wppa-pctl-div-"+e.itemId).on("click",function(a){wppaKillEvent(a)})),e.isLightbox?(m(window).off("resize",wppaOvlShowSame),m(window).on("resize",wppaOvlShowSame)):m(window).on("resize",function(a){t(o)}),t(o),e.initialized=!0,l(o,e),m("#wppa-ovl-spin").hide()}function h(a){var t,n,o,e,i,s=l(a);s.canvas&&(L()<s.time+10?wppaConsoleLog("Skipped render "+a):(l(a,{time:L()}),wppaConsoleLog("Zoom render "+a),(s.isLightbox&&!wppaOvlOpen||!s.isLightbox&&wppaOvlOpen)&&(s=l(0,{abort:!0})),s.abort?l(a,{manual:!1,buttondown:!1,pause:!1,ctx:null}):s.busy||(wppaDebugCounter++,(s=l(a,{busy:!0})).manual||(s.fromX+=s.deltaX,s.fromY+=s.deltaY,t=s.fromHeight/s.deltaFactor,n=s.fromWidth/s.deltaFactor,50<t&&1!=s.deltaFactor&&(wppaIsFs()||t<=s.image.height)&&(s.fromX-=(n-s.fromWidth)/2,s.fromY-=(t-s.fromHeight)/2,s.fromWidth=n,s.fromHeight=t)),s.fromX=Math.max(0,Math.min(s.image.width-s.fromWidth,s.fromX)),s.fromY=Math.max(0,Math.min(s.image.height-s.fromHeight,s.fromY)),o=screen.width/screen.height,e=(1-s.image.width/s.fromWidth)*s.canvas.width/2,i=(1-s.image.height/s.fromHeight)*s.canvas.height/2,s.ctx=s.canvas.getContext("2d"),o>s.imageRatio&&t>s.image.height&&wppaIsFs()||o<=s.imageRatio&&n>s.image.width&&wppaIsFs()?(s.enableManual=!1,s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height),s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,e,i,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"default"})):(s.enableManual=!0,s.ctx.drawImage(s.image,s.fromX,s.fromY,s.fromWidth,s.fromHeight,0,0,s.canvas.width,s.canvas.height),jQuery(s.canvas).css({cursor:"grab"})),wppaIsFs()?(s.fsMaskTop=i-(s.canvas.height-screen.height)/2,s.fsMaskLeft=e-(s.canvas.width-screen.width)/2,s.fsMaskBottom=screen.height-s.fsMaskTop,s.fsMaskRight=screen.width-s.fsMaskLeft):(s.fsMaskTop=0,s.fsMaskLeft=0,s.fsMaskBottom=0,s.fsMaskRight=0),s.ctrlbarUpdate&&(wppaAdjustControlbar(),s.ctrlbarUpdate=!1),s.busy=!1,l(a,s),s.pause||!s.manual&&!s.buttondown||setTimeout(function(){h(a)},10),s.pause&&l(a,{pause:!1}))))}function t(a){var t,n,o,e,i,s,r,c,d,u=l(a);u&&(u.isLightbox?(m("#wppa-overlay-ic").css("display",""),e=(n=!wppaIsFs())?(o=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(o=screen.width,screen.height),r=0,d=(c=8)+(u.controls?u.icsize+10:0)+10,n?(c+=2*u.borderWidth,d+=2*u.borderWidth):c=40,t=n?e-d>(o-c)/u.imageRatio:(screenRatio=screen.width/screen.height,screenRatio<u.imageRatio),n&&t&&(r=(e-(s=(i=o-c)/u.imageRatio)-d)/2+20),n&&!t&&(s=(i=u.imageRatio*(e-(u.controls?u.icsize:0)-48))/u.imageRatio,r=20),!n&&t&&(i=(s=screen.height)*u.imageRatio,r=0),n||t||(s=(i=screen.width)/u.imageRatio,r=(screen.height-s)/2),m("#wppa-ovl-pan-container").css({marginTop:r}),m("#wppa-overlay-ic").css({marginTop:0,marginLeft:0}),u.canvasWidth=i,u.canvasHeight=s,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight,n?(m("#wppa-ovl-pan-container").css({backgroundColor:u.backgroundColor,padding:u.padding,borderRadius:u.borderRadius+"px",borderWidth:u.borderWidth+"px",width:i,marginLeft:0}),t?m("#wppa-overlay-ic").css({left:4}):m("#wppa-overlay-ic").css({left:(o-i)/2})):(m("#wppa-overlay-ic").css({marginLeft:0}),m("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",borderWidth:"0px",width:i,left:(o-i)/2,position:"fixed"}))):(u.canvasWidth=m(u.div).parent().width(),u.canvasHeight=u.canvasWidth/u.imageRatio,u.canvas.width=u.canvasWidth,u.canvas.height=u.canvasHeight),u.ctrlbarUpdate=!0,l(a,u),setTimeout(function(){h(a)},250))}function n(a){var t=l(a),n=t.image.naturalWidth/t.canvas.width;n<1.5&&(n=1.5),l(a,{deltaX:n*=1.5,buttondown:!0,manual:!1}),h(a)}function i(a){var t=l(a),n=t.image.naturalWidth/t.canvas.width;n<1.5&&(n=1.5),l(a,{deltaX:-(n*=1.5),buttondown:!0,manual:!1}),h(a)}function s(a){var t=l(a),n=t.image.naturalHeight/t.canvas.height;n<1.5&&(n=1.5),l(a,{deltaY:-(n*=1.5),buttondown:!0,manual:!1}),h(a)}function r(a){var t=l(a),n=t.image.naturalHeight/t.canvas.height;n<1.5&&(n=1.5),l(a,{deltaY:n*=1.5,buttondown:!0,manual:!1}),h(a)}function c(a){l(a,{deltaFactor:1.005,buttondown:!0,manual:!1}),h(a)}function u(a){l(a,{deltaFactor:.995,buttondown:!0,manual:!1}),h(a)}function p(a){l(a,{deltaX:0,deltaY:0,deltaFactor:1,buttondown:!1})}function f(a,t){var n=l(a),o=v(t).X,e=v(t).Y;if(wppaIsFs()&&n.isLightbox&&(o<n.fsMaskLeft||o>n.fsMaskRight||e<n.fsMaskTop||e>n.fsMaskBottom))return l(0,{abort:!0}),void jQuery("#wppa-overlay-bg").trigger("click");n.enableManual&&(l(a,{manual:!0,savedCanvasX:o=b(a,t).X,savedCanvasY:e=b(a,t).Y,buttondown:!1}),h(a))}function g(a,t){var n,o,e,i=l(a),s=b(a,t).X,r=b(a,t).Y;i.manual&&(n=i.canvas.width/i.fromWidth,o=(i.savedCanvasX-s)/n+i.fromX,e=(i.savedCanvasY-r)/n+i.fromY,0<o&&0<e&&o+i.fromWidth<i.image.width&&e+i.fromHeight<i.image.height&&l(a,{fromX:o,fromY:e,savedCanvasX:s,savedCanvasY:r}))}function w(a){l(a,{manual:!1})}function l(a,t){if(!wppaZoomData[a])return!1;if(t)for(var n in t)wppaZoomData[a][n]=t[n];return wppaZoomData[a]}function v(a){var t,n;return n=wppaIsMobile?(t=a.touches[0].screenX,a.touches[0].screenY):(t=a.screenX,a.screenY),{X:t,Y:n}}function b(a,t){var n,o,e;return e=wppaIsMobile?(n=l(a),o=t.touches[0].screenX-n.fsMaskLeft,t.touches[0].screenY-n.fsMaskTop):(o=t.offsetX,t.offsetY),{X:o,Y:e}}function L(){return d=new Date,d.getTime()}}
17
  // wppa-spheric
18
+ var wppaJsSphericVersion="7.6.05.009";function wppaDoSphericPan(a){var w=jQuery,c=v(a);function l(n){var e=v(n),t=wppaIsElementInViewport(w("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25))if(t){if(v(n,{time:g()}),e.isLightbox)(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0);else if(!wppaIsElementInViewport(w("#wppa-pan-div-"+n)))return void setTimeout(function(){l(n)},200);e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),w("#wppa-ovl-spin").hide(),e.manCtrl&&0,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){l(n)},25)),v(n,e))}else setTimeout(function(){l(n)},200)}function e(n){var e=!wppaIsFs();if(c=v(n)){if(c.isLightbox){if(!wppaOvlOpen)return;w("#wppa-overlay-ic").css("display",""),w("#wppa-overlay-ic").css("width","");var t,a,o,p=(e=!wppaIsFs())?(a=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(a=screen.width,screen.height),i=8,r=8+(c.controls?c.icsize+10:0)+30;e&&(i+=2*c.borderWidth,r+=2*c.borderWidth),t=(a-i)/2+r<p,o=e?t?(p-(s=(u=a-i)/2)-r)/2+20:(u=2*(s=p-r),20):(u=screen.width,s=screen.height,0),c.aspect=u/s,w("#wppa-ovl-pan-container").css({top:o}),w("#wppa-overlay-ic").css({top:0}),e?(w("#wppa-ovl-pan-container").css({backgroundColor:c.backgroundColor,padding:c.padding+"px",borderRadius:c.borderRadius+"px",width:u,marginLeft:0}),t?w("#wppa-overlay-ic").css({left:4,marginLeft:0}):w("#wppa-overlay-ic").css({left:(a-u)/2,marginLeft:0})):(w("#wppa-overlay-ic").css({marginLeft:0}),w("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:u,left:(a-u)/2})),c.wppaRenderer.setSize(u,s)}else{var u=w(c.div).parent().width(),s=parseInt(u/2);c.wppaRenderer.setSize(u,s)}c.width=u,c.height=s,v(n,c),c.timer=setTimeout(function(){l(n)},250)}}function t(n,e){e.preventDefault(),e.stopPropagation(),c=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),wppaIsMobile?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:c.lon,sLat:c.lat}),l(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(c=v(n)).manCtrl&&(wppaIsMobile?v(n,{lon:.1*(c.sX-e.touches[0].clientX)+c.sLon,lat:.1*(e.touches[0].clientY-c.sY)+c.sLat,pause:!1}):v(n,{lon:.1*(c.sX-e.clientX)+c.sLon,lat:.1*(e.clientY-c.sY)+c.sLat,pause:!1}),l(n))}function p(n){v(n,{manCtrl:!1})}function i(n){c=v(n),v(n,{dFov:-.4*c.mFakt,butDown:!0}),l(n)}function r(n){c=v(n),v(n,{dFov:.4*c.mFakt,butDown:!0}),l(n)}function u(n){c=v(n),v(n,{dX:.2*c.mFakt,butDown:!0}),l(n)}function s(n){c=v(n),v(n,{dX:-.2*c.mFakt,butDown:!0}),l(n)}function h(n){c=v(n),v(n,{dY:.2*c.mFakt,butDown:!0}),l(n)}function m(n){c=v(n),v(n,{dY:-.2*c.mFakt,butDown:!0}),l(n)}function f(n){c=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}c.initialized||c.abort||(c.isLightbox||wppaIsElementInViewport(w("#wppa-pan-div-"+a))?(c.wppaRenderer&&(c.wppaRenderer.state.reset(),c.wppaSphere.dispose(),c.wppaSphereMaterial.dispose(),c.texture.dispose()),c.isLightbox&&wppaOvlOpen&&w("#wppa-ovl-spin").show(),c.image.complete?(w(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),c.manCtrl=!1,c.butDown=!1,c.lon=180,c.lat=0,c.dFov=0,c.abort=!1,c.aspect=2,c.div=w("#wppa-pan-div-"+a),c.left=w("#wppa-pctl-left-"+a),c.right=w("#wppa-pctl-right-"+a),c.up=w("#wppa-pctl-up-"+a),c.down=w("#wppa-pctl-down-"+a),c.zoomin=w("#wppa-pctl-zoomin-"+a),c.zoomout=w("#wppa-pctl-zoomout-"+a),c.prev=w("#wppa-pctl-prev-"+a),c.next=w("#wppa-pctl-next-"+a),c.pause=!1,c.mFakt=wppaIsMobile?"2":"1",c.time=0,c.isLightbox&&(wppaGlobalOvlPanoramaId++,c.uId=wppaGlobalOvlPanoramaId),w(c.div).html(""),c.wppaRenderer=new THREE.WebGLRenderer,c.wppaRenderer.setSize(c.width,c.height),w(c.div).append(c.wppaRenderer.domElement),c.wppaScene=new THREE.Scene,c.wppaSphere=new THREE.SphereGeometry(100,100,40),c.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),c.texture=(new THREE.TextureLoader).load(c.url),c.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:c.texture}),c.wppaSphereMesh=new THREE.Mesh(c.wppaSphere,c.wppaSphereMaterial),c.wppaScene.add(c.wppaSphereMesh),wppaIsMobile?(c.right.on("touchstart",function(n){u(a)}),c.right.on("touchend",function(n){f(a)}),c.left.on("touchstart",function(n){s(a)}),c.left.on("touchend",function(n){f(a)}),c.up.on("touchstart",function(n){h(a)}),c.up.on("touchend",function(n){f(a)}),c.down.on("touchstart",function(n){m(a)}),c.down.on("touchend",function(n){f(a)}),c.zoomin.on("touchstart",function(n){i(a)}),c.zoomin.on("touchend",function(n){f(a)}),c.zoomout.on("touchstart",function(n){r(a)}),c.zoomout.on("touchend",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchstart",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchmove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchend",function(n){p(a)}))):(c.right.on("mousedown",function(n){u(a)}),c.right.on("mouseup",function(n){f(a)}),c.left.on("mousedown",function(n){s(a)}),c.left.on("mouseup",function(n){f(a)}),c.up.on("mousedown",function(n){h(a)}),c.up.on("mouseup",function(n){f(a)}),c.down.on("mousedown",function(n){m(a)}),c.down.on("mouseup",function(n){f(a)}),c.zoomin.off("mousedown"),c.zoomin.on("mousedown",function(n){i(a)}),c.zoomin.off("mouseup"),c.zoomin.on("mouseup",function(n){f(a)}),c.zoomout.on("mousedown",function(n){r(a)}),c.zoomout.on("mouseup",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas").on("mousedown",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mousemove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mouseup",function(n){p(a)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("wheel",function(n){var e,t;e=a,(t=n).preventDefault(),t.stopPropagation(),c=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-t.deltaY*c.zoomsensitivity/(wppaIsChrome?60:6)}),l(e),setTimeout(function(){v(e,{dFov:0})},25)}))),c.isLightbox&&(w("body").on("quitimage",function(n){var e;c=v(e=a,{abort:!0,autorun:!1}),clearTimeout(c.timer),w("#wppa-pan-div-"+e+" canvas").hide(),w("#wppa-pctl-div-"+e).hide()}),w("#wppa-pctl-div-"+a).on("click",function(n){wppaKillEvent(n)})),v(a,c),c.isLightbox?(w(window).off("wpparesizeend",wppaOvlShowSame),w(window).on("wpparesizeend",wppaOvlShowSame)):w(window).on("wpparesizeend",function(n){e(a)}),w(document).on("tabbychange",function(n){var e;e=a,c.wppaRenderer.state.reset(),c=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200)}),e(a)):setTimeout(function(){wppaDoSphericPan(a)},400)):setTimeout(function(){wppaDoSphericPan(a)},400))}
js/wppa-spheric.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
- var wppaJsSphericVersion = '7.6.05.007';
6
 
7
  // The main proccedure
8
  function wppaDoSphericPan(mocc) {
@@ -34,7 +34,7 @@ function wppaDoSphericPan(mocc) {
34
  }
35
 
36
  // If lightbox, show spinner
37
- if ( data.isLightbox ) {
38
  $("#wppa-ovl-spin").show();
39
  }
40
 
2
  //
3
  // contains wppa functions for simple zoomable photos
4
  //
5
+ var wppaJsSphericVersion = '7.6.05.009';
6
 
7
  // The main proccedure
8
  function wppaDoSphericPan(mocc) {
34
  }
35
 
36
  // If lightbox, show spinner
37
+ if ( data.isLightbox && wppaOvlOpen ) {
38
  $("#wppa-ovl-spin").show();
39
  }
40
 
js/wppa-spheric.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsSphericVersion="7.6.05.007";function wppaDoSphericPan(a){var w=jQuery,c=v(a);function l(n){var e=v(n),t=wppaIsElementInViewport(w("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25))if(t){if(v(n,{time:g()}),e.isLightbox)(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0);else if(!wppaIsElementInViewport(w("#wppa-pan-div-"+n)))return void setTimeout(function(){l(n)},200);e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),w("#wppa-ovl-spin").hide(),e.manCtrl&&0,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){l(n)},25)),v(n,e))}else setTimeout(function(){l(n)},200)}function e(n){var e=!wppaIsFs();if(c=v(n)){if(c.isLightbox){if(!wppaOvlOpen)return;w("#wppa-overlay-ic").css("display",""),w("#wppa-overlay-ic").css("width","");var t,a,o,p=(e=!wppaIsFs())?(a=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(a=screen.width,screen.height),i=8,r=8+(c.controls?c.icsize+10:0)+30;e&&(i+=2*c.borderWidth,r+=2*c.borderWidth),t=(a-i)/2+r<p,o=e?t?(p-(s=(u=a-i)/2)-r)/2+20:(u=2*(s=p-r),20):(u=screen.width,s=screen.height,0),c.aspect=u/s,w("#wppa-ovl-pan-container").css({top:o}),w("#wppa-overlay-ic").css({top:0}),e?(w("#wppa-ovl-pan-container").css({backgroundColor:c.backgroundColor,padding:c.padding+"px",borderRadius:c.borderRadius+"px",width:u,marginLeft:0}),t?w("#wppa-overlay-ic").css({left:4,marginLeft:0}):w("#wppa-overlay-ic").css({left:(a-u)/2,marginLeft:0})):(w("#wppa-overlay-ic").css({marginLeft:0}),w("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:u,left:(a-u)/2})),c.wppaRenderer.setSize(u,s)}else{var u=w(c.div).parent().width(),s=parseInt(u/2);c.wppaRenderer.setSize(u,s)}c.width=u,c.height=s,v(n,c),c.timer=setTimeout(function(){l(n)},250)}}function t(n,e){e.preventDefault(),e.stopPropagation(),c=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),wppaIsMobile?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:c.lon,sLat:c.lat}),l(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(c=v(n)).manCtrl&&(wppaIsMobile?v(n,{lon:.1*(c.sX-e.touches[0].clientX)+c.sLon,lat:.1*(e.touches[0].clientY-c.sY)+c.sLat,pause:!1}):v(n,{lon:.1*(c.sX-e.clientX)+c.sLon,lat:.1*(e.clientY-c.sY)+c.sLat,pause:!1}),l(n))}function p(n){v(n,{manCtrl:!1})}function i(n){c=v(n),v(n,{dFov:-.4*c.mFakt,butDown:!0}),l(n)}function r(n){c=v(n),v(n,{dFov:.4*c.mFakt,butDown:!0}),l(n)}function u(n){c=v(n),v(n,{dX:.2*c.mFakt,butDown:!0}),l(n)}function s(n){c=v(n),v(n,{dX:-.2*c.mFakt,butDown:!0}),l(n)}function h(n){c=v(n),v(n,{dY:.2*c.mFakt,butDown:!0}),l(n)}function m(n){c=v(n),v(n,{dY:-.2*c.mFakt,butDown:!0}),l(n)}function f(n){c=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}c.initialized||c.abort||(c.isLightbox||wppaIsElementInViewport(w("#wppa-pan-div-"+a))?(c.wppaRenderer&&(c.wppaRenderer.state.reset(),c.wppaSphere.dispose(),c.wppaSphereMaterial.dispose(),c.texture.dispose()),c.isLightbox&&w("#wppa-ovl-spin").show(),c.image.complete?(w(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),c.manCtrl=!1,c.butDown=!1,c.lon=180,c.lat=0,c.dFov=0,c.abort=!1,c.aspect=2,c.div=w("#wppa-pan-div-"+a),c.left=w("#wppa-pctl-left-"+a),c.right=w("#wppa-pctl-right-"+a),c.up=w("#wppa-pctl-up-"+a),c.down=w("#wppa-pctl-down-"+a),c.zoomin=w("#wppa-pctl-zoomin-"+a),c.zoomout=w("#wppa-pctl-zoomout-"+a),c.prev=w("#wppa-pctl-prev-"+a),c.next=w("#wppa-pctl-next-"+a),c.pause=!1,c.mFakt=wppaIsMobile?"2":"1",c.time=0,c.isLightbox&&(wppaGlobalOvlPanoramaId++,c.uId=wppaGlobalOvlPanoramaId),w(c.div).html(""),c.wppaRenderer=new THREE.WebGLRenderer,c.wppaRenderer.setSize(c.width,c.height),w(c.div).append(c.wppaRenderer.domElement),c.wppaScene=new THREE.Scene,c.wppaSphere=new THREE.SphereGeometry(100,100,40),c.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),c.texture=(new THREE.TextureLoader).load(c.url),c.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:c.texture}),c.wppaSphereMesh=new THREE.Mesh(c.wppaSphere,c.wppaSphereMaterial),c.wppaScene.add(c.wppaSphereMesh),wppaIsMobile?(c.right.on("touchstart",function(n){u(a)}),c.right.on("touchend",function(n){f(a)}),c.left.on("touchstart",function(n){s(a)}),c.left.on("touchend",function(n){f(a)}),c.up.on("touchstart",function(n){h(a)}),c.up.on("touchend",function(n){f(a)}),c.down.on("touchstart",function(n){m(a)}),c.down.on("touchend",function(n){f(a)}),c.zoomin.on("touchstart",function(n){i(a)}),c.zoomin.on("touchend",function(n){f(a)}),c.zoomout.on("touchstart",function(n){r(a)}),c.zoomout.on("touchend",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchstart",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchmove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchend",function(n){p(a)}))):(c.right.on("mousedown",function(n){u(a)}),c.right.on("mouseup",function(n){f(a)}),c.left.on("mousedown",function(n){s(a)}),c.left.on("mouseup",function(n){f(a)}),c.up.on("mousedown",function(n){h(a)}),c.up.on("mouseup",function(n){f(a)}),c.down.on("mousedown",function(n){m(a)}),c.down.on("mouseup",function(n){f(a)}),c.zoomin.off("mousedown"),c.zoomin.on("mousedown",function(n){i(a)}),c.zoomin.off("mouseup"),c.zoomin.on("mouseup",function(n){f(a)}),c.zoomout.on("mousedown",function(n){r(a)}),c.zoomout.on("mouseup",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas").on("mousedown",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mousemove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mouseup",function(n){p(a)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("wheel",function(n){var e,t;e=a,(t=n).preventDefault(),t.stopPropagation(),c=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-t.deltaY*c.zoomsensitivity/(wppaIsChrome?60:6)}),l(e),setTimeout(function(){v(e,{dFov:0})},25)}))),c.isLightbox&&(w("body").on("quitimage",function(n){var e;c=v(e=a,{abort:!0,autorun:!1}),clearTimeout(c.timer),w("#wppa-pan-div-"+e+" canvas").hide(),w("#wppa-pctl-div-"+e).hide()}),w("#wppa-pctl-div-"+a).on("click",function(n){wppaKillEvent(n)})),v(a,c),c.isLightbox?(w(window).off("wpparesizeend",wppaOvlShowSame),w(window).on("wpparesizeend",wppaOvlShowSame)):w(window).on("wpparesizeend",function(n){e(a)}),w(document).on("tabbychange",function(n){var e;e=a,c.wppaRenderer.state.reset(),c=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200)}),e(a)):setTimeout(function(){wppaDoSphericPan(a)},400)):setTimeout(function(){wppaDoSphericPan(a)},400))}
1
+ var wppaJsSphericVersion="7.6.05.009";function wppaDoSphericPan(a){var w=jQuery,c=v(a);function l(n){var e=v(n),t=wppaIsElementInViewport(w("#wppa-pan-div-"+n+" canvas"));if(e.manCtrl||!(g()<e.time+25))if(t){if(v(n,{time:g()}),e.isLightbox)(!wppaOvlOpen||wppaOvlActivePanorama!=e.id||wppaGlobalOvlPanoramaId>e.uId)&&(abort=!0);else if(!wppaIsElementInViewport(w("#wppa-pan-div-"+n)))return void setTimeout(function(){l(n)},200);e.abort||((e.butDown||e.manCtrl)&&e.autorun&&(e.autorun=!1,e.dX=0),0==e.dX&&0==e.dY&&0==e.dFov&&(e.pause=!0),e.butDown&&(e.pause=!1),e.fov+=e.dFov,e.fov=Math.max(20,Math.min(120,e.fov)),e.wppaCamera=new THREE.PerspectiveCamera(e.fov,e.aspect,1,1e3),e.wppaCamera.target=new THREE.Vector3(0,0,0),e.lon+=e.dX,e.lat+=e.dY,e.lat=Math.max(-85,Math.min(85,e.lat)),e.wppaCamera.target.x=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.cos(THREE.Math.degToRad(e.lon)),e.wppaCamera.target.y=500*Math.cos(THREE.Math.degToRad(90-e.lat)),e.wppaCamera.target.z=500*Math.sin(THREE.Math.degToRad(90-e.lat))*Math.sin(THREE.Math.degToRad(e.lon)),e.wppaCamera.lookAt(e.wppaCamera.target),e.wppaRenderer&&e.wppaRenderer.render(e.wppaScene,e.wppaCamera),wppaAdjustControlbar(),w("#wppa-ovl-spin").hide(),e.manCtrl&&0,(e.autorun||!e.pause&&(e.manCtrl||e.butDown))&&e.wppaRenderer&&(e.timer=setTimeout(function(){l(n)},25)),v(n,e))}else setTimeout(function(){l(n)},200)}function e(n){var e=!wppaIsFs();if(c=v(n)){if(c.isLightbox){if(!wppaOvlOpen)return;w("#wppa-overlay-ic").css("display",""),w("#wppa-overlay-ic").css("width","");var t,a,o,p=(e=!wppaIsFs())?(a=window.innerWidth?window.innerWidth:screen.width,window.innerHeight?window.innerHeight:screen.height):(a=screen.width,screen.height),i=8,r=8+(c.controls?c.icsize+10:0)+30;e&&(i+=2*c.borderWidth,r+=2*c.borderWidth),t=(a-i)/2+r<p,o=e?t?(p-(s=(u=a-i)/2)-r)/2+20:(u=2*(s=p-r),20):(u=screen.width,s=screen.height,0),c.aspect=u/s,w("#wppa-ovl-pan-container").css({top:o}),w("#wppa-overlay-ic").css({top:0}),e?(w("#wppa-ovl-pan-container").css({backgroundColor:c.backgroundColor,padding:c.padding+"px",borderRadius:c.borderRadius+"px",width:u,marginLeft:0}),t?w("#wppa-overlay-ic").css({left:4,marginLeft:0}):w("#wppa-overlay-ic").css({left:(a-u)/2,marginLeft:0})):(w("#wppa-overlay-ic").css({marginLeft:0}),w("#wppa-ovl-pan-container").css({backgroundColor:"transparent",padding:0,borderRadius:"0px",width:u,left:(a-u)/2})),c.wppaRenderer.setSize(u,s)}else{var u=w(c.div).parent().width(),s=parseInt(u/2);c.wppaRenderer.setSize(u,s)}c.width=u,c.height=s,v(n,c),c.timer=setTimeout(function(){l(n)},250)}}function t(n,e){e.preventDefault(),e.stopPropagation(),c=v(n,{manCtrl:!0,butDown:!1,autorun:!1,dX:0}),wppaIsMobile?v(n,{sX:e.touches[0].clientX,sY:e.touches[0].clientY}):v(n,{sX:e.clientX,sY:e.clientY}),v(n,{sLon:c.lon,sLat:c.lat}),l(n)}function o(n,e){e.preventDefault(),e.stopPropagation(),(c=v(n)).manCtrl&&(wppaIsMobile?v(n,{lon:.1*(c.sX-e.touches[0].clientX)+c.sLon,lat:.1*(e.touches[0].clientY-c.sY)+c.sLat,pause:!1}):v(n,{lon:.1*(c.sX-e.clientX)+c.sLon,lat:.1*(e.clientY-c.sY)+c.sLat,pause:!1}),l(n))}function p(n){v(n,{manCtrl:!1})}function i(n){c=v(n),v(n,{dFov:-.4*c.mFakt,butDown:!0}),l(n)}function r(n){c=v(n),v(n,{dFov:.4*c.mFakt,butDown:!0}),l(n)}function u(n){c=v(n),v(n,{dX:.2*c.mFakt,butDown:!0}),l(n)}function s(n){c=v(n),v(n,{dX:-.2*c.mFakt,butDown:!0}),l(n)}function h(n){c=v(n),v(n,{dY:.2*c.mFakt,butDown:!0}),l(n)}function m(n){c=v(n),v(n,{dY:-.2*c.mFakt,butDown:!0}),l(n)}function f(n){c=v(n),v(n,{dX:0,dY:0,dFov:0,butDown:!1})}function v(n,e){if(!wppaSphericData[n])return!1;if(e)for(var t in e)wppaSphericData[n][t]=e[t];return wppaSphericData[n]}function g(){return d=new Date,d.getTime()}c.initialized||c.abort||(c.isLightbox||wppaIsElementInViewport(w("#wppa-pan-div-"+a))?(c.wppaRenderer&&(c.wppaRenderer.state.reset(),c.wppaSphere.dispose(),c.wppaSphereMaterial.dispose(),c.texture.dispose()),c.isLightbox&&wppaOvlOpen&&w("#wppa-ovl-spin").show(),c.image.complete?(w(image).css({width:image.naturalWidth,height:image.naturalHeight,maxWidth:image.naturalWidth,maxHeight:image.naturalHeight}),c.manCtrl=!1,c.butDown=!1,c.lon=180,c.lat=0,c.dFov=0,c.abort=!1,c.aspect=2,c.div=w("#wppa-pan-div-"+a),c.left=w("#wppa-pctl-left-"+a),c.right=w("#wppa-pctl-right-"+a),c.up=w("#wppa-pctl-up-"+a),c.down=w("#wppa-pctl-down-"+a),c.zoomin=w("#wppa-pctl-zoomin-"+a),c.zoomout=w("#wppa-pctl-zoomout-"+a),c.prev=w("#wppa-pctl-prev-"+a),c.next=w("#wppa-pctl-next-"+a),c.pause=!1,c.mFakt=wppaIsMobile?"2":"1",c.time=0,c.isLightbox&&(wppaGlobalOvlPanoramaId++,c.uId=wppaGlobalOvlPanoramaId),w(c.div).html(""),c.wppaRenderer=new THREE.WebGLRenderer,c.wppaRenderer.setSize(c.width,c.height),w(c.div).append(c.wppaRenderer.domElement),c.wppaScene=new THREE.Scene,c.wppaSphere=new THREE.SphereGeometry(100,100,40),c.wppaSphere.applyMatrix4((new THREE.Matrix4).makeScale(-1,1,1)),c.texture=(new THREE.TextureLoader).load(c.url),c.wppaSphereMaterial=new THREE.MeshBasicMaterial({map:c.texture}),c.wppaSphereMesh=new THREE.Mesh(c.wppaSphere,c.wppaSphereMaterial),c.wppaScene.add(c.wppaSphereMesh),wppaIsMobile?(c.right.on("touchstart",function(n){u(a)}),c.right.on("touchend",function(n){f(a)}),c.left.on("touchstart",function(n){s(a)}),c.left.on("touchend",function(n){f(a)}),c.up.on("touchstart",function(n){h(a)}),c.up.on("touchend",function(n){f(a)}),c.down.on("touchstart",function(n){m(a)}),c.down.on("touchend",function(n){f(a)}),c.zoomin.on("touchstart",function(n){i(a)}),c.zoomin.on("touchend",function(n){f(a)}),c.zoomout.on("touchstart",function(n){r(a)}),c.zoomout.on("touchend",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchstart",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchmove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("touchend",function(n){p(a)}))):(c.right.on("mousedown",function(n){u(a)}),c.right.on("mouseup",function(n){f(a)}),c.left.on("mousedown",function(n){s(a)}),c.left.on("mouseup",function(n){f(a)}),c.up.on("mousedown",function(n){h(a)}),c.up.on("mouseup",function(n){f(a)}),c.down.on("mousedown",function(n){m(a)}),c.down.on("mouseup",function(n){f(a)}),c.zoomin.off("mousedown"),c.zoomin.on("mousedown",function(n){i(a)}),c.zoomin.off("mouseup"),c.zoomin.on("mouseup",function(n){f(a)}),c.zoomout.on("mousedown",function(n){r(a)}),c.zoomout.on("mouseup",function(n){f(a)}),c.enableManual&&(w("#wppa-pan-div-"+a+" canvas").on("mousedown",function(n){t(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mousemove",function(n){o(a,n)}),w("#wppa-pan-div-"+a+" canvas").on("mouseup",function(n){p(a)}),w("#wppa-pan-div-"+a+" canvas")[0].addEventListener("wheel",function(n){var e,t;e=a,(t=n).preventDefault(),t.stopPropagation(),c=v(e),v(e,{manCtrl:!1,butDown:!1,autorun:!1,dX:0,dFov:-t.deltaY*c.zoomsensitivity/(wppaIsChrome?60:6)}),l(e),setTimeout(function(){v(e,{dFov:0})},25)}))),c.isLightbox&&(w("body").on("quitimage",function(n){var e;c=v(e=a,{abort:!0,autorun:!1}),clearTimeout(c.timer),w("#wppa-pan-div-"+e+" canvas").hide(),w("#wppa-pctl-div-"+e).hide()}),w("#wppa-pctl-div-"+a).on("click",function(n){wppaKillEvent(n)})),v(a,c),c.isLightbox?(w(window).off("wpparesizeend",wppaOvlShowSame),w(window).on("wpparesizeend",wppaOvlShowSame)):w(window).on("wpparesizeend",function(n){e(a)}),w(document).on("tabbychange",function(n){var e;e=a,c.wppaRenderer.state.reset(),c=v(e,{initialized:!1,abort:!0}),setTimeout(function(){v(e,{abort:!1}),wppaDoSphericPan(e)},200)}),e(a)):setTimeout(function(){wppaDoSphericPan(a)},400)):setTimeout(function(){wppaDoSphericPan(a)},400))}
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 7.6.04.001
6
  *
7
  */
8
 
@@ -2707,10 +2707,12 @@ global $wppa;
2707
  if ( ! $value ) {
2708
  wppa_unlink( wppa_get_o1_source_path( $photo ) );
2709
  wppa_update_single_photo( wppa_get_source_path( $photo ), $photo, wppa_get_photo_item( $photo, 'filename' ) );
 
2710
  $txt = __( 'Converted photo removed', 'wp-photo-album-plus' );
2711
  }
2712
  else if ( wppa_make_360( $photo, $value ) ) {
2713
  wppa_update_single_photo( wppa_get_o1_source_path( $photo ), $photo, wppa_get_photo_item( $photo, 'filename' ) );
 
2714
  $txt = __( 'Photo converted', 'wp-photo-album-plus' );
2715
  }
2716
  else {
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 7.6.05.009
6
  *
7
  */
8
 
2707
  if ( ! $value ) {
2708
  wppa_unlink( wppa_get_o1_source_path( $photo ) );
2709
  wppa_update_single_photo( wppa_get_source_path( $photo ), $photo, wppa_get_photo_item( $photo, 'filename' ) );
2710
+ wppa_update_photo( array( 'id' => $photo, 'angle' => '0' ) );
2711
  $txt = __( 'Converted photo removed', 'wp-photo-album-plus' );
2712
  }
2713
  else if ( wppa_make_360( $photo, $value ) ) {
2714
  wppa_update_single_photo( wppa_get_o1_source_path( $photo ), $photo, wppa_get_photo_item( $photo, 'filename' ) );
2715
+ wppa_update_photo( array( 'id' => $photo, 'angle' => $value ) );
2716
  $txt = __( 'Photo converted', 'wp-photo-album-plus' );
2717
  }
2718
  else {
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 7.6.01
7
  *
8
  */
9
 
@@ -558,6 +558,7 @@ function wppaToggleExif( id, count ) {
558
  $tags = trim( stripslashes( $photo['tags'] ), ',' );
559
  $stereo = $photo['stereo'];
560
  $panorama = $photo['panorama'];
 
561
  $magickstack = $photo['magickstack'];
562
  $scheduledel = $photo['scheduledel'];
563
  $ext = $photo['ext'];
@@ -1278,7 +1279,7 @@ function wppaToggleExif( id, count ) {
1278
  <option value="" >'.__('Select', 'wp-photo-album-plus').'</option>';
1279
  $t = array( 120, 150, 180, 210, 240, 270, 300, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450 );
1280
  foreach( $t as $v ) {
1281
- echo '<option value="'.$v.'" >'.$v.'&deg;</option>';
1282
  }
1283
  echo '
1284
  <option value="0" >'.__('Undo', 'wp-photo-album-plus').'</option>
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 7.6.05.009
7
  *
8
  */
9
 
558
  $tags = trim( stripslashes( $photo['tags'] ), ',' );
559
  $stereo = $photo['stereo'];
560
  $panorama = $photo['panorama'];
561
+ $angle = $photo['angle'];
562
  $magickstack = $photo['magickstack'];
563
  $scheduledel = $photo['scheduledel'];
564
  $ext = $photo['ext'];
1279
  <option value="" >'.__('Select', 'wp-photo-album-plus').'</option>';
1280
  $t = array( 120, 150, 180, 210, 240, 270, 300, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450 );
1281
  foreach( $t as $v ) {
1282
+ echo '<option value="'.$v.'" '.($v==$angle?'selected="selected" ':' ').'>'.$v.'&deg;</option>';
1283
  }
1284
  echo '
1285
  <option value="0" >'.__('Undo', 'wp-photo-album-plus').'</option>
wppa-setup.php CHANGED
@@ -112,6 +112,7 @@ global $wppa_error;
112
  magickstack text NOT NULL,
113
  indexdtm tinytext NOT NULL,
114
  panorama smallint(5) NOT NULL default '0',
 
115
  sname text NOT NULL,
116
  dlcount bigint(20) NOT NULL default '0',
117
  thumblock smallint(5) default '0',
112
  magickstack text NOT NULL,
113
  indexdtm tinytext NOT NULL,
114
  panorama smallint(5) NOT NULL default '0',
115
+ angle smallint(5) NOT NULL default '0',
116
  sname text NOT NULL,
117
  dlcount bigint(20) NOT NULL default '0',
118
  thumblock smallint(5) default '0',
wppa-wpdb-insert.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that add new records
6
- * Version 7.6.02
7
  *
8
  */
9
 
@@ -312,6 +312,7 @@ global $wpdb;
312
  'magickstack' => '',
313
  'indexdtm' => '',
314
  'panorama' => '0',
 
315
  'sname' => wppa_sanitize_album_photo_name( isset( $args['name'] ) ? $args['name'] : '' ),
316
  'dlcount' => '0',
317
  'thumblock' => '0',
@@ -370,12 +371,13 @@ global $wpdb;
370
  magickstack,
371
  indexdtm,
372
  panorama,
 
373
  sname,
374
  dlcount,
375
  thumblock,
376
  duration
377
  )
378
- VALUES ( %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s )",
379
  $args['id'],
380
  $args['album'],
381
  $args['ext'],
@@ -413,6 +415,7 @@ global $wpdb;
413
  $args['magickstack'],
414
  $args['indexdtm'],
415
  $args['panorama'],
 
416
  $args['sname'],
417
  $args['dlcount'],
418
  $args['thumblock'],
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that add new records
6
+ * Version 7.6.05.009
7
  *
8
  */
9
 
312
  'magickstack' => '',
313
  'indexdtm' => '',
314
  'panorama' => '0',
315
+ 'angle' => '0',
316
  'sname' => wppa_sanitize_album_photo_name( isset( $args['name'] ) ? $args['name'] : '' ),
317
  'dlcount' => '0',
318
  'thumblock' => '0',
371
  magickstack,
372
  indexdtm,
373
  panorama,
374
+ angle,
375
  sname,
376
  dlcount,
377
  thumblock,
378
  duration
379
  )
380
+ VALUES ( %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s )",
381
  $args['id'],
382
  $args['album'],
383
  $args['ext'],
415
  $args['magickstack'],
416
  $args['indexdtm'],
417
  $args['panorama'],
418
+ $args['angle'],
419
  $args['sname'],
420
  $args['dlcount'],
421
  $args['thumblock'],
wppa-wpdb-update.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
- * Version 7.4.03
7
  *
8
  */
9
 
@@ -276,7 +276,9 @@ global $wpdb;
276
  'views',
277
  'clicks',
278
  'page_id',
 
279
  ) ) ) {
 
280
  $itemvalue = strval( intval( $itemvalue ) );
281
  $doit = true;
282
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
+ * Version 7.6.05.009
7
  *
8
  */
9
 
276
  'views',
277
  'clicks',
278
  'page_id',
279
+ 'angle',
280
  ) ) ) {
281
+
282
  $itemvalue = strval( intval( $itemvalue ) );
283
  $doit = true;
284
  }
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 7.6.05.008
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7605'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.6.05.008'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 7.6.05.009
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7605'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.6.05.009'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';