WP Photo Album Plus - Version 7.5.10.009

Version Description

= 7.5.10 =

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

Release Info

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

Code changes from version 7.5.10.008 to 7.5.10.009

changelog.txt CHANGED
@@ -9,7 +9,8 @@ WP Photo Album Plus Changelog
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
  * New setting Table I-F15: Character sizing.
11
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
12
- * Fixed shortcode generators. They all work now properly, both on classic asn block editor in classic blocks as well as the wppa custom block types.
 
13
 
14
  = 7.5.09 =
15
 
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
  * New setting Table I-F15: Character sizing.
11
  You can specify 'linear' (default), 'quadratic' or 'cubic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
12
+ * Fixed shortcode generators. They all work back properly now, both on classic asn block editor in classic blocks as well as the wppa custom block types.
13
+ * Fixed some php warnings.
14
 
15
  = 7.5.09 =
16
 
js/wppa-gutenberg-photo.js CHANGED
@@ -55,13 +55,13 @@ jQuery(document).ready(function(){
55
 
56
  // // Select the old value
57
  // jQuery( '#photo-104' ).prop( 'selected', true );
58
- // wppaPhotoEvaluate();
59
 
60
  // Bind onchange handler to ready button
61
  jQuery( '#wppa-shortcode-photo-ready' ).on( 'click',
62
  function() {
63
 
64
- var res = wppaPhotoEvaluate(),
65
  sc = res.shortcode,
66
  photo = res.photo;
67
 
@@ -120,7 +120,7 @@ jQuery(document).ready(function(){
120
  var wppaMyPhotoSelection = true;
121
 
122
  // Return '[photo xxx]' when a photo is selected. xxx stands for the integer photo id.
123
- function wppaPhotoEvaluate() {
124
 
125
  // Assume shortcode complete
126
  var shortcodeOk = true;
55
 
56
  // // Select the old value
57
  // jQuery( '#photo-104' ).prop( 'selected', true );
58
+ // wppaGutenbergPhotoEvaluate();
59
 
60
  // Bind onchange handler to ready button
61
  jQuery( '#wppa-shortcode-photo-ready' ).on( 'click',
62
  function() {
63
 
64
+ var res = wppaGutenbergPhotoEvaluate(),
65
  sc = res.shortcode,
66
  photo = res.photo;
67
 
120
  var wppaMyPhotoSelection = true;
121
 
122
  // Return '[photo xxx]' when a photo is selected. xxx stands for the integer photo id.
123
+ function wppaGutenbergPhotoEvaluate() {
124
 
125
  // Assume shortcode complete
126
  var shortcodeOk = true;
js/wppa-gutenberg-wppa.js CHANGED
@@ -55,7 +55,7 @@ jQuery(document).ready(function(){
55
  // Bind onchange handler to ready button
56
  jQuery( '#wppa-shortcode-wppa-ready' ).on( 'click',
57
  function() {
58
- var sc = wppaGalleryEvaluate();
59
 
60
  props.setAttributes({shortcode: sc});
61
 
@@ -103,7 +103,7 @@ jQuery(document).ready(function(){
103
 
104
 
105
  // Returns '[wppa ...]' when done
106
- function wppaGalleryEvaluate() {
107
 
108
  // Assume shortcode complete
109
  var shortcodeOk = true;
55
  // Bind onchange handler to ready button
56
  jQuery( '#wppa-shortcode-wppa-ready' ).on( 'click',
57
  function() {
58
+ var sc = wppaGutenbergGalleryEvaluate();
59
 
60
  props.setAttributes({shortcode: sc});
61
 
103
 
104
 
105
  // Returns '[wppa ...]' when done
106
+ function wppaGutenbergGalleryEvaluate() {
107
 
108
  // Assume shortcode complete
109
  var shortcodeOk = true;
js/wppa-lightbox.js CHANGED
@@ -3,7 +3,7 @@
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- // version 7.5.09
7
  //
8
 
9
  // Global inits
@@ -1233,80 +1233,6 @@ function wppaInitOverlay() {
1233
  $(window).on('DOMContentLoaded load resize wppascrollend orientationchange', wppaAdjustControlbar );
1234
  }
1235
 
1236
- // In fullscreen mode, place the controlbar at the bottom of the screen, 100$ wide
1237
- // Check max iconsizes
1238
- function wppaAdjustControlbar() {
1239
-
1240
- var $ = jQuery;
1241
-
1242
- // Is lightbox active?
1243
- if ( wppaOvlOpen ) {
1244
-
1245
- // and fullscreen?
1246
- if ( wppaIsFs() ) {
1247
-
1248
- // Adjust ctrlbar
1249
- $( ".wppa-pctl-div-lb" ).css({
1250
- position:"fixed",
1251
- left:0,
1252
- right:0,
1253
- bottom:0,
1254
- width:screen.width
1255
- });
1256
-
1257
- // Adjust wrapper
1258
- $( "#wppa-ovl-wrap" ).css({
1259
- width:screen.width,
1260
- height:screen.height
1261
- });
1262
- }
1263
- else {
1264
-
1265
- // Adjust ctrlbar
1266
- $( ".wppa-pctl-div-lb" ).css({
1267
- position:"initial",
1268
- width:"auto"
1269
- });
1270
- }
1271
-
1272
- // Check iconsizes
1273
- var barWidth = $( ".wppa-pctl-div-lb" ).width();
1274
- var newHeight;
1275
- if ( barWidth < 12 * ( parseInt( wppaOvlIconSize ) + 4 ) ) {
1276
- newHeight = parseInt( barWidth / 12 - 4 );
1277
-
1278
- if ( newHeight > 0 ) {
1279
- $( ".wppa-pctl-div-lb" ).find( "svg" ).css({height:newHeight,width:newHeight});
1280
- $( ".wppa-pctl-div-lb" ).find( "span" ).css({height:newHeight,width:newHeight});
1281
- }
1282
- }
1283
- else {
1284
- newHeight = wppaOvlIconSize;
1285
- $( ".wppa-pctl-div-lb" ).find( "svg" ).css({height:newHeight,width:newHeight});
1286
- $( ".wppa-pctl-div-lb" ).find( "span" ).css({height:newHeight,width:newHeight});
1287
- }
1288
-
1289
- // Adjust start/stop button display
1290
- if ( wppaOvlIsSingle ) {
1291
- jQuery( '#wppa-ovl-start-btn' ).hide();
1292
- jQuery( '#wppa-ovl-stop-btn' ).hide();
1293
- }
1294
- else {
1295
- if ( wppaOvlRunning ) {
1296
- jQuery( '#wppa-ovl-stop-btn' ).show();
1297
- jQuery( '#wppa-ovl-start-btn' ).hide();
1298
- }
1299
- else {
1300
- jQuery( '#wppa-ovl-start-btn' ).show();
1301
- jQuery( '#wppa-ovl-stop-btn' ).hide();
1302
- }
1303
- }
1304
-
1305
- // Make it visible
1306
- $( ".wppa-pctl-div-lb" ).css({visibility:"visible"});
1307
- }
1308
- }
1309
-
1310
  // This module is intented to be used in any onclick definition that opens or closes a part of the photo description.
1311
  // this will automaticly adjust the picturesize so that the full description will be visible.
1312
  // Example: <a onclick="myproc()" >Show Details</a>
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ // version 7.5.10
7
  //
8
 
9
  // Global inits
1233
  $(window).on('DOMContentLoaded load resize wppascrollend orientationchange', wppaAdjustControlbar );
1234
  }
1235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1236
  // This module is intented to be used in any onclick definition that opens or closes a part of the photo description.
1237
  // this will automaticly adjust the picturesize so that the full description will be visible.
1238
  // Example: <a onclick="myproc()" >Show Details</a>
js/wppa-lightbox.min.js CHANGED
@@ -1 +1 @@
1
- var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlIsPdf=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!1,wppaGlobalOvlPanoramaId=0,wppaOvlBrowseOnClick=!1,wppaSavedContainerWidth=0;function wppaDoOnOrientationChange(a){wppaOvlOpen&&setTimeout("wppaOvlShow( "+wppaOvlIdx+" )",200)}function wppaOvlKeyboardHandler(a){var p,t=(p=null==a?event.keyCode:a.keyCode,27),e=String.fromCharCode(p).toLowerCase();switch(p){case t:wppaStopVideo(0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(e){case"p":wppaOvlShowPrev();break;case"n":wppaOvlShowNext();break;case"s":wppaOvlStartStop();break;case"f":wppaFsOn();break;case"q":case"x":wppaStopVideo(0),wppaOvlHide()}return!1}function wppaOvlShow(a){var p,t,e=jQuery;if(0<wppaOvlActivePanorama||e("#wppa-overlay-ic").css({top:"50%",left:"50%"}),e("#wppa-overlay-bg").stop().fadeTo(3,wppaOvlOpacity),wppaOvlFirst&&(e("#weaver-final").removeClass("wvr-hide-bang"),wppaKbHandlerInstalled||(e(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),e(window).trigger("wppalightboxstart")),"object"==typeof a){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!(wppaOvlImgs=[]);var l=(a.rel?a.rel:!!e(a).attr("data-rel")&&e(a).attr("data-rel")).split("[");if(l[1])for(var o,i=l[1],n=e("a"),w=0,d=0;d<n.length;d++)1<(l=!!e(o=n[d]).attr("data-rel")&&e(o).attr("data-rel").split("[")).length&&"wppa"==l[0]&&l[1]==i&&(wppaOvlUrls[w]=o.href,e(o).attr("data-lbtitle")?wppaOvlTitles[w]=wppaRepairScriptTags(e(o).attr("data-lbtitle")):wppaOvlTitles[w]=wppaRepairScriptTags(o.title),wppaOvlIds[w]=e(o).attr("data-id")?e(o).attr("data-id"):"0",wppaOvlAlts[w]=e(o).attr("data-alt")?e(o).attr("data-alt"):"",wppaOvlVideoHtmls[w]=e(o).attr("data-videohtml")?decodeURI(e(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[w]=e(o).attr("data-pdfhtml")?decodeURI(e(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[w]=e(o).attr("data-audiohtml")?decodeURI(e(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[w]=e(o).attr("data-videonatwidth")?e(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[w]=e(o).attr("data-videonatheight")?e(o).attr("data-videonatheight"):"",0<(p=e(o).attr("data-panorama")?e(o).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,t=p.indexOf("."),wppaOvlPanoramaHtml[w]=p.substr(t+1),wppaOvlPanoramaIds[w]=p.substr(0,t)):(wppaOvlPanoramaHtml[w]="",wppaOvlPanoramaIds[w]=0),decodeURI(e(o).attr("data-pdfhtml"))==decodeURI(e(a).attr("data-pdfhtml"))&&decodeURI(e(o).attr("data-videohtml"))==decodeURI(e(a).attr("data-videohtml"))&&decodeURI(e(o).attr("data-audiohtml"))==decodeURI(e(a).attr("data-audiohtml"))&&o.href==a.href&&(wppaOvlIdx=w),w++);else wppaOvlUrls[0]=a.href,e(a).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(e(a).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(a.title),wppaOvlIds[0]=e(a).attr("data-id")?e(a).attr("data-id"):"0",wppaOvlAlts[0]=e(a).attr("data-alt")?e(a).attr("data-alt"):"",wppaOvlVideoHtmls[0]=e(a).attr("data-videohtml")?decodeURI(e(a).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=e(a).attr("data-audiohtml")?decodeURI(e(a).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=e(a).attr("data-pdfhtml")?decodeURI(e(a).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=e(a).attr("data-videonatwidth")?e(a).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=e(a).attr("data-videonatheight")?e(a).attr("data-videonatheight"):"",0<(p=e(a).attr("data-panorama")?e(a).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,t=p.indexOf("."),wppaOvlPanoramaHtml[0]=p.substr(t+1),wppaOvlPanoramaIds[0]=p.substr(0,t)):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0),wppaOvlIdx=0}else wppaOvlIdx=a;wppaOvlOpen=!0,setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},1)}function _wppaOvlShow(a){var p=jQuery;wppaOvlCurIdx=a,wppaOvlFirst&&p("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[a],wppaHasAudio=""!=wppaOvlAudioHtmls[a],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[a];var t=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1,e=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1;if(""==wppaOvlVideoHtmls[t]&&wppaOvlOpen&&(document.getElementById("wppa-pre-next").src=wppaOvlUrls[t]),""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(document.getElementById("wppa-pre-prev").src=wppaOvlUrls[e]),_bumpViewCount(wppaOvlIds[a]),wppaOvlIsSingle=1==wppaOvlUrls.length,0<wppaOvlPanoramaIds[a]?(wppaOvlActivePanorama=wppaOvlPanoramaIds[a],p("#wppa-overlay-ic").css({top:0,left:0})):(wppaOvlActivePanorama=0,p("#wppa-overlay-ic").css({top:"50%",left:"50%",display:"block"})),wppaIsFs()||wppaOvlActivePanorama)return wppaOvlActivePanorama?o=wppaOvlPanoramaHtml[a]:wppaIsVideo?o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" >'+wppaOvlVideoHtmls[a]+"</video></div>":wppaOvlIsPdf?o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[a]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" ></iframe></div>':(o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[a]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" />',wppaHasAudio&&(o+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[a]+"</audio>"),o+="</div>"),(wppaIsVideo||wppaHasAudio)&&wppaOvlFsPhotoId==wppaPhotoId&&0!=wppaPhotoId||(wppaStopVideo(0),wppaStopAudio(),p("#wppa-overlay-ic").html(o)),0<wppaOvlPanoramaIds[a]&&wppaOvlIsSingle&&p(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout(wppaOvlFormatFull,10),wppaIsVideo||wppaHasAudio?setTimeout(function(){wppaOvlFsPhotoId=wppaPhotoId},20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,wppaFsShow(),!1;wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);var l="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(l=wppaOvlFontColor);wppaOvlUrls.length;p("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var o="";o+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(o+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" >'+wppaOvlVideoHtmls[a]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?o+="<iframe "+wppaOvlPdfHtmls[a]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" ></iframe>':(o+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[a]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" />',wppaHasAudio&&(o+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[a]+"</audio>"),wppaOvlIsVideo=!1),o+="</div>";var i=!wppaOvlIsSingle&&wppaOvlShowCounter;return o+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+l+";text-align:center;font-family:"+wppaOvlFontFamily+";font-size:"+wppaOvlFontSize+"px;font-weight:"+wppaOvlFontWeight+";line-height:"+wppaOvlLineHeight+"px;box-shadow:none;border-bottom-left-radius:"+wppaOvlRadius+"px;border-bottom-right-radius:"+wppaOvlRadius+'px;" ><div id="wppa-overlay-txt" style="text-align:center;min-height:36px;width:100%;'+("auto"==wppaOvlTxtHeight?"max-height:200px;":"max-height:"+wppaOvlTxtHeight+"px;")+'overflow:auto;box-shadow:none;" >',o+=wppaOvlNavBar(),o+=(i?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[a],o+="</div>",o+="</div>",p("#wppa-overlay-ic").html(o),wppaFsShow(),p("#wppa-overlay-img").bind("contextmenu",function(a){return!1}),0==wppaOvlPanoramaIds[a]&&wppaOvlResize(),wppaFsShow(),wppaAdjustControlbar(),!1}function wppaOvlSize(a){var p=jQuery;if(!wppaOvlActivePanorama){var t=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(t&&e&&"none"!=p("#wppa-overlay-bg").css("display")){if(!wppaIsFs()){var l,o,i,n,w=wppaWindowWidth(),d=wppaWindowHeight(),r=wppaOvlIsVideo?(t.clientWidth,l=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):wppaOvlIsPdf?(wppaWindowWidth(),l=.9*wppaWindowWidth(),.9*wppaWindowHeight()):(t.clientWidth,l=t.naturalWidth,t.naturalHeight);void 0===l&&(l=t.clientWidth,r=t.clientHeight),(n=(o=(w-3*wppaOvlBorderWidth)/l)<(i=d/r)?o:i)<1&&(l=parseInt(l*n),r=parseInt(r*n));var v=p("#wppa-overlay-txt").height(),s="auto"==wppaOvlTxtHeight?(0==v&&(v=20+2*wppaOvlBorderWidth),d-v-20-2*wppaOvlBorderWidth):d-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth,h=parseInt(s*l/r),c=(wppaOvlPadTop,parseInt((w-h)/2),h);r<s&&(wppaOvlPadTop,parseInt((w-l)/2),c=l);var O=wppaSavedImageWidth-c<3&&c-wppaSavedImageWidth<3;return c<=10&&(r=180,O=!(l=c=240)),c=parseInt(c),wppaSavedImageWidth=parseInt(c),wppaSavedImageHeight=parseInt(c*r/l),wppaSavedMarginLeft=-parseInt(c/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(c+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+p("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),p("#wppa-overlay-img").stop().animate({width:wppaSavedImageWidth,height:wppaSavedImageHeight},a),p("#wppa-overlay-ic").stop().animate({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},a),O?(p("#wppa-ovl-spin").hide(),wppaOvlFirst=!1):setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},a+10),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){var a,p,t,e=jQuery;if(wppaOvlOpen&&!(0<wppaOvlActivePanorama)){if(wppaOvlIsVideo)a=document.getElementById("wppa-overlay-img"),p=wppaOvlVideoNaturalWidths[wppaOvlIdx],t=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)a=document.getElementById("wppa-overlay-img"),p=screen.width,t=screen.height;else{if(a=document.getElementById("wppa-overlay-img"),!(wppaIsIe||a&&a.complete))return void setTimeout(wppaOvlFormatFull,200);p=a.naturalWidth,t=a.naturalHeight}var l=p/t,o=0,i=0,n=0,w=0,w=l<screen.width/screen.height?(o=(screen.width-screen.height*l)/2,i=0,n=screen.height,screen.height*l):(o=0,i=(screen.height-screen.width/l)/2,n=screen.width/l,screen.width),o=parseInt(o),i=parseInt(i),n=parseInt(n);return w=parseInt(w),e(a).css({height:n,width:w,marginLeft:o,marginTop:i,left:0,top:0,maxWidth:1e4}),e(a).css({visibility:"visible"}),e("#wppa-ovl-full-bg").css({overflow:"hidden"}),e("#wppa-ovl-full-bg").scrollTop(0),e("#wppa-ovl-full-bg").scrollLeft(0),e("#wppa-ovl-spin").hide(),e("#wppa-ovl-full-bg").css({visibility:"hidden"}),html=e("#wppa-overlay-ic").html(),html+='<div style="position:fixed;bottom:0;left:0;right:0;" >'+wppaOvlNavBar()+"</div>",e("#wppa-overlay-ic").html(html),!0}}function wppaOvlStartAudio(){var a=document.getElementById("wppa-overlay-audio");a&&"function"==typeof a.play&&a.play()}function wppaOvlStartStop(){var a=jQuery;wppaOvlRunning?(wppaOvlRunning=!1,-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&a("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&a("#wppa-ovl-next-btn").css("visibility","visible")),a("#wppa-ovl-stop-btn").hide(),a("#wppa-ovl-start-btn").show()):(wppaOvlRunning=!0,wppaOvlRun(),a("#wppa-ovl-stop-btn").show(),a("#wppa-ovl-start-btn").hide())}function wppaOvlRun(){if(wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout(wppaOvlRun,50);else{if(!wppaIsVideo){var a=document.getElementById("wppa-overlay-img");if(a&&!wppaIsIe&&!a.complete)return void setTimeout(wppaOvlRun,200)}wppaOvlShowNext(),setTimeout(wppaOvlRun,wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var a=wppaOvlCurIdx-1;a<0&&(a=wppaOvlUrls.length-1);var p=document.getElementById("wppa-pre-prev");return""!=wppaOvlVideoHtmls[a]||wppaIsIe||p.complete||!wppaOvlOpen?wppaOvlShow(a):setTimeout(wppaOvlShowPrev,200),!1}function wppaOvlShowNext(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var a=wppaOvlCurIdx+1;a>wppaOvlUrls.length-1&&(a=0);var p=document.getElementById("wppa-pre-next");return""!=wppaOvlVideoHtmls[a]||wppaIsIe||p.complete||!wppaOvlOpen?wppaOvlShow(a):setTimeout(wppaOvlShowNext,200),!1}function wppaOvlHide(){var a=jQuery;wppaStopAudio(),"lightbox"==wppaFsPolicy&&wppaIsFs()&&wppaFsOff(),setTimeout(function(){a("#wppa-overlay-ic").html(""),a("#wppa-overlay-ic").hide(),a("#wppa-overlay-bg").hide()},200),a(document).off("keydown",wppaOvlKeyboardHandler),wppaOvlFirst=!(wppaKbHandlerInstalled=!1),wppaOvlRunning=!1,a("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,a("body").trigger("quitimage"),wppaOvlOpen=!1,document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),a(window).trigger("wppalightboxend"),a(window).trigger("resize")}function wppaOvlOnclick(a){switch(wppaOvlOnclickType){case"none":break;case"close":wppaOvlHide();break;case"browse":var p=a.screenX-window.screenX;48<a.clientY&&(p<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}return!0}function wppaInitOverlay(){var o=jQuery;o(".wp-caption").each(function(){var a=o(this),p=a.find("IMG[alt]").attr("alt")||"",t=a.find(".wp-caption-text").html()||"",e=a.find("a"),l=p+"<br>"+t;e.attr("data-lbtitle")||e.attr("data-lbtitle",l)});var a,p,t=o("a"),e=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=wppaOvlCurIdx=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),p=0;p<t.length;p++)if(a=t[p],o(a).attr("data-rel")?e=o(a).attr("data-rel").split("["):a.rel?e=a.rel.split("["):e[0]="","wppa"==e[0])switch(wppaWppaOverlayActivated=!0,o(a).on("click",function(a){wppaOvlShow(this),a.preventDefault()}),wppaMagnifierCursor){case"pointer":o(a).css("cursor","pointer");break;case"":o(a).css("cursor","default");break;default:o(a).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange),o(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaAdjustControlbar)}function wppaAdjustControlbar(){var a,p,t=jQuery;wppaOvlOpen&&(wppaIsFs()?(t(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0,width:screen.width}),t("#wppa-ovl-wrap").css({width:screen.width,height:screen.height})):t(".wppa-pctl-div-lb").css({position:"initial",width:"auto"}),(a=t(".wppa-pctl-div-lb").width())<12*(parseInt(wppaOvlIconSize)+4)?0<(p=parseInt(a/12-4))&&(t(".wppa-pctl-div-lb").find("svg").css({height:p,width:p}),t(".wppa-pctl-div-lb").find("span").css({height:p,width:p})):(p=wppaOvlIconSize,t(".wppa-pctl-div-lb").find("svg").css({height:p,width:p}),t(".wppa-pctl-div-lb").find("span").css({height:p,width:p})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),t(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaOvlResize(){0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout(wppaOvlStartAudio,100))}function wppaOvlImgClick(a){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(a.screenX<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}function wppaOvlNavBar(){var a="";return wppaOvlIsSingle||(a+='<span id="wppa-ovl-prev-btn" style="margin:0 2px 0 0;float:left;display:block;" onclick="wppaOvlShowPrev()" >'+wppaSvgHtml("Prev-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-start-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"none":"block")+';" title="Start" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Play-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-stop-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"block":"none")+';" title="Stop" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Pause-Button",wppaOvlIconSize,!0,!0)+"</span>",a+='<span id="wppa-ovl-next-btn" style="margin:0 2px;float:right;display:block;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</span>"),a+='<span id="wppa-exit-btn-2" style="margin:0 2px;float:right;display:block;" title="Exit" onclick="wppaOvlHide()" >'+wppaSvgHtml("Exit-2",wppaOvlIconSize,!0,!0)+"</span>","lightbox"!=wppaFsPolicy||wppaIsSafari||wppaIsIpad||(a+='<span id="wppa-fulls-btn-2" class="wppa-fulls-btn" style="margin:0 2px;float:right;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen-2",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-exit-fulls-btn-2" class="wppa-exit-fulls-btn" style="margin:0 2px;float:right;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen-2",wppaOvlIconSize,!0,!0)+"</span>"),a}jQuery(document).ready(function(a){wppaInitOverlay()}),jQuery(window).resize(function(){wppaOvlResize()});
1
+ var wppaSavedContainerHeight,wppaSavedMarginLeft,wppaSavedMarginTop,wppaSavedImageWidth,wppaSavedImageHeight,wppaIsVideo=!1,wppaHasAudio=!1,wppaOvlIsPdf=!1,wppaOvlImgs=[],wppaKbHandlerInstalled=!1,wppaOvlCurIdx=0,wppaOvlSvgInverse=!1,wppaOvlActivePanorama=0,wppaOvlHasPanoramas=!1,wppaGlobalOvlPanoramaId=0,wppaOvlBrowseOnClick=!1,wppaSavedContainerWidth=0;function wppaDoOnOrientationChange(a){wppaOvlOpen&&setTimeout("wppaOvlShow( "+wppaOvlIdx+" )",200)}function wppaOvlKeyboardHandler(a){var p,t=(p=null==a?event.keyCode:a.keyCode,27),e=String.fromCharCode(p).toLowerCase();switch(p){case t:wppaStopVideo(0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(e){case"p":wppaOvlShowPrev();break;case"n":wppaOvlShowNext();break;case"s":wppaOvlStartStop();break;case"f":wppaFsOn();break;case"q":case"x":wppaStopVideo(0),wppaOvlHide()}return!1}function wppaOvlShow(a){var p,t,e=jQuery;if(0<wppaOvlActivePanorama||e("#wppa-overlay-ic").css({top:"50%",left:"50%"}),e("#wppa-overlay-bg").stop().fadeTo(3,wppaOvlOpacity),wppaOvlFirst&&(e("#weaver-final").removeClass("wvr-hide-bang"),wppaKbHandlerInstalled||(e(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),e(window).trigger("wppalightboxstart")),"object"==typeof a){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!(wppaOvlImgs=[]);var l=(a.rel?a.rel:!!e(a).attr("data-rel")&&e(a).attr("data-rel")).split("[");if(l[1])for(var o,i=l[1],n=e("a"),w=0,d=0;d<n.length;d++)1<(l=!!e(o=n[d]).attr("data-rel")&&e(o).attr("data-rel").split("[")).length&&"wppa"==l[0]&&l[1]==i&&(wppaOvlUrls[w]=o.href,e(o).attr("data-lbtitle")?wppaOvlTitles[w]=wppaRepairScriptTags(e(o).attr("data-lbtitle")):wppaOvlTitles[w]=wppaRepairScriptTags(o.title),wppaOvlIds[w]=e(o).attr("data-id")?e(o).attr("data-id"):"0",wppaOvlAlts[w]=e(o).attr("data-alt")?e(o).attr("data-alt"):"",wppaOvlVideoHtmls[w]=e(o).attr("data-videohtml")?decodeURI(e(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[w]=e(o).attr("data-pdfhtml")?decodeURI(e(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[w]=e(o).attr("data-audiohtml")?decodeURI(e(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[w]=e(o).attr("data-videonatwidth")?e(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[w]=e(o).attr("data-videonatheight")?e(o).attr("data-videonatheight"):"",0<(p=e(o).attr("data-panorama")?e(o).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,t=p.indexOf("."),wppaOvlPanoramaHtml[w]=p.substr(t+1),wppaOvlPanoramaIds[w]=p.substr(0,t)):(wppaOvlPanoramaHtml[w]="",wppaOvlPanoramaIds[w]=0),decodeURI(e(o).attr("data-pdfhtml"))==decodeURI(e(a).attr("data-pdfhtml"))&&decodeURI(e(o).attr("data-videohtml"))==decodeURI(e(a).attr("data-videohtml"))&&decodeURI(e(o).attr("data-audiohtml"))==decodeURI(e(a).attr("data-audiohtml"))&&o.href==a.href&&(wppaOvlIdx=w),w++);else wppaOvlUrls[0]=a.href,e(a).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(e(a).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(a.title),wppaOvlIds[0]=e(a).attr("data-id")?e(a).attr("data-id"):"0",wppaOvlAlts[0]=e(a).attr("data-alt")?e(a).attr("data-alt"):"",wppaOvlVideoHtmls[0]=e(a).attr("data-videohtml")?decodeURI(e(a).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=e(a).attr("data-audiohtml")?decodeURI(e(a).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=e(a).attr("data-pdfhtml")?decodeURI(e(a).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=e(a).attr("data-videonatwidth")?e(a).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=e(a).attr("data-videonatheight")?e(a).attr("data-videonatheight"):"",0<(p=e(a).attr("data-panorama")?e(a).attr("data-panorama"):"").length?(wppaOvlHasPanoramas=!0,t=p.indexOf("."),wppaOvlPanoramaHtml[0]=p.substr(t+1),wppaOvlPanoramaIds[0]=p.substr(0,t)):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0),wppaOvlIdx=0}else wppaOvlIdx=a;wppaOvlOpen=!0,setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},1)}function _wppaOvlShow(a){var p=jQuery;wppaOvlCurIdx=a,wppaOvlFirst&&p("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[a],wppaHasAudio=""!=wppaOvlAudioHtmls[a],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[a];var t=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1,e=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1;if(""==wppaOvlVideoHtmls[t]&&wppaOvlOpen&&(document.getElementById("wppa-pre-next").src=wppaOvlUrls[t]),""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(document.getElementById("wppa-pre-prev").src=wppaOvlUrls[e]),_bumpViewCount(wppaOvlIds[a]),wppaOvlIsSingle=1==wppaOvlUrls.length,0<wppaOvlPanoramaIds[a]?(wppaOvlActivePanorama=wppaOvlPanoramaIds[a],p("#wppa-overlay-ic").css({top:0,left:0})):(wppaOvlActivePanorama=0,p("#wppa-overlay-ic").css({top:"50%",left:"50%",display:"block"})),wppaIsFs()||wppaOvlActivePanorama)return wppaOvlActivePanorama?o=wppaOvlPanoramaHtml[a]:wppaIsVideo?o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" >'+wppaOvlVideoHtmls[a]+"</video></div>":wppaOvlIsPdf?o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[a]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" ></iframe></div>':(o='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[a]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[a]+'" />',wppaHasAudio&&(o+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[a]+"</audio>"),o+="</div>"),(wppaIsVideo||wppaHasAudio)&&wppaOvlFsPhotoId==wppaPhotoId&&0!=wppaPhotoId||(wppaStopVideo(0),wppaStopAudio(),p("#wppa-overlay-ic").html(o)),0<wppaOvlPanoramaIds[a]&&wppaOvlIsSingle&&p(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout(wppaOvlFormatFull,10),wppaIsVideo||wppaHasAudio?setTimeout(function(){wppaOvlFsPhotoId=wppaPhotoId},20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,wppaFsShow(),!1;wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);var l="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(l=wppaOvlFontColor);wppaOvlUrls.length;p("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var o="";o+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(o+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" >'+wppaOvlVideoHtmls[a]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?o+="<iframe "+wppaOvlPdfHtmls[a]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" ></iframe>':(o+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[a]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[a]+'" />',wppaHasAudio&&(o+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[a]+"</audio>"),wppaOvlIsVideo=!1),o+="</div>";var i=!wppaOvlIsSingle&&wppaOvlShowCounter;return o+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+l+";text-align:center;font-family:"+wppaOvlFontFamily+";font-size:"+wppaOvlFontSize+"px;font-weight:"+wppaOvlFontWeight+";line-height:"+wppaOvlLineHeight+"px;box-shadow:none;border-bottom-left-radius:"+wppaOvlRadius+"px;border-bottom-right-radius:"+wppaOvlRadius+'px;" ><div id="wppa-overlay-txt" style="text-align:center;min-height:36px;width:100%;'+("auto"==wppaOvlTxtHeight?"max-height:200px;":"max-height:"+wppaOvlTxtHeight+"px;")+'overflow:auto;box-shadow:none;" >',o+=wppaOvlNavBar(),o+=(i?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[a],o+="</div>",o+="</div>",p("#wppa-overlay-ic").html(o),wppaFsShow(),p("#wppa-overlay-img").bind("contextmenu",function(a){return!1}),0==wppaOvlPanoramaIds[a]&&wppaOvlResize(),wppaFsShow(),wppaAdjustControlbar(),!1}function wppaOvlSize(a){var p=jQuery;if(!wppaOvlActivePanorama){var t=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(t&&e&&"none"!=p("#wppa-overlay-bg").css("display")){if(!wppaIsFs()){var l,o,i,n,w=wppaWindowWidth(),d=wppaWindowHeight(),r=wppaOvlIsVideo?(t.clientWidth,l=wppaOvlVideoNaturalWidths[wppaOvlCurIdx],wppaOvlVideoNaturalHeights[wppaOvlCurIdx]):wppaOvlIsPdf?(wppaWindowWidth(),l=.9*wppaWindowWidth(),.9*wppaWindowHeight()):(t.clientWidth,l=t.naturalWidth,t.naturalHeight);void 0===l&&(l=t.clientWidth,r=t.clientHeight),(n=(o=(w-3*wppaOvlBorderWidth)/l)<(i=d/r)?o:i)<1&&(l=parseInt(l*n),r=parseInt(r*n));var v=p("#wppa-overlay-txt").height(),s="auto"==wppaOvlTxtHeight?(0==v&&(v=20+2*wppaOvlBorderWidth),d-v-20-2*wppaOvlBorderWidth):d-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth,h=parseInt(s*l/r),O=(wppaOvlPadTop,parseInt((w-h)/2),h);r<s&&(wppaOvlPadTop,parseInt((w-l)/2),O=l);var c=wppaSavedImageWidth-O<3&&O-wppaSavedImageWidth<3;return O<=10&&(r=180,c=!(l=O=240)),O=parseInt(O),wppaSavedImageWidth=parseInt(O),wppaSavedImageHeight=parseInt(O*r/l),wppaSavedMarginLeft=-parseInt(O/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(O+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+p("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),p("#wppa-overlay-img").stop().animate({width:wppaSavedImageWidth,height:wppaSavedImageHeight},a),p("#wppa-overlay-ic").stop().animate({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},a),c?(p("#wppa-ovl-spin").hide(),wppaOvlFirst=!1):setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},a+10),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){var a,p,t,e=jQuery;if(wppaOvlOpen&&!(0<wppaOvlActivePanorama)){if(wppaOvlIsVideo)a=document.getElementById("wppa-overlay-img"),p=wppaOvlVideoNaturalWidths[wppaOvlIdx],t=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)a=document.getElementById("wppa-overlay-img"),p=screen.width,t=screen.height;else{if(a=document.getElementById("wppa-overlay-img"),!(wppaIsIe||a&&a.complete))return void setTimeout(wppaOvlFormatFull,200);p=a.naturalWidth,t=a.naturalHeight}var l=p/t,o=0,i=0,n=0,w=0,w=l<screen.width/screen.height?(o=(screen.width-screen.height*l)/2,i=0,n=screen.height,screen.height*l):(o=0,i=(screen.height-screen.width/l)/2,n=screen.width/l,screen.width),o=parseInt(o),i=parseInt(i),n=parseInt(n);return w=parseInt(w),e(a).css({height:n,width:w,marginLeft:o,marginTop:i,left:0,top:0,maxWidth:1e4}),e(a).css({visibility:"visible"}),e("#wppa-ovl-full-bg").css({overflow:"hidden"}),e("#wppa-ovl-full-bg").scrollTop(0),e("#wppa-ovl-full-bg").scrollLeft(0),e("#wppa-ovl-spin").hide(),e("#wppa-ovl-full-bg").css({visibility:"hidden"}),html=e("#wppa-overlay-ic").html(),html+='<div style="position:fixed;bottom:0;left:0;right:0;" >'+wppaOvlNavBar()+"</div>",e("#wppa-overlay-ic").html(html),!0}}function wppaOvlStartAudio(){var a=document.getElementById("wppa-overlay-audio");a&&"function"==typeof a.play&&a.play()}function wppaOvlStartStop(){var a=jQuery;wppaOvlRunning?(wppaOvlRunning=!1,-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&a("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&a("#wppa-ovl-next-btn").css("visibility","visible")),a("#wppa-ovl-stop-btn").hide(),a("#wppa-ovl-start-btn").show()):(wppaOvlRunning=!0,wppaOvlRun(),a("#wppa-ovl-stop-btn").show(),a("#wppa-ovl-start-btn").hide())}function wppaOvlRun(){if(wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout(wppaOvlRun,50);else{if(!wppaIsVideo){var a=document.getElementById("wppa-overlay-img");if(a&&!wppaIsIe&&!a.complete)return void setTimeout(wppaOvlRun,200)}wppaOvlShowNext(),setTimeout(wppaOvlRun,wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var a=wppaOvlCurIdx-1;a<0&&(a=wppaOvlUrls.length-1);var p=document.getElementById("wppa-pre-prev");return""!=wppaOvlVideoHtmls[a]||wppaIsIe||p.complete||!wppaOvlOpen?wppaOvlShow(a):setTimeout(wppaOvlShowPrev,200),!1}function wppaOvlShowNext(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var a=wppaOvlCurIdx+1;a>wppaOvlUrls.length-1&&(a=0);var p=document.getElementById("wppa-pre-next");return""!=wppaOvlVideoHtmls[a]||wppaIsIe||p.complete||!wppaOvlOpen?wppaOvlShow(a):setTimeout(wppaOvlShowNext,200),!1}function wppaOvlHide(){var a=jQuery;wppaStopAudio(),"lightbox"==wppaFsPolicy&&wppaIsFs()&&wppaFsOff(),setTimeout(function(){a("#wppa-overlay-ic").html(""),a("#wppa-overlay-ic").hide(),a("#wppa-overlay-bg").hide()},200),a(document).off("keydown",wppaOvlKeyboardHandler),wppaOvlFirst=!(wppaKbHandlerInstalled=!1),wppaOvlRunning=!1,a("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,a("body").trigger("quitimage"),wppaOvlOpen=!1,document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),a(window).trigger("wppalightboxend"),a(window).trigger("resize")}function wppaOvlOnclick(a){switch(wppaOvlOnclickType){case"none":break;case"close":wppaOvlHide();break;case"browse":var p=a.screenX-window.screenX;48<a.clientY&&(p<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}return!0}function wppaInitOverlay(){var o=jQuery;o(".wp-caption").each(function(){var a=o(this),p=a.find("IMG[alt]").attr("alt")||"",t=a.find(".wp-caption-text").html()||"",e=a.find("a"),l=p+"<br>"+t;e.attr("data-lbtitle")||e.attr("data-lbtitle",l)});var a,p,t=o("a"),e=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=wppaOvlCurIdx=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),p=0;p<t.length;p++)if(a=t[p],o(a).attr("data-rel")?e=o(a).attr("data-rel").split("["):a.rel?e=a.rel.split("["):e[0]="","wppa"==e[0])switch(wppaWppaOverlayActivated=!0,o(a).on("click",function(a){wppaOvlShow(this),a.preventDefault()}),wppaMagnifierCursor){case"pointer":o(a).css("cursor","pointer");break;case"":o(a).css("cursor","default");break;default:o(a).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}wppaIsMobile&&window.addEventListener("orientationchange",wppaDoOnOrientationChange),o(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaAdjustControlbar)}function wppaOvlResize(){0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout(wppaOvlStartAudio,100))}function wppaOvlImgClick(a){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(a.screenX<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}function wppaOvlNavBar(){var a="";return wppaOvlIsSingle||(a+='<span id="wppa-ovl-prev-btn" style="margin:0 2px 0 0;float:left;display:block;" onclick="wppaOvlShowPrev()" >'+wppaSvgHtml("Prev-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-start-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"none":"block")+';" title="Start" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Play-Button",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-ovl-stop-btn" style="margin:0 2px;float:left;display:'+(wppaOvlRunning?"block":"none")+';" title="Stop" onclick="wppaOvlStartStop()" >'+wppaSvgHtml("Pause-Button",wppaOvlIconSize,!0,!0)+"</span>",a+='<span id="wppa-ovl-next-btn" style="margin:0 2px;float:right;display:block;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</span>"),a+='<span id="wppa-exit-btn-2" style="margin:0 2px;float:right;display:block;" title="Exit" onclick="wppaOvlHide()" >'+wppaSvgHtml("Exit-2",wppaOvlIconSize,!0,!0)+"</span>","lightbox"!=wppaFsPolicy||wppaIsSafari||wppaIsIpad||(a+='<span id="wppa-fulls-btn-2" class="wppa-fulls-btn" style="margin:0 2px;float:right;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen-2",wppaOvlIconSize,!0,!0)+'</span><span id="wppa-exit-fulls-btn-2" class="wppa-exit-fulls-btn" style="margin:0 2px;float:right;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen-2",wppaOvlIconSize,!0,!0)+"</span>"),a}jQuery(document).ready(function(a){wppaInitOverlay()}),jQuery(window).resize(function(){wppaOvlResize()});
js/wppa-utils.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // conatins common vars and functions
4
  //
5
- var wppaJsUtilsVersion = '7.5.07';
6
  var wppaDebug;
7
  var wppaDebugCounter = 0;
8
 
@@ -523,3 +523,77 @@ function wppaWindowWidth() {
523
  return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
524
 
525
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  //
3
  // conatins common vars and functions
4
  //
5
+ var wppaJsUtilsVersion = '7.5.10';
6
  var wppaDebug;
7
  var wppaDebugCounter = 0;
8
 
523
  return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
524
 
525
  }
526
+
527
+ // In fullscreen mode, place the controlbar at the bottom of the screen, 100% wide
528
+ // Check max iconsizes
529
+ function wppaAdjustControlbar() {
530
+
531
+ var $ = jQuery;
532
+
533
+ // Is lightbox active?
534
+ if ( wppaOvlOpen ) {
535
+
536
+ // and fullscreen?
537
+ if ( wppaIsFs() ) {
538
+
539
+ // Adjust ctrlbar
540
+ $( ".wppa-pctl-div-lb" ).css({
541
+ position:"fixed",
542
+ left:0,
543
+ right:0,
544
+ bottom:0,
545
+ width:screen.width
546
+ });
547
+
548
+ // Adjust wrapper
549
+ $( "#wppa-ovl-wrap" ).css({
550
+ width:screen.width,
551
+ height:screen.height
552
+ });
553
+ }
554
+ else {
555
+
556
+ // Adjust ctrlbar
557
+ $( ".wppa-pctl-div-lb" ).css({
558
+ position:"initial",
559
+ width:"auto"
560
+ });
561
+ }
562
+
563
+ // Check iconsizes
564
+ var barWidth = $( ".wppa-pctl-div-lb" ).width();
565
+ var newHeight;
566
+ if ( barWidth < 12 * ( parseInt( wppaOvlIconSize ) + 4 ) ) {
567
+ newHeight = parseInt( barWidth / 12 - 4 );
568
+
569
+ if ( newHeight > 0 ) {
570
+ $( ".wppa-pctl-div-lb" ).find( "svg" ).css({height:newHeight,width:newHeight});
571
+ $( ".wppa-pctl-div-lb" ).find( "span" ).css({height:newHeight,width:newHeight});
572
+ }
573
+ }
574
+ else {
575
+ newHeight = wppaOvlIconSize;
576
+ $( ".wppa-pctl-div-lb" ).find( "svg" ).css({height:newHeight,width:newHeight});
577
+ $( ".wppa-pctl-div-lb" ).find( "span" ).css({height:newHeight,width:newHeight});
578
+ }
579
+
580
+ // Adjust start/stop button display
581
+ if ( wppaOvlIsSingle ) {
582
+ jQuery( '#wppa-ovl-start-btn' ).hide();
583
+ jQuery( '#wppa-ovl-stop-btn' ).hide();
584
+ }
585
+ else {
586
+ if ( wppaOvlRunning ) {
587
+ jQuery( '#wppa-ovl-stop-btn' ).show();
588
+ jQuery( '#wppa-ovl-start-btn' ).hide();
589
+ }
590
+ else {
591
+ jQuery( '#wppa-ovl-start-btn' ).show();
592
+ jQuery( '#wppa-ovl-stop-btn' ).hide();
593
+ }
594
+ }
595
+
596
+ // Make it visible
597
+ $( ".wppa-pctl-div-lb" ).css({visibility:"visible"});
598
+ }
599
+ }
js/wppa-utils.min.js CHANGED
@@ -1 +1 @@
1
- var wppaDebug,wppaJsUtilsVersion="7.5.07",wppaDebugCounter=0;function wppaAnimate(e,a,t,p,r){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(a),r&&setTimeout(r,10)):jQuery(e).stop().animate(a,t,p,r)}function wppaFadeIn(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),t&&setTimeout(t,10)):jQuery(e).stop().fadeIn(a,t)}function wppaFadeOut(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),t&&setTimeout(t,10)):jQuery(e).stop().fadeOut(a,t)}function wppaFadeTo(e,a,t,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:t}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(a,t,p)}function wppaTrim(e,a){var t=wppaTrimLeft(e,a);return t=wppaTrimRight(t,a)}function wppaTrimLeft(e,a){var t,p,r,n,i,o,s;switch(typeof a){case"string":for(p=(t=e).length,r=a.length;r<=p&&t.substr(0,r)==a;)p=(t=t.substr(r)).length;break;case"object":for(i=!1,s=e;!i;){for(n=0,o=s;n<a.length;)s=wppaTrimLeft(s,a[n]),n++;i=o==s}t=s;break;default:return e.replace(/^\s\s*/,"")}return t}function wppaTrimRight(e,a){var t,p,r,n,i,o,s;switch(typeof a){case"string":for(p=(t=e).length,r=a.length;r<=p&&t.substr(p-r)==a;)p=(t=t.substr(0,p-r)).length;break;case"object":for(i=!1,s=e;!i;){for(n=0,o=s;n<a.length;)s=wppaTrimRight(s,a[n]),n++;i=o==s}t=s;break;default:return e.replace(/\s\s*$/,"")}return t}function wppa_setCookie(e,a,t){var p=new Date;p.setDate(p.getDate()+t);var r=escape(a)+(null==t?"":"; expires="+p.toUTCString());document.cookie=e+"="+r}function wppa_getCookie(e){for(var a,t,p=document.cookie.split(";"),r=0;r<p.length;r++)if(a=p[r].substr(0,p[r].indexOf("=")),t=p[r].substr(p[r].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(t);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,a){var t,p,r,n;"undefined"==typeof console||!wppaDebug&&"force"!=a||(t=(new Date).getTime()%864e5,t-=60*(p=Math.floor(t/36e5))*60*1e3,t-=60*(r=Math.floor(t/6e4))*1e3,n=Math.floor(t/1e3),console.log("At: "+p+":"+r+":"+n+"."+(t-=1e3*n)+" message: "+e))}function wppaSvgHtml(e,a,t,p,r,n,i,o){var s,l;switch(r=r||"0",n=n||"10",i=i||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=r;break;case"light":radius=n;break;case"medium":radius=i;break;case"heavy":radius=o}a=a||"32px",l="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):t?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor);var c='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(a?"height:"+a+";":"")+"fill:"+s+";background-color:"+l+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":c+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":c+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":c+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":c+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":c+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":c+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":c+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:c+='<path d="M30,0H0V30H30V0z" />'}return c+="</g></svg>"}var wppaLastLazy=0;function wppaMakeLazyVisible(e,a){var t,p,r,n;wppaInitMasonryPlus(),"number"!=typeof e&&(e=0),_wppaLazyDone[e]||((t=new Date).getTime()<wppaLastLazy+250||((r=0)<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this,a)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),r++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),0}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0),wppaInitMasonryPlus(e)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),r++)),0}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0),wppaInitMasonryPlus()),n=t.getTime(),wppaLastLazy=n,0<r&&(setTimeout("wppaMakeLazyVisible("+e+")",500),wppaInitMasonryPlus())))}function wppaIsElementInViewport(e,a){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var t,p=e.getBoundingClientRect();return!p||(t=wppaWindowWidth(),a&&(t*=3),0<p.bottom&&0<p.right&&p.left<t&&p.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,a,t){var p=t?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?a:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){var a=e;return a=(a=(a=(a=(a=a.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var a=e.parentNode.clientWidth;jQuery(e).css({maxWidth:a})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}
1
+ var wppaDebug,wppaJsUtilsVersion="7.5.10",wppaDebugCounter=0;function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){var a=wppaTrimLeft(e,t);return a=wppaTrimRight(a,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==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 i=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+i}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i,n;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,n=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+n+"."+(a-=1e3*n)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s,l;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",l="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor);var c='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(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":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":c+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":c+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":c+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":c+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":c+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":c+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":c+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":c+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":c+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:c+='<path d="M30,0H0V30H30V0z" />'}return c+="</g></svg>"}var wppaLastLazy=0;function wppaMakeLazyVisible(e,t){var a,p,i,n;wppaInitMasonryPlus(),"number"!=typeof e&&(e=0),_wppaLazyDone[e]||((a=new Date).getTime()<wppaLastLazy+250||((i=0)<e?(jQuery(".wppa-lazy-"+e).each(function(){(p=jQuery(this).attr("data-src"))?wppaLazyLoad&&!wppaIsElementInViewport(this,t)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),jQuery(this).removeClass("wppa-lazy-"+e),i++):wppaIsElementInViewport(this)&&jQuery(this).removeClass("wppa-lazy-"+e),0}),0==jQuery(".wppa-lazy-"+e).length&&(_wppaLazyDone[e]=!0),wppaInitMasonryPlus(e)):(jQuery(".wppa-lazy").each(function(){(p=jQuery(this).attr("data-src"))&&(wppaLazyLoad&&!wppaIsElementInViewport(this)||(jQuery(this).attr("src",p),jQuery(this).removeAttr("data-src"),jQuery(this).removeClass("wppa-lazy"),i++)),0}),0==jQuery(".wppa-lazy").length&&(_wppaLazyDone[0]=!0),wppaInitMasonryPlus()),n=a.getTime(),wppaLastLazy=n,0<i&&(setTimeout("wppaMakeLazyVisible("+e+")",500),wppaInitMasonryPlus())))}function wppaIsElementInViewport(e,t){"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);var a,p=e.getBoundingClientRect();return!p||(a=wppaWindowWidth(),t&&(a*=3),0<p.bottom&&0<p.right&&p.left<a&&p.top<wppaWindowHeight())}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){var p=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==p?t:(wppaIsMini[e]?p/2:p)+"px;"}function wppaEntityDecode(e){var t=e;return t=(t=(t=(t=(t=t.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0,width:screen.width}),a("#wppa-ovl-wrap").css({width:screen.width,height:screen.height})):a(".wppa-pctl-div-lb").css({position:"initial",width:"auto"}),(e=a(".wppa-pctl-div-lb").width())<12*(parseInt(wppaOvlIconSize)+4)?0<(t=parseInt(e/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:t,width:t}),a(".wppa-pctl-div-lb").find("span").css({height:t,width:t})):(t=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:t,width:t}),a(".wppa-pctl-div-lb").find("span").css({height:t,width:t})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}
wppa-admin.php CHANGED
@@ -117,6 +117,10 @@ global $wppa_api_version;
117
  wp_enqueue_script( 'wppa', WPPA_URL . '/js/wppa.js', array(), $wppa_api_version );
118
  wp_enqueue_script( 'wppa-slideshow', WPPA_URL . '/js/wppa-slideshow.js', array(), $wppa_api_version );
119
  wp_enqueue_script( 'wppa-ajax-front', WPPA_URL . '/js/wppa-ajax-front.js', array(), $wppa_api_version );
 
 
 
 
120
  if ( wppa_can_magick() ) {
121
  wp_enqueue_script( 'cropperjs', WPPA_URL . '/vendor/cropperjs/dist/cropper.min.js', array(), $wppa_api_version );
122
  }
117
  wp_enqueue_script( 'wppa', WPPA_URL . '/js/wppa.js', array(), $wppa_api_version );
118
  wp_enqueue_script( 'wppa-slideshow', WPPA_URL . '/js/wppa-slideshow.js', array(), $wppa_api_version );
119
  wp_enqueue_script( 'wppa-ajax-front', WPPA_URL . '/js/wppa-ajax-front.js', array(), $wppa_api_version );
120
+ wp_enqueue_script( 'wppa-zoom', WPPA_URL . '/js/wppa-zoom.js', array(), $wppa_api_version );
121
+ wp_enqueue_script( 'wppa-spheric', WPPA_URL . '/js/wppa-spheric.js', array(), $wppa_api_version );
122
+ wp_enqueue_script( 'wppa-panorama', WPPA_URL . '/js/wppa-panorama.js', array(), $wppa_api_version );
123
+ wp_enqueue_script( 'wppa-three', WPPA_URL . '/vendor/three/three.min.js', array(), $wppa_api_version );
124
  if ( wppa_can_magick() ) {
125
  wp_enqueue_script( 'cropperjs', WPPA_URL . '/vendor/cropperjs/dist/cropper.min.js', array(), $wppa_api_version );
126
  }
wppa-ajax.php CHANGED
@@ -16,6 +16,7 @@ global $wpdb;
16
  global $wppa_session;
17
  global $wppa_log_file;
18
  global $wppa_opt;
 
19
 
20
  wppa( 'ajax', true );
21
  wppa( 'error', '0' );
@@ -1016,8 +1017,7 @@ global $wppa_opt;
1016
  case 'getshortcodedrendered':
1017
  $shortcode = stripslashes( $_REQUEST['shortcode'] );
1018
  $shortcode = str_replace( '@', '#', $shortcode );
1019
- $occ = strval( intval ( $_REQUEST['moccur'] ) );
1020
- global $wppa_opt;
1021
  $wppa_opt['wppa_lazy'] = 'no';
1022
  $wppa_opt['wppa_inline_css'] = 'yes';
1023
  $result = do_shortcode( $shortcode );
16
  global $wppa_session;
17
  global $wppa_log_file;
18
  global $wppa_opt;
19
+ global $wppa;
20
 
21
  wppa( 'ajax', true );
22
  wppa( 'error', '0' );
1017
  case 'getshortcodedrendered':
1018
  $shortcode = stripslashes( $_REQUEST['shortcode'] );
1019
  $shortcode = str_replace( '@', '#', $shortcode );
1020
+ $wppa['mocc']++; // = strval( intval ( $_REQUEST['moccur'] ) );
 
1021
  $wppa_opt['wppa_lazy'] = 'no';
1022
  $wppa_opt['wppa_inline_css'] = 'yes';
1023
  $result = do_shortcode( $shortcode );
wppa-gutenberg-photo.php CHANGED
@@ -68,13 +68,13 @@ global $wpdb;
68
  <tr id="wppaphoto-myphoto-tr" style="" >' .
69
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
70
  '<td>'.
71
- '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaPhotoEvaluate()" >' .
72
  wppa_get_myphotos_selection_body_for_gutenberg() .
73
  '</select>'.
74
  '<input' .
75
  ' type="button"' .
76
  ' value="' . esc_attr( __( 'All photos', 'wp-photo-album-plus' ) ) . '"' .
77
- ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaPhotoEvaluate();"' .
78
  ' />' .
79
  '<br />'.
80
  '<small style="" class="wppamyphoto-photo" >'.
@@ -89,7 +89,7 @@ global $wpdb;
89
  <tr id="wppaphoto-allphoto-tr" style="display:none;" >'.
90
  '<th><label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >'.__('The Photo to be used', 'wp-photo-album-plus').':</label></th>'.
91
  '<td>'.
92
- '<select id="wppaphoto-allphoto" name="photo" class="wppaphoto-allphoto" onchange="wppaPhotoEvaluate()" >' .
93
  wppa_get_allphotos_selection_body_for_gutenberg() .
94
  '</select>' .
95
  '<br />' .
@@ -238,7 +238,7 @@ global $wpdb;
238
  else {
239
  jQuery( "#wppaphoto-myphoto" ).html( wppaEntityDecode( resparr[2] ) );
240
  }
241
- wppaPhotoEvaluate();
242
 
243
  },
244
  error: function() {
@@ -257,7 +257,7 @@ global $wpdb;
257
  '<tr id="wppaphoto-cache-tr" >
258
  <th><label for="wppaphoto-cache" >'.__('Cache:', 'wp-photo-album-plus').'</label></th>
259
  <td>
260
- <input type="checkbox" id="wppaphoto-cache" onchange="wppaPhotoEvaluate()" />'.__('Cache this shortcode', 'wp-photo-album-plus').'
261
  </td>
262
  </tr>';
263
 
@@ -285,7 +285,7 @@ global $wpdb;
285
  / >' .
286
 
287
  // Initial evaluate
288
- '<script type="text/javascript" >wppaPhotoEvaluate()</script>' .
289
 
290
  // Close main wrapper
291
  '
68
  <tr id="wppaphoto-myphoto-tr" style="" >' .
69
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
70
  '<td>'.
71
+ '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaGutenbergPhotoEvaluate()" >' .
72
  wppa_get_myphotos_selection_body_for_gutenberg() .
73
  '</select>'.
74
  '<input' .
75
  ' type="button"' .
76
  ' value="' . esc_attr( __( 'All photos', 'wp-photo-album-plus' ) ) . '"' .
77
+ ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaGutenbergPhotoEvaluate();"' .
78
  ' />' .
79
  '<br />'.
80
  '<small style="" class="wppamyphoto-photo" >'.
89
  <tr id="wppaphoto-allphoto-tr" style="display:none;" >'.
90
  '<th><label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >'.__('The Photo to be used', 'wp-photo-album-plus').':</label></th>'.
91
  '<td>'.
92
+ '<select id="wppaphoto-allphoto" name="photo" class="wppaphoto-allphoto" onchange="wppaGutenbergPhotoEvaluate()" >' .
93
  wppa_get_allphotos_selection_body_for_gutenberg() .
94
  '</select>' .
95
  '<br />' .
238
  else {
239
  jQuery( "#wppaphoto-myphoto" ).html( wppaEntityDecode( resparr[2] ) );
240
  }
241
+ wppaGutenbergPhotoEvaluate();
242
 
243
  },
244
  error: function() {
257
  '<tr id="wppaphoto-cache-tr" >
258
  <th><label for="wppaphoto-cache" >'.__('Cache:', 'wp-photo-album-plus').'</label></th>
259
  <td>
260
+ <input type="checkbox" id="wppaphoto-cache" onchange="wppaGutenbergPhotoEvaluate()" />'.__('Cache this shortcode', 'wp-photo-album-plus').'
261
  </td>
262
  </tr>';
263
 
285
  / >' .
286
 
287
  // Initial evaluate
288
+ '<script type="text/javascript" >wppaGutenbergPhotoEvaluate()</script>' .
289
 
290
  // Close main wrapper
291
  '
wppa-gutenberg-wppa.php CHANGED
@@ -99,7 +99,7 @@ global $wpdb;
99
  '<tr >'.
100
  '<th><label for="wppagallery-top-type">'.__('Type of WPPA display:', 'wp-photo-album-plus').'</label></th>'.
101
  '<td>'.
102
- '<select id="wppagallery-top-type" name="type" onchange="wppaGalleryEvaluate()">'.
103
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a display type', 'wp-photo-album-plus').' --</option>'.
104
  '<option value="galerytype" >'.__('A gallery with covers and/or thumbnails', 'wp-photo-album-plus').'</option>'.
105
  '<option value="slidestype" >'.__('A slideshow', 'wp-photo-album-plus').'</option>'.
@@ -114,7 +114,7 @@ global $wpdb;
114
  '<tr id="wppagallery-galery-type-tr" style="display:none;" >'.
115
  '<th><label for="wppagallery-galery-type">'.__('Type of gallery display:', 'wp-photo-album-plus').'</label></th>'.
116
  '<td>'.
117
- '<select id="wppagallery-galery-type" name="type" onchange="wppaGalleryEvaluate()">'.
118
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a gallery type', 'wp-photo-album-plus').' --</option>'.
119
  '<option value="cover" >'.__('The cover(s) of specific album(s)', 'wp-photo-album-plus').'</option>'.
120
  '<option value="content" >'.__('The content of specific album(s)', 'wp-photo-album-plus').'</option>'.
@@ -128,7 +128,7 @@ global $wpdb;
128
  '<tr id="wppagallery-slides-type-tr" style="display:none;" >'.
129
  '<th><label for="wppagallery-slides-type">'.__('Type of slideshow:', 'wp-photo-album-plus').'</label></th>'.
130
  '<td>'.
131
- '<select id="wppagallery-slides-type" name="type" onchange="wppaGalleryEvaluate()">'.
132
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a slideshow type', 'wp-photo-album-plus').' --</option>'.
133
  '<option value="slide" >'.__('A fully featured slideshow', 'wp-photo-album-plus').'</option>'.
134
  '<option value="slideonly" >'.__('A slideshow without supporting boxes', 'wp-photo-album-plus').'</option>'.
@@ -142,7 +142,7 @@ global $wpdb;
142
  '<tr id="wppagallery-single-type-tr" style="display:none;" >'.
143
  '<th><label for="wppagallery-single-type">'.__('Type of single image:', 'wp-photo-album-plus').'</label></th>'.
144
  '<td>'.
145
- '<select id="wppagallery-single-type" name="type" onchange="wppaGalleryEvaluate()">'.
146
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a single image type', 'wp-photo-album-plus').' --</option>'.
147
  '<option value="photo" >'.__('A plain single photo', 'wp-photo-album-plus').'</option>'.
148
  '<option value="mphoto" >'.__('A single photo with caption', 'wp-photo-album-plus').'</option>'.
@@ -156,7 +156,7 @@ global $wpdb;
156
  '<tr id="wppagallery-search-type-tr" style="display:none;" >'.
157
  '<th><label for="wppagallery-search-type">'.__('Type of search:', 'wp-photo-album-plus').'</label></th>'.
158
  '<td>'.
159
- '<select id="wppagallery-search-type" name="type" onchange="wppaGalleryEvaluate()">'.
160
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a search type', 'wp-photo-album-plus').' --</option>'.
161
  '<option value="search" >'.__('A search box', 'wp-photo-album-plus').'</option>'.
162
  '<option value="supersearch" >'.__('A supersearch box', 'wp-photo-album-plus').'</option>'.
@@ -172,7 +172,7 @@ global $wpdb;
172
  '<tr id="wppagallery-miscel-type-tr" style="display:none;" >'.
173
  '<th><label for="wppagallery-miscel-type">'.__('Type miscellaneous:', 'wp-photo-album-plus').'</label></th>'.
174
  '<td>'.
175
- '<select id="wppagallery-miscel-type" name="type" onchange="wppaGalleryEvaluate()">'.
176
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a miscellaneous display', 'wp-photo-album-plus').' --</option>'.
177
  '<option value="generic">'.__('A generic albums display', 'wp-photo-album-plus').'</option>'.
178
  '<option value="upload">'.__('An upload box', 'wp-photo-album-plus').'</option>'.
@@ -187,7 +187,7 @@ global $wpdb;
187
  '<tr id="wppagallery-admins-tr" style="display:none;" >'.
188
  '<th><label for="wppagallery-admins">'.__('Users:', 'wp-photo-album-plus').'</label></th>'.
189
  '<td>'.
190
- '<select id="wppagallery-admins" name="admins" style="color:#070;" multiple="multiple" onchange="wppaGalleryEvaluate()">'.
191
  '<option value="" selected="selected" style="color:#070;" >-- '.__('All', 'wp-photo-album-plus').' --</option>';
192
  foreach( $admins as $user ) {
193
  $result .=
@@ -207,7 +207,7 @@ global $wpdb;
207
  '<tr id="wppagallery-album-type-tr" style="display:none;" >'.
208
  '<th><label for="wppagallery-album-type">'.__('Kind of selection:', 'wp-photo-album-plus').'</label></th>'.
209
  '<td>'.
210
- '<select id="wppagallery-album-type" name="type" onchange="wppaGalleryEvaluate()">'.
211
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a type of selection to be used', 'wp-photo-album-plus').' --</option>'.
212
  '<option value="real">'.__('One or more wppa+ albums', 'wp-photo-album-plus').'</option>'.
213
  '<option value="virtual">'.__('A special selection', 'wp-photo-album-plus').'</option>'.
@@ -219,7 +219,7 @@ global $wpdb;
219
  '<tr id="wppagallery-album-virt-tr" style="display:none;" >'.
220
  '<th><label for="wppagallery-album-virt">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
221
  '<td>'.
222
- '<select id="wppagallery-album-virt" name="album" class="wppagallery-album" onchange="wppaGalleryEvaluate()">'.
223
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a virtual album', 'wp-photo-album-plus').' --</option>'.
224
  '<option value="#last" >'.__('The most recently added album', 'wp-photo-album-plus').'</option>'.
225
  '<option value="#topten" >'.__('The top rated photos', 'wp-photo-album-plus').'</option>'.
@@ -239,7 +239,7 @@ global $wpdb;
239
  '<tr id="wppagallery-album-virt-cover-tr" style="display:none;" >'.
240
  '<th><label for="wppagallery-album-virt-cover">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
241
  '<td>'.
242
- '<select id="wppagallery-album-virt-cover" name="album" class="wppagallery-album" onchange="wppaGalleryEvaluate()">'.
243
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a virtual album', 'wp-photo-album-plus').' --</option>'.
244
  '<option value="#last" >'.__('The most recently modified album', 'wp-photo-album-plus').'</option>'.
245
  '<option value="#owner" >'.__('Albums owned by a certain user', 'wp-photo-album-plus').'</option>'.
@@ -255,13 +255,13 @@ global $wpdb;
255
  '<td>';
256
  if ( wppa_has_many_albums() ) {
257
  $result .=
258
- '<input id="wppagallery-album-real" style="max-width:400px;" name="album" onchange="wppaGalleryEvaluate()" />'.
259
  '<br />'.
260
  __('Enter one or more album numbers, seperated by commas', 'wp-photo-album-plus');
261
  }
262
  else {
263
  $result .=
264
- '<select id="wppagallery-album-real" style="max-width:400px;" name="album" multiple="multiple" onchange="wppaGalleryEvaluate()">';
265
  if ( $albums ) {
266
 
267
  // Please select
@@ -286,7 +286,7 @@ global $wpdb;
286
  '<tr id="wppagallery-album-real-search-tr" style="display:none;" >' .
287
  '<th><label for="">'.__('Filter album:', 'wp-photo-album-plus').'</label></th>'.
288
  '<td>'.
289
- '<input id="wppagallery-album-real-search" type="text" onkeyup="wppaGalleryEvaluate()" />'.
290
  '<br />'.
291
  '<small>'.
292
  __('Enter a (part of) the album name to limit the options in the selection box above.', 'wp-photo-album-plus').' '.
@@ -302,13 +302,13 @@ global $wpdb;
302
  '<td>';
303
  if ( wppa_has_many_albums() ) {
304
  $result .=
305
- '<input id="wppagallery-album-realopt" style="max-width:400px;" name="album" onchange="wppaGalleryEvaluate()" value="0" />'.
306
  '<br />'.
307
  __('Optinally enter one or more album numbers, seperated by commas, or 0 for all albums', 'wp-photo-album-plus');
308
  }
309
  else {
310
  $result .=
311
- '<select id="wppagallery-album-realopt" style="max-width:400px;" name="album" multiple="multiple" onchange="wppaGalleryEvaluate()">';
312
  if ( $albums ) {
313
 
314
  // Please select
@@ -333,7 +333,7 @@ global $wpdb;
333
  '<tr id="wppagallery-owner-tr" style="display:none" >'.
334
  '<th><label for="wppagallery-owner">'.__('The album owner:', 'wp-photo-album-plus').'</label></th>'.
335
  '<td>'.
336
- '<select id="wppagallery-owner" name="owner" class="wppagallery-owner" onchange="wppaGalleryEvaluate()">'.
337
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a user', 'wp-photo-album-plus').' --</option>'.
338
  '<option value="#me" >-- '.__('The logged in visitor', 'wp-photo-album-plus').' --</option>';
339
  $users = wppa_get_users();
@@ -352,7 +352,7 @@ global $wpdb;
352
  '<tr id="wppagallery-owner-parent-tr" style="display:none;" >'.
353
  '<th><label for="wppagallery-owner-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
354
  '<td>'.
355
- '<select id="wppagallery-owner-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" multiple="multiple" onchange="wppaGalleryEvaluate()">';
356
  if ( $albums ) {
357
 
358
  // Please select
@@ -378,7 +378,7 @@ global $wpdb;
378
  '<tr id="wppagallery-album-parent-tr" style="display:none;" >'.
379
  '<th><label for="wppagallery-album-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
380
  '<td>'.
381
- '<select id="wppagallery-album-parent-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" onchange="wppaGalleryEvaluate()">';
382
  if ($albums) {
383
 
384
  // Please select
@@ -401,7 +401,7 @@ global $wpdb;
401
  '<tr id="wppagallery-album-count-tr" style="display:none;" >'.
402
  '<th><label for="wppagallery-album-count">'.__('Max Albums:', 'wp-photo-album-plus').'</label></th>'.
403
  '<td>'.
404
- '<input id="wppagallery-album-count" type="text" style="color:#070;" value="1" onchange="wppaGalleryEvaluate()" />'.
405
  '</td>'.
406
  '</tr>'.
407
 
@@ -409,7 +409,7 @@ global $wpdb;
409
  '<tr id="wppagallery-photo-count-tr" style="display:none;" >'.
410
  '<th><label for="wppagallery-photo-count">'.__('Max Photos:', 'wp-photo-album-plus').'</label></th>'.
411
  '<td>'.
412
- '<input id="wppagallery-photo-count" type="text" style="color:#070;" value="1" onchange="wppaGalleryEvaluate()" />'.
413
  '</td>'.
414
  '</tr>'.
415
 
@@ -417,7 +417,7 @@ global $wpdb;
417
  '<tr id="wppagallery-albumcat-tr" style="display:none;" >'.
418
  '<th><label for="wppagallery-albumcat">'.__('The album cat(s):', 'wp-photo-album-plus').'</label></th>'.
419
  '<td>'.
420
- '<select id="wppagallery-albumcat" style="color:#700 !important;" onchange="wppaGalleryEvaluate()" multiple="multiple" >'.
421
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >'.__('--- please select category ---', 'wp-photo-album-plus').'</option>';
422
  if ( $cats ) foreach ( array_keys( $cats ) as $cat ) {
423
  $result .= '<option class="wppagallery-albumcat" value="'.$cat.'" >'.$cat.'</option>';
@@ -431,7 +431,7 @@ global $wpdb;
431
  '<tr id="wppagallery-photo-tr" style="display:none;" >'.
432
  '<th><label for="wppagallery-photo" class="wppagallery-photo" >'.__('The Photo to be used:', 'wp-photo-album-plus').'</label></th>'.
433
  '<td>'.
434
- '<select id="wppagallery-photo" name="photo" class="wppagallery-photo" onchange="wppaGalleryEvaluate()" >';
435
  if ( $photos ) {
436
 
437
  // Please select
@@ -492,7 +492,7 @@ global $wpdb;
492
  '<tr id="wppagallery-phototags-tr" style="display:none;" >'.
493
  '<th><label for="wppagallery-phototags">'.__('The photo tag(s):', 'wp-photo-album-plus').'</label></th>'.
494
  '<td>'.
495
- '<select id="wppagallery-phototags" style="color:#700 !important;" multiple="multiple" onchange="wppaGalleryEvaluate()">'.
496
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >'.__('--- please select tag(s) ---', 'wp-photo-album-plus').'</option>';
497
  if ( $tags ) foreach ( array_keys($tags) as $tag ) {
498
  $result .= '<option class="wppagallery-phototags" value="'.$tag.'" >'.$tag.'</option>';
@@ -506,8 +506,8 @@ global $wpdb;
506
  '<tr id="wppagallery-tags-cats-tr" style="display:none;" >'.
507
  '<th><label>'.__('Or / And:', 'wp-photo-album-plus').'</label></th>'.
508
  '<td>'.
509
- '<input id="wppagallery-or" type="radio" name="andor" value="or" onchange="wppaGalleryEvaluate()"/>'.__('Meet any', 'wp-photo-album-plus').'&nbsp;'.
510
- '<input id="wppagallery-and" type="radio" name="andor" value="and" onchange="wppaGalleryEvaluate()"/>'.__('Meet all', 'wp-photo-album-plus').
511
  '</td>'.
512
  '</tr>'.
513
 
@@ -515,8 +515,8 @@ global $wpdb;
515
  '<tr id="wppagallery-search-tr" style="display:none;" >'.
516
  '<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
517
  '<td>'.
518
- '<input id="wppagallery-sub" type="checkbox" name="sub" onchange="wppaGalleryEvaluate()"/>'.__('Enable Subsearch', 'wp-photo-album-plus').'&nbsp;'.
519
- '<input id="wppagallery-root" type="checkbox" name="root" onchange="wppaGalleryEvaluate()"/>'.__('Enable Rootsearch', 'wp-photo-album-plus').
520
  '</td>'.
521
  '</tr>'.
522
 
@@ -524,7 +524,7 @@ global $wpdb;
524
  '<tr id="wppagallery-rootalbum-tr" style="display:none;" >'.
525
  '<th><label>'.__('Search root:', 'wp-photo-album-plus').'</label></th>'.
526
  '<td>'.
527
- '<select id="wppagallery-rootalbum" onchange="wppaGalleryEvaluate()" >'.
528
  '<option value="0" selected="selected" >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
529
  if ( $albums ) {
530
 
@@ -543,7 +543,7 @@ global $wpdb;
543
  '<tr id="wppagallery-landing-tr" style="display:none;" >'.
544
  '<th><label>'.__('Landing page:', 'wp-photo-album-plus').'</label></th>'.
545
  '<td>'.
546
- '<select id="wppagallery-landing" onchange="wppaGalleryEvaluate()" >'.
547
  '<option value="0" selected="selected" >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
548
  if ( $pages ) {
549
  foreach( $pages as $page ) {
@@ -563,8 +563,8 @@ global $wpdb;
563
  '<tr id="wppagallery-taglist-tr" style="display:none;" >'.
564
  '<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
565
  '<td>'.
566
- '<input id="wppagallery-alltags" type="checkbox" checked="checked" name="alltags" onchange="wppaGalleryEvaluate()"/>'.__('Enable all tags', 'wp-photo-album-plus').'&nbsp;'.
567
- '<select id="wppagallery-seltags" style="color:#070; display:none;" name="seltags" multiple="multiple" onchange="wppaGalleryEvaluate()">';
568
  if ( $tags ) {
569
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select the tags to show', 'wp-photo-album-plus').' --</option>';
570
  foreach( array_keys($tags) as $tag ) {
@@ -582,7 +582,7 @@ global $wpdb;
582
  '<tr id="wppagallery-album-super-tr" style="display:none;" >'.
583
  '<th><label for="wppagallery-album-super">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
584
  '<td>'.
585
- '<select id="wppagallery-album-super-parent" style="color:#070;max-width:400px;" name="parentalbum" onchange="wppaGalleryEvaluate()">';
586
  if ( $albums ) {
587
 
588
  // Please select
@@ -605,14 +605,14 @@ global $wpdb;
605
  '<tr id="wppagallery-calendar-tr" style="display:none;" >'.
606
  '<th><label for="wppagallery-calendar">'.__('Calendar type:', 'wp-photo-album-plus').'</lable></th>'.
607
  '<td>'.
608
- '<select id="wppagallery-calendar-type" style="color:#070;max-width:400px;" onchange="wppaGalleryEvaluate()" >'.
609
  '<option value="exifdtm" >'.__('By EXIF date', 'wp-photo-album-plus').'</option>'.
610
  '<option value="timestamp" >'.__('By date of upload', 'wp-photo-album-plus').'</option>'.
611
  '<option value="modified" >'.__('By date last modified', 'wp-photo-album-plus').'</option>'.
612
  '</select>'.
613
  '<br />'.
614
- '<input type="checkbox" id="wppagallery-calendar-reverse" onchange="wppaGalleryEvaluate()" >'.__('Last date first', 'wp-photo-album-plus').'&nbsp;&nbsp;'.
615
- '<input type="checkbox" id="wppagallery-calendar-allopen" onchange="wppaGalleryEvaluate()" >'.__('Initially display all', 'wp-photo-album-plus').
616
  '</td>'.
617
  '</tr>'.
618
 
@@ -620,7 +620,7 @@ global $wpdb;
620
  '<tr>'.
621
  '<th><label for="wppagallery-size">'.__('The size of the display:', 'wp-photo-album-plus').'</label></th>'.
622
  '<td>'.
623
- '<input type="text" id="wppagallery-size" value="" style="color:#070;" onchange="wppaGalleryEvaluate();"/>'.
624
  '<br />'.
625
  '<small>'.
626
  __('Specify the horizontal size in pixels or <span style="color:blue" >auto</span>.', 'wp-photo-album-plus').' '.
@@ -635,7 +635,7 @@ global $wpdb;
635
  '<tr>'.
636
  '<th><label for="wppagallery-align">'.__('Horizontal alignment:', 'wp-photo-album-plus').'</label></th>'.
637
  '<td>'.
638
- '<select id="wppagallery-align" name="align" style="color:#070;" onchange="wppaGalleryEvaluate();">'.
639
  '<option value="none" >'.__('--- none ---', 'wp-photo-album-plus').'</option>'.
640
  '<option value="left" >'.__('left', 'wp-photo-album-plus').'</option>'.
641
  '<option value="center" >'.__('center', 'wp-photo-album-plus').'</option>'.
@@ -650,7 +650,7 @@ global $wpdb;
650
  '<tr id="wppagallery-cache-tr" >
651
  <th><label for="wppagallery-cache" >'.__('Cache:', 'wp-photo-album-plus').'</label></th>
652
  <td>
653
- <input type="checkbox" id="wppagallery-cache" onchange="wppaGalleryEvaluate()" />'.__('Cache this shortcode', 'wp-photo-album-plus').'
654
  </td>
655
  </tr>'.
656
 
@@ -658,7 +658,7 @@ global $wpdb;
658
  '<tr id="wppagallery-delay-tr" >
659
  <th><label for="wppagallery-delay" >'.__('Delay:', 'wp-photo-album-plus').'</label></th>
660
  <td>
661
- <input type="checkbox" id="wppagallery-delay" onchange="wppaGalleryEvaluate()" />'.__('Delay this shortcode', 'wp-photo-album-plus').'
662
  </td>
663
  </tr>'.
664
 
@@ -673,7 +673,7 @@ global $wpdb;
673
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
674
  / >' .
675
 
676
- '<script type="text/javascript" >wppaGalleryEvaluate();</script>' .
677
  '</div>';
678
 
679
  return $result;
99
  '<tr >'.
100
  '<th><label for="wppagallery-top-type">'.__('Type of WPPA display:', 'wp-photo-album-plus').'</label></th>'.
101
  '<td>'.
102
+ '<select id="wppagallery-top-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
103
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a display type', 'wp-photo-album-plus').' --</option>'.
104
  '<option value="galerytype" >'.__('A gallery with covers and/or thumbnails', 'wp-photo-album-plus').'</option>'.
105
  '<option value="slidestype" >'.__('A slideshow', 'wp-photo-album-plus').'</option>'.
114
  '<tr id="wppagallery-galery-type-tr" style="display:none;" >'.
115
  '<th><label for="wppagallery-galery-type">'.__('Type of gallery display:', 'wp-photo-album-plus').'</label></th>'.
116
  '<td>'.
117
+ '<select id="wppagallery-galery-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
118
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a gallery type', 'wp-photo-album-plus').' --</option>'.
119
  '<option value="cover" >'.__('The cover(s) of specific album(s)', 'wp-photo-album-plus').'</option>'.
120
  '<option value="content" >'.__('The content of specific album(s)', 'wp-photo-album-plus').'</option>'.
128
  '<tr id="wppagallery-slides-type-tr" style="display:none;" >'.
129
  '<th><label for="wppagallery-slides-type">'.__('Type of slideshow:', 'wp-photo-album-plus').'</label></th>'.
130
  '<td>'.
131
+ '<select id="wppagallery-slides-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
132
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a slideshow type', 'wp-photo-album-plus').' --</option>'.
133
  '<option value="slide" >'.__('A fully featured slideshow', 'wp-photo-album-plus').'</option>'.
134
  '<option value="slideonly" >'.__('A slideshow without supporting boxes', 'wp-photo-album-plus').'</option>'.
142
  '<tr id="wppagallery-single-type-tr" style="display:none;" >'.
143
  '<th><label for="wppagallery-single-type">'.__('Type of single image:', 'wp-photo-album-plus').'</label></th>'.
144
  '<td>'.
145
+ '<select id="wppagallery-single-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
146
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a single image type', 'wp-photo-album-plus').' --</option>'.
147
  '<option value="photo" >'.__('A plain single photo', 'wp-photo-album-plus').'</option>'.
148
  '<option value="mphoto" >'.__('A single photo with caption', 'wp-photo-album-plus').'</option>'.
156
  '<tr id="wppagallery-search-type-tr" style="display:none;" >'.
157
  '<th><label for="wppagallery-search-type">'.__('Type of search:', 'wp-photo-album-plus').'</label></th>'.
158
  '<td>'.
159
+ '<select id="wppagallery-search-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
160
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a search type', 'wp-photo-album-plus').' --</option>'.
161
  '<option value="search" >'.__('A search box', 'wp-photo-album-plus').'</option>'.
162
  '<option value="supersearch" >'.__('A supersearch box', 'wp-photo-album-plus').'</option>'.
172
  '<tr id="wppagallery-miscel-type-tr" style="display:none;" >'.
173
  '<th><label for="wppagallery-miscel-type">'.__('Type miscellaneous:', 'wp-photo-album-plus').'</label></th>'.
174
  '<td>'.
175
+ '<select id="wppagallery-miscel-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
176
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a miscellaneous display', 'wp-photo-album-plus').' --</option>'.
177
  '<option value="generic">'.__('A generic albums display', 'wp-photo-album-plus').'</option>'.
178
  '<option value="upload">'.__('An upload box', 'wp-photo-album-plus').'</option>'.
187
  '<tr id="wppagallery-admins-tr" style="display:none;" >'.
188
  '<th><label for="wppagallery-admins">'.__('Users:', 'wp-photo-album-plus').'</label></th>'.
189
  '<td>'.
190
+ '<select id="wppagallery-admins" name="admins" style="color:#070;" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">'.
191
  '<option value="" selected="selected" style="color:#070;" >-- '.__('All', 'wp-photo-album-plus').' --</option>';
192
  foreach( $admins as $user ) {
193
  $result .=
207
  '<tr id="wppagallery-album-type-tr" style="display:none;" >'.
208
  '<th><label for="wppagallery-album-type">'.__('Kind of selection:', 'wp-photo-album-plus').'</label></th>'.
209
  '<td>'.
210
+ '<select id="wppagallery-album-type" name="type" onchange="wppaGutenbergGalleryEvaluate()">'.
211
  '<option value="" selected="selected" disabled="disabled" style="color:#700 !important;" >-- '.__('Please select a type of selection to be used', 'wp-photo-album-plus').' --</option>'.
212
  '<option value="real">'.__('One or more wppa+ albums', 'wp-photo-album-plus').'</option>'.
213
  '<option value="virtual">'.__('A special selection', 'wp-photo-album-plus').'</option>'.
219
  '<tr id="wppagallery-album-virt-tr" style="display:none;" >'.
220
  '<th><label for="wppagallery-album-virt">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
221
  '<td>'.
222
+ '<select id="wppagallery-album-virt" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
223
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a virtual album', 'wp-photo-album-plus').' --</option>'.
224
  '<option value="#last" >'.__('The most recently added album', 'wp-photo-album-plus').'</option>'.
225
  '<option value="#topten" >'.__('The top rated photos', 'wp-photo-album-plus').'</option>'.
239
  '<tr id="wppagallery-album-virt-cover-tr" style="display:none;" >'.
240
  '<th><label for="wppagallery-album-virt-cover">'.__('The selection to be used:', 'wp-photo-album-plus').'</label></th>'.
241
  '<td>'.
242
+ '<select id="wppagallery-album-virt-cover" name="album" class="wppagallery-album" onchange="wppaGutenbergGalleryEvaluate()">'.
243
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a virtual album', 'wp-photo-album-plus').' --</option>'.
244
  '<option value="#last" >'.__('The most recently modified album', 'wp-photo-album-plus').'</option>'.
245
  '<option value="#owner" >'.__('Albums owned by a certain user', 'wp-photo-album-plus').'</option>'.
255
  '<td>';
256
  if ( wppa_has_many_albums() ) {
257
  $result .=
258
+ '<input id="wppagallery-album-real" style="max-width:400px;" name="album" onchange="wppaGutenbergGalleryEvaluate()" />'.
259
  '<br />'.
260
  __('Enter one or more album numbers, seperated by commas', 'wp-photo-album-plus');
261
  }
262
  else {
263
  $result .=
264
+ '<select id="wppagallery-album-real" style="max-width:400px;" name="album" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">';
265
  if ( $albums ) {
266
 
267
  // Please select
286
  '<tr id="wppagallery-album-real-search-tr" style="display:none;" >' .
287
  '<th><label for="">'.__('Filter album:', 'wp-photo-album-plus').'</label></th>'.
288
  '<td>'.
289
+ '<input id="wppagallery-album-real-search" type="text" onkeyup="wppaGutenbergGalleryEvaluate()" />'.
290
  '<br />'.
291
  '<small>'.
292
  __('Enter a (part of) the album name to limit the options in the selection box above.', 'wp-photo-album-plus').' '.
302
  '<td>';
303
  if ( wppa_has_many_albums() ) {
304
  $result .=
305
+ '<input id="wppagallery-album-realopt" style="max-width:400px;" name="album" onchange="wppaGutenbergGalleryEvaluate()" value="0" />'.
306
  '<br />'.
307
  __('Optinally enter one or more album numbers, seperated by commas, or 0 for all albums', 'wp-photo-album-plus');
308
  }
309
  else {
310
  $result .=
311
+ '<select id="wppagallery-album-realopt" style="max-width:400px;" name="album" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">';
312
  if ( $albums ) {
313
 
314
  // Please select
333
  '<tr id="wppagallery-owner-tr" style="display:none" >'.
334
  '<th><label for="wppagallery-owner">'.__('The album owner:', 'wp-photo-album-plus').'</label></th>'.
335
  '<td>'.
336
+ '<select id="wppagallery-owner" name="owner" class="wppagallery-owner" onchange="wppaGutenbergGalleryEvaluate()">'.
337
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select a user', 'wp-photo-album-plus').' --</option>'.
338
  '<option value="#me" >-- '.__('The logged in visitor', 'wp-photo-album-plus').' --</option>';
339
  $users = wppa_get_users();
352
  '<tr id="wppagallery-owner-parent-tr" style="display:none;" >'.
353
  '<th><label for="wppagallery-owner-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
354
  '<td>'.
355
+ '<select id="wppagallery-owner-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">';
356
  if ( $albums ) {
357
 
358
  // Please select
378
  '<tr id="wppagallery-album-parent-tr" style="display:none;" >'.
379
  '<th><label for="wppagallery-album-parent">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
380
  '<td>'.
381
+ '<select id="wppagallery-album-parent-parent" style="color:#070 !important;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
382
  if ($albums) {
383
 
384
  // Please select
401
  '<tr id="wppagallery-album-count-tr" style="display:none;" >'.
402
  '<th><label for="wppagallery-album-count">'.__('Max Albums:', 'wp-photo-album-plus').'</label></th>'.
403
  '<td>'.
404
+ '<input id="wppagallery-album-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
405
  '</td>'.
406
  '</tr>'.
407
 
409
  '<tr id="wppagallery-photo-count-tr" style="display:none;" >'.
410
  '<th><label for="wppagallery-photo-count">'.__('Max Photos:', 'wp-photo-album-plus').'</label></th>'.
411
  '<td>'.
412
+ '<input id="wppagallery-photo-count" type="text" style="color:#070;" value="1" onchange="wppaGutenbergGalleryEvaluate()" />'.
413
  '</td>'.
414
  '</tr>'.
415
 
417
  '<tr id="wppagallery-albumcat-tr" style="display:none;" >'.
418
  '<th><label for="wppagallery-albumcat">'.__('The album cat(s):', 'wp-photo-album-plus').'</label></th>'.
419
  '<td>'.
420
+ '<select id="wppagallery-albumcat" style="color:#700 !important;" onchange="wppaGutenbergGalleryEvaluate()" multiple="multiple" >'.
421
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >'.__('--- please select category ---', 'wp-photo-album-plus').'</option>';
422
  if ( $cats ) foreach ( array_keys( $cats ) as $cat ) {
423
  $result .= '<option class="wppagallery-albumcat" value="'.$cat.'" >'.$cat.'</option>';
431
  '<tr id="wppagallery-photo-tr" style="display:none;" >'.
432
  '<th><label for="wppagallery-photo" class="wppagallery-photo" >'.__('The Photo to be used:', 'wp-photo-album-plus').'</label></th>'.
433
  '<td>'.
434
+ '<select id="wppagallery-photo" name="photo" class="wppagallery-photo" onchange="wppaGutenbergGalleryEvaluate()" >';
435
  if ( $photos ) {
436
 
437
  // Please select
492
  '<tr id="wppagallery-phototags-tr" style="display:none;" >'.
493
  '<th><label for="wppagallery-phototags">'.__('The photo tag(s):', 'wp-photo-album-plus').'</label></th>'.
494
  '<td>'.
495
+ '<select id="wppagallery-phototags" style="color:#700 !important;" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">'.
496
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >'.__('--- please select tag(s) ---', 'wp-photo-album-plus').'</option>';
497
  if ( $tags ) foreach ( array_keys($tags) as $tag ) {
498
  $result .= '<option class="wppagallery-phototags" value="'.$tag.'" >'.$tag.'</option>';
506
  '<tr id="wppagallery-tags-cats-tr" style="display:none;" >'.
507
  '<th><label>'.__('Or / And:', 'wp-photo-album-plus').'</label></th>'.
508
  '<td>'.
509
+ '<input id="wppagallery-or" type="radio" name="andor" value="or" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Meet any', 'wp-photo-album-plus').'&nbsp;'.
510
+ '<input id="wppagallery-and" type="radio" name="andor" value="and" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Meet all', 'wp-photo-album-plus').
511
  '</td>'.
512
  '</tr>'.
513
 
515
  '<tr id="wppagallery-search-tr" style="display:none;" >'.
516
  '<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
517
  '<td>'.
518
+ '<input id="wppagallery-sub" type="checkbox" name="sub" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable Subsearch', 'wp-photo-album-plus').'&nbsp;'.
519
+ '<input id="wppagallery-root" type="checkbox" name="root" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable Rootsearch', 'wp-photo-album-plus').
520
  '</td>'.
521
  '</tr>'.
522
 
524
  '<tr id="wppagallery-rootalbum-tr" style="display:none;" >'.
525
  '<th><label>'.__('Search root:', 'wp-photo-album-plus').'</label></th>'.
526
  '<td>'.
527
+ '<select id="wppagallery-rootalbum" onchange="wppaGutenbergGalleryEvaluate()" >'.
528
  '<option value="0" selected="selected" >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
529
  if ( $albums ) {
530
 
543
  '<tr id="wppagallery-landing-tr" style="display:none;" >'.
544
  '<th><label>'.__('Landing page:', 'wp-photo-album-plus').'</label></th>'.
545
  '<td>'.
546
+ '<select id="wppagallery-landing" onchange="wppaGutenbergGalleryEvaluate()" >'.
547
  '<option value="0" selected="selected" >'.__('--- default ---', 'wp-photo-album-plus').'</option>';
548
  if ( $pages ) {
549
  foreach( $pages as $page ) {
563
  '<tr id="wppagallery-taglist-tr" style="display:none;" >'.
564
  '<th><label>'.__('Additional features:', 'wp-photo-album-plus').'</label></th>'.
565
  '<td>'.
566
+ '<input id="wppagallery-alltags" type="checkbox" checked="checked" name="alltags" onchange="wppaGutenbergGalleryEvaluate()"/>'.__('Enable all tags', 'wp-photo-album-plus').'&nbsp;'.
567
+ '<select id="wppagallery-seltags" style="color:#070; display:none;" name="seltags" multiple="multiple" onchange="wppaGutenbergGalleryEvaluate()">';
568
  if ( $tags ) {
569
  '<option value="" disabled="disabled" selected="selected" style="color:#700 !important;" >-- '.__('Please select the tags to show', 'wp-photo-album-plus').' --</option>';
570
  foreach( array_keys($tags) as $tag ) {
582
  '<tr id="wppagallery-album-super-tr" style="display:none;" >'.
583
  '<th><label for="wppagallery-album-super">'.__('Parent album:', 'wp-photo-album-plus').'</label></th>'.
584
  '<td>'.
585
+ '<select id="wppagallery-album-super-parent" style="color:#070;max-width:400px;" name="parentalbum" onchange="wppaGutenbergGalleryEvaluate()">';
586
  if ( $albums ) {
587
 
588
  // Please select
605
  '<tr id="wppagallery-calendar-tr" style="display:none;" >'.
606
  '<th><label for="wppagallery-calendar">'.__('Calendar type:', 'wp-photo-album-plus').'</lable></th>'.
607
  '<td>'.
608
+ '<select id="wppagallery-calendar-type" style="color:#070;max-width:400px;" onchange="wppaGutenbergGalleryEvaluate()" >'.
609
  '<option value="exifdtm" >'.__('By EXIF date', 'wp-photo-album-plus').'</option>'.
610
  '<option value="timestamp" >'.__('By date of upload', 'wp-photo-album-plus').'</option>'.
611
  '<option value="modified" >'.__('By date last modified', 'wp-photo-album-plus').'</option>'.
612
  '</select>'.
613
  '<br />'.
614
+ '<input type="checkbox" id="wppagallery-calendar-reverse" onchange="wppaGutenbergGalleryEvaluate()" >'.__('Last date first', 'wp-photo-album-plus').'&nbsp;&nbsp;'.
615
+ '<input type="checkbox" id="wppagallery-calendar-allopen" onchange="wppaGutenbergGalleryEvaluate()" >'.__('Initially display all', 'wp-photo-album-plus').
616
  '</td>'.
617
  '</tr>'.
618
 
620
  '<tr>'.
621
  '<th><label for="wppagallery-size">'.__('The size of the display:', 'wp-photo-album-plus').'</label></th>'.
622
  '<td>'.
623
+ '<input type="text" id="wppagallery-size" value="" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();"/>'.
624
  '<br />'.
625
  '<small>'.
626
  __('Specify the horizontal size in pixels or <span style="color:blue" >auto</span>.', 'wp-photo-album-plus').' '.
635
  '<tr>'.
636
  '<th><label for="wppagallery-align">'.__('Horizontal alignment:', 'wp-photo-album-plus').'</label></th>'.
637
  '<td>'.
638
+ '<select id="wppagallery-align" name="align" style="color:#070;" onchange="wppaGutenbergGalleryEvaluate();">'.
639
  '<option value="none" >'.__('--- none ---', 'wp-photo-album-plus').'</option>'.
640
  '<option value="left" >'.__('left', 'wp-photo-album-plus').'</option>'.
641
  '<option value="center" >'.__('center', 'wp-photo-album-plus').'</option>'.
650
  '<tr id="wppagallery-cache-tr" >
651
  <th><label for="wppagallery-cache" >'.__('Cache:', 'wp-photo-album-plus').'</label></th>
652
  <td>
653
+ <input type="checkbox" id="wppagallery-cache" onchange="wppaGutenbergGalleryEvaluate()" />'.__('Cache this shortcode', 'wp-photo-album-plus').'
654
  </td>
655
  </tr>'.
656
 
658
  '<tr id="wppagallery-delay-tr" >
659
  <th><label for="wppagallery-delay" >'.__('Delay:', 'wp-photo-album-plus').'</label></th>
660
  <td>
661
+ <input type="checkbox" id="wppagallery-delay" onchange="wppaGutenbergGalleryEvaluate()" />'.__('Delay this shortcode', 'wp-photo-album-plus').'
662
  </td>
663
  </tr>'.
664
 
673
  value="' . __( 'Ready', 'wp-photo-album-plus' ) . '"
674
  / >' .
675
 
676
+ '<script type="text/javascript" >wppaGutenbergGalleryEvaluate();</script>' .
677
  '</div>';
678
 
679
  return $result;
wppa-potd-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the widget
6
- * Version 7.3.03
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -91,6 +91,7 @@ class PhotoOfTheDay extends WP_Widget {
91
  $is_video = wppa_is_video( $id );
92
  $has_audio = wppa_has_audio( $id );
93
  $alb = wppa_get_photo_item( $id, 'album' );
 
94
 
95
  if ( $link['is_lightbox'] ) {
96
  $lightbox = ( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the widget
6
+ * Version 7.5.10
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
91
  $is_video = wppa_is_video( $id );
92
  $has_audio = wppa_has_audio( $id );
93
  $alb = wppa_get_photo_item( $id, 'album' );
94
+ $is_pdf = wppa_is_pdf( $id );
95
 
96
  if ( $link['is_lightbox'] ) {
97
  $lightbox = ( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"' .
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 7.5.10.008
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7510'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.5.10.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.5.10.009
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7510'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.5.10.009'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';