WP Photo Album Plus - Version 7.3.07.004

Version Description

= 7.3.07 =

  • This version addresses various bug fixes and feature requests.

= 7.3.06 =

  • This version addresses various bug fixes and feature requests.

= 7.3.05 =

  • This version addresses various bug fixes and feature requests.

= 7.3.04 =

  • This version addresses various bug fixes and feature requests.

= 7.3.03 =

  • This version addresses various bug fixes and feature requests.

= 7.3.02 =

  • This version addresses various bug fixes and feature requests.

= 7.3.01 =

  • This version addresses various bug fixes, feature requests and performance enhancements.

= 7.3.00 =

  • This version addresses various bug fixes and performance enhancements.

= 7.2.14 =

  • This version addresses various bug fixes and feature requests.

= 7.2.13 =

  • This version addresses various bug fixes and feature requests.

= 7.2.12 =

  • This version addresses various bug fixes and feature requests.

= 7.2.11 =

  • This version addresses various bug fixes and feature requests.

= 7.2.10 =

  • This version addresses various bug fixes and feature requests.

= 7.2.09 =

  • This version addresses various bug fixes and feature requests.

= 7.2.08 =

  • This version addresses various bug fixes.

= 7.2.07 =

  • This version addresses various bug fixes.

= 7.2.06 =

  • This version addresses various bug fixes and feature requests.
  • This version addresses various security issues.

= 7.2.05 =

  • This version addresses various bug fixes and feature requests.
  • This version addresses various security issues.

= 7.2.04 =

  • This version addresses various bug fixes and feature requests.

= 7.2.03 =

  • This version addresses various bug fixes and feature requests.

= 7.2.02 =

  • This version addresses various bug fixes and feature requests.

= 7.2.01 =

  • This version addresses various bug fixes and feature requests.

= 7.2.00 =

  • This version addresses various bug fixes and feature requests.

= 7.1.11 =

  • This version addresses various bug fixes and feature requests.

= 7.1.10 =

  • This version addresses various bug fixes and feature requests.

= 7.1.09 =

  • This version addresses various bug fixes and feature requests.

= 7.1.08 =

  • This version addresses various bug fixes and feature requests.

= 7.1.07 =

  • This version addresses various bug fixes and feature requests.

= 7.1.06 =

  • This version addresses various bug fixes and feature requests.

= 7.1.05 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.04 =

  • This version addresses various bug fixes.

= 7.1.03 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.02 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.1.01 =

  • This version addresses various bug fixes and feature requests.

= 7.1.00 =

  • This version addresses various bug fixes and feature requests.
  • The Photo Album -> Upload Photos and Import Photos admin pages have been substantially improved. Read the changelog for details.

= 7.0.11 =

  • This version addresses various bug fixes and feature requests.

= 7.0.11 =

  • This version addresses various bug fixes

= 7.0.10 =

  • This version addresses various bug fixes

= 7.0.09 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.0.08 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.07 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.06 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.05 =

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

= 7.0.04 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.03 =

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

= 7.0.02 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.01 =

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

= 7.0.00 =

  • Shortcode generators for Gutenberg added.
  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.
  • To prevent spamming and give the users the opportunity to decide when they want us to email them, the mailing system has been revised. Configure Table IX-M to enable various mailing lists, and use the WPPA+ Notify widget for full user flexibility.

= 6.9.21 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 6.9.20 =

  • This version addresses various bug fixes

= 6.9.19 =

  • This version addresses various minor bug fixes

= 6.9.18 =

  • This version addresses various minor bug fixes

= 6.9.17 =

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

= 6.9.16 =

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

= 6.9.15 =

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

= 6.9.14 =

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

= 6.9.13 =

  • Security release.

= 6.9.12 =

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

= 6.9.11 =

  • This 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 7.3.07.004
Comparing to
See all releases

Code changes from version 7.3.06.008 to 7.3.07.004

changelog.txt CHANGED
@@ -1,5 +1,14 @@
1
  WP Photo Album Plus Changelog
2
 
 
 
 
 
 
 
 
 
 
3
  = 7.3.06 =
4
 
5
  * Table VI-C8: Album navigator Link has been moved to Table VI-A3.1 and the options are extended.
1
  WP Photo Album Plus Changelog
2
 
3
+ = 7.3.07 =
4
+
5
+ * Scheduling of individual images did not work. Fixed.
6
+ * Premium indicator was also displayed in a photo description when the description contained any keyword but no user name was required. Fixed.
7
+ * New setting: Table IX-D15.2: Copy Custom. When ticked, will copy the contents of the custom datafields on copying photo.
8
+ * Improved behaviour of lazy load. Sometimes at the end of scrolling a few images were not shown until the next scroll or resize event. This has been fixed.
9
+ * Removed hardcoded background color of comments. You can set a bg color as custom css: .wppa-comment-bquote { background-color: <valid css color> !important; }
10
+ * When a wppa container was shifted out of the viewport, it was set to hidden. This has been removed to improve user experience.
11
+
12
  = 7.3.06 =
13
 
14
  * Table VI-C8: Album navigator Link has been moved to Table VI-A3.1 and the options are extended.
js/wppa-utils.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // conatins common vars and functions
4
  //
5
- var wppaJsUtilsVersion = '7.3.01';
6
  var wppaDebug;
7
 
8
  // Handle animation dependant of setting for mobile
@@ -390,11 +390,11 @@ function wppaMakeLazyVisible(mocc) {
390
  return;
391
  }
392
 
393
- // Only do this if the previous time was more than 500 ms ago
394
  var d = new Date();
395
  var t0 = d.getTime();
396
- if ( t0 < ( wppaLastLazy + 500 ) ) {
397
- // wppaConsoleLog( 'MakeLazyVisible() skipped', 'force' );
398
  return;
399
  }
400
 
@@ -454,8 +454,13 @@ function wppaMakeLazyVisible(mocc) {
454
  var t1 = d.getTime();
455
  wppaLastLazy = t1;
456
 
457
- wppaConsoleLog( 'MakeLazyVisible('+mocc+') took '+(t1-t0)+' ms. Totoal count = '+c0+', modcount = '+c1, 'force' );
458
 
 
 
 
 
 
459
  }
460
 
461
  // Determines whether (a part of) element elm (an image) is inside browser window
2
  //
3
  // conatins common vars and functions
4
  //
5
+ var wppaJsUtilsVersion = '7.3.07';
6
  var wppaDebug;
7
 
8
  // Handle animation dependant of setting for mobile
390
  return;
391
  }
392
 
393
+ // Only do this if the previous time was more than 250 ms ago
394
  var d = new Date();
395
  var t0 = d.getTime();
396
+ if ( t0 < ( wppaLastLazy + 250 ) ) {
397
+ // wppaConsoleLog( 'MakeLazyVisible() skipped' );
398
  return;
399
  }
400
 
454
  var t1 = d.getTime();
455
  wppaLastLazy = t1;
456
 
457
+ wppaConsoleLog( 'MakeLazyVisible('+mocc+') took '+(t1-t0)+' ms. Totoal count = '+c0+', modcount = '+c1 );
458
 
459
+ // Redo after 500 ms when we found something to do
460
+ if ( c1 > 0 ) {
461
+ wppaConsoleLog( 'Redo request lazy', 'force' );
462
+ setTimeout( 'wppaMakeLazyVisible('+mocc+')', 500 );
463
+ }
464
  }
465
 
466
  // Determines whether (a part of) element elm (an image) is inside browser window
js/wppa-utils.min.js CHANGED
@@ -1 +1 @@
1
- var wppaDebug,wppaJsUtilsVersion="7.3.01";function wppaAnimate(e,t,a,p,r){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),r&&setTimeout(r,10)):jQuery(e).stop().animate(t,a,p,r)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){return wppaTrimRight(wppaTrimLeft(e,t),t)}function wppaTrimLeft(e,t){var a,p,r,o,n,i,s;switch(typeof t){case"string":for(p=(a=e).length,r=t.length;r<=p&&a.substr(0,r)==t;)p=(a=a.substr(r)).length;break;case"object":for(n=!1,s=e;!n;){for(o=0,i=s;o<t.length;)s=wppaTrimLeft(s,t[o]),o++;n=i==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,r,o,n,i,s;switch(typeof t){case"string":for(p=(a=e).length,r=t.length;r<=p&&a.substr(p-r)==t;)p=(a=a.substr(0,p-r)).length;break;case"object":for(n=!1,s=e;!n;){for(o=0,i=s;o<t.length;)s=wppaTrimRight(s,t[o]),o++;n=i==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);var r=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+r}function wppa_getCookie(e){var t,a,p,r=document.cookie.split(";");for(t=0;t<r.length;t++)if(a=r[t].substr(0,r[t].indexOf("=")),p=r[t].substr(r[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(p);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){if("undefined"!=typeof console&&(wppaDebug||"force"==t)){var a=(new Date).getTime()%864e5,p=Math.floor(a/36e5);a-=60*p*60*1e3;var r=Math.floor(a/6e4);a-=60*r*1e3;var o=Math.floor(a/1e3);a-=1e3*o,console.log("At: "+p+":"+r+":"+o+"."+a+" message: "+e)}}function wppaSvgHtml(e,t,a,p,r,o,n,i){var s,l,c;switch(r=r||"0",o=o||"10",n=n||"20",i=i||"50",wppaSvgCornerStyle){case"gif":case"none":radius=r;break;case"light":radius=o;break;case"medium":radius=n;break;case"heavy":radius=i}t=t||"32px",l=a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),c=wppaUseSvg?wppaImageDirectory+e+".svg":wppaImageDirectory+e+".png";if(wppaUseSvg&&"-1"!=jQuery.inArray(e,["Next-Button","Prev-Button","Backward-Button","Forward-Button","Pause-Button","Play-Button","Stop-Button","Eagle-1","Snail","Exit","Full-Screen","Exit-Full-Screen","Content-View"])){var u='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+l+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":u+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":u+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":u+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":u+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Full-Screen":u+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Exit-Full-Screen":u+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;default:alert("Native svg "+e+" not implemented")}u+="</g></svg>"}else u='<img src="'+c+'"'+(wppaUseSvg?' class="wppa-svg"':"")+' style="height:'+t+";fill:"+s+";background-color:"+l+";"+(radius?"border-radius:"+radius+"%;":"")+(wppaUseSvg?"display:none;":"")+'text-decoration:none !important;vertical-align:middle;" />';return u}var wppaLastLazy=0;function wppaMakeLazyVisible(e){if("number"!=typeof e&&(e=0),!_wppaLazyDone[e]){var t=new Date,a=t.getTime();if(!(a<wppaLastLazy+500)){var p,r=0,o=0;0<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),o++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),r++}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),o++)),r++}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0));var n=t.getTime();wppaConsoleLog("MakeLazyVisible("+e+") took "+((wppaLastLazy=n)-a)+" ms. Totoal count = "+r+", modcount = "+o,"force")}}}function wppaIsElementInViewport(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return!t||0<t.bottom&&0<t.right&&t.left<wppaWindowWidth()&&t.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){var p=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?t:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){return e.split("&amp;").join("&").split("&gt;").join(">").split("&lt;").join("<").split("&quot;").join('"').split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}wppaConsoleLog("wppa-utils.js version "+wppaJsUtilsVersion+" loaded.","force");
1
+ var wppaDebug,wppaJsUtilsVersion="7.3.07";function wppaAnimate(e,t,a,p,o){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),o&&setTimeout(o,10)):jQuery(e).stop().animate(t,a,p,o)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){return wppaTrimRight(wppaTrimLeft(e,t),t)}function wppaTrimLeft(e,t){var a,p,o,r,n,i,s;switch(typeof t){case"string":for(p=(a=e).length,o=t.length;o<=p&&a.substr(0,o)==t;)p=(a=a.substr(o)).length;break;case"object":for(n=!1,s=e;!n;){for(r=0,i=s;r<t.length;)s=wppaTrimLeft(s,t[r]),r++;n=i==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,o,r,n,i,s;switch(typeof t){case"string":for(p=(a=e).length,o=t.length;o<=p&&a.substr(p-o)==t;)p=(a=a.substr(0,p-o)).length;break;case"object":for(n=!1,s=e;!n;){for(r=0,i=s;r<t.length;)s=wppaTrimRight(s,t[r]),r++;n=i==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);var o=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+o}function wppa_getCookie(e){var t,a,p,o=document.cookie.split(";");for(t=0;t<o.length;t++)if(a=o[t].substr(0,o[t].indexOf("=")),p=o[t].substr(o[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(p);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){if("undefined"!=typeof console&&(wppaDebug||"force"==t)){var a=(new Date).getTime()%864e5,p=Math.floor(a/36e5);a-=60*p*60*1e3;var o=Math.floor(a/6e4);a-=60*o*1e3;var r=Math.floor(a/1e3);a-=1e3*r,console.log("At: "+p+":"+o+":"+r+"."+a+" message: "+e)}}function wppaSvgHtml(e,t,a,p,o,r,n,i){var s,l,c;switch(o=o||"0",r=r||"10",n=n||"20",i=i||"50",wppaSvgCornerStyle){case"gif":case"none":radius=o;break;case"light":radius=r;break;case"medium":radius=n;break;case"heavy":radius=i}t=t||"32px",l=a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),c=wppaUseSvg?wppaImageDirectory+e+".svg":wppaImageDirectory+e+".png";if(wppaUseSvg&&"-1"!=jQuery.inArray(e,["Next-Button","Prev-Button","Backward-Button","Forward-Button","Pause-Button","Play-Button","Stop-Button","Eagle-1","Snail","Exit","Full-Screen","Exit-Full-Screen","Content-View"])){var u='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+l+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":u+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":u+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":u+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":u+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":u+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Full-Screen":u+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Exit-Full-Screen":u+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;default:alert("Native svg "+e+" not implemented")}u+="</g></svg>"}else u='<img src="'+c+'"'+(wppaUseSvg?' class="wppa-svg"':"")+' style="height:'+t+";fill:"+s+";background-color:"+l+";"+(radius?"border-radius:"+radius+"%;":"")+(wppaUseSvg?"display:none;":"")+'text-decoration:none !important;vertical-align:middle;" />';return u}var wppaLastLazy=0;function wppaMakeLazyVisible(e){if("number"!=typeof e&&(e=0),!_wppaLazyDone[e]){var t=new Date,a=t.getTime();if(!(a<wppaLastLazy+250)){var p,o=0,r=0;0<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),r++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),o++}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),r++)),o++}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0));var n=t.getTime();wppaConsoleLog("MakeLazyVisible("+e+") took "+((wppaLastLazy=n)-a)+" ms. Totoal count = "+o+", modcount = "+r),0<r&&(wppaConsoleLog("Redo request lazy","force"),setTimeout("wppaMakeLazyVisible("+e+")",500))}}}function wppaIsElementInViewport(e){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t=e.getBoundingClientRect();return!t||0<t.bottom&&0<t.right&&t.left<wppaWindowWidth()&&t.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){var p=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?t:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){return e.split("&amp;").join("&").split("&gt;").join(">").split("&lt;").join("<").split("&quot;").join('"').split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}wppaConsoleLog("wppa-utils.js version "+wppaJsUtilsVersion+" loaded.","force");
js/wppa.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // contains common vars and functions
4
  //
5
- var wppaJsVersion = '7.3.05';
6
 
7
  // Language dependant vars. i18n for js does not work. Values are filled in by wppa_add_page_specific_urls_and_language() in wppa-non-admin.php
8
  var wppaSlideShow;
@@ -639,11 +639,11 @@ function wppaGetContainerWidth( mocc ) {
639
  // Do the responsive size adjustment
640
  function _wppaDoAutocol( mocc, i ) {
641
 
642
- // Log we are in
643
- // wppaConsoleLog('Enter auto. mocc = '+mocc+' retry = '+i);
644
-
645
  // Auto?
646
- if ( ! wppaAutoColumnWidth[mocc] ) return true;
 
 
 
647
  var w;
648
  var h;
649
  var old;
@@ -655,47 +655,11 @@ function _wppaDoAutocol( mocc, i ) {
655
  // Anything to do here?
656
  var container = document.getElementById( 'wppa-container-' + mocc );
657
  if ( ! container ) {
658
- // wppaConsoleLog('DoAutocol '+mocc+' absent');
659
- return;
660
- }
661
- if ( ! wppaIsElementInViewport( container ) ) {
662
- jQuery( '#wppa-container-' + mocc ).css({visibility:'hidden'});
663
- // wppaConsoleLog('DoAutocol '+mocc+' skipped');
664
  return;
665
  }
666
- jQuery( '#wppa-container-' + mocc ).css({visibility:'visible'});
667
 
668
- // if ( w == wppaColWidth[mocc] ) return true;
669
-
670
- // Update current width
671
- // wppaColWidth[mocc] = w;
672
-
673
- /*
674
- // Adjust container, only if it differs from current width
675
- if ( ! wppaRenderModal ) {
676
- old = jQuery( "#wppa-container-"+mocc ).width();
677
- // wppaConsoleLog('container old='+old+', new='+w, 'force' );
678
- if ( w != old ) {
679
- if ( wppaResponseSpeed == 0 ) {
680
- jQuery( ".wppa-container-"+mocc ).css( {width:w} );
681
- }
682
- else {
683
- jQuery( ".wppa-container-"+mocc ).stop().animate( {width:w}, wppaResponseSpeed );
684
- }
685
- }
686
- }
687
- else {
688
- old = jQuery( ".ui-dialog" ).css('width' );
689
- if ( parseInt( w ) != parseInt( old ) ) {
690
- jQuery( ".ui-dialog" ).css('width', w );
691
- jQuery( ".ui-dialog" ).attr('height', 'auto' );
692
- }
693
- }
694
- /**/
695
  // Covers
696
- if ( wppaCoverImageResponsive[mocc] ) {
697
- }
698
- else {
699
  exists = jQuery( ".wppa-asym-text-frame-"+mocc );
700
  if ( exists.length > 1 ) {
701
  old = jQuery( exists[0] ).width();
2
  //
3
  // contains common vars and functions
4
  //
5
+ var wppaJsVersion = '7.3.07';
6
 
7
  // Language dependant vars. i18n for js does not work. Values are filled in by wppa_add_page_specific_urls_and_language() in wppa-non-admin.php
8
  var wppaSlideShow;
639
  // Do the responsive size adjustment
640
  function _wppaDoAutocol( mocc, i ) {
641
 
 
 
 
642
  // Auto?
643
+ if ( ! wppaAutoColumnWidth[mocc] ) {
644
+ return true;
645
+ }
646
+
647
  var w;
648
  var h;
649
  var old;
655
  // Anything to do here?
656
  var container = document.getElementById( 'wppa-container-' + mocc );
657
  if ( ! container ) {
 
 
 
 
 
 
658
  return;
659
  }
 
660
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
661
  // Covers
662
+ if ( ! wppaCoverImageResponsive[mocc] ) {
 
 
663
  exists = jQuery( ".wppa-asym-text-frame-"+mocc );
664
  if ( exists.length > 1 ) {
665
  old = jQuery( exists[0] ).width();
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsVersion="7.3.05",wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaUseSvg=!0,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaThumbnailAreaDelta;if(!wppaAutoColumnWidth)var wppaAutoColumnWidth=[];if(!wppaAutoColumnFrac)var wppaAutoColumnFrac=[];var wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0;if(!wppaColWidth)var wppaColWidth=[];if(!wppaMCRWidth)var wppaMCRWidth=[];var wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,_wppaId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaLazyDone=[],_wppaStopping=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlModeInitial="normal",wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){for(var p=1;p<wppaTopMoc;)jQuery("#ubb-"+p+"-l")&&(wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")),p++},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaMakeLazyVisible),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",wppaMakeLazyVisible),jQuery(window).on("resize",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!1,jQuery("#wppa-filmstrip-"+p).stop(),_wppaAdjustFilmstrip(p),p++}),jQuery(window).on("wpparesizeend",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!0,p++}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .wppa-thumb-area nice"))}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .albumlist nice"))}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .wppa-div nice"))}),jQuery("body").getNiceScroll&&(jQuery("body").getNiceScroll().resize(),wppaConsoleLog("Resize body nice"))},2e3)}),jQuery(window).trigger("resize"),wppaProtect()}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}function wppaDoAllAutocols(p){wppaConsoleLog("Do all auto cols from "+p.type,"force"),setTimeout(function(){_wppaDoAllAutocols(-1)},wppaExtendedResizeDelay)}function _wppaDoAllAutocols(p){Date.now();p++;for(var e=1;e<=wppaAutoColumnWidth.length;)wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p),wppaMakeLazyVisible(e),e++;(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p)},wppaExtendedResizeDelay);Date.now();return!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p),a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t;a=jQuery("#wppa-container-"+p).width();var o=document.getElementById("wppa-container-"+p);if(o){if(wppaIsElementInViewport(o)){if(jQuery("#wppa-container-"+p).css({visibility:"visible"}),wppaCoverImageResponsive[p]||1<(t=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(t[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:a-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:a})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:a-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:a},wppaResponseSpeed))),1<(t=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,s=i-1,n=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=n){wppaColWidth[p]=r,wppaMCRWidth[p]=n;for(var l=0;l<t.length;){switch(l%i){case 0:jQuery(t[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case s:jQuery(t[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(t[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:n-wppaTextFrameDelta},wppaResponseSpeed),jQuery(t[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:n},wppaResponseSpeed)}}else if(1==t.length&&!wppaCoverImageResponsive[p]){jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:a-wppaTextFrameDelta},wppaResponseSpeed);jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})}if(0<jQuery(".wppa-album-cover-grid-"+p).length){jQuery("#wppa-container-"+p).css("line-height","0");var w=parseInt(a/wppaMaxCoverWidth+.9999);w<1&&(w=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/w+"%"})}if(wppaThumbSpaceAuto){var u=parseInt(jQuery(".thumbnail-frame-"+p).css("width"));if(u){var c=wppaMinThumbSpace,d=a-wppaThumbnailAreaDelta-7,y=Math.max(1,parseInt(d/(u+c))),m=parseInt(.5+(d-y*u)/(y+1));jQuery(".thumbnail-frame-"+p).css({marginLeft:m})}}jQuery(".thumbnail-frame-comalt-"+p).css("width",a-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",a-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var h,g=1,f=jQuery("#wppa-mas-h-"+g+"-"+p).attr("data-height-perc");f;)h=f*(a-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+g+"-"+p).css("height",h),g++,f=jQuery("#wppa-mas-h-"+g+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",a-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*a),wppaFilmStripLength[p]=a-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",a),jQuery(".wppa-simg-"+p).css("width",a-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",a+10),jQuery(".wppa-mimg-"+p).css("width",a),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(a/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*a),wppaSetRealCalendarHeights(p),!0}jQuery("#wppa-container-"+p).css({visibility:"hidden"})}}function wppaSetRealCalendarHeights(e){var p=jQuery("#wppa-real-calendar-"+e).width();if(0<p){var a=!0,t=p*wppaThumbAspect/7;jQuery(".wppa-real-calendar-day-"+e).css({height:t});var o=p/50+2;jQuery("#wppa-real-calendar-"+e).css({fontSize:o});var r=o/4;jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:r,marginBottom:r});var i=t/2;jQuery(".wppa-realcalimg-"+e).each(function(){if(0==this.height)a=!1;else{var p=jQuery(this).attr("data-day");thisb=i-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb})}}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100)}}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);var r=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:r})}}}function wppaGetChildI(p){var e,a=p.childNodes;for(e=0;e<a.length;e++){var t=a[e];if(t.id&&"i-"==t.id.substr(0,2))return t;var o=wppaGetChildI(t);if(o)return o}return!1}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){wppaConsoleLog("Resize end triggered"),jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){wppaConsoleLog("Scroll end triggered"),jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){if(e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e){var a=document.location.href.split("&wppa-occur=");e=parseInt(a[1])}a=document.location.href.split("&wppa-photo=");var t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy?wppaConsoleLog("Fb Init busy"):"undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):(wppaConsoleLog("Fb wait"),setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){if(document.selection)p.focus(),sel=document.selection.createRange(),sel.text=e;else if(p.selectionStart||"0"==p.selectionStart){var a=p.selectionStart,t=p.selectionEnd;p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length}else p.value+=e}function wppaGeoInit(p,e,a){var t=new google.maps.LatLng(e,a),o={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:t},r=new google.maps.Map(document.getElementById("map-canvas-"+p),o),i=new google.maps.Marker({position:t,map:r,title:""});google.maps.event.addListener(r,"center_changed",function(){window.setTimeout(function(){r.panTo(i.getPosition())},1e3)})}function wppaEncode(p){var e;if(void 0!==p){var a=(e=(e=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),t=0;for(e="";t<a.length;)e+=a[t],++t<a.length&&(e+="||PLUS||");return e}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var s;i=jQuery(".wppa-ss-phototext-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}if(e){var n=jQuery("#wppa-ss-pageurl-"+p).val();-1==n.indexOf("?")?n+="?":n+="&",n+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=n}}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){var a=jQuery(p).length;6<a&&(a=6),a<2&&(a=2),jQuery(e).attr("size",a)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).attr("disabled","disabled"),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}wppaConsoleLog("wppa.js version "+wppaJsVersion+" loaded.","force");
1
+ var wppaJsVersion="7.3.07",wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaUseSvg=!0,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaThumbnailAreaDelta;if(!wppaAutoColumnWidth)var wppaAutoColumnWidth=[];if(!wppaAutoColumnFrac)var wppaAutoColumnFrac=[];var wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0;if(!wppaColWidth)var wppaColWidth=[];if(!wppaMCRWidth)var wppaMCRWidth=[];var wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,_wppaId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaLazyDone=[],_wppaStopping=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlModeInitial="normal",wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){for(var p=1;p<wppaTopMoc;)jQuery("#ubb-"+p+"-l")&&(wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")),p++},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaMakeLazyVisible),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",wppaMakeLazyVisible),jQuery(window).on("resize",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!1,jQuery("#wppa-filmstrip-"+p).stop(),_wppaAdjustFilmstrip(p),p++}),jQuery(window).on("wpparesizeend",function(){for(var p=1;p<=wppaTopMoc;)wppaFilmInit[p]=!0,p++}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .wppa-thumb-area nice"))}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .albumlist nice"))}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&(jQuery(this).getNiceScroll().resize(),wppaConsoleLog("Resize .wppa-div nice"))}),jQuery("body").getNiceScroll&&(jQuery("body").getNiceScroll().resize(),wppaConsoleLog("Resize body nice"))},2e3)}),jQuery(window).trigger("resize"),wppaProtect()}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}function wppaDoAllAutocols(p){wppaConsoleLog("Do all auto cols from "+p.type,"force"),setTimeout(function(){_wppaDoAllAutocols(-1)},wppaExtendedResizeDelay)}function _wppaDoAllAutocols(p){Date.now();p++;for(var e=1;e<=wppaAutoColumnWidth.length;)wppaAutoColumnWidth[e]&&_wppaDoAutocol(e,p),wppaMakeLazyVisible(e),e++;(p<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(p)},wppaExtendedResizeDelay);Date.now();return!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p),a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t;if(a=jQuery("#wppa-container-"+p).width(),document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(t=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(t[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:a-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:a})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:a-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:a},wppaResponseSpeed))),1<(t=jQuery(".wppa-cover-box-mcr-"+p)).length){var o=document.getElementById("wppa-albumlist-"+p).clientWidth,r=parseInt((o+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,i=r-1,s=parseInt((o+wppaCoverSpacing)/r-wppaCoverSpacing);if(wppaColWidth[p]!=o||wppaMCRWidth[p]!=s){wppaColWidth[p]=o,wppaMCRWidth[p]=s;for(var n=0;n<t.length;){switch(n%r){case 0:jQuery(t[n]).css({marginLeft:"0px",clear:"both",float:"left"});break;case i:jQuery(t[n]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(t[n]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}n++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(t[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else if(1==t.length&&!wppaCoverImageResponsive[p]){jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:a-wppaTextFrameDelta},wppaResponseSpeed);jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})}if(0<jQuery(".wppa-album-cover-grid-"+p).length){jQuery("#wppa-container-"+p).css("line-height","0");var l=parseInt(a/wppaMaxCoverWidth+.9999);l<1&&(l=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/l+"%"})}if(wppaThumbSpaceAuto){var w=parseInt(jQuery(".thumbnail-frame-"+p).css("width"));if(w){var u=wppaMinThumbSpace,c=a-wppaThumbnailAreaDelta-7,d=Math.max(1,parseInt(c/(w+u))),y=parseInt(.5+(c-d*w)/(d+1));jQuery(".thumbnail-frame-"+p).css({marginLeft:y})}}jQuery(".thumbnail-frame-comalt-"+p).css("width",a-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",a-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var m,h=1,g=jQuery("#wppa-mas-h-"+h+"-"+p).attr("data-height-perc");g;)m=g*(a-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+h+"-"+p).css("height",m),h++,g=jQuery("#wppa-mas-h-"+h+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",a-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*a),wppaFilmStripLength[p]=a-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",a),jQuery(".wppa-simg-"+p).css("width",a-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",a+10),jQuery(".wppa-mimg-"+p).css("width",a),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(a/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*a),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var p=jQuery("#wppa-real-calendar-"+e).width();if(0<p){var a=!0,t=p*wppaThumbAspect/7;jQuery(".wppa-real-calendar-day-"+e).css({height:t});var o=p/50+2;jQuery("#wppa-real-calendar-"+e).css({fontSize:o});var r=o/4;jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:r,marginBottom:r});var i=t/2;jQuery(".wppa-realcalimg-"+e).each(function(){if(0==this.height)a=!1;else{var p=jQuery(this).attr("data-day");thisb=i-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb})}}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100)}}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);var r=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:r})}}}function wppaGetChildI(p){var e,a=p.childNodes;for(e=0;e<a.length;e++){var t=a[e];if(t.id&&"i-"==t.id.substr(0,2))return t;var o=wppaGetChildI(t);if(o)return o}return!1}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){wppaConsoleLog("Resize end triggered"),jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){wppaConsoleLog("Scroll end triggered"),jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)}),jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){if(e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e){var a=document.location.href.split("&wppa-occur=");e=parseInt(a[1])}a=document.location.href.split("&wppa-photo=");var t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy?wppaConsoleLog("Fb Init busy"):"undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):(wppaConsoleLog("Fb wait"),setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){if(document.selection)p.focus(),sel=document.selection.createRange(),sel.text=e;else if(p.selectionStart||"0"==p.selectionStart){var a=p.selectionStart,t=p.selectionEnd;p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length}else p.value+=e}function wppaGeoInit(p,e,a){var t=new google.maps.LatLng(e,a),o={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:t},r=new google.maps.Map(document.getElementById("map-canvas-"+p),o),i=new google.maps.Marker({position:t,map:r,title:""});google.maps.event.addListener(r,"center_changed",function(){window.setTimeout(function(){r.panTo(i.getPosition())},1e3)})}function wppaEncode(p){var e;if(void 0!==p){var a=(e=(e=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),t=0;for(e="";t<a.length;)e+=a[t],++t<a.length&&(e+="||PLUS||");return e}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var s;i=jQuery(".wppa-ss-phototext-"+p);for(r="",s=0;s<i.length;s++)"selected"==jQuery(i[s]).attr("selected")&&(r+="."+jQuery(i[s]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}if(e){var n=jQuery("#wppa-ss-pageurl-"+p).val();-1==n.indexOf("?")?n+="?":n+="&",n+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=n}}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){var a=jQuery(p).length;6<a&&(a=6),a<2&&(a=2),jQuery(e).attr("size",a)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).attr("disabled","disabled"),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}wppaConsoleLog("wppa.js version "+wppaJsVersion+" loaded.","force");
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
- Version: 7.3.06.008
6
- Stable tag: 7.3.05.010
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
@@ -137,6 +137,10 @@ See for the full changelog: <a href="http://www.wppa.nl/changelog/" >The documen
137
 
138
  == Upgrade Notice ==
139
 
 
 
 
 
140
  = 7.3.06 =
141
 
142
  * This version addresses various bug fixes and feature requests.
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
5
+ Version: 7.3.07.004
6
+ Stable tag: 7.3.06.008
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
137
 
138
  == Upgrade Notice ==
139
 
140
+ = 7.3.07 =
141
+
142
+ * This version addresses various bug fixes and feature requests.
143
+
144
  = 7.3.06 =
145
 
146
  * This version addresses various bug fixes and feature requests.
wppa-admin-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * gp admin functions
6
- * Version 7.3.00
7
  *
8
  */
9
 
@@ -278,28 +278,40 @@ global $wpdb;
278
  $oldthumb = wppa_get_thumb_path( strval( intval( $photo['id'] ) ) );
279
  $tags = $photo['tags'];
280
  $exifdtm = $photo['exifdtm'];
 
 
 
281
 
282
  $err = '3';
283
  // Make new db table entry
284
  $owner = wppa_switch( 'copy_owner' ) ? $photo['owner'] : wppa_get_user();
285
  $time = wppa_switch( 'copy_timestamp' ) ? $photo['timestamp'] : time();
286
- $id = wppa_create_photo_entry( array( 'album' => $album,
287
- 'ext' => $ext,
288
- 'name' => $name,
289
- 'p_order' => $porder,
290
- 'description' => $desc,
291
- 'linkurl' => $linkurl,
292
- 'linktitle' => $linktitle,
293
- 'linktarget' => $linktarget,
294
- 'timestamp' => $time,
295
- 'owner' => $owner,
296
- 'status' => $status,
297
- 'filename' => $filename,
298
- 'location' => $location,
299
- 'tags' => $tags,
300
- 'exifdtm' => $exifdtm,
301
- 'videox' => $photo['videox'],
302
- 'videoy' => $photo['videoy'],
 
 
 
 
 
 
 
 
 
303
  )
304
  );
305
  if ( ! $id ) return $err;
@@ -325,13 +337,13 @@ global $wpdb;
325
 
326
  $err = '6';
327
  // Copy photo or poster
328
- if ( is_file( $oldimage ) ) {
329
  if ( ! wppa_copy( $oldimage, $newimage ) ) return $err;
330
  }
331
 
332
  $err = '7';
333
  // Copy thumbnail
334
- if ( is_file( $oldthumb ) ) {
335
  if ( ! wppa_copy( $oldthumb, $newthumb ) ) return $err;
336
  }
337
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * gp admin functions
6
+ * Version 7.3.07
7
  *
8
  */
9
 
278
  $oldthumb = wppa_get_thumb_path( strval( intval( $photo['id'] ) ) );
279
  $tags = $photo['tags'];
280
  $exifdtm = $photo['exifdtm'];
281
+ $custom = $photo['custom'];
282
+ $stereo = $photo['stereo'];
283
+ $panorama = $photo['panorama'];
284
 
285
  $err = '3';
286
  // Make new db table entry
287
  $owner = wppa_switch( 'copy_owner' ) ? $photo['owner'] : wppa_get_user();
288
  $time = wppa_switch( 'copy_timestamp' ) ? $photo['timestamp'] : time();
289
+ $id = wppa_create_photo_entry( array( 'album' => $album,
290
+ 'ext' => $ext,
291
+ 'name' => $name,
292
+ 'p_order' => $porder,
293
+ 'description' => $desc,
294
+ 'linkurl' => $linkurl,
295
+ 'linktitle' => $linktitle,
296
+ 'linktarget' => $linktarget,
297
+ 'timestamp' => $time,
298
+ 'owner' => $owner,
299
+ 'status' => $status,
300
+ 'filename' => $filename,
301
+ 'location' => $location,
302
+ 'tags' => $tags,
303
+ 'exifdtm' => $exifdtm,
304
+ 'videox' => $photo['videox'],
305
+ 'videoy' => $photo['videoy'],
306
+ 'custom' => wppa_switch( 'copy_custom' ) ? $photo['custom'] : '',
307
+ 'stereo' => $photo['stereo'],
308
+ 'panorama' => $photo['panorama'],
309
+ 'photox' => $photo['photox'],
310
+ 'photoy' => $photo['photoy'],
311
+ 'thumbx' => $photo['thumbx'],
312
+ 'thumby' => $photo['thumby'],
313
+ 'duration' => $photo['duration'],
314
+
315
  )
316
  );
317
  if ( ! $id ) return $err;
337
 
338
  $err = '6';
339
  // Copy photo or poster
340
+ if ( wppa_is_file( $oldimage ) ) {
341
  if ( ! wppa_copy( $oldimage, $newimage ) ) return $err;
342
  }
343
 
344
  $err = '7';
345
  // Copy thumbnail
346
+ if ( wppa_is_file( $oldthumb ) ) {
347
  if ( ! wppa_copy( $oldthumb, $newthumb ) ) return $err;
348
  }
349
 
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 7.3.06
7
  *
8
  */
9
 
@@ -283,7 +283,7 @@ function wppa_clear_wppa_cache() {
283
  <p>' .
284
  __( 'Caching is \'smart\'. This means that cache files are cleared when the display of a wppa widget or shortcode will change due to adding albums, photos comments or ratings.', 'wp-photo-album-plus' ) . '
285
  <br />' .
286
- __( 'You will need to clear the cachefiles only when you change an existing shortcode in a page or post.', 'wp-photo-album-plus' ) . '
287
  </p>
288
 
289
  <input
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 7.3.07
7
  *
8
  */
9
 
283
  <p>' .
284
  __( 'Caching is \'smart\'. This means that cache files are cleared when the display of a wppa widget or shortcode will change due to adding albums, photos comments or ratings.', 'wp-photo-album-plus' ) . '
285
  <br />' .
286
+ __( 'You will need to clear the cachefiles only when you change the layout outside the WPPA settings, i.e. change theme or custom CSS.', 'wp-photo-album-plus' ) . '
287
  </p>
288
 
289
  <input
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 7.3.03
6
  *
7
  */
8
 
@@ -502,9 +502,7 @@ global $wppa_log_file;
502
  }
503
 
504
  if ( $pid && current_user_can( 'wppa_moderate' ) ) {
505
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
506
- SET status = 'publish'
507
- WHERE id = %d", $pid ) );
508
  if ( $iret ) {
509
  wppa_flush_upldr_cache( 'photoid', $pid );
510
  $alb = $wpdb->get_var( $wpdb->prepare( "SELECT album FROM $wpdb->wppa_photos
@@ -639,9 +637,6 @@ global $wppa_log_file;
639
  $zipfilename = wppa_get_album_name( $alb );
640
  $zipfilename = sanitize_file_name( $zipfilename . '.zip' ); // Remove illegal chars
641
  $zipfilepath = WPPA_UPLOAD_PATH . '/temp/' . $zipfilename;
642
- // if ( is_file( $zipfilepath ) ) {
643
- // unlink( $zipfilepath ); // Debug
644
- // }
645
  $wppa_zip = new ZipArchive;
646
  $iret = $wppa_zip->open( $zipfilepath, 1 );
647
  if ( $iret !== true ) {
@@ -1016,9 +1011,6 @@ global $wppa_log_file;
1016
  AND status = 'pending'", $photo, $user ) );
1017
 
1018
  // Has user motivated his vote?
1019
- // $hascommented = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->wppa_comments
1020
- // WHERE photo = %d
1021
- // AND user = %s", $photo, wppa_get_user( 'display' ) ) );
1022
  $hascommented = wppa_has_user_commented( $photo );
1023
 
1024
  // If the user has commented and comment needs vote is active, publish his comment
@@ -1250,9 +1242,7 @@ global $wppa_log_file;
1250
  else $allavgrat = '0';
1251
 
1252
  // Store it in the photo info
1253
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1254
- SET mean_rating = %s
1255
- WHERE id = %d", $allavgrat, $photo ) );
1256
  if ( $iret === false ) {
1257
  echo '0||106||'.$wartxt;
1258
  wppa_exit(); // Fail on save
@@ -1263,8 +1253,7 @@ global $wppa_log_file;
1263
  WHERE photo = %d
1264
  AND status = 'publish'", $photo ) );
1265
  if ( $ratcount !== false ) {
1266
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1267
- SET rating_count = %d WHERE id = %d", $ratcount, $photo ) );
1268
  if ( $iret === false ) {
1269
  echo '0||107||'.$wartxt;
1270
  wppa_exit(); // Fail on save
@@ -1407,8 +1396,7 @@ global $wppa_log_file;
1407
  WHERE album = %d", $album ), ARRAY_A );
1408
  if ( $photos ) foreach ( $photos as $photo ) {
1409
  $iret1 = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->wppa_rating WHERE photo = %d", $photo['id'] ) );
1410
- $iret2 = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1411
- SET mean_rating = '' WHERE id = %d", $photo['id'] ) );
1412
  }
1413
  if ( $photos && $iret1 !== false && $iret2 !== false ) {
1414
  echo '||0||'.__( 'Ratings cleared' , 'wp-photo-album-plus').'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus');
@@ -1431,11 +1419,7 @@ global $wppa_log_file;
1431
  if ( is_array( $photos ) ) foreach ( $photos as $photo ) {
1432
 
1433
  $tags = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $deftag, $photo['id'] ), $photo['id'] ) );
1434
-
1435
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1436
- SET tags = %s
1437
- WHERE id = %d", $tags, $photo['id'] ) );
1438
- wppa_index_update( 'photo', $photo['id'] );
1439
  }
1440
  if ( $photos && $iret !== false ) {
1441
  echo '||0||'.__( 'Tags set to defaults' , 'wp-photo-album-plus');
@@ -1460,11 +1444,7 @@ global $wppa_log_file;
1460
  if ( is_array( $photos ) ) foreach ( $photos as $photo ) {
1461
 
1462
  $tags = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $photo['tags'].','.$deftag, $photo['id'] ), $photo['id'] ) );
1463
-
1464
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1465
- SET tags = %s
1466
- WHERE id = %d", $tags, $photo['id'] ) );
1467
- wppa_index_update( 'photo', $photo['id'] );
1468
  }
1469
  if ( $photos && $iret !== false ) {
1470
  wppa_update_album( $album );
@@ -1528,6 +1508,7 @@ global $wppa_log_file;
1528
  }
1529
  }
1530
  $value = trim( $value );
 
1531
  break;
1532
  case 'a_order':
1533
  $itemname = __( 'Album order #' , 'wp-photo-album-plus');
@@ -1837,9 +1818,7 @@ global $wppa_log_file;
1837
  $geo = $photodata['location'] ? $photodata['location'] : '///';
1838
  $geo = explode( '/', $geo );
1839
  $geo = wppa_format_geo( $value, $geo['3'] );
1840
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1841
- SET location = %s
1842
- WHERE id = %d", $geo, $photo ) );
1843
  if ( $iret ) {
1844
  $txt = __( 'Lattitude updated' , 'wp-photo-album-plus');
1845
  $err = '0';
@@ -1860,9 +1839,7 @@ global $wppa_log_file;
1860
  $geo = $photodata['location'] ? $photodata['location'] : '///';
1861
  $geo = explode( '/', $geo );
1862
  $geo = wppa_format_geo( $geo['2'], $value );
1863
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
1864
- SET location = %s
1865
- WHERE id = %d", $geo, $photo ) );
1866
  if ( $iret ) {
1867
  $txt = __( 'Longitude updated' , 'wp-photo-album-plus' );
1868
  $err = '0';
@@ -2302,10 +2279,8 @@ global $wppa_log_file;
2302
  $itemname = $item;
2303
  }
2304
 
2305
- $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
2306
- SET $item = %s WHERE id = %d", $value, $photo ) );
2307
 
2308
- if ( $item == 'name' || $item == 'description' || $item == 'tags' ) wppa_index_update( 'photo', $photo );
2309
  if ( $item == 'status' && $value != 'scheduled' ) wppa_update_photo( array( 'id' => $photo, 'scheduledtm' => '' ) );
2310
  if ( $item == 'status' ) wppa_invalidate_treecounts( wppa_get_photo_item( $photo, 'album' ) );
2311
 
@@ -2376,7 +2351,7 @@ global $wppa_log_file;
2376
  case 'hour':
2377
  case 'min':
2378
  $itemname = __( 'Schedule date/time' , 'wp-photo-album-plus');
2379
- $scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm FROM$wpdb->wppa_photos WHERE id = %s", $photo ) );
2380
  if ( ! $scheduledtm ) {
2381
  $scheduledtm = wppa_get_default_scheduledtm();
2382
  }
@@ -2394,7 +2369,7 @@ global $wppa_log_file;
2394
  $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2395
  }
2396
  else {
2397
- $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2398
  }
2399
  wppa_json_photo_update( $photo, $txt );
2400
  break;
@@ -2430,7 +2405,7 @@ global $wppa_log_file;
2430
  $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2431
  }
2432
  else {
2433
- $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2434
  }
2435
  wppa_json_photo_update( $photo, $txt );
2436
  break;
@@ -2583,7 +2558,6 @@ global $wppa_log_file;
2583
  $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_iptc
2584
  SET description = %s
2585
  WHERE id = %d", $value, $item ) );
2586
- wppa_log( 'oibs', $wpdb->prepare( "UPDATE $wpdb->wppa_iptc SET description = %s WHERE id = %d", $value, $item ) );
2587
 
2588
  $txt = sprintf( __( 'IPTC Tag %s updated', 'wp-photo-album-plus' ), $tag );
2589
  wppa_json_photo_update( $photo, $txt );
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 7.3.07
6
  *
7
  */
8
 
502
  }
503
 
504
  if ( $pid && current_user_can( 'wppa_moderate' ) ) {
505
+ $iret = wppa_update_photo( array( 'id' => $pid, 'status' => 'publish' ) );
 
 
506
  if ( $iret ) {
507
  wppa_flush_upldr_cache( 'photoid', $pid );
508
  $alb = $wpdb->get_var( $wpdb->prepare( "SELECT album FROM $wpdb->wppa_photos
637
  $zipfilename = wppa_get_album_name( $alb );
638
  $zipfilename = sanitize_file_name( $zipfilename . '.zip' ); // Remove illegal chars
639
  $zipfilepath = WPPA_UPLOAD_PATH . '/temp/' . $zipfilename;
 
 
 
640
  $wppa_zip = new ZipArchive;
641
  $iret = $wppa_zip->open( $zipfilepath, 1 );
642
  if ( $iret !== true ) {
1011
  AND status = 'pending'", $photo, $user ) );
1012
 
1013
  // Has user motivated his vote?
 
 
 
1014
  $hascommented = wppa_has_user_commented( $photo );
1015
 
1016
  // If the user has commented and comment needs vote is active, publish his comment
1242
  else $allavgrat = '0';
1243
 
1244
  // Store it in the photo info
1245
+ $iret = wppa_update_photo( array( 'id' => $photo, 'mean_rating' => $allavgrat ) );
 
 
1246
  if ( $iret === false ) {
1247
  echo '0||106||'.$wartxt;
1248
  wppa_exit(); // Fail on save
1253
  WHERE photo = %d
1254
  AND status = 'publish'", $photo ) );
1255
  if ( $ratcount !== false ) {
1256
+ $iret = wppa_update_photo( array( 'id' => $photo, 'rating_count' => $ratcount ) );
 
1257
  if ( $iret === false ) {
1258
  echo '0||107||'.$wartxt;
1259
  wppa_exit(); // Fail on save
1396
  WHERE album = %d", $album ), ARRAY_A );
1397
  if ( $photos ) foreach ( $photos as $photo ) {
1398
  $iret1 = $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->wppa_rating WHERE photo = %d", $photo['id'] ) );
1399
+ $iret2 = wppa_update_photo( array( 'id' => $photo['id'], 'mean_rating' => '' ) );
 
1400
  }
1401
  if ( $photos && $iret1 !== false && $iret2 !== false ) {
1402
  echo '||0||'.__( 'Ratings cleared' , 'wp-photo-album-plus').'||'.__( 'No ratings for this photo.' , 'wp-photo-album-plus');
1419
  if ( is_array( $photos ) ) foreach ( $photos as $photo ) {
1420
 
1421
  $tags = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $deftag, $photo['id'] ), $photo['id'] ) );
1422
+ $iret = wppa_update_photo( array( 'id' => $photo['id'], 'tags' => $tags ) );
 
 
 
 
1423
  }
1424
  if ( $photos && $iret !== false ) {
1425
  echo '||0||'.__( 'Tags set to defaults' , 'wp-photo-album-plus');
1444
  if ( is_array( $photos ) ) foreach ( $photos as $photo ) {
1445
 
1446
  $tags = wppa_sanitize_tags( wppa_filter_iptc( wppa_filter_exif( $photo['tags'].','.$deftag, $photo['id'] ), $photo['id'] ) );
1447
+ $iret = wppa_update_photo( array( 'id' => $photo['id'], 'tags' => $tags ) );
 
 
 
 
1448
  }
1449
  if ( $photos && $iret !== false ) {
1450
  wppa_update_album( $album );
1508
  }
1509
  }
1510
  $value = trim( $value );
1511
+ wppa_update_album( array( 'id' => $album, 'description' => $value, 'modified' => time() ) );
1512
  break;
1513
  case 'a_order':
1514
  $itemname = __( 'Album order #' , 'wp-photo-album-plus');
1818
  $geo = $photodata['location'] ? $photodata['location'] : '///';
1819
  $geo = explode( '/', $geo );
1820
  $geo = wppa_format_geo( $value, $geo['3'] );
1821
+ $iret = wppa_update_photo( array( 'id' => $photo, 'location' => $geo ) );
 
 
1822
  if ( $iret ) {
1823
  $txt = __( 'Lattitude updated' , 'wp-photo-album-plus');
1824
  $err = '0';
1839
  $geo = $photodata['location'] ? $photodata['location'] : '///';
1840
  $geo = explode( '/', $geo );
1841
  $geo = wppa_format_geo( $geo['2'], $value );
1842
+ $iret = wppa_update_photo( array( 'id' => $photo, 'location' => $geo ) );
 
 
1843
  if ( $iret ) {
1844
  $txt = __( 'Longitude updated' , 'wp-photo-album-plus' );
1845
  $err = '0';
2279
  $itemname = $item;
2280
  }
2281
 
2282
+ $iret = wppa_update_photo( array( 'id' => $photo, $item => $value ) );
 
2283
 
 
2284
  if ( $item == 'status' && $value != 'scheduled' ) wppa_update_photo( array( 'id' => $photo, 'scheduledtm' => '' ) );
2285
  if ( $item == 'status' ) wppa_invalidate_treecounts( wppa_get_photo_item( $photo, 'album' ) );
2286
 
2351
  case 'hour':
2352
  case 'min':
2353
  $itemname = __( 'Schedule date/time' , 'wp-photo-album-plus');
2354
+ $scheduledtm = $wpdb->get_var( $wpdb->prepare( "SELECT scheduledtm FROM $wpdb->wppa_photos WHERE id = %s", $photo ) );
2355
  if ( ! $scheduledtm ) {
2356
  $scheduledtm = wppa_get_default_scheduledtm();
2357
  }
2369
  $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2370
  }
2371
  else {
2372
+ $txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2373
  }
2374
  wppa_json_photo_update( $photo, $txt );
2375
  break;
2405
  $txt = sprintf( __( '%s of video %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2406
  }
2407
  else {
2408
+ $txt = sprintf( __( '%s of photo %s updated' , 'wp-photo-album-plus'), $itemname, $photo );
2409
  }
2410
  wppa_json_photo_update( $photo, $txt );
2411
  break;
2558
  $iret = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_iptc
2559
  SET description = %s
2560
  WHERE id = %d", $value, $item ) );
 
2561
 
2562
  $txt = sprintf( __( 'IPTC Tag %s updated', 'wp-photo-album-plus' ), $tag );
2563
  wppa_json_photo_update( $photo, $txt );
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 7.3.05
7
  *
8
  */
9
 
@@ -3719,7 +3719,7 @@ global $wpdb;
3719
  $commentblock .= '
3720
  <blockquote
3721
  class="wppa-comment-bquote"
3722
- style="background-color:#eeeeee;padding:5px 0;margin:5px 0 0;width:98%;"
3723
  >' .
3724
  $c . '
3725
  </blockquote>';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 7.3.07
7
  *
8
  */
9
 
3719
  $commentblock .= '
3720
  <blockquote
3721
  class="wppa-comment-bquote"
3722
+ style="padding:5px 0;margin:5px 0 0;width:98%;"
3723
  >' .
3724
  $c . '
3725
  </blockquote>';
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 7.3.05
6
  *
7
  */
8
 
@@ -1082,7 +1082,7 @@ global $cache_path;
1082
  ( isset( $data[$i]['file'] ) ? basename( $data[$i]['file'] ) . ':' : '' ) .
1083
  ( isset( $data[$i]['line'] ) ? $data[$i]['line'] . ' ' : '' ) .
1084
  ( isset( $data[$i]['function'] ) ? $data[$i]['function'] . '() ' : '' );
1085
- wppa_log( 'obs', 'WPPA cache cleared by ' . $stack );
1086
  }
1087
 
1088
  // Schedule a cron job. This is the normal operation
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 7.3.07
6
  *
7
  */
8
 
1082
  ( isset( $data[$i]['file'] ) ? basename( $data[$i]['file'] ) . ':' : '' ) .
1083
  ( isset( $data[$i]['line'] ) ? $data[$i]['line'] . ' ' : '' ) .
1084
  ( isset( $data[$i]['function'] ) ? $data[$i]['function'] . '() ' : '' );
1085
+ wppa_log( 'obs', '{b}WPPA cache{/b} cleared by ' . $stack );
1086
  }
1087
 
1088
  // Schedule a cron job. This is the normal operation
wppa-cron.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all cron functions
6
- * Version 7.3.05
7
  *
8
  *
9
  */
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all cron functions
6
+ * Version 7.3.07
7
  *
8
  *
9
  */
wppa-date-time.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * date and time related functions
6
- * Version 7.3.02
7
  *
8
  */
9
 
@@ -84,7 +84,8 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
84
 
85
  $opt_months = array( '1' => __('Jan', 'wp-photo-album-plus'), '2' => __('Feb', 'wp-photo-album-plus'), '3' => __('Mar', 'wp-photo-album-plus'), '4' => __('Apr', 'wp-photo-album-plus'), '5' => __('May', 'wp-photo-album-plus'), '6' => __('Jun', 'wp-photo-album-plus'), '7' => __('Jul', 'wp-photo-album-plus'), '8' =>__('Aug', 'wp-photo-album-plus'), '9' => __('Sep', 'wp-photo-album-plus'), '10' => __('Oct', 'wp-photo-album-plus'), '11' => __('Nov', 'wp-photo-album-plus'), '12' => __('Dec', 'wp-photo-album-plus') );
86
  $val_months = array( '1' => '01', '2' => '02', '3' => '03', '4' => '04', '5' => '05', '6' => '06', '7' => '07', '8' => '08', '9' => '09', '10' => '10', '11' => '11', '12' =>'12' );
87
- $opt_years = array( '2014', '2015', '2016', '2017', '2018', '2019', '2020' );
 
88
  $val_years = $opt_years;
89
  $opt_days = array( '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31' );
90
  $val_days = $opt_days;
@@ -130,21 +131,51 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
130
 
131
  if ( $selectable ) {
132
 
133
- $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdate'.$type.'('.$id.', \'day\', this);" >';
 
 
 
 
 
 
 
 
 
 
134
  foreach ( array_keys( $opt_days ) as $key ) {
135
  $sel = $val_days[$key] == $cur_day ? 'selected="selected"' : '';
136
  $result .= '<option value="'.$val_days[$key].'" '.$sel.' >'.$opt_days[$key].'</option>';
137
  }
138
  $result .= '</select >';
139
 
140
- $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdate'.$type.'('.$id.', \'month\', this);" >';
 
 
 
 
 
 
 
 
 
 
141
  foreach ( array_keys( $opt_months ) as $key ) {
142
  $sel = $val_months[$key] == $cur_month ? 'selected="selected"' : '';
143
  $result .= '<option value="'.$val_months[$key].'" '.$sel.' >'.$opt_months[$key].'</option>';
144
  }
145
  $result .= '</select >';
146
 
147
- $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdate'.$type.'('.$id.', \'year\', this);" >';
 
 
 
 
 
 
 
 
 
 
148
  foreach ( array_keys( $opt_years ) as $key ) {
149
  $sel = $val_years[$key] == $cur_year ? 'selected="selected"' : '';
150
  $result .= '<option value="'.$val_years[$key].'" '.$sel.' >'.$opt_years[$key].'</option>';
@@ -152,7 +183,17 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
152
  $result .= '</select >';
153
  $result .= '<span class="'.$class.'" >@</span>';
154
 
155
- $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdate'.$type.'('.$id.', \'hour\', this);" >';
 
 
 
 
 
 
 
 
 
 
156
  foreach ( array_keys( $opt_hours ) as $key ) {
157
  $sel = $val_hours[$key] == $cur_hour ? 'selected="selected"' : '';
158
  $result .= '<option value="'.$val_hours[$key].'" '.$sel.' >'.$opt_hours[$key].'</option>';
@@ -160,7 +201,17 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
160
  $result .= '</select >';
161
  $result .= '<span class="'.$class.'" >:</span>';
162
 
163
- $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdate'.$type.'('.$id.', \'min\', this);">';
 
 
 
 
 
 
 
 
 
 
164
  foreach ( array_keys( $opt_mins ) as $key ) {
165
  $sel = $val_mins[$key] == $cur_min ? 'selected="selected"' : '';
166
  $result .= '<option value="'.$val_mins[$key].'" '.$sel.' >'.$opt_mins[$key].'</option>';
3
  * Package: wp-photo-album-plus
4
  *
5
  * date and time related functions
6
+ * Version 7.3.07
7
  *
8
  */
9
 
84
 
85
  $opt_months = array( '1' => __('Jan', 'wp-photo-album-plus'), '2' => __('Feb', 'wp-photo-album-plus'), '3' => __('Mar', 'wp-photo-album-plus'), '4' => __('Apr', 'wp-photo-album-plus'), '5' => __('May', 'wp-photo-album-plus'), '6' => __('Jun', 'wp-photo-album-plus'), '7' => __('Jul', 'wp-photo-album-plus'), '8' =>__('Aug', 'wp-photo-album-plus'), '9' => __('Sep', 'wp-photo-album-plus'), '10' => __('Oct', 'wp-photo-album-plus'), '11' => __('Nov', 'wp-photo-album-plus'), '12' => __('Dec', 'wp-photo-album-plus') );
86
  $val_months = array( '1' => '01', '2' => '02', '3' => '03', '4' => '04', '5' => '05', '6' => '06', '7' => '07', '8' => '08', '9' => '09', '10' => '10', '11' => '11', '12' =>'12' );
87
+ $Y = date( 'Y' );
88
+ $opt_years = array( $Y, $Y+1, $Y+2, $Y+3, $Y+4, $Y+5, $Y+6, $Y+7, $Y+8, $Y+9, $Y+10 );
89
  $val_years = $opt_years;
90
  $opt_days = array( '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31' );
91
  $val_days = $opt_days;
131
 
132
  if ( $selectable ) {
133
 
134
+ // Day
135
+ if ( $type == 'Photo' ) {
136
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'day\', this.value);" >';
137
+ }
138
+ elseif ( $type == 'Delphoto' ) {
139
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delday\', this.value);" >';
140
+ }
141
+ else {
142
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'day\', this);" >';
143
+ }
144
+
145
  foreach ( array_keys( $opt_days ) as $key ) {
146
  $sel = $val_days[$key] == $cur_day ? 'selected="selected"' : '';
147
  $result .= '<option value="'.$val_days[$key].'" '.$sel.' >'.$opt_days[$key].'</option>';
148
  }
149
  $result .= '</select >';
150
 
151
+ // Month
152
+ if ( $type == 'Photo' ) {
153
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'month\', this.value);" >';
154
+ }
155
+ elseif ( $type == 'Delphoto' ) {
156
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmonth\', this.value);" >';
157
+ }
158
+ else {
159
+ $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'month\', this);" >';
160
+ }
161
+
162
  foreach ( array_keys( $opt_months ) as $key ) {
163
  $sel = $val_months[$key] == $cur_month ? 'selected="selected"' : '';
164
  $result .= '<option value="'.$val_months[$key].'" '.$sel.' >'.$opt_months[$key].'</option>';
165
  }
166
  $result .= '</select >';
167
 
168
+ // Year
169
+ if ( $type == 'Photo' ) {
170
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'year\', this.value);" >';
171
+ }
172
+ elseif ( $type == 'Delphoto' ) {
173
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delyear\', this.value);" >';
174
+ }
175
+ else {
176
+ $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'year\', this);" >';
177
+ }
178
+
179
  foreach ( array_keys( $opt_years ) as $key ) {
180
  $sel = $val_years[$key] == $cur_year ? 'selected="selected"' : '';
181
  $result .= '<option value="'.$val_years[$key].'" '.$sel.' >'.$opt_years[$key].'</option>';
183
  $result .= '</select >';
184
  $result .= '<span class="'.$class.'" >@</span>';
185
 
186
+ // Hour
187
+ if ( $type == 'Photo' ) {
188
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'hour\', this.value);" >';
189
+ }
190
+ elseif ( $type == 'Delphoto' ) {
191
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delhour\', this.value);" >';
192
+ }
193
+ else {
194
+ $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'hour\', this);" >';
195
+ }
196
+
197
  foreach ( array_keys( $opt_hours ) as $key ) {
198
  $sel = $val_hours[$key] == $cur_hour ? 'selected="selected"' : '';
199
  $result .= '<option value="'.$val_hours[$key].'" '.$sel.' >'.$opt_hours[$key].'</option>';
201
  $result .= '</select >';
202
  $result .= '<span class="'.$class.'" >:</span>';
203
 
204
+ // Min
205
+ if ( $type == 'Photo' ) {
206
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'min\', this.value);" >';
207
+ }
208
+ elseif ( $type == 'Delphoto' ) {
209
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmin\', this.value);" >';
210
+ }
211
+ else {
212
+ $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'min\', this);">';
213
+ }
214
+
215
  foreach ( array_keys( $opt_mins ) as $key ) {
216
  $sel = $val_mins[$key] == $cur_min ? 'selected="selected"' : '';
217
  $result .= '<option value="'.$val_mins[$key].'" '.$sel.' >'.$opt_mins[$key].'</option>';
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 7.3.06
7
  *
8
  */
9
 
@@ -1059,6 +1059,7 @@ horizrailenabled:false,";
1059
 
1060
  'wppa_copy_timestamp' => 'no',
1061
  'wppa_copy_owner' => 'no',
 
1062
  'wppa_frontend_album_public' => 'no',
1063
  'wppa_optimize_new' => 'no',
1064
  'wppa_default_album_linktype' => 'content',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 7.3.07
7
  *
8
  */
9
 
1059
 
1060
  'wppa_copy_timestamp' => 'no',
1061
  'wppa_copy_owner' => 'no',
1062
+ 'wppa_copy_custom' => 'no',
1063
  'wppa_frontend_album_public' => 'no',
1064
  'wppa_optimize_new' => 'no',
1065
  'wppa_default_album_linktype' => 'content',
wppa-items.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions to retrieve album and photo items
6
- * Version 7.3.06
7
  *
8
  */
9
 
@@ -403,8 +403,7 @@ function wppa_translate_photo_keywords( $id, $text ) {
403
  // Owner
404
  $user = wppa_get_user_by( 'login', $thumb['owner'] );
405
  if ( $user ) {
406
- $result = str_replace( 'w#displayname', $user->display_name, $result );
407
- $result .= wppa_get_premium_html( $user->ID );
408
  }
409
  else {
410
  $owner = wppa_get_photo_item( $id, 'owner' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains functions to retrieve album and photo items
6
+ * Version 7.3.07
7
  *
8
  */
9
 
403
  // Owner
404
  $user = wppa_get_user_by( 'login', $thumb['owner'] );
405
  if ( $user ) {
406
+ $result = str_replace( 'w#displayname', $user->display_name . wppa_get_premium_html( $user->ID ), $result );
 
407
  }
408
  else {
409
  $owner = wppa_get_photo_item( $id, 'owner' );
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 7.3.00
7
  *
8
  */
9
 
@@ -1138,8 +1138,28 @@ global $wppa_endtime;
1138
  // Post-processing needed?
1139
  switch ( $slug ) {
1140
  case 'wppa_remake_index_albums':
 
 
 
 
 
 
 
 
 
 
 
1141
  case 'wppa_remake_index_photos':
1142
- wppa_schedule_maintenance_proc( 'wppa_cleanup_index' );
 
 
 
 
 
 
 
 
 
1143
  break;
1144
  case 'wppa_cleanup_index':
1145
  $wpdb->query( "DELETE FROM $wpdb->wppa_index WHERE albums = '' AND photos = ''" ); // Remove empty entries
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 7.3.07
7
  *
8
  */
9
 
1138
  // Post-processing needed?
1139
  switch ( $slug ) {
1140
  case 'wppa_remake_index_albums':
1141
+
1142
+ // If not done, reschedule
1143
+ if ( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE indexdtm = ''" ) ) {
1144
+ wppa_schedule_maintenace_proc( 'wppa_remake_index_albums' );
1145
+ }
1146
+
1147
+ // Schedule cleanup
1148
+ else {
1149
+ wppa_schedule_maintenance_proc( 'wppa_cleanup_index' );
1150
+ }
1151
+ break;
1152
  case 'wppa_remake_index_photos':
1153
+
1154
+ // If not done, reschedule
1155
+ if ( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_photos WHERE indexdtm = ''" ) ) {
1156
+ wppa_schedule_maintenace_proc( 'wppa_remake_index_photos' );
1157
+ }
1158
+
1159
+ // Schedule cleanup
1160
+ else {
1161
+ wppa_schedule_maintenance_proc( 'wppa_cleanup_index' );
1162
+ }
1163
  break;
1164
  case 'wppa_cleanup_index':
1165
  $wpdb->query( "DELETE FROM $wpdb->wppa_index WHERE albums = '' AND photos = ''" ); // Remove empty entries
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.3.06
7
  *
8
  */
9
 
@@ -9679,6 +9679,15 @@ global $wppa_supported_camara_brands;
9679
  $tags = 'system';
9680
  wppa_setting($slug, '15.1', $name, $desc, $html, $help, $clas, $tags);
9681
 
 
 
 
 
 
 
 
 
 
9682
  $name = __('FE Albums public', 'wp-photo-album-plus');
9683
  $desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
9684
  $help = '';
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.3.07
7
  *
8
  */
9
 
9679
  $tags = 'system';
9680
  wppa_setting($slug, '15.1', $name, $desc, $html, $help, $clas, $tags);
9681
 
9682
+ $name = __('Copy Custom', 'wp-photo-album-plus');
9683
+ $desc = __('Copy the custom fields when copying photo.', 'wp-photo-album-plus');
9684
+ $help = '';
9685
+ $slug = 'wppa_copy_custom';
9686
+ $html = wppa_checkbox($slug);
9687
+ $clas = '';
9688
+ $tags = 'system';
9689
+ wppa_setting($slug, '15.2', $name, $desc, $html, $help, $clas, $tags);
9690
+
9691
  $name = __('FE Albums public', 'wp-photo-album-plus');
9692
  $desc = __('Frontend created albums are --- public ---', 'wp-photo-album-plus');
9693
  $help = '';
wppa-thumbnails.php CHANGED
@@ -74,7 +74,9 @@ global $wpdb;
74
 
75
  // Find image attributes
76
  $imgsrc = wppa_get_thumb_path( $id );
77
- if ( ! is_file( $imgsrc ) ) wppa_create_thumbnail( $id );
 
 
78
  $alt = $album['alt_thumbsize'] == 'yes' ? '_alt' : '';
79
  $imgattr_a = wppa_get_imgstyle_a( $id, $imgsrc, wppa_opt( 'thumbsize'.$alt ), 'optional', 'thumb' );
80
  $imgstyle = $imgattr_a['style'];
@@ -94,7 +96,7 @@ global $wpdb;
94
  $cursor = $imgattr_a['cursor'];
95
 
96
  // Find the required image sizes
97
- if ( wppa_switch( 'use_thumb_popup' ) ) {
98
 
99
  // Landscape?
100
  if ( $imgwidth > $imgheight ) {
74
 
75
  // Find image attributes
76
  $imgsrc = wppa_get_thumb_path( $id );
77
+ if ( ! wppa_is_file( $imgsrc ) ) {
78
+ wppa_create_thumbnail( $id );
79
+ }
80
  $alt = $album['alt_thumbsize'] == 'yes' ? '_alt' : '';
81
  $imgattr_a = wppa_get_imgstyle_a( $id, $imgsrc, wppa_opt( 'thumbsize'.$alt ), 'optional', 'thumb' );
82
  $imgstyle = $imgattr_a['style'];
96
  $cursor = $imgattr_a['cursor'];
97
 
98
  // Find the required image sizes
99
+ if ( wppa_switch( 'use_thumb_popup' ) && wppa_is_file( $imgsrc ) ) {
100
 
101
  // Landscape?
102
  if ( $imgwidth > $imgheight ) {
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.2.09
7
  *
8
  */
9
 
@@ -167,7 +167,11 @@ global $wpdb;
167
  $args['sname'] = wppa_sanitize_album_photo_name( wppa_strip_tags( $args['name'] ) );
168
  }
169
 
 
170
  $need_re_index = false;
 
 
 
171
  foreach ( array_keys( $args ) as $itemname ) {
172
  $itemvalue = $args[$itemname];
173
  $doit = false;
@@ -180,12 +184,14 @@ global $wpdb;
180
  $itemvalue = wppa_strip_tags( $itemvalue, 'all' );
181
  $doit = true;
182
  $need_re_index = true;
 
183
  break;
184
  case 'description':
185
  $itemvalue = balanceTags( $itemvalue, true );
186
  $itemvalue = wppa_strip_tags( $itemvalue, 'script&style' );
187
  $doit = true;
188
  $need_re_index = true;
 
189
  break;
190
  case 'timestamp':
191
  case 'modified':
@@ -194,30 +200,13 @@ global $wpdb;
194
  }
195
  $doit = true;
196
  break;
197
- case 'scheduledtm':
198
- case 'scheduledel':
199
- case 'exifdtm':
200
- case 'page_id':
201
- $doit = true;
202
- break;
203
- case 'status':
204
- $doit = true;
205
- break;
206
  case 'tags':
207
  $itemvalue = wppa_sanitize_tags( $itemvalue );
208
  $doit = true;
209
  $need_re_index = true;
210
  break;
211
- case 'thumbx':
212
- case 'thumby':
213
- case 'photox':
214
- case 'photoy':
215
- case 'videox':
216
- case 'videoy':
217
- $itemvalue = intval( $itemvalue );
218
- $doit = true;
219
- break;
220
  case 'ext':
 
221
  $doit = true;
222
  break;
223
  case 'filename':
@@ -225,34 +214,18 @@ global $wpdb;
225
  $doit = true;
226
  $need_re_index = true;
227
  break;
228
- case 'stereo':
229
- case 'panorama':
230
- $doit = true;
231
- break;
232
  case 'custom':
233
  $doit = true;
234
  $need_re_index = true;
235
  break;
236
- case 'crypt':
237
- $doit = true;
238
- break;
239
  case 'owner':
240
  $doit = true;
241
  $need_re_index = true;
242
  break;
243
  case 'album':
244
- $doit = true;
245
- $need_re_index = true;
246
- break;
247
- case 'magickstack':
248
- $doit = true;
249
- break;
250
- case 'sname':
251
- $doit = true;
252
- break;
253
- case 'dlcount':
254
  $itemvalue = strval( intval( $itemvalue ) );
255
  $doit = true;
 
256
  break;
257
  case 'thumblock':
258
  $itemvalue = $itemvalue ? '1' : '0';
@@ -264,21 +237,78 @@ global $wpdb;
264
  break;
265
 
266
  default:
267
- wppa_log( 'Error', 'Not implemented in wppa_update_photo(): '.$itemname );
268
- return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  }
270
 
271
  if ( $doit ) {
272
- if ( $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos SET ".$itemname." = %s WHERE id = %s LIMIT 1", $itemvalue, $id ) ) ) {
273
- wppa_cache_photo( 'invalidate', $id );
274
- }
 
 
 
 
 
 
275
  }
 
 
 
 
 
 
 
 
 
276
  }
277
 
278
  // Update index
279
  if ( $need_re_index ) {
280
  wppa_schedule_maintenance_proc( 'wppa_remake_index_photos' );
281
- wppa_clear_cache();
282
  }
283
 
284
  return true;
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level wpdb routines that update records
6
+ * Version 7.3.07
7
  *
8
  */
9
 
167
  $args['sname'] = wppa_sanitize_album_photo_name( wppa_strip_tags( $args['name'] ) );
168
  }
169
 
170
+ // Init switches
171
  $need_re_index = false;
172
+ $set_modified = false;
173
+
174
+
175
  foreach ( array_keys( $args ) as $itemname ) {
176
  $itemvalue = $args[$itemname];
177
  $doit = false;
184
  $itemvalue = wppa_strip_tags( $itemvalue, 'all' );
185
  $doit = true;
186
  $need_re_index = true;
187
+ $set_modified = true;
188
  break;
189
  case 'description':
190
  $itemvalue = balanceTags( $itemvalue, true );
191
  $itemvalue = wppa_strip_tags( $itemvalue, 'script&style' );
192
  $doit = true;
193
  $need_re_index = true;
194
+ $set_modified = true;
195
  break;
196
  case 'timestamp':
197
  case 'modified':
200
  }
201
  $doit = true;
202
  break;
 
 
 
 
 
 
 
 
 
203
  case 'tags':
204
  $itemvalue = wppa_sanitize_tags( $itemvalue );
205
  $doit = true;
206
  $need_re_index = true;
207
  break;
 
 
 
 
 
 
 
 
 
208
  case 'ext':
209
+ $itemvalue = strtolower( $itemvalue );
210
  $doit = true;
211
  break;
212
  case 'filename':
214
  $doit = true;
215
  $need_re_index = true;
216
  break;
 
 
 
 
217
  case 'custom':
218
  $doit = true;
219
  $need_re_index = true;
220
  break;
 
 
 
221
  case 'owner':
222
  $doit = true;
223
  $need_re_index = true;
224
  break;
225
  case 'album':
 
 
 
 
 
 
 
 
 
 
226
  $itemvalue = strval( intval( $itemvalue ) );
227
  $doit = true;
228
+ $need_re_index = true;
229
  break;
230
  case 'thumblock':
231
  $itemvalue = $itemvalue ? '1' : '0';
237
  break;
238
 
239
  default:
240
+
241
+ // Just doit
242
+ if ( in_array( $itemname, array( 'mean_rating',
243
+ 'linkurl',
244
+ 'linktitle',
245
+ 'linktarget',
246
+ 'alt',
247
+ 'location',
248
+ 'indexdtm',
249
+ 'crypt',
250
+ 'stereo',
251
+ 'panorama',
252
+ 'sname',
253
+ 'magickstack',
254
+ 'scheduledtm',
255
+ 'scheduledel',
256
+ 'exifdtm',
257
+ 'status',
258
+ ) ) ) {
259
+ $doit = true;
260
+ }
261
+
262
+ // Assure integer
263
+ elseif ( in_array( $itemname, array( 'dlcount',
264
+ 'p_order',
265
+ 'thumbx',
266
+ 'thumby',
267
+ 'photox',
268
+ 'photoy',
269
+ 'videox',
270
+ 'videoy',
271
+ 'rating_count',
272
+ 'views',
273
+ 'clicks',
274
+ 'page_id',
275
+ ) ) ) {
276
+ $itemvalue = strval( intval( $itemvalue ) );
277
+ $doit = true;
278
+ }
279
+
280
+ // Undefined
281
+ else {
282
+ wppa_log( 'Err', 'Not implemented in wppa_update_photo(): ' . $itemname );
283
+ return false;
284
+ }
285
  }
286
 
287
  if ( $doit ) {
288
+ $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
289
+ SET $itemname = %s
290
+ WHERE id = %s", $itemvalue, $id ) );
291
+ }
292
+
293
+ if ( $set_modified ) {
294
+ $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
295
+ SET modified = %s
296
+ WHERE id = %s", time(), $id ) );
297
  }
298
+
299
+ if ( $need_re_index ) {
300
+ $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
301
+ SET indexdtm = ''
302
+ WHERE id = %s", $id ) );
303
+ wppa_schedule_maintenance_proc( 'wppa_remake_index_photos' );
304
+ }
305
+
306
+ wppa_cache_photo( 'invalidate', $id );
307
  }
308
 
309
  // Update index
310
  if ( $need_re_index ) {
311
  wppa_schedule_maintenance_proc( 'wppa_remake_index_photos' );
 
312
  }
313
 
314
  return true;
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.3.06.008
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -23,8 +23,8 @@ global $wpdb;
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
- global $wppa_revno; $wppa_revno = '7306'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.3.06.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.3.07.004
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
23
  global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
+ global $wppa_revno; $wppa_revno = '7307'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.3.07.004'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';