WP Photo Album Plus - Version 8.1.09.003

Version Description

= 8.1.08 =

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

Release Info

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

Code changes from version 8.1.09.002 to 8.1.09.003

Files changed (63) hide show
  1. changelog.txt +1 -0
  2. js/wppa-ajax-front.js +5 -2
  3. js/wppa-ajax-front.min.js +1 -1
  4. js/wppa-all.js +1 -1
  5. wppa-admins-choice-widget.php +4 -4
  6. wppa-ajax.php +47 -6
  7. wppa-album-admin-autosave.php +68 -69
  8. wppa-album-covers.php +17 -18
  9. wppa-album-navigator-widget.php +5 -5
  10. wppa-album-widget.php +9 -12
  11. wppa-bestof-widget.php +3 -3
  12. wppa-boxes-html.php +105 -92
  13. wppa-breadcrumb.php +5 -5
  14. wppa-cache.php +29 -16
  15. wppa-comment-admin.php +19 -19
  16. wppa-comment-widget.php +7 -8
  17. wppa-common-functions.php +18 -18
  18. wppa-dashboard-widgets.php +21 -21
  19. wppa-date-time.php +19 -19
  20. wppa-defaults.php +5 -4
  21. wppa-edit-tags.php +3 -3
  22. wppa-featen-widget.php +3 -3
  23. wppa-filter.php +5 -5
  24. wppa-functions.php +31 -15
  25. wppa-gp-widget.php +2 -2
  26. wppa-gutenberg-photo.php +5 -5
  27. wppa-import.php +26 -26
  28. wppa-init.php +1 -1
  29. wppa-lasten-widget.php +3 -3
  30. wppa-links.php +22 -22
  31. wppa-mailing.php +7 -7
  32. wppa-maintenance.php +12 -12
  33. wppa-multitag-widget.php +4 -4
  34. wppa-non-admin.php +4 -4
  35. wppa-notify-widget.php +18 -18
  36. wppa-photo-admin-autosave.php +32 -32
  37. wppa-picture.php +4 -4
  38. wppa-potd-widget.php +11 -5
  39. wppa-privacy-policy.php +2 -2
  40. wppa-qr-widget.php +2 -2
  41. wppa-scripts.php +2 -5
  42. wppa-search-widget.php +3 -3
  43. wppa-setting-functions.php +51 -75
  44. wppa-settings-autosave.php +94 -70
  45. wppa-slideshow-widget.php +6 -6
  46. wppa-slideshow.php +11 -11
  47. wppa-stats-widget.php +2 -2
  48. wppa-stereo-widget.php +3 -3
  49. wppa-styles.php +35 -35
  50. wppa-super-view-widget.php +2 -2
  51. wppa-tagcloud-widget.php +3 -3
  52. wppa-thumbnail-widget.php +3 -3
  53. wppa-thumbnails.php +16 -16
  54. wppa-tinymce-common.php +6 -6
  55. wppa-topten-widget.php +3 -3
  56. wppa-upldr-widget.php +9 -9
  57. wppa-upload-widget.php +2 -2
  58. wppa-upload.php +2 -2
  59. wppa-users.php +4 -4
  60. wppa-utils.php +5 -6
  61. wppa-widget-functions.php +4 -4
  62. wppa-wrappers.php +20 -3
  63. wppa.php +2 -2
changelog.txt CHANGED
@@ -3,6 +3,7 @@ WP Photo Album Plus Changelog
3
  = 8.1.09 =
4
 
5
  * siae="auto,500" i.e. responsive with maximum did not work as the maximum was not working. Fixed.
 
6
 
7
  = 8.1.08 =
8
 
3
  = 8.1.09 =
4
 
5
  * siae="auto,500" i.e. responsive with maximum did not work as the maximum was not working. Fixed.
6
+ * You can now limit frontend album creation to one ore more userroles. See Advanced settings -> Admin -> I -> Item 2
7
 
8
  = 8.1.08 =
9
 
js/wppa-ajax-front.js CHANGED
@@ -3,7 +3,7 @@
3
  // Contains frontend ajax modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaJsAjaxVersion = '8.1.07.001';
7
 
8
  // The new AJAX rendering routine Async
9
  function wppaDoAjaxRender( mocc, ajaxurl, newurl, addHilite ) {
@@ -28,7 +28,10 @@ function wppaDoAjaxRender( mocc, ajaxurl, newurl, addHilite ) {
28
  // Display the spinner
29
  jQuery( '#wppa-ajax-spin-'+mocc ).fadeIn();
30
  },
31
- success: function( result, status, xhr ) {
 
 
 
32
 
33
  // Do not render modal if behind button. When behind button, there is no newurl,
34
  // so we test on the existence of newurl to see if it is behind button
3
  // Contains frontend ajax modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaJsAjaxVersion = '8.1.09.003';
7
 
8
  // The new AJAX rendering routine Async
9
  function wppaDoAjaxRender( mocc, ajaxurl, newurl, addHilite ) {
28
  // Display the spinner
29
  jQuery( '#wppa-ajax-spin-'+mocc ).fadeIn();
30
  },
31
+ success: function( xresult, status, xhr ) {
32
+
33
+ var theResult = JSON.parse(xresult);
34
+ var result = theResult.html + '<script>' + theResult.js + '</script>';
35
 
36
  // Do not render modal if behind button. When behind button, there is no newurl,
37
  // so we test on the existence of newurl to see if it is behind button
js/wppa-ajax-front.min.js CHANGED
@@ -1 +1 @@
1
- var wppaJsAjaxVersion="8.1.07.001";function wppaDoAjaxRender(o,a,r,p){""!=wppaLang&&(a+="&lang="+wppaLang),wppaAutoColumnWidth[o]&&(a+="&resp=1"),p&&_wppaCurIdx[o]&&_wppaId[o][_wppaCurIdx[o]]&&(a+="&wppa-hilite="+_wppaId[o][_wppaCurIdx[o]]),wppaCanAjaxRender||!r?jQuery.ajax({url:a,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){_wppaSSRuns[o]&&_wppaStop(o),jQuery("#wppa-ajax-spin-"+o).fadeIn()},success:function(a,p,e){var t;wppaRenderModal&&r?(t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""},jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-button").on("click",function(){_wppaStop(o)}),jQuery(".wppa-ajax-spin").stop().fadeOut()):(jQuery("#wppa-container-"+o).html(a),jQuery("#wppa-button-hide-"+o).show()),wppaCanPushState&&wppaUpdateAddressLine&&r&&(wppaHis++,r=r.split("&amp;").join("&"),jQuery(document).ready(function(){setTimeout(function(){try{history.pushState({page:wppaHis,occur:o,type:"html",html:a},"",r),wppaConsoleLog("Pushed history stack on ajax call","force")}catch(a){try{history.replaceState({page:wppaHis,occur:o,type:"html"},"",r),wppaConsoleLog("History replaced on ajax call","force")}catch(a){wppaConsoleLog("Ajax rendering: History stack update and replace failed","force")}}},1e3)}),0==wppaFirstOccur&&(wppaFirstOccur=o)),wppaUpdateLightboxes(),"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(r),wppaColWidth[o]=0,_wppaDoAutocol(o,"ajax")},error:function(a,p,e){wppaConsoleLog("wppaDoAjaxRender failed. Error = "+e+", status = "+p,"force"),r?document.location.href=r:document.location.reload(!0)},complete:function(a,p,e){!wppaRenderModal&&wppaAjaxScroll&&jQuery("html, body").animate({scrollTop:jQuery("#wppa-container-"+o).offset().top-32-wppaStickyHeaderHeight},1e3),jQuery(".wppa-ajax-spin").stop().fadeOut(),window.dispatchEvent(new Event("resize")),wppaProtect()}}):(document.location.href=r,wppaColWidth[o]=0,_wppaDoAutocol(o,"nonajax"))}function wppaAjaxApprovePhoto(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&photo-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApprovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhoto(t,o,r){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&photo-id="+o,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){rtxt=a.split("||"),"OK"==rtxt[0]?r?(jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),wppaNext(t)):(jQuery(".wppa-approve-"+o).css("display","none"),jQuery(".thumbnail-frame-photo-"+o).css("display","none")):rtxt[3]?(alert(rtxt[3]),jQuery("#wppa-delete-"+o).css("text-decoration","line-through")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxApproveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApproveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemoveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a.split("||")[0]?(jQuery(".wppa-approve-"+t).css("display","none"),jQuery(".wppa-comment-"+t).css("display","none")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemoveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxAddPhotoToZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=addtozip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-"+r+"-"+o).html(t[2]),jQuery("#admin-choice-"+r+"-"+o).val(t[2]),jQuery("#admin-choice-"+r+"-"+o).prop("disabled",!0)):wppaConsoleLog("NOT OK "+a),alert(t[1]),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxAddPhotoToZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhotoFromZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=removefromzip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-rem-"+r+"-"+o).val(t[1]),jQuery("#admin-choice-rem-"+r+"-"+o).prop("disabled",!0),jQuery("#admin-choice-rem-"+r+"-"+o).css("text-decoration","")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhotoFromZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDeleteMyZip(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=delmyzip",async:!0,type:"GET",timeout:6e4,success:function(a,p,e){document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDeleteMyZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRequestInfo(a,p,e){dialogHtml="<h3>"+wppaRequestInfoDialogText+'</h3><textarea id="wppa-request-info-text-'+a+'" style="width:98%;" ></textarea><div style="clear:both;" ></div><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Send" onclick="wppaAjaxRequestInfoSend( '+a+", "+p+", "+e+' )" /><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Cancel" onclick="jQuery( \'#wppa-modal-container-'+a+"' ).dialog( 'close' );\" /><div style=\"clear:both;\" ></div>";e={modal:!0,resizable:!0,width:wppaGetContainerWidth(a),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+a).html(dialogHtml).dialog(e).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close")}function wppaAjaxRequestInfoSend(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=requestinfo&photo-id="+r+"&emailtext="+jQuery("#wppa-request-info-text-"+o).val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#request-info-"+r+"-"+o).val(t[1]),jQuery("#request-info-"+r+"-"+o).prop("disabled",!0),jQuery("#wppa-modal-container-"+o).dialog("close")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRequestInfoSend failed. Error = "+e+", status = "+p,"force")}})}function wppaEditPhoto(o,a){var p=String(a),a=wppaEditPhotoWidth;screen.availWidth<a&&(a=screen.availWidth),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=front-edit&photo-id="+p+"&occur="+o,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){var t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(document).trigger("resize")},error:function(a,p,e){wppaConsoleLog("wppaEditPhoto failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaPrevTags(a,p,e,t){for(var o,r=jQuery("."+a),n=[],i=jQuery("#"+e).val(),c=0,u=0,a="";c<r.length;)r[c].selected&&(n[u]=r[c].value,u++),c++;""!=(o=jQuery("#"+p).val())&&(n[u]=o),a=n.join(),""==o&&""==e||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=sanitizetags&tags="+a+"&album="+i,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#"+t).html("Working...")},success:function(a,p,e){jQuery("#"+t).html(wppaTrim(a,","))},error:function(a,p,e){jQuery("#"+t).html('<span style="color:red" >'+e+"</span>"),wppaConsoleLog("wppaPrevTags failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDestroyAlbum(a,p){return confirm("Are you sure you want to delete this album?")&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=destroyalbum&album="+a+"&nonce="+p,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){alert(a+"\nPage will be reloaded"),document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDestroyAlbum failed. Error = "+e+", status = "+p,"force")}}),!1}function _bumpClickCount(a){wppaBumpClickCount&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpclickcount&wppa-photo="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!1,type:"GET",timeout:6e4,success:function(a,p,e){},error:function(a,p,e){wppaConsoleLog("_bumpClickCount failed. Error = "+e+", status = "+p,"force")}})}function _bumpViewCount(t){wppaBumpViewCount&&(wppaPhotoView[t]||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpviewcount&wppa-photo="+t+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){wppaPhotoView[t]=!0},error:function(a,p,e){wppaConsoleLog("_bumpViewCount failed. Error = "+e+", status = "+p,"force")}}))}function wppaVoteThumb(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating=1&wppa-rating-id="+o+"&wppa-occur="+t+"&wppa-index=0&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){jQuery("#wppa-vote-button-"+t+"-"+o).val(wppaVotedForMe)},error:function(a,p,e){wppaConsoleLog("wppaVoteThumb failed. Error = "+e+", status = "+p,"force")}})}function _wppaRateIt(o,p){var a,e,t;0!=p&&(_wppaSSRuns[o]||(a=_wppaId[o][_wppaCurIdx[o]],e=_wppaMyr[o][_wppaCurIdx[o]],0<(t=_wppaWaitTexts[o][_wppaCurIdx[o]]).length?alert(t):0!=e&&wppaRatingOnce||e<0||(_wppaVoteInProgress=!0,jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+p+"&wppa-rating-id="+a+"&wppa-occur="+o+"&wppa-index="+_wppaCurIdx[o]+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#wppa-rate-"+o+"-"+p).attr("src",wppaImageDirectory+"tick.png"),jQuery("#wppa-rate-"+o+"-"+p).stop().fadeTo(100,1),jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");0==t[0]?900==t[1]?(alert(t[2]),_wppaSetRatingDisplay(o)):alert("Error Code="+t[1]+"\n\n"+t[2]):(t[7]&&"likes"==t[7]?(a=t[4].split("|"),jQuery("#wppa-like-"+o).attr("title",a[0]),jQuery("#wppa-liketext-"+o).html(a[1]),"1"==t[3]?jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbup.png"),_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4]):(_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4],_wppaDisc[t[0]][t[2]]=t[5],_wppaSetRatingDisplay(o),wppaCommentRequiredAfterVote&&0==t[6]&&alert(t[7])),wppaNextOnCallback&&_wppaNextOnCallback(o))},error:function(a,p,e){wppaConsoleLog("_wppaRateIt failed. Error = "+e+", status = "+p,"force")}}))))}function _wppaOvlRateIt(o,r,n,i){0!=r&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+r+"&wppa-rating-id="+o+"&wppa-occur=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"tick.png"),jQuery(".wppa-rate-"+n+"-"+r).stop().fadeTo(100,1),jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"spinner.gif"),jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");if(0==t[0])900==t[1]?alert(t[2]):alert("Error Code="+t[1]+"\n\n"+t[2]),jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"cross.png");else{if(t[7]&&"likes"==t[7]){a=t[4].split("|");return jQuery("#wppa-like-0").attr("title",a[0]),jQuery("#wppa-liketext-0").html(a[1]),"1"==t[3]?jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbup.png"),jQuery("#wppa-like-"+o+"-"+n).attr("title",a[0]),jQuery("#wppa-liketext-"+o+"-"+n).html(a[1]),void("1"==t[3]?jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbup.png"))}_wppaSetRd(n,t[4],".wppa-avg-"),_wppaSetRd(n,t[3],".wppa-rate-"),i||wppaNextOnCallback&&wppaOvlShowNext()}},error:function(a,p,e){wppaConsoleLog("_wppaOvlRateIt failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxMakeOrigName(a,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=makeorigname&photo-id="+p+"&from=fsname",async:!0,type:"GET",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||");"0"==a[1]?(wppaIsSafari?"file"==wppaArtMonkyLink&&(wppaWindowReference.location=a[2]):"file"==wppaArtMonkyLink&&window.open(a[2]),"zip"==wppaArtMonkyLink&&(document.location=a[2])):(wppaIsSafari&&"file"==wppaArtMonkyLink&&wppaWindowReference.close(),alert("Error: "+a[1]+"\n\n"+a[2]))},error:function(a,p,e){wppaConsoleLog("wppaAjaxMakeOrigName failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaAjaxDownloadAlbum(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=downloadalbum&album-id="+o,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#dwnspin-"+t+"-"+o).css("display","")},success:function(a,p,e){var t=a.split("||"),o=t[0],r=t[1],a=t[2];3==t.length&&""!=a&&alert("Attention:\n\n"+a),"OK"==r?document.location=o:alert("The server could not complete the request.\nPlease try again.")},error:function(a,p,e){alert("An error occurred:\n"+e+"\nPlease try again")},complete:function(a,p,e){jQuery("#dwnspin-"+t+"-"+o).css("display","none")}})}function wppaAjaxComment(t,a){_wppaValidateComment(t,a)&&(a="action=wppa&wppa-action=do-comment&photo-id="+a+"&comname="+jQuery("#wppa-comname-"+t).val()+"&comment="+wppaEncode(jQuery("#wppa-comment-"+t).val())+"&wppa-captcha="+jQuery("#wppa-captcha-"+t).val()+"&wppa-nonce="+jQuery("#wppa-nonce-"+t).val()+"&occur="+t,void 0!==jQuery("#wppa-comemail-"+t).val()&&(a+="&comemail="+jQuery("#wppa-comemail-"+t).val()),void 0!==jQuery("#wppa-comment-edit-"+t).val()&&(a+="&comment-edit="+jQuery("#wppa-comment-edit-"+t).val()),void 0!==jQuery("#wppa-returnurl-"+t).val()&&(a+="&returnurl="+encodeURIComponent(jQuery("#wppa-returnurl-"+t).val())),jQuery("#db-agree-"+t).prop("checked")&&(a+="&db-agree=yes"),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){jQuery("#wppa-comment-spin-"+t).css("display","inline")},success:function(a,p,e){a=a.replace(/\\/g,""),jQuery("#wppa-comments-"+t).html(a),_wppaCurIdx[t]&&(_wppaCommentHtml[t][_wppaCurIdx[t]]=a),wppaOpenComments(t)},error:function(a,p,e){wppaConsoleLog("wppaAjaxComment failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-comment-spin-"+t).css("display","none")}}))}function wppaUpdatePhotoNew(a,t){for(var p=["upn-name","upn-description","upn-tags","custom_0","custom_1","custom_2","custom_3","custom_4","custom_5","custom_6","custom_7","custom_8","custom_9"],e="action=wppa&wppa-action=update-photo-new&photo-id="+a+"&wppa-nonce="+jQuery("#wppa-nonce-"+a).val(),o=0;o<p.length;)void 0!==jQuery("#"+p[o]).val()&&(e+="&"+p[o]+"="+jQuery("#"+p[o]).val()),o++;jQuery.ajax({url:wppaAjaxUrl,data:e,async:!1,type:"POST",timeout:1e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||"),a=JSON.parse(a[2]);jQuery(".sdd-"+t).html(a.desc),jQuery(".sdn-"+t).html(a.name),jQuery(".sdf-"+t).html(a.fullname),_wppaNames[t]&&(_wppaNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.name),_wppaFullNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.fullname),_wppaDsc[t][_wppaCurIdx[t]]=wppaFixHtml(a.desc),jQuery("#imagetitle-"+t).html(wppaMakeNameHtml(t)))},error:function(a,p,e){wppaConsoleLog("wppaUpdatePhotoNew failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-modal-container-"+t).dialog("close")}})}function wppaFixHtml(a){return a=(a=(a=(a=a.replace(/\[/g,"<")).replace(/\]/g,">")).replace(/&quot;/g,'"')).replace(/\\n/g," ")}var wppaLastQrcodeUrl="";function wppaAjaxSetQrCodeSrc(a,t){0!=jQuery(t).length&&wppaLastQrcodeUrl!=a&&(wppaLastQrcodeUrl=a,a="action=wppa&wppa-action=getqrcode&wppa-qr-nonce="+jQuery("#wppa-qr-nonce").val()+"&url="+encodeURIComponent(a),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){a=a.split("|");jQuery(t).attr("src",a[0]),jQuery(t).attr("title",a[1])},error:function(a,p,e){wppaConsoleLog("wppaAjaxSetQrCodeSrc failed. Error = "+e+", status = "+p,"force")}}))}function wppaAjaxNotify(a,p){a=jQuery(a).prop("checked")?"on":"off",a="action=wppa&wppa-action=mailinglist&wppa-ntfy-nonce="+jQuery("#wppa-ntfy-nonce").val()+"&list="+p+"&onoff="+a;jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxNotify failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxGetSsIptcList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"iptc")}function wppaAjaxGetSsExifList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"exif")}function wppaAjaxGetSsIptcExifList(t,o,r,n,i){ajaxurl=wppaAjaxUrl,ajaxurl+="?action=wppa&wppa-action=getss"+i+"list&"+i+"tag="+o+"&occur="+t,jQuery.ajax({url:ajaxurl,async:!0,type:"GET",timeout:1e4,beforeSend:function(a){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(a,p,e){jQuery("#"+r).html(a),jQuery("#wppa-ss-"+i+"opts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-'+i+"list-"+t+'", "#'+r+'" )',10),n&&wppaConsoleLog("wppaAjaxGetSs"+i+"List success after retry.","force")},error:function(a,p,e){wppaConsoleLog("wppaAjaxGetSs"+i+"List failed. Error = "+e+", status = "+p,"force"),n||wppaAjaxGetSsIptcExifList(t,o,r,!0,i)},complete:function(a,p,e){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}
1
+ var wppaJsAjaxVersion="8.1.09.003";function wppaDoAjaxRender(o,a,r,p){""!=wppaLang&&(a+="&lang="+wppaLang),wppaAutoColumnWidth[o]&&(a+="&resp=1"),p&&_wppaCurIdx[o]&&_wppaId[o][_wppaCurIdx[o]]&&(a+="&wppa-hilite="+_wppaId[o][_wppaCurIdx[o]]),wppaCanAjaxRender||!r?jQuery.ajax({url:a,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){_wppaSSRuns[o]&&_wppaStop(o),jQuery("#wppa-ajax-spin-"+o).fadeIn()},success:function(a,p,e){var a=JSON.parse(a),t=a.html+"<script>"+a.js+"<\/script>";wppaRenderModal&&r?(a={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""},jQuery("#wppa-modal-container-"+o).html(t).dialog(a).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-button").on("click",function(){_wppaStop(o)}),jQuery(".wppa-ajax-spin").stop().fadeOut()):(jQuery("#wppa-container-"+o).html(t),jQuery("#wppa-button-hide-"+o).show()),wppaCanPushState&&wppaUpdateAddressLine&&r&&(wppaHis++,r=r.split("&amp;").join("&"),jQuery(document).ready(function(){setTimeout(function(){try{history.pushState({page:wppaHis,occur:o,type:"html",html:t},"",r),wppaConsoleLog("Pushed history stack on ajax call","force")}catch(a){try{history.replaceState({page:wppaHis,occur:o,type:"html"},"",r),wppaConsoleLog("History replaced on ajax call","force")}catch(a){wppaConsoleLog("Ajax rendering: History stack update and replace failed","force")}}},1e3)}),0==wppaFirstOccur&&(wppaFirstOccur=o)),wppaUpdateLightboxes(),"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(r),wppaColWidth[o]=0,_wppaDoAutocol(o,"ajax")},error:function(a,p,e){wppaConsoleLog("wppaDoAjaxRender failed. Error = "+e+", status = "+p,"force"),r?document.location.href=r:document.location.reload(!0)},complete:function(a,p,e){!wppaRenderModal&&wppaAjaxScroll&&jQuery("html, body").animate({scrollTop:jQuery("#wppa-container-"+o).offset().top-32-wppaStickyHeaderHeight},1e3),jQuery(".wppa-ajax-spin").stop().fadeOut(),window.dispatchEvent(new Event("resize")),wppaProtect()}}):(document.location.href=r,wppaColWidth[o]=0,_wppaDoAutocol(o,"nonajax"))}function wppaAjaxApprovePhoto(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&photo-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApprovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhoto(t,o,r){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&photo-id="+o,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){rtxt=a.split("||"),"OK"==rtxt[0]?r?(jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),wppaNext(t)):(jQuery(".wppa-approve-"+o).css("display","none"),jQuery(".thumbnail-frame-photo-"+o).css("display","none")):rtxt[3]?(alert(rtxt[3]),jQuery("#wppa-delete-"+o).css("text-decoration","line-through")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxApproveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApproveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemoveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a.split("||")[0]?(jQuery(".wppa-approve-"+t).css("display","none"),jQuery(".wppa-comment-"+t).css("display","none")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemoveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxAddPhotoToZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=addtozip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-"+r+"-"+o).html(t[2]),jQuery("#admin-choice-"+r+"-"+o).val(t[2]),jQuery("#admin-choice-"+r+"-"+o).prop("disabled",!0)):wppaConsoleLog("NOT OK "+a),alert(t[1]),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxAddPhotoToZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhotoFromZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=removefromzip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-rem-"+r+"-"+o).val(t[1]),jQuery("#admin-choice-rem-"+r+"-"+o).prop("disabled",!0),jQuery("#admin-choice-rem-"+r+"-"+o).css("text-decoration","")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhotoFromZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDeleteMyZip(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=delmyzip",async:!0,type:"GET",timeout:6e4,success:function(a,p,e){document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDeleteMyZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRequestInfo(a,p,e){dialogHtml="<h3>"+wppaRequestInfoDialogText+'</h3><textarea id="wppa-request-info-text-'+a+'" style="width:98%;" ></textarea><div style="clear:both;" ></div><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Send" onclick="wppaAjaxRequestInfoSend( '+a+", "+p+", "+e+' )" /><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Cancel" onclick="jQuery( \'#wppa-modal-container-'+a+"' ).dialog( 'close' );\" /><div style=\"clear:both;\" ></div>";e={modal:!0,resizable:!0,width:wppaGetContainerWidth(a),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+a).html(dialogHtml).dialog(e).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close")}function wppaAjaxRequestInfoSend(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=requestinfo&photo-id="+r+"&emailtext="+jQuery("#wppa-request-info-text-"+o).val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#request-info-"+r+"-"+o).val(t[1]),jQuery("#request-info-"+r+"-"+o).prop("disabled",!0),jQuery("#wppa-modal-container-"+o).dialog("close")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRequestInfoSend failed. Error = "+e+", status = "+p,"force")}})}function wppaEditPhoto(o,a){var p=String(a),a=wppaEditPhotoWidth;screen.availWidth<a&&(a=screen.availWidth),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=front-edit&photo-id="+p+"&occur="+o,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){var t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(document).trigger("resize")},error:function(a,p,e){wppaConsoleLog("wppaEditPhoto failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaPrevTags(a,p,e,t){for(var o,r=jQuery("."+a),n=[],i=jQuery("#"+e).val(),c=0,u=0,a="";c<r.length;)r[c].selected&&(n[u]=r[c].value,u++),c++;""!=(o=jQuery("#"+p).val())&&(n[u]=o),a=n.join(),""==o&&""==e||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=sanitizetags&tags="+a+"&album="+i,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#"+t).html("Working...")},success:function(a,p,e){jQuery("#"+t).html(wppaTrim(a,","))},error:function(a,p,e){jQuery("#"+t).html('<span style="color:red" >'+e+"</span>"),wppaConsoleLog("wppaPrevTags failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDestroyAlbum(a,p){return confirm("Are you sure you want to delete this album?")&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=destroyalbum&album="+a+"&nonce="+p,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){alert(a+"\nPage will be reloaded"),document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDestroyAlbum failed. Error = "+e+", status = "+p,"force")}}),!1}function _bumpClickCount(a){wppaBumpClickCount&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpclickcount&wppa-photo="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!1,type:"GET",timeout:6e4,success:function(a,p,e){},error:function(a,p,e){wppaConsoleLog("_bumpClickCount failed. Error = "+e+", status = "+p,"force")}})}function _bumpViewCount(t){wppaBumpViewCount&&(wppaPhotoView[t]||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpviewcount&wppa-photo="+t+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){wppaPhotoView[t]=!0},error:function(a,p,e){wppaConsoleLog("_bumpViewCount failed. Error = "+e+", status = "+p,"force")}}))}function wppaVoteThumb(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating=1&wppa-rating-id="+o+"&wppa-occur="+t+"&wppa-index=0&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){jQuery("#wppa-vote-button-"+t+"-"+o).val(wppaVotedForMe)},error:function(a,p,e){wppaConsoleLog("wppaVoteThumb failed. Error = "+e+", status = "+p,"force")}})}function _wppaRateIt(o,p){var a,e,t;0!=p&&(_wppaSSRuns[o]||(a=_wppaId[o][_wppaCurIdx[o]],e=_wppaMyr[o][_wppaCurIdx[o]],0<(t=_wppaWaitTexts[o][_wppaCurIdx[o]]).length?alert(t):0!=e&&wppaRatingOnce||e<0||(_wppaVoteInProgress=!0,jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+p+"&wppa-rating-id="+a+"&wppa-occur="+o+"&wppa-index="+_wppaCurIdx[o]+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#wppa-rate-"+o+"-"+p).attr("src",wppaImageDirectory+"tick.png"),jQuery("#wppa-rate-"+o+"-"+p).stop().fadeTo(100,1),jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");0==t[0]?900==t[1]?(alert(t[2]),_wppaSetRatingDisplay(o)):alert("Error Code="+t[1]+"\n\n"+t[2]):(t[7]&&"likes"==t[7]?(a=t[4].split("|"),jQuery("#wppa-like-"+o).attr("title",a[0]),jQuery("#wppa-liketext-"+o).html(a[1]),"1"==t[3]?jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbup.png"),_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4]):(_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4],_wppaDisc[t[0]][t[2]]=t[5],_wppaSetRatingDisplay(o),wppaCommentRequiredAfterVote&&0==t[6]&&alert(t[7])),wppaNextOnCallback&&_wppaNextOnCallback(o))},error:function(a,p,e){wppaConsoleLog("_wppaRateIt failed. Error = "+e+", status = "+p,"force")}}))))}function _wppaOvlRateIt(o,r,n,i){0!=r&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+r+"&wppa-rating-id="+o+"&wppa-occur=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"tick.png"),jQuery(".wppa-rate-"+n+"-"+r).stop().fadeTo(100,1),jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"spinner.gif"),jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");if(0==t[0])900==t[1]?alert(t[2]):alert("Error Code="+t[1]+"\n\n"+t[2]),jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"cross.png");else{if(t[7]&&"likes"==t[7]){a=t[4].split("|");return jQuery("#wppa-like-0").attr("title",a[0]),jQuery("#wppa-liketext-0").html(a[1]),"1"==t[3]?jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbup.png"),jQuery("#wppa-like-"+o+"-"+n).attr("title",a[0]),jQuery("#wppa-liketext-"+o+"-"+n).html(a[1]),void("1"==t[3]?jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbup.png"))}_wppaSetRd(n,t[4],".wppa-avg-"),_wppaSetRd(n,t[3],".wppa-rate-"),i||wppaNextOnCallback&&wppaOvlShowNext()}},error:function(a,p,e){wppaConsoleLog("_wppaOvlRateIt failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxMakeOrigName(a,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=makeorigname&photo-id="+p+"&from=fsname",async:!0,type:"GET",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||");"0"==a[1]?(wppaIsSafari?"file"==wppaArtMonkyLink&&(wppaWindowReference.location=a[2]):"file"==wppaArtMonkyLink&&window.open(a[2]),"zip"==wppaArtMonkyLink&&(document.location=a[2])):(wppaIsSafari&&"file"==wppaArtMonkyLink&&wppaWindowReference.close(),alert("Error: "+a[1]+"\n\n"+a[2]))},error:function(a,p,e){wppaConsoleLog("wppaAjaxMakeOrigName failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaAjaxDownloadAlbum(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=downloadalbum&album-id="+o,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#dwnspin-"+t+"-"+o).css("display","")},success:function(a,p,e){var t=a.split("||"),o=t[0],r=t[1],a=t[2];3==t.length&&""!=a&&alert("Attention:\n\n"+a),"OK"==r?document.location=o:alert("The server could not complete the request.\nPlease try again.")},error:function(a,p,e){alert("An error occurred:\n"+e+"\nPlease try again")},complete:function(a,p,e){jQuery("#dwnspin-"+t+"-"+o).css("display","none")}})}function wppaAjaxComment(t,a){_wppaValidateComment(t,a)&&(a="action=wppa&wppa-action=do-comment&photo-id="+a+"&comname="+jQuery("#wppa-comname-"+t).val()+"&comment="+wppaEncode(jQuery("#wppa-comment-"+t).val())+"&wppa-captcha="+jQuery("#wppa-captcha-"+t).val()+"&wppa-nonce="+jQuery("#wppa-nonce-"+t).val()+"&occur="+t,void 0!==jQuery("#wppa-comemail-"+t).val()&&(a+="&comemail="+jQuery("#wppa-comemail-"+t).val()),void 0!==jQuery("#wppa-comment-edit-"+t).val()&&(a+="&comment-edit="+jQuery("#wppa-comment-edit-"+t).val()),void 0!==jQuery("#wppa-returnurl-"+t).val()&&(a+="&returnurl="+encodeURIComponent(jQuery("#wppa-returnurl-"+t).val())),jQuery("#db-agree-"+t).prop("checked")&&(a+="&db-agree=yes"),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){jQuery("#wppa-comment-spin-"+t).css("display","inline")},success:function(a,p,e){a=a.replace(/\\/g,""),jQuery("#wppa-comments-"+t).html(a),_wppaCurIdx[t]&&(_wppaCommentHtml[t][_wppaCurIdx[t]]=a),wppaOpenComments(t)},error:function(a,p,e){wppaConsoleLog("wppaAjaxComment failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-comment-spin-"+t).css("display","none")}}))}function wppaUpdatePhotoNew(a,t){for(var p=["upn-name","upn-description","upn-tags","custom_0","custom_1","custom_2","custom_3","custom_4","custom_5","custom_6","custom_7","custom_8","custom_9"],e="action=wppa&wppa-action=update-photo-new&photo-id="+a+"&wppa-nonce="+jQuery("#wppa-nonce-"+a).val(),o=0;o<p.length;)void 0!==jQuery("#"+p[o]).val()&&(e+="&"+p[o]+"="+jQuery("#"+p[o]).val()),o++;jQuery.ajax({url:wppaAjaxUrl,data:e,async:!1,type:"POST",timeout:1e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||"),a=JSON.parse(a[2]);jQuery(".sdd-"+t).html(a.desc),jQuery(".sdn-"+t).html(a.name),jQuery(".sdf-"+t).html(a.fullname),_wppaNames[t]&&(_wppaNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.name),_wppaFullNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.fullname),_wppaDsc[t][_wppaCurIdx[t]]=wppaFixHtml(a.desc),jQuery("#imagetitle-"+t).html(wppaMakeNameHtml(t)))},error:function(a,p,e){wppaConsoleLog("wppaUpdatePhotoNew failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-modal-container-"+t).dialog("close")}})}function wppaFixHtml(a){return a=(a=(a=(a=a.replace(/\[/g,"<")).replace(/\]/g,">")).replace(/&quot;/g,'"')).replace(/\\n/g," ")}var wppaLastQrcodeUrl="";function wppaAjaxSetQrCodeSrc(a,t){0!=jQuery(t).length&&wppaLastQrcodeUrl!=a&&(wppaLastQrcodeUrl=a,a="action=wppa&wppa-action=getqrcode&wppa-qr-nonce="+jQuery("#wppa-qr-nonce").val()+"&url="+encodeURIComponent(a),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){a=a.split("|");jQuery(t).attr("src",a[0]),jQuery(t).attr("title",a[1])},error:function(a,p,e){wppaConsoleLog("wppaAjaxSetQrCodeSrc failed. Error = "+e+", status = "+p,"force")}}))}function wppaAjaxNotify(a,p){a=jQuery(a).prop("checked")?"on":"off",a="action=wppa&wppa-action=mailinglist&wppa-ntfy-nonce="+jQuery("#wppa-ntfy-nonce").val()+"&list="+p+"&onoff="+a;jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxNotify failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxGetSsIptcList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"iptc")}function wppaAjaxGetSsExifList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"exif")}function wppaAjaxGetSsIptcExifList(t,o,r,n,i){ajaxurl=wppaAjaxUrl,ajaxurl+="?action=wppa&wppa-action=getss"+i+"list&"+i+"tag="+o+"&occur="+t,jQuery.ajax({url:ajaxurl,async:!0,type:"GET",timeout:1e4,beforeSend:function(a){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(a,p,e){jQuery("#"+r).html(a),jQuery("#wppa-ss-"+i+"opts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-'+i+"list-"+t+'", "#'+r+'" )',10),n&&wppaConsoleLog("wppaAjaxGetSs"+i+"List success after retry.","force")},error:function(a,p,e){wppaConsoleLog("wppaAjaxGetSs"+i+"List failed. Error = "+e+", status = "+p,"force"),n||wppaAjaxGetSsIptcExifList(t,o,r,!0,i)},complete:function(a,p,e){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}
js/wppa-all.js CHANGED
@@ -5,7 +5,7 @@ function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trig
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.1.07.001";function wppaStoreSlideInfo(p,a,e,t,i,w,r,n,o,l,s,d,u,_,m,c,h,y,S,g,x,f,I,j,Q,b,v,T,N,C,k,R,F){o=wppaRepairScriptTags(o),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFilmThumbTitles[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=T,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+T+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]='<span class="sdf-'+p+'" >'+wppaRepairBrTags(r)+"</span>",_wppaNames[p][a]='<span class="sdn-'+p+'" >'+n+"</span>",_wppaFilmThumbTitles[p][a]=n,_wppaDsc[p][a]=o,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=h,""!=y?_wppaLinkTarget[p][a]=y:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=T,_wppaAudioHtml[p][a]=N,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){wppaSlideInitRunning[p]&&("start"==wppaSlideInitRunning[p]?a=-1:"stopprev"==wppaSlideInitRunning[p]?a=_wppaSlides[p].length-1:"stopnext"==wppaSlideInitRunning[p]&&(a=0),wppaSlideInitRunning[p]=""),_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(n=_wppaRealId[p],_wppaLat[p][n[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][n[_wppaNxtIdx[p]]],_wppaLon[p][n[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,n=_wppaNxtIdx[p],o=(wppaNumbarMax-1)/2;n<o?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-o<n?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=n+o+.5-1,(i=n-o+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(o=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",o,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",o,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,n="#theimg"+e+"-"+p,o="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(n,wppaAnimationSpeed),setTimeout(wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:-l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"none":wppaFadeIn(o,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(n,wppaAnimationSpeed),wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p,wppaEasingSlide),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,wppaThumbPageSize?wppaThumbPage[p]=parseInt(((0|wppaSlideOffset[p])+_wppaCurIdx[p])/wppaThumbPageSize)+1:wppaThumbPage[p]=1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){wppaSlideInitRunning[p]="start",jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),n=e.naturalWidth;void 0===n&&(n=parseInt(e.style.maxWidth));var o=e.naturalHeight;void 0===o&&(o=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,h,y,S,g,x,f,e=wppaStretch;if(u)j=w-d,y=h=0,x=S=w,f=g=(c=parseInt(j*o/n))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=n||f-d<=o?l<(o+d)/(n+d)?(c=f-d,j=parseInt(c*n/o)):(j=x-d,c=parseInt(j*o/n)):(j=n,c=o),"default"!=_&&"none"!=_){switch(_){case"top":y=0;break;case"center":y=parseInt((f-(c+d))/2);break;case"bottom":y=f-(c+d);break;case"fit":y=0,g=f=c+d}jQuery("#"+a).css({marginTop:y,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":h=0;break;case"center":h=parseInt((w-x)/2);break;case"right":h=w-x}h<0&&(h=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:h})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-y:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return t=wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var n,o,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),o=".pdf"==(n=_wppaHiresUrl[p][e]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(wppaSlideLinkEqual?' onclick="wppaStopAudio();wppaStopShow('+p+");jQuery('#wppa-film-"+e+"-"+p+"').trigger('click');return false;\"":' onclick="wppaStopAudio();wppaStopShow('+p+');"')+' style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+">"+(o?"<iframe "+l+' src="'+n+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if("linear"!=a&&(a=wppaEasingSlide),document.getElementById("wppa-filmstrip-"+p)&&_wppaSlides[p]){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var n=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(n))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):(n=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(n<i?2:i<n-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w}):(i<n-1.5*w||n+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i}),wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var o=0;o<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][o]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+o+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==o?(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]))),o++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery("#wppa-next-pagelink-"+p).trigger("click")):0<e.length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery(e).trigger("click")):_wppaNextSlide(p,_wppaNxtIdx[p]=0)):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopprev",jQuery("#wppa-prev-page-last-item-"+p).trigger("click")):(_wppaNxtIdx[p]+=_wppaSlides[p].length,_wppaNextSlide(p,0)):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSlides[p]&&(_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden")))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
8
- var wppaJsAjaxVersion="8.1.07.001";function wppaDoAjaxRender(o,a,r,p){""!=wppaLang&&(a+="&lang="+wppaLang),wppaAutoColumnWidth[o]&&(a+="&resp=1"),p&&_wppaCurIdx[o]&&_wppaId[o][_wppaCurIdx[o]]&&(a+="&wppa-hilite="+_wppaId[o][_wppaCurIdx[o]]),wppaCanAjaxRender||!r?jQuery.ajax({url:a,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){_wppaSSRuns[o]&&_wppaStop(o),jQuery("#wppa-ajax-spin-"+o).fadeIn()},success:function(a,p,e){var t;wppaRenderModal&&r?(t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""},jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-button").on("click",function(){_wppaStop(o)}),jQuery(".wppa-ajax-spin").stop().fadeOut()):(jQuery("#wppa-container-"+o).html(a),jQuery("#wppa-button-hide-"+o).show()),wppaCanPushState&&wppaUpdateAddressLine&&r&&(wppaHis++,r=r.split("&amp;").join("&"),jQuery(document).ready(function(){setTimeout(function(){try{history.pushState({page:wppaHis,occur:o,type:"html",html:a},"",r),wppaConsoleLog("Pushed history stack on ajax call","force")}catch(a){try{history.replaceState({page:wppaHis,occur:o,type:"html"},"",r),wppaConsoleLog("History replaced on ajax call","force")}catch(a){wppaConsoleLog("Ajax rendering: History stack update and replace failed","force")}}},1e3)}),0==wppaFirstOccur&&(wppaFirstOccur=o)),wppaUpdateLightboxes(),"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(r),wppaColWidth[o]=0,_wppaDoAutocol(o,"ajax")},error:function(a,p,e){wppaConsoleLog("wppaDoAjaxRender failed. Error = "+e+", status = "+p,"force"),r?document.location.href=r:document.location.reload(!0)},complete:function(a,p,e){!wppaRenderModal&&wppaAjaxScroll&&jQuery("html, body").animate({scrollTop:jQuery("#wppa-container-"+o).offset().top-32-wppaStickyHeaderHeight},1e3),jQuery(".wppa-ajax-spin").stop().fadeOut(),window.dispatchEvent(new Event("resize")),wppaProtect()}}):(document.location.href=r,wppaColWidth[o]=0,_wppaDoAutocol(o,"nonajax"))}function wppaAjaxApprovePhoto(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&photo-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApprovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhoto(t,o,r){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&photo-id="+o,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){rtxt=a.split("||"),"OK"==rtxt[0]?r?(jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),wppaNext(t)):(jQuery(".wppa-approve-"+o).css("display","none"),jQuery(".thumbnail-frame-photo-"+o).css("display","none")):rtxt[3]?(alert(rtxt[3]),jQuery("#wppa-delete-"+o).css("text-decoration","line-through")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxApproveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApproveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemoveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a.split("||")[0]?(jQuery(".wppa-approve-"+t).css("display","none"),jQuery(".wppa-comment-"+t).css("display","none")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemoveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxAddPhotoToZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=addtozip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-"+r+"-"+o).html(t[2]),jQuery("#admin-choice-"+r+"-"+o).val(t[2]),jQuery("#admin-choice-"+r+"-"+o).prop("disabled",!0)):wppaConsoleLog("NOT OK "+a),alert(t[1]),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxAddPhotoToZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhotoFromZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=removefromzip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-rem-"+r+"-"+o).val(t[1]),jQuery("#admin-choice-rem-"+r+"-"+o).prop("disabled",!0),jQuery("#admin-choice-rem-"+r+"-"+o).css("text-decoration","")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhotoFromZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDeleteMyZip(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=delmyzip",async:!0,type:"GET",timeout:6e4,success:function(a,p,e){document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDeleteMyZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRequestInfo(a,p,e){dialogHtml="<h3>"+wppaRequestInfoDialogText+'</h3><textarea id="wppa-request-info-text-'+a+'" style="width:98%;" ></textarea><div style="clear:both;" ></div><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Send" onclick="wppaAjaxRequestInfoSend( '+a+", "+p+", "+e+' )" /><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Cancel" onclick="jQuery( \'#wppa-modal-container-'+a+"' ).dialog( 'close' );\" /><div style=\"clear:both;\" ></div>";e={modal:!0,resizable:!0,width:wppaGetContainerWidth(a),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+a).html(dialogHtml).dialog(e).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close")}function wppaAjaxRequestInfoSend(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=requestinfo&photo-id="+r+"&emailtext="+jQuery("#wppa-request-info-text-"+o).val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#request-info-"+r+"-"+o).val(t[1]),jQuery("#request-info-"+r+"-"+o).prop("disabled",!0),jQuery("#wppa-modal-container-"+o).dialog("close")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRequestInfoSend failed. Error = "+e+", status = "+p,"force")}})}function wppaEditPhoto(o,a){var p=String(a),a=wppaEditPhotoWidth;screen.availWidth<a&&(a=screen.availWidth),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=front-edit&photo-id="+p+"&occur="+o,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){var t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(document).trigger("resize")},error:function(a,p,e){wppaConsoleLog("wppaEditPhoto failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaPrevTags(a,p,e,t){for(var o,r=jQuery("."+a),n=[],i=jQuery("#"+e).val(),c=0,u=0,a="";c<r.length;)r[c].selected&&(n[u]=r[c].value,u++),c++;""!=(o=jQuery("#"+p).val())&&(n[u]=o),a=n.join(),""==o&&""==e||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=sanitizetags&tags="+a+"&album="+i,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#"+t).html("Working...")},success:function(a,p,e){jQuery("#"+t).html(wppaTrim(a,","))},error:function(a,p,e){jQuery("#"+t).html('<span style="color:red" >'+e+"</span>"),wppaConsoleLog("wppaPrevTags failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDestroyAlbum(a,p){return confirm("Are you sure you want to delete this album?")&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=destroyalbum&album="+a+"&nonce="+p,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){alert(a+"\nPage will be reloaded"),document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDestroyAlbum failed. Error = "+e+", status = "+p,"force")}}),!1}function _bumpClickCount(a){wppaBumpClickCount&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpclickcount&wppa-photo="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!1,type:"GET",timeout:6e4,success:function(a,p,e){},error:function(a,p,e){wppaConsoleLog("_bumpClickCount failed. Error = "+e+", status = "+p,"force")}})}function _bumpViewCount(t){wppaBumpViewCount&&(wppaPhotoView[t]||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpviewcount&wppa-photo="+t+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){wppaPhotoView[t]=!0},error:function(a,p,e){wppaConsoleLog("_bumpViewCount failed. Error = "+e+", status = "+p,"force")}}))}function wppaVoteThumb(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating=1&wppa-rating-id="+o+"&wppa-occur="+t+"&wppa-index=0&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){jQuery("#wppa-vote-button-"+t+"-"+o).val(wppaVotedForMe)},error:function(a,p,e){wppaConsoleLog("wppaVoteThumb failed. Error = "+e+", status = "+p,"force")}})}function _wppaRateIt(o,p){var a,e,t;0!=p&&(_wppaSSRuns[o]||(a=_wppaId[o][_wppaCurIdx[o]],e=_wppaMyr[o][_wppaCurIdx[o]],0<(t=_wppaWaitTexts[o][_wppaCurIdx[o]]).length?alert(t):0!=e&&wppaRatingOnce||e<0||(_wppaVoteInProgress=!0,jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+p+"&wppa-rating-id="+a+"&wppa-occur="+o+"&wppa-index="+_wppaCurIdx[o]+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#wppa-rate-"+o+"-"+p).attr("src",wppaImageDirectory+"tick.png"),jQuery("#wppa-rate-"+o+"-"+p).stop().fadeTo(100,1),jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");0==t[0]?900==t[1]?(alert(t[2]),_wppaSetRatingDisplay(o)):alert("Error Code="+t[1]+"\n\n"+t[2]):(t[7]&&"likes"==t[7]?(a=t[4].split("|"),jQuery("#wppa-like-"+o).attr("title",a[0]),jQuery("#wppa-liketext-"+o).html(a[1]),"1"==t[3]?jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbup.png"),_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4]):(_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4],_wppaDisc[t[0]][t[2]]=t[5],_wppaSetRatingDisplay(o),wppaCommentRequiredAfterVote&&0==t[6]&&alert(t[7])),wppaNextOnCallback&&_wppaNextOnCallback(o))},error:function(a,p,e){wppaConsoleLog("_wppaRateIt failed. Error = "+e+", status = "+p,"force")}}))))}function _wppaOvlRateIt(o,r,n,i){0!=r&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+r+"&wppa-rating-id="+o+"&wppa-occur=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"tick.png"),jQuery(".wppa-rate-"+n+"-"+r).stop().fadeTo(100,1),jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"spinner.gif"),jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");if(0==t[0])900==t[1]?alert(t[2]):alert("Error Code="+t[1]+"\n\n"+t[2]),jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"cross.png");else{if(t[7]&&"likes"==t[7]){a=t[4].split("|");return jQuery("#wppa-like-0").attr("title",a[0]),jQuery("#wppa-liketext-0").html(a[1]),"1"==t[3]?jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbup.png"),jQuery("#wppa-like-"+o+"-"+n).attr("title",a[0]),jQuery("#wppa-liketext-"+o+"-"+n).html(a[1]),void("1"==t[3]?jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbup.png"))}_wppaSetRd(n,t[4],".wppa-avg-"),_wppaSetRd(n,t[3],".wppa-rate-"),i||wppaNextOnCallback&&wppaOvlShowNext()}},error:function(a,p,e){wppaConsoleLog("_wppaOvlRateIt failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxMakeOrigName(a,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=makeorigname&photo-id="+p+"&from=fsname",async:!0,type:"GET",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||");"0"==a[1]?(wppaIsSafari?"file"==wppaArtMonkyLink&&(wppaWindowReference.location=a[2]):"file"==wppaArtMonkyLink&&window.open(a[2]),"zip"==wppaArtMonkyLink&&(document.location=a[2])):(wppaIsSafari&&"file"==wppaArtMonkyLink&&wppaWindowReference.close(),alert("Error: "+a[1]+"\n\n"+a[2]))},error:function(a,p,e){wppaConsoleLog("wppaAjaxMakeOrigName failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaAjaxDownloadAlbum(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=downloadalbum&album-id="+o,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#dwnspin-"+t+"-"+o).css("display","")},success:function(a,p,e){var t=a.split("||"),o=t[0],r=t[1],a=t[2];3==t.length&&""!=a&&alert("Attention:\n\n"+a),"OK"==r?document.location=o:alert("The server could not complete the request.\nPlease try again.")},error:function(a,p,e){alert("An error occurred:\n"+e+"\nPlease try again")},complete:function(a,p,e){jQuery("#dwnspin-"+t+"-"+o).css("display","none")}})}function wppaAjaxComment(t,a){_wppaValidateComment(t,a)&&(a="action=wppa&wppa-action=do-comment&photo-id="+a+"&comname="+jQuery("#wppa-comname-"+t).val()+"&comment="+wppaEncode(jQuery("#wppa-comment-"+t).val())+"&wppa-captcha="+jQuery("#wppa-captcha-"+t).val()+"&wppa-nonce="+jQuery("#wppa-nonce-"+t).val()+"&occur="+t,void 0!==jQuery("#wppa-comemail-"+t).val()&&(a+="&comemail="+jQuery("#wppa-comemail-"+t).val()),void 0!==jQuery("#wppa-comment-edit-"+t).val()&&(a+="&comment-edit="+jQuery("#wppa-comment-edit-"+t).val()),void 0!==jQuery("#wppa-returnurl-"+t).val()&&(a+="&returnurl="+encodeURIComponent(jQuery("#wppa-returnurl-"+t).val())),jQuery("#db-agree-"+t).prop("checked")&&(a+="&db-agree=yes"),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){jQuery("#wppa-comment-spin-"+t).css("display","inline")},success:function(a,p,e){a=a.replace(/\\/g,""),jQuery("#wppa-comments-"+t).html(a),_wppaCurIdx[t]&&(_wppaCommentHtml[t][_wppaCurIdx[t]]=a),wppaOpenComments(t)},error:function(a,p,e){wppaConsoleLog("wppaAjaxComment failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-comment-spin-"+t).css("display","none")}}))}function wppaUpdatePhotoNew(a,t){for(var p=["upn-name","upn-description","upn-tags","custom_0","custom_1","custom_2","custom_3","custom_4","custom_5","custom_6","custom_7","custom_8","custom_9"],e="action=wppa&wppa-action=update-photo-new&photo-id="+a+"&wppa-nonce="+jQuery("#wppa-nonce-"+a).val(),o=0;o<p.length;)void 0!==jQuery("#"+p[o]).val()&&(e+="&"+p[o]+"="+jQuery("#"+p[o]).val()),o++;jQuery.ajax({url:wppaAjaxUrl,data:e,async:!1,type:"POST",timeout:1e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||"),a=JSON.parse(a[2]);jQuery(".sdd-"+t).html(a.desc),jQuery(".sdn-"+t).html(a.name),jQuery(".sdf-"+t).html(a.fullname),_wppaNames[t]&&(_wppaNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.name),_wppaFullNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.fullname),_wppaDsc[t][_wppaCurIdx[t]]=wppaFixHtml(a.desc),jQuery("#imagetitle-"+t).html(wppaMakeNameHtml(t)))},error:function(a,p,e){wppaConsoleLog("wppaUpdatePhotoNew failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-modal-container-"+t).dialog("close")}})}function wppaFixHtml(a){return a=(a=(a=(a=a.replace(/\[/g,"<")).replace(/\]/g,">")).replace(/&quot;/g,'"')).replace(/\\n/g," ")}var wppaLastQrcodeUrl="";function wppaAjaxSetQrCodeSrc(a,t){0!=jQuery(t).length&&wppaLastQrcodeUrl!=a&&(wppaLastQrcodeUrl=a,a="action=wppa&wppa-action=getqrcode&wppa-qr-nonce="+jQuery("#wppa-qr-nonce").val()+"&url="+encodeURIComponent(a),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){a=a.split("|");jQuery(t).attr("src",a[0]),jQuery(t).attr("title",a[1])},error:function(a,p,e){wppaConsoleLog("wppaAjaxSetQrCodeSrc failed. Error = "+e+", status = "+p,"force")}}))}function wppaAjaxNotify(a,p){a=jQuery(a).prop("checked")?"on":"off",a="action=wppa&wppa-action=mailinglist&wppa-ntfy-nonce="+jQuery("#wppa-ntfy-nonce").val()+"&list="+p+"&onoff="+a;jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxNotify failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxGetSsIptcList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"iptc")}function wppaAjaxGetSsExifList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"exif")}function wppaAjaxGetSsIptcExifList(t,o,r,n,i){ajaxurl=wppaAjaxUrl,ajaxurl+="?action=wppa&wppa-action=getss"+i+"list&"+i+"tag="+o+"&occur="+t,jQuery.ajax({url:ajaxurl,async:!0,type:"GET",timeout:1e4,beforeSend:function(a){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(a,p,e){jQuery("#"+r).html(a),jQuery("#wppa-ss-"+i+"opts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-'+i+"list-"+t+'", "#'+r+'" )',10),n&&wppaConsoleLog("wppaAjaxGetSs"+i+"List success after retry.","force")},error:function(a,p,e){wppaConsoleLog("wppaAjaxGetSs"+i+"List failed. Error = "+e+", status = "+p,"force"),n||wppaAjaxGetSsIptcExifList(t,o,r,!0,i)},complete:function(a,p,e){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}
9
  // wppa-lightbox
10
  var wppaJsLightboxVersion="8.0.04.003";function wppaOvlKeyboardHandler(p){var a,t=(a=(null==p?event:p).keyCode,27),p=String.fromCharCode(a).toLowerCase();switch(a){case t:wppaStopVideo(0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(p){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(p){var a,t,e=jQuery;if(wppaOvlActivePanorama,e("#wppa-overlay-bg").css({display:"inline"}),wppaOvlFirst&&(e("#weaver-final").removeClass("wvr-hide-bang"),wppaKbHandlerInstalled||(e(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),e(window).trigger("wppalightboxstart")),"object"==typeof p){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlTypes=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlImgs=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!1;var l=(p.rel||!!e(p).attr("data-rel")&&e(p).attr("data-rel")).split("[");if(l[1])for(var o,i=l[1],w=e("a"),n=0,r=0;r<w.length;r++)1<(l=!!e(o=w[r]).attr("data-rel")&&e(o).attr("data-rel").split("[")).length&&"wppa"==l[0]&&l[1]==i&&(wppaOvlUrls[n]=o.href,e(o).attr("data-lbtitle")?wppaOvlTitles[n]=wppaRepairScriptTags(e(o).attr("data-lbtitle")):wppaOvlTitles[n]=wppaRepairScriptTags(o.title),wppaOvlIds[n]=e(o).attr("data-id")?e(o).attr("data-id"):"0",wppaOvlAlts[n]=e(o).attr("data-alt")?e(o).attr("data-alt"):"",wppaOvlVideoHtmls[n]=e(o).attr("data-videohtml")?decodeURI(e(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[n]=e(o).attr("data-pdfhtml")?decodeURI(e(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[n]=e(o).attr("data-audiohtml")?decodeURI(e(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[n]=e(o).attr("data-videonatwidth")?e(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[n]=e(o).attr("data-videonatheight")?e(o).attr("data-videonatheight"):"",a=e(o).attr("data-panorama")?e(o).attr("data-panorama"):"",panType=e(o).attr("data-pantype")?e(o).attr("data-pantype"):"",0<a.length?(wppaOvlHasPanoramas=!0,t=a.indexOf("."),wppaOvlPanoramaHtml[n]=a.substr(t+1),wppaOvlPanoramaIds[n]=a.substr(0,t),wppaOvlTypes[n]=panType):(wppaOvlPanoramaHtml[n]="",wppaOvlPanoramaIds[n]=0,wppaOvlTypes[n]=""),0<wppaOvlPdfHtmls[n].length&&(wppaOvlTypes[n]="document"),decodeURI(e(o).attr("data-pdfhtml"))==decodeURI(e(p).attr("data-pdfhtml"))&&decodeURI(e(o).attr("data-videohtml"))==decodeURI(e(p).attr("data-videohtml"))&&decodeURI(e(o).attr("data-audiohtml"))==decodeURI(e(p).attr("data-audiohtml"))&&o.href==p.href&&(wppaOvlIdx=n),n++);else wppaOvlUrls[0]=p.href,e(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(e(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),wppaOvlIds[0]=e(p).attr("data-id")?e(p).attr("data-id"):"0",wppaOvlAlts[0]=e(p).attr("data-alt")?e(p).attr("data-alt"):"",wppaOvlVideoHtmls[0]=e(p).attr("data-videohtml")?decodeURI(e(p).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=e(p).attr("data-audiohtml")?decodeURI(e(p).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=e(p).attr("data-pdfhtml")?decodeURI(e(p).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=e(p).attr("data-videonatwidth")?e(p).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=e(p).attr("data-videonatheight")?e(p).attr("data-videonatheight"):"",a=e(p).attr("data-panorama")?e(p).attr("data-panorama"):"",panType=e(p).attr("data-pantype")?e(p).attr("data-pantype"):"",0<a.length?(wppaOvlHasPanoramas=!0,t=a.indexOf("."),wppaOvlPanoramaHtml[0]=a.substr(t+1),wppaOvlPanoramaIds[0]=a.substr(0,t),wppaOvlTypes[0]=panType):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0,wppaOvlTypes[0]=""),0<wppaOvlPdfHtmls[0].length&&(wppaOvlTypes[0]="document"),wppaOvlIdx=0}else wppaOvlIdx=p;wppaOvlOpen=!0,e("body").trigger("quitimage"),setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},100)}function _wppaOvlShow(p){var a=jQuery;a("#wppa-overlay-ic").html("").hide(),a("#wppa-overlay-pc").html("").hide(),a("#wppa-overlay-fpc").html("").hide(),a("#wppa-overlay-zpc").html("").hide(),wppaOvlCurIdx=p,wppaOvlFirst&&a("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[p],wppaHasAudio=""!=wppaOvlAudioHtmls[p],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[p];var t=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1,e=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1;if(""==wppaOvlTypes[t]&&""==wppaOvlVideoHtmls[t]&&wppaOvlOpen&&(document.getElementById("wppa-pre-next").src=wppaOvlUrls[t]),""==wppaOvlTypes[e]&&""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(document.getElementById("wppa-pre-prev").src=wppaOvlUrls[e]),_bumpViewCount(wppaOvlIds[p]),wppaOvlIsSingle=1==wppaOvlUrls.length,wppaOvlActivePanorama=wppaOvlPanoramaIds[p],wppaOvlActivePanorama,wppaIsFs()||wppaOvlActivePanorama){if(wppaOvlActivePanorama?l=wppaOvlPanoramaHtml[p]:wppaIsVideo?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video></div>":wppaOvlIsPdf?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[p]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" ></iframe></div>':(l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),l+="</div>"),!wppaIsVideo&&!wppaHasAudio||wppaOvlFsPhotoId!=wppaPhotoId||0==wppaPhotoId)if(wppaStopVideo(0),wppaStopAudio(),0<wppaOvlActivePanorama)switch(wppaOvlTypes[p]){case"spheric":a("#wppa-overlay-pc").html(l).show();break;case"flat":a("#wppa-overlay-fpc").html(l).show();break;case"zoom":a("#wppa-overlay-zpc").html(l).show()}else a("#wppa-overlay-ic").html(l).show();return 0<wppaOvlPanoramaIds[p]&&wppaOvlIsSingle&&a(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout(wppaOvlFormatFull,10),wppaIsVideo||wppaHasAudio?setTimeout(function(){wppaOvlFsPhotoId=wppaPhotoId},20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,""==wppaOvlTypes[p]&&a("#wppa-overlay-ic").show(),wppaFsShow(),wppaProtect(),!1}wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);t="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(t=wppaOvlFontColor);wppaOvlUrls.length;0==wppaOvlActivePanorama&&a("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var l="";l+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(l+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?l+="<iframe "+wppaOvlPdfHtmls[p]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" ></iframe>':(l+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),wppaOvlIsVideo=!1),l+="</div>";e=!wppaOvlIsSingle&&wppaOvlShowCounter;return l+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+t+";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;" >',l+=wppaOvlNavBar(),l+=(e?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[p],l+="</div>",l+="</div>",(0==wppaOvlActivePanorama?a("#wppa-overlay-ic"):a("#wppa-overlay-pc")).html(l),""!=wppaOvlTypes[p]&&"document"!=wppaOvlTypes[p]||a("#wppa-overlay-ic").show(),wppaFsShow(),a("#wppa-overlay-img").bind("contextmenu",function(p){return!1}),0==wppaOvlPanoramaIds[p]&&wppaOvlResize(),wppaFsShow(),wppaAdjustControlbar(),!1}function wppaOvlSize(p){var a=jQuery;if(!wppaOvlActivePanorama){var t=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(t&&e&&"none"!=a("#wppa-overlay-bg").css("display")){if(!wppaIsFs()){var l,o=wppaWindowWidth(),i=wppaWindowHeight(),w=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,w=t.clientHeight),(t=(e=(o-3*wppaOvlBorderWidth)/l)<(t=i/w)?e:t)<1&&(l=parseInt(l*t),w=parseInt(w*t));var t=a("#wppa-overlay-txt").height(),t="auto"==wppaOvlTxtHeight?(0==t&&(t=20+2*wppaOvlBorderWidth),i-t-20-2*wppaOvlBorderWidth):i-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth,i=parseInt(t*l/w),i=(wppaOvlPadTop,parseInt((o-i)/2),i);w<t&&(wppaOvlPadTop,parseInt((o-l)/2),i=l);o=wppaSavedImageWidth-i<3&&i-wppaSavedImageWidth<3;return i<=10&&(w=180,o=!(l=i=240)),i=parseInt(i),wppaSavedImageWidth=parseInt(i),wppaSavedImageHeight=parseInt(i*w/l),wppaSavedMarginLeft=-parseInt(i/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(i+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+a("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),wppaAnimate("#wppa-overlay-img",{width:wppaSavedImageWidth,height:wppaSavedImageHeight},p,wppaEasingLightbox),wppaAnimate("#wppa-overlay-ic",{width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},p,wppaEasingLightbox),o?(a("#wppa-ovl-spin").hide(),wppaOvlFirst=!1):setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},p+10),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){var p,a=jQuery;if(wppaOvlOpen&&!(0<wppaOvlActivePanorama)){if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),o=wppaOvlVideoNaturalWidths[wppaOvlIdx],i=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)p=document.getElementById("wppa-overlay-img"),o=screen.width,i=screen.height;else{if(p=document.getElementById("wppa-overlay-img"),!(wppaIsIe||p&&p.complete))return void setTimeout(wppaOvlFormatFull,200);o=p.naturalWidth,i=p.naturalHeight}var t=o/i,e=0,l=0,o=0,i=0,i=t<screen.width/screen.height?(e=(screen.width-screen.height*t)/2,l=0,o=screen.height,screen.height*t):(e=0,l=(screen.height-screen.width/t)/2,o=screen.width/t,screen.width),e=parseInt(e),l=parseInt(l),o=parseInt(o);return i=parseInt(i),a(p).css({height:o,width:i,marginLeft:e,marginTop:l,left:0,top:0,maxWidth:1e4}),a(p).css({visibility:"visible"}),a("#wppa-ovl-full-bg").css({overflow:"hidden"}),a("#wppa-ovl-full-bg").scrollTop(0),a("#wppa-ovl-full-bg").scrollLeft(0),a("#wppa-ovl-spin").hide(),a("#wppa-ovl-full-bg").css({visibility:"hidden"}),html=a("#wppa-overlay-ic").html(),html+='<div style="position:fixed;bottom:0;left:0;right:0;" >'+wppaOvlNavBar()+"</div>",a("#wppa-overlay-ic").html(html),wppaFsShow(),!0}}function wppaOvlStartAudio(){var p=document.getElementById("wppa-overlay-audio");p&&"function"==typeof p.play&&p.play()}function wppaOvlStartStop(){var p=jQuery;wppaOvlRunning?(wppaOvlRunning=!1,-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&p("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&p("#wppa-ovl-next-btn").css("visibility","visible")),p("#wppa-ovl-stop-btn").hide(),p("#wppa-ovl-start-btn").show()):(wppaOvlRunning=!0,wppaOvlRun(),p("#wppa-ovl-stop-btn").show(),p("#wppa-ovl-start-btn").hide())}function wppaOvlRun(){if(wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout(wppaOvlRun,50);else{if(!wppaIsVideo&&!wppaOvlIsPdf){var p=document.getElementById("wppa-overlay-img");if(p&&!wppaIsIe&&!p.complete)return void setTimeout(wppaOvlRun,200)}wppaOvlShowNext(),wppaOvlTimer=setTimeout(wppaOvlRun,wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var p=wppaOvlCurIdx-1;p<0&&(p=wppaOvlUrls.length-1);var a=document.getElementById("wppa-pre-prev");return""!=wppaOvlVideoHtmls[p]||wppaIsIe||a.complete||!wppaOvlOpen?wppaOvlShow(p):setTimeout(wppaOvlShowPrev,200),!1}function wppaOvlShowNext(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var p=wppaOvlCurIdx+1;p>wppaOvlUrls.length-1&&(p=0);var a=document.getElementById("wppa-pre-next");return""!=wppaOvlVideoHtmls[p]||wppaIsIe||a.complete||!wppaOvlOpen?wppaOvlShow(p):setTimeout(wppaOvlShowNext,200),!1}function wppaOvlShowSame(){var p,a;wppaOvlOpen&&(p=wppaOvlCurIdx,a=wppaOvlRunning,wppaOvlHide(!0),jQuery("#wppa-ovl-spin").show(),setTimeout(function(){wppaOvlShow(p),a&&setTimeout(wppaOvlStartStop(),wppaOvlSlideSpeed)},1e3))}function wppaOvlHide(p){var a=jQuery;wppaOvlOpen=!1,wppaOvlClosing=!wppaOvlClosing,wppaStopAudio(),p||"lightbox"!=wppaFsPolicy||wppaIsFs()&&wppaFsOff(),a("#wppa-overlay-ic").html("").hide(),a("#wppa-overlay-pc").html("").hide(),a("#wppa-overlay-fpc").html("").hide(),a("#wppa-overlay-zpc").html("").hide(),a(document).off("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!1,wppaOvlFirst=!0,wppaOvlRunning=!1,clearTimeout(wppaOvlTimer),a("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,a("body").trigger("quitimage"),document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),a(window).trigger("wppalightboxend"),a(window).trigger("resize"),wppaOvlClosing&&wppaIsMobile?setTimeout(function(){wppaOvlHide(p)},250):(wppaOvlClosing=!1,p||setTimeout(function(){a("#wppa-overlay-bg").hide(),a("#wppa-ovl-spin").hide()},500))}function wppaOvlOnclick(p){switch(wppaOvlOnclickType){case"none":break;case"close":wppaOvlHide();break;case"browse":var a=p.screenX-window.screenX;48<p.clientY&&(a<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}return!0}function wppaInitOverlay(){var e=jQuery;e(".wp-caption").each(function(){var p=e(this),a=p.find("IMG[alt]").attr("alt")||"",t=p.find(".wp-caption-text").html()||"",p=p.find("a"),t=a+"<br>"+t;p.attr("data-lbtitle")||p.attr("data-lbtitle",t)});var p,a,t=e("a"),l=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),a=0;a<t.length;a++)if(p=t[a],e(p).attr("data-rel")?l=e(p).attr("data-rel").split("["):p.rel?l=p.rel.split("["):l[0]="","wppa"==l[0])switch(wppaWppaOverlayActivated=!0,e(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),wppaMagnifierCursor){case"pointer":e(p).css("cursor","pointer");break;case"":e(p).css("cursor","default");break;default:e(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}e(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaAdjustControlbar)}function wppaOvlResize(){0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout(wppaOvlStartAudio,100))}function wppaOvlImgClick(p){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(p.screenX<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}function wppaOvlNavBar(){var p="";return wppaOvlIsSingle||(p+='<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>",p+='<span id="wppa-ovl-next-btn" style="margin:0 2px;float:right;display:block;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</span>"),p+='<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||(p+='<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>"),p}jQuery(document).ready(function(p){wppaInitOverlay()}),jQuery(window).on("resize",function(){wppaOvlResize()});
11
  // wppa-popup
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.1.07.001";function wppaStoreSlideInfo(p,a,e,t,i,w,r,n,o,l,s,d,u,_,m,c,h,y,S,g,x,f,I,j,Q,b,v,T,N,C,k,R,F){o=wppaRepairScriptTags(o),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFilmThumbTitles[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=T,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+T+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]='<span class="sdf-'+p+'" >'+wppaRepairBrTags(r)+"</span>",_wppaNames[p][a]='<span class="sdn-'+p+'" >'+n+"</span>",_wppaFilmThumbTitles[p][a]=n,_wppaDsc[p][a]=o,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=h,""!=y?_wppaLinkTarget[p][a]=y:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=T,_wppaAudioHtml[p][a]=N,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){wppaSlideInitRunning[p]&&("start"==wppaSlideInitRunning[p]?a=-1:"stopprev"==wppaSlideInitRunning[p]?a=_wppaSlides[p].length-1:"stopnext"==wppaSlideInitRunning[p]&&(a=0),wppaSlideInitRunning[p]=""),_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(n=_wppaRealId[p],_wppaLat[p][n[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][n[_wppaNxtIdx[p]]],_wppaLon[p][n[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,n=_wppaNxtIdx[p],o=(wppaNumbarMax-1)/2;n<o?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-o<n?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=n+o+.5-1,(i=n-o+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(o=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",o,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",o,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,n="#theimg"+e+"-"+p,o="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(n,wppaAnimationSpeed),setTimeout(wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l},wppaAnimationSpeed,wppaEasingSlide),jQuery(r).css({marginLeft:-l}),wppaFadeIn(o,10),wppaAnimate(r,{marginLeft:0},wppaAnimationSpeed,wppaEasingSlide,_wppaNextSlide_4(p));break;case"none":wppaFadeIn(o,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(n,wppaAnimationSpeed),wppaFadeIn(o,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p,wppaEasingSlide),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,wppaThumbPageSize?wppaThumbPage[p]=parseInt(((0|wppaSlideOffset[p])+_wppaCurIdx[p])/wppaThumbPageSize)+1:wppaThumbPage[p]=1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){wppaSlideInitRunning[p]="start",jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),n=e.naturalWidth;void 0===n&&(n=parseInt(e.style.maxWidth));var o=e.naturalHeight;void 0===o&&(o=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,h,y,S,g,x,f,e=wppaStretch;if(u)j=w-d,y=h=0,x=S=w,f=g=(c=parseInt(j*o/n))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=n||f-d<=o?l<(o+d)/(n+d)?(c=f-d,j=parseInt(c*n/o)):(j=x-d,c=parseInt(j*o/n)):(j=n,c=o),"default"!=_&&"none"!=_){switch(_){case"top":y=0;break;case"center":y=parseInt((f-(c+d))/2);break;case"bottom":y=f-(c+d);break;case"fit":y=0,g=f=c+d}jQuery("#"+a).css({marginTop:y,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":h=0;break;case"center":h=parseInt((w-x)/2);break;case"right":h=w-x}h<0&&(h=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:h})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-y:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return t=wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var n,o,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),o=".pdf"==(n=_wppaHiresUrl[p][e]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(wppaSlideLinkEqual?' onclick="wppaStopAudio();wppaStopShow('+p+");jQuery('#wppa-film-"+e+"-"+p+"').trigger('click');return false;\"":' onclick="wppaStopAudio();wppaStopShow('+p+');"')+' style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+">"+(o?"<iframe "+l+' src="'+n+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),o=".pdf"==(n=_wppaHiresUrl[p][d]).substr(n.length-4,n.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(o?" data-pdfhtml=\"src='"+n+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+(wppaSlideLinkEqual?"":wppaRel+'="'+wppaLightBox[p]+u+'"')+"></a>",d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if("linear"!=a&&(a=wppaEasingSlide),document.getElementById("wppa-filmstrip-"+p)&&_wppaSlides[p]){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var n=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(n))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e)):(n=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(n<i?2:i<n-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w}):(i<n-1.5*w||n+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i}),wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var o=0;o<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][o]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+o+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+o+"-"+p).attr("title",jQuery("#wppa-film-"+o+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==o?(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]),jQuery("#wppa-pre-"+o+"-"+p).attr("title",wppaClickToView+" "+_wppaFilmThumbTitles[p][o]))),o++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery("#wppa-next-pagelink-"+p).trigger("click")):0<e.length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopnext",jQuery(e).trigger("click")):_wppaNextSlide(p,_wppaNxtIdx[p]=0)):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).length?(wppaSlideInitRunning[p]=_wppaSSRuns[p]?"start":"stopprev",jQuery("#wppa-prev-page-last-item-"+p).trigger("click")):(_wppaNxtIdx[p]+=_wppaSlides[p].length,_wppaNextSlide(p,0)):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSlides[p]&&(_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden")))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
8
+ var wppaJsAjaxVersion="8.1.09.003";function wppaDoAjaxRender(o,a,r,p){""!=wppaLang&&(a+="&lang="+wppaLang),wppaAutoColumnWidth[o]&&(a+="&resp=1"),p&&_wppaCurIdx[o]&&_wppaId[o][_wppaCurIdx[o]]&&(a+="&wppa-hilite="+_wppaId[o][_wppaCurIdx[o]]),wppaCanAjaxRender||!r?jQuery.ajax({url:a,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){_wppaSSRuns[o]&&_wppaStop(o),jQuery("#wppa-ajax-spin-"+o).fadeIn()},success:function(a,p,e){var a=JSON.parse(a),t=a.html+"<script>"+a.js+"<\/script>";wppaRenderModal&&r?(a={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""},jQuery("#wppa-modal-container-"+o).html(t).dialog(a).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"32px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(".ui-button").on("click",function(){_wppaStop(o)}),jQuery(".wppa-ajax-spin").stop().fadeOut()):(jQuery("#wppa-container-"+o).html(t),jQuery("#wppa-button-hide-"+o).show()),wppaCanPushState&&wppaUpdateAddressLine&&r&&(wppaHis++,r=r.split("&amp;").join("&"),jQuery(document).ready(function(){setTimeout(function(){try{history.pushState({page:wppaHis,occur:o,type:"html",html:t},"",r),wppaConsoleLog("Pushed history stack on ajax call","force")}catch(a){try{history.replaceState({page:wppaHis,occur:o,type:"html"},"",r),wppaConsoleLog("History replaced on ajax call","force")}catch(a){wppaConsoleLog("Ajax rendering: History stack update and replace failed","force")}}},1e3)}),0==wppaFirstOccur&&(wppaFirstOccur=o)),wppaUpdateLightboxes(),"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(r),wppaColWidth[o]=0,_wppaDoAutocol(o,"ajax")},error:function(a,p,e){wppaConsoleLog("wppaDoAjaxRender failed. Error = "+e+", status = "+p,"force"),r?document.location.href=r:document.location.reload(!0)},complete:function(a,p,e){!wppaRenderModal&&wppaAjaxScroll&&jQuery("html, body").animate({scrollTop:jQuery("#wppa-container-"+o).offset().top-32-wppaStickyHeaderHeight},1e3),jQuery(".wppa-ajax-spin").stop().fadeOut(),window.dispatchEvent(new Event("resize")),wppaProtect()}}):(document.location.href=r,wppaColWidth[o]=0,_wppaDoAutocol(o,"nonajax"))}function wppaAjaxApprovePhoto(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&photo-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApprovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhoto(t,o,r){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&photo-id="+o,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){rtxt=a.split("||"),"OK"==rtxt[0]?r?(jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("src",""),jQuery("#wppa-film-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),jQuery("#wppa-pre-"+_wppaCurIdx[t]+"-"+t).attr("alt","removed"),wppaNext(t)):(jQuery(".wppa-approve-"+o).css("display","none"),jQuery(".thumbnail-frame-photo-"+o).css("display","none")):rtxt[3]?(alert(rtxt[3]),jQuery("#wppa-delete-"+o).css("text-decoration","line-through")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhoto failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxApproveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=approve&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a?jQuery(".wppa-approve-"+t).css("display","none"):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxApproveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemoveComment(t){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=remove&comment-id="+t,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){"OK"==a.split("||")[0]?(jQuery(".wppa-approve-"+t).css("display","none"),jQuery(".wppa-comment-"+t).css("display","none")):alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemoveComment failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxAddPhotoToZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=addtozip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-"+r+"-"+o).html(t[2]),jQuery("#admin-choice-"+r+"-"+o).val(t[2]),jQuery("#admin-choice-"+r+"-"+o).prop("disabled",!0)):wppaConsoleLog("NOT OK "+a),alert(t[1]),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxAddPhotoToZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRemovePhotoFromZip(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=removefromzip&photo-id="+r,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#admin-choice-rem-"+r+"-"+o).val(t[1]),jQuery("#admin-choice-rem-"+r+"-"+o).prop("disabled",!0),jQuery("#admin-choice-rem-"+r+"-"+o).css("text-decoration","")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRemovePhotoFromZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDeleteMyZip(){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=delmyzip",async:!0,type:"GET",timeout:6e4,success:function(a,p,e){document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDeleteMyZip failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxRequestInfo(a,p,e){dialogHtml="<h3>"+wppaRequestInfoDialogText+'</h3><textarea id="wppa-request-info-text-'+a+'" style="width:98%;" ></textarea><div style="clear:both;" ></div><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Send" onclick="wppaAjaxRequestInfoSend( '+a+", "+p+", "+e+' )" /><input type="button" style="float:left;margin-top:8px;margin-right:8px;" value="Cancel" onclick="jQuery( \'#wppa-modal-container-'+a+"' ).dialog( 'close' );\" /><div style=\"clear:both;\" ></div>";e={modal:!0,resizable:!0,width:wppaGetContainerWidth(a),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+a).html(dialogHtml).dialog(e).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close")}function wppaAjaxRequestInfoSend(o,r,n){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=requestinfo&photo-id="+r+"&emailtext="+jQuery("#wppa-request-info-text-"+o).val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){var t=a.split("||");"OK"==t[0]?(jQuery("#request-info-"+r+"-"+o).val(t[1]),jQuery("#request-info-"+r+"-"+o).prop("disabled",!0),jQuery("#wppa-modal-container-"+o).dialog("close")):alert(a),n&&document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxRequestInfoSend failed. Error = "+e+", status = "+p,"force")}})}function wppaEditPhoto(o,a){var p=String(a),a=wppaEditPhotoWidth;screen.availWidth<a&&(a=screen.availWidth),jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=front-edit&photo-id="+p+"&occur="+o,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){var t={modal:!0,resizable:!0,width:wppaGetContainerWidth(o),show:{effect:"fadeIn",duration:400},closeText:""};jQuery("#wppa-modal-container-"+o).html(a).dialog(t).dialog("open"),jQuery(".ui-dialog").css({boxShadow:"0px 0px 5px 5px #aaaaaa",borderRadius:wppaBoxRadius+"px",padding:"8px",backgroundColor:wppaModalBgColor,boxSizing:"content-box",zIndex:1e5}),jQuery(".ui-dialog-titlebar").css({lineHeight:"0px",height:"24px"}),jQuery(".ui-button").css({backgroundImage:wppaModalQuitImg,padding:0,position:"absolute",right:"8px",top:"8px",width:"16px",height:"16px"}),jQuery(".ui-button").attr("title","Close"),jQuery(document).trigger("resize")},error:function(a,p,e){wppaConsoleLog("wppaEditPhoto failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaPrevTags(a,p,e,t){for(var o,r=jQuery("."+a),n=[],i=jQuery("#"+e).val(),c=0,u=0,a="";c<r.length;)r[c].selected&&(n[u]=r[c].value,u++),c++;""!=(o=jQuery("#"+p).val())&&(n[u]=o),a=n.join(),""==o&&""==e||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=sanitizetags&tags="+a+"&album="+i,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#"+t).html("Working...")},success:function(a,p,e){jQuery("#"+t).html(wppaTrim(a,","))},error:function(a,p,e){jQuery("#"+t).html('<span style="color:red" >'+e+"</span>"),wppaConsoleLog("wppaPrevTags failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxDestroyAlbum(a,p){return confirm("Are you sure you want to delete this album?")&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=destroyalbum&album="+a+"&nonce="+p,async:!0,type:"GET",timeout:6e4,success:function(a,p,e){alert(a+"\nPage will be reloaded"),document.location.reload(!0)},error:function(a,p,e){wppaConsoleLog("wppaAjaxDestroyAlbum failed. Error = "+e+", status = "+p,"force")}}),!1}function _bumpClickCount(a){wppaBumpClickCount&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpclickcount&wppa-photo="+a+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!1,type:"GET",timeout:6e4,success:function(a,p,e){},error:function(a,p,e){wppaConsoleLog("_bumpClickCount failed. Error = "+e+", status = "+p,"force")}})}function _bumpViewCount(t){wppaBumpViewCount&&(wppaPhotoView[t]||jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=bumpviewcount&wppa-photo="+t+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){wppaPhotoView[t]=!0},error:function(a,p,e){wppaConsoleLog("_bumpViewCount failed. Error = "+e+", status = "+p,"force")}}))}function wppaVoteThumb(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating=1&wppa-rating-id="+o+"&wppa-occur="+t+"&wppa-index=0&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,success:function(a,p,e){jQuery("#wppa-vote-button-"+t+"-"+o).val(wppaVotedForMe)},error:function(a,p,e){wppaConsoleLog("wppaVoteThumb failed. Error = "+e+", status = "+p,"force")}})}function _wppaRateIt(o,p){var a,e,t;0!=p&&(_wppaSSRuns[o]||(a=_wppaId[o][_wppaCurIdx[o]],e=_wppaMyr[o][_wppaCurIdx[o]],0<(t=_wppaWaitTexts[o][_wppaCurIdx[o]]).length?alert(t):0!=e&&wppaRatingOnce||e<0||(_wppaVoteInProgress=!0,jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+p+"&wppa-rating-id="+a+"&wppa-occur="+o+"&wppa-index="+_wppaCurIdx[o]+"&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#wppa-rate-"+o+"-"+p).attr("src",wppaImageDirectory+"tick.png"),jQuery("#wppa-rate-"+o+"-"+p).stop().fadeTo(100,1),jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");0==t[0]?900==t[1]?(alert(t[2]),_wppaSetRatingDisplay(o)):alert("Error Code="+t[1]+"\n\n"+t[2]):(t[7]&&"likes"==t[7]?(a=t[4].split("|"),jQuery("#wppa-like-"+o).attr("title",a[0]),jQuery("#wppa-liketext-"+o).html(a[1]),"1"==t[3]?jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o).attr("src",wppaImageDirectory+"thumbup.png"),_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4]):(_wppaMyr[t[0]][t[2]]=t[3],_wppaAvg[t[0]][t[2]]=t[4],_wppaDisc[t[0]][t[2]]=t[5],_wppaSetRatingDisplay(o),wppaCommentRequiredAfterVote&&0==t[6]&&alert(t[7])),wppaNextOnCallback&&_wppaNextOnCallback(o))},error:function(a,p,e){wppaConsoleLog("_wppaRateIt failed. Error = "+e+", status = "+p,"force")}}))))}function _wppaOvlRateIt(o,r,n,i){0!=r&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=rate&wppa-rating="+r+"&wppa-rating-id="+o+"&wppa-occur=1&wppa-nonce="+jQuery("#wppa-nonce").val(),async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"tick.png"),jQuery(".wppa-rate-"+n+"-"+r).stop().fadeTo(100,1),jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"spinner.gif"),jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"spinner.gif")},success:function(a,p,e){var t=a.split("||");if(0==t[0])900==t[1]?alert(t[2]):alert("Error Code="+t[1]+"\n\n"+t[2]),jQuery(".wppa-rate-"+n+"-"+r).attr("src",wppaImageDirectory+"cross.png");else{if(t[7]&&"likes"==t[7]){a=t[4].split("|");return jQuery("#wppa-like-0").attr("title",a[0]),jQuery("#wppa-liketext-0").html(a[1]),"1"==t[3]?jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-0").attr("src",wppaImageDirectory+"thumbup.png"),jQuery("#wppa-like-"+o+"-"+n).attr("title",a[0]),jQuery("#wppa-liketext-"+o+"-"+n).html(a[1]),void("1"==t[3]?jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+o+"-"+n).attr("src",wppaImageDirectory+"thumbup.png"))}_wppaSetRd(n,t[4],".wppa-avg-"),_wppaSetRd(n,t[3],".wppa-rate-"),i||wppaNextOnCallback&&wppaOvlShowNext()}},error:function(a,p,e){wppaConsoleLog("_wppaOvlRateIt failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxMakeOrigName(a,p){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=makeorigname&photo-id="+p+"&from=fsname",async:!0,type:"GET",timeout:6e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||");"0"==a[1]?(wppaIsSafari?"file"==wppaArtMonkyLink&&(wppaWindowReference.location=a[2]):"file"==wppaArtMonkyLink&&window.open(a[2]),"zip"==wppaArtMonkyLink&&(document.location=a[2])):(wppaIsSafari&&"file"==wppaArtMonkyLink&&wppaWindowReference.close(),alert("Error: "+a[1]+"\n\n"+a[2]))},error:function(a,p,e){wppaConsoleLog("wppaAjaxMakeOrigName failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){}})}function wppaAjaxDownloadAlbum(t,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=downloadalbum&album-id="+o,async:!0,type:"GET",timeout:6e4,beforeSend:function(a){jQuery("#dwnspin-"+t+"-"+o).css("display","")},success:function(a,p,e){var t=a.split("||"),o=t[0],r=t[1],a=t[2];3==t.length&&""!=a&&alert("Attention:\n\n"+a),"OK"==r?document.location=o:alert("The server could not complete the request.\nPlease try again.")},error:function(a,p,e){alert("An error occurred:\n"+e+"\nPlease try again")},complete:function(a,p,e){jQuery("#dwnspin-"+t+"-"+o).css("display","none")}})}function wppaAjaxComment(t,a){_wppaValidateComment(t,a)&&(a="action=wppa&wppa-action=do-comment&photo-id="+a+"&comname="+jQuery("#wppa-comname-"+t).val()+"&comment="+wppaEncode(jQuery("#wppa-comment-"+t).val())+"&wppa-captcha="+jQuery("#wppa-captcha-"+t).val()+"&wppa-nonce="+jQuery("#wppa-nonce-"+t).val()+"&occur="+t,void 0!==jQuery("#wppa-comemail-"+t).val()&&(a+="&comemail="+jQuery("#wppa-comemail-"+t).val()),void 0!==jQuery("#wppa-comment-edit-"+t).val()&&(a+="&comment-edit="+jQuery("#wppa-comment-edit-"+t).val()),void 0!==jQuery("#wppa-returnurl-"+t).val()&&(a+="&returnurl="+encodeURIComponent(jQuery("#wppa-returnurl-"+t).val())),jQuery("#db-agree-"+t).prop("checked")&&(a+="&db-agree=yes"),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:6e4,beforeSend:function(a){jQuery("#wppa-comment-spin-"+t).css("display","inline")},success:function(a,p,e){a=a.replace(/\\/g,""),jQuery("#wppa-comments-"+t).html(a),_wppaCurIdx[t]&&(_wppaCommentHtml[t][_wppaCurIdx[t]]=a),wppaOpenComments(t)},error:function(a,p,e){wppaConsoleLog("wppaAjaxComment failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-comment-spin-"+t).css("display","none")}}))}function wppaUpdatePhotoNew(a,t){for(var p=["upn-name","upn-description","upn-tags","custom_0","custom_1","custom_2","custom_3","custom_4","custom_5","custom_6","custom_7","custom_8","custom_9"],e="action=wppa&wppa-action=update-photo-new&photo-id="+a+"&wppa-nonce="+jQuery("#wppa-nonce-"+a).val(),o=0;o<p.length;)void 0!==jQuery("#"+p[o]).val()&&(e+="&"+p[o]+"="+jQuery("#"+p[o]).val()),o++;jQuery.ajax({url:wppaAjaxUrl,data:e,async:!1,type:"POST",timeout:1e4,beforeSend:function(a){},success:function(a,p,e){a=a.split("||"),a=JSON.parse(a[2]);jQuery(".sdd-"+t).html(a.desc),jQuery(".sdn-"+t).html(a.name),jQuery(".sdf-"+t).html(a.fullname),_wppaNames[t]&&(_wppaNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.name),_wppaFullNames[t][_wppaCurIdx[t]]=wppaFixHtml(a.fullname),_wppaDsc[t][_wppaCurIdx[t]]=wppaFixHtml(a.desc),jQuery("#imagetitle-"+t).html(wppaMakeNameHtml(t)))},error:function(a,p,e){wppaConsoleLog("wppaUpdatePhotoNew failed. Error = "+e+", status = "+p,"force")},complete:function(a,p,e){jQuery("#wppa-modal-container-"+t).dialog("close")}})}function wppaFixHtml(a){return a=(a=(a=(a=a.replace(/\[/g,"<")).replace(/\]/g,">")).replace(/&quot;/g,'"')).replace(/\\n/g," ")}var wppaLastQrcodeUrl="";function wppaAjaxSetQrCodeSrc(a,t){0!=jQuery(t).length&&wppaLastQrcodeUrl!=a&&(wppaLastQrcodeUrl=a,a="action=wppa&wppa-action=getqrcode&wppa-qr-nonce="+jQuery("#wppa-qr-nonce").val()+"&url="+encodeURIComponent(a),jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){a=a.split("|");jQuery(t).attr("src",a[0]),jQuery(t).attr("title",a[1])},error:function(a,p,e){wppaConsoleLog("wppaAjaxSetQrCodeSrc failed. Error = "+e+", status = "+p,"force")}}))}function wppaAjaxNotify(a,p){a=jQuery(a).prop("checked")?"on":"off",a="action=wppa&wppa-action=mailinglist&wppa-ntfy-nonce="+jQuery("#wppa-ntfy-nonce").val()+"&list="+p+"&onoff="+a;jQuery.ajax({url:wppaAjaxUrl,data:a,async:!0,type:"POST",timeout:1e4,success:function(a,p,e){alert(a)},error:function(a,p,e){wppaConsoleLog("wppaAjaxNotify failed. Error = "+e+", status = "+p,"force")}})}function wppaAjaxGetSsIptcList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"iptc")}function wppaAjaxGetSsExifList(a,p,e,t){wppaAjaxGetSsIptcExifList(a,p,e,t,"exif")}function wppaAjaxGetSsIptcExifList(t,o,r,n,i){ajaxurl=wppaAjaxUrl,ajaxurl+="?action=wppa&wppa-action=getss"+i+"list&"+i+"tag="+o+"&occur="+t,jQuery.ajax({url:ajaxurl,async:!0,type:"GET",timeout:1e4,beforeSend:function(a){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(a,p,e){jQuery("#"+r).html(a),jQuery("#wppa-ss-"+i+"opts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-'+i+"list-"+t+'", "#'+r+'" )',10),n&&wppaConsoleLog("wppaAjaxGetSs"+i+"List success after retry.","force")},error:function(a,p,e){wppaConsoleLog("wppaAjaxGetSs"+i+"List failed. Error = "+e+", status = "+p,"force"),n||wppaAjaxGetSsIptcExifList(t,o,r,!0,i)},complete:function(a,p,e){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}
9
  // wppa-lightbox
10
  var wppaJsLightboxVersion="8.0.04.003";function wppaOvlKeyboardHandler(p){var a,t=(a=(null==p?event:p).keyCode,27),p=String.fromCharCode(a).toLowerCase();switch(a){case t:wppaStopVideo(0),wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext()}switch(p){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(p){var a,t,e=jQuery;if(wppaOvlActivePanorama,e("#wppa-overlay-bg").css({display:"inline"}),wppaOvlFirst&&(e("#weaver-final").removeClass("wvr-hide-bang"),wppaKbHandlerInstalled||(e(document).on("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!0),e(window).trigger("wppalightboxstart")),"object"==typeof p){wppaOvlIds=[],wppaOvlUrls=[],wppaOvlTitles=[],wppaOvlAlts=[],wppaOvlTypes=[],wppaOvlVideoHtmls=[],wppaOvlAudioHtmls=[],wppaOvlPdfHtmls=[],wppaOvlVideoNaturalWidths=[],wppaOvlVideoNaturalHeights=[],wppaOvlImgs=[],wppaOvlIdx=0,wppaOvlPanoramaHtml=[],wppaOvlPanoramaIds=[],wppaOvlHasPanoramas=!1;var l=(p.rel||!!e(p).attr("data-rel")&&e(p).attr("data-rel")).split("[");if(l[1])for(var o,i=l[1],w=e("a"),n=0,r=0;r<w.length;r++)1<(l=!!e(o=w[r]).attr("data-rel")&&e(o).attr("data-rel").split("[")).length&&"wppa"==l[0]&&l[1]==i&&(wppaOvlUrls[n]=o.href,e(o).attr("data-lbtitle")?wppaOvlTitles[n]=wppaRepairScriptTags(e(o).attr("data-lbtitle")):wppaOvlTitles[n]=wppaRepairScriptTags(o.title),wppaOvlIds[n]=e(o).attr("data-id")?e(o).attr("data-id"):"0",wppaOvlAlts[n]=e(o).attr("data-alt")?e(o).attr("data-alt"):"",wppaOvlVideoHtmls[n]=e(o).attr("data-videohtml")?decodeURI(e(o).attr("data-videohtml")):"",wppaOvlPdfHtmls[n]=e(o).attr("data-pdfhtml")?decodeURI(e(o).attr("data-pdfhtml")):"",wppaOvlAudioHtmls[n]=e(o).attr("data-audiohtml")?decodeURI(e(o).attr("data-audiohtml")):"",wppaOvlVideoNaturalWidths[n]=e(o).attr("data-videonatwidth")?e(o).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[n]=e(o).attr("data-videonatheight")?e(o).attr("data-videonatheight"):"",a=e(o).attr("data-panorama")?e(o).attr("data-panorama"):"",panType=e(o).attr("data-pantype")?e(o).attr("data-pantype"):"",0<a.length?(wppaOvlHasPanoramas=!0,t=a.indexOf("."),wppaOvlPanoramaHtml[n]=a.substr(t+1),wppaOvlPanoramaIds[n]=a.substr(0,t),wppaOvlTypes[n]=panType):(wppaOvlPanoramaHtml[n]="",wppaOvlPanoramaIds[n]=0,wppaOvlTypes[n]=""),0<wppaOvlPdfHtmls[n].length&&(wppaOvlTypes[n]="document"),decodeURI(e(o).attr("data-pdfhtml"))==decodeURI(e(p).attr("data-pdfhtml"))&&decodeURI(e(o).attr("data-videohtml"))==decodeURI(e(p).attr("data-videohtml"))&&decodeURI(e(o).attr("data-audiohtml"))==decodeURI(e(p).attr("data-audiohtml"))&&o.href==p.href&&(wppaOvlIdx=n),n++);else wppaOvlUrls[0]=p.href,e(p).attr("data-lbtitle")?wppaOvlTitles[0]=wppaRepairScriptTags(e(p).attr("data-lbtitle")):wppaOvlTitles[0]=wppaRepairScriptTags(p.title),wppaOvlIds[0]=e(p).attr("data-id")?e(p).attr("data-id"):"0",wppaOvlAlts[0]=e(p).attr("data-alt")?e(p).attr("data-alt"):"",wppaOvlVideoHtmls[0]=e(p).attr("data-videohtml")?decodeURI(e(p).attr("data-videohtml")):"",wppaOvlAudioHtmls[0]=e(p).attr("data-audiohtml")?decodeURI(e(p).attr("data-audiohtml")):"",wppaOvlPdfHtmls[0]=e(p).attr("data-pdfhtml")?decodeURI(e(p).attr("data-pdfhtml")):"",wppaOvlVideoNaturalWidths[0]=e(p).attr("data-videonatwidth")?e(p).attr("data-videonatwidth"):"",wppaOvlVideoNaturalHeights[0]=e(p).attr("data-videonatheight")?e(p).attr("data-videonatheight"):"",a=e(p).attr("data-panorama")?e(p).attr("data-panorama"):"",panType=e(p).attr("data-pantype")?e(p).attr("data-pantype"):"",0<a.length?(wppaOvlHasPanoramas=!0,t=a.indexOf("."),wppaOvlPanoramaHtml[0]=a.substr(t+1),wppaOvlPanoramaIds[0]=a.substr(0,t),wppaOvlTypes[0]=panType):(wppaOvlPanoramaHtml[0]="",wppaOvlPanoramaIds[0]=0,wppaOvlTypes[0]=""),0<wppaOvlPdfHtmls[0].length&&(wppaOvlTypes[0]="document"),wppaOvlIdx=0}else wppaOvlIdx=p;wppaOvlOpen=!0,e("body").trigger("quitimage"),setTimeout(function(){_wppaOvlShow(wppaOvlIdx)},100)}function _wppaOvlShow(p){var a=jQuery;a("#wppa-overlay-ic").html("").hide(),a("#wppa-overlay-pc").html("").hide(),a("#wppa-overlay-fpc").html("").hide(),a("#wppa-overlay-zpc").html("").hide(),wppaOvlCurIdx=p,wppaOvlFirst&&a("#wppa-ovl-spin").show(),wppaIsVideo=""!=wppaOvlVideoHtmls[p],wppaHasAudio=""!=wppaOvlAudioHtmls[p],wppaOvlIsPdf=""!=wppaOvlPdfHtmls[p];var t=wppaOvlIdx==wppaOvlUrls.length-1?0:wppaOvlIdx+1,e=0==wppaOvlIdx?wppaOvlUrls.length-1:wppaOvlIdx-1;if(""==wppaOvlTypes[t]&&""==wppaOvlVideoHtmls[t]&&wppaOvlOpen&&(document.getElementById("wppa-pre-next").src=wppaOvlUrls[t]),""==wppaOvlTypes[e]&&""==wppaOvlVideoHtmls[e]&&wppaOvlOpen&&(document.getElementById("wppa-pre-prev").src=wppaOvlUrls[e]),_bumpViewCount(wppaOvlIds[p]),wppaOvlIsSingle=1==wppaOvlUrls.length,wppaOvlActivePanorama=wppaOvlPanoramaIds[p],wppaOvlActivePanorama,wppaIsFs()||wppaOvlActivePanorama){if(wppaOvlActivePanorama?l=wppaOvlPanoramaHtml[p]:wppaIsVideo?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><video id="wppa-overlay-img" controls preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video></div>":wppaOvlIsPdf?l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><iframe id="wppa-overlay-img" '+wppaOvlPdfHtmls[p]+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border:none; width:'+screen.width+'px; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" ></iframe></div>':(l='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+screen.width+"px; height:"+screen.height+'px; left:0px; top:0px; text-align:center;" ><img id="wppa-overlay-img" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border:none; width:'+screen.width+'px; visibility:hidden; box-shadow:none; position:absolute;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata"'+(wppaOvlAudioStart?" autoplay":"")+' onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;left:0px;bottom:0px;padding:0;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),l+="</div>"),!wppaIsVideo&&!wppaHasAudio||wppaOvlFsPhotoId!=wppaPhotoId||0==wppaPhotoId)if(wppaStopVideo(0),wppaStopAudio(),0<wppaOvlActivePanorama)switch(wppaOvlTypes[p]){case"spheric":a("#wppa-overlay-pc").html(l).show();break;case"flat":a("#wppa-overlay-fpc").html(l).show();break;case"zoom":a("#wppa-overlay-zpc").html(l).show()}else a("#wppa-overlay-ic").html(l).show();return 0<wppaOvlPanoramaIds[p]&&wppaOvlIsSingle&&a(".wppa-pan-prevnext").hide(),wppaProtect(),wppaOvlIsVideo=wppaIsVideo,setTimeout(wppaOvlFormatFull,10),wppaIsVideo||wppaHasAudio?setTimeout(function(){wppaOvlFsPhotoId=wppaPhotoId},20):wppaOvlFsPhotoId=0,wppaOvlFirst=!1,""==wppaOvlTypes[p]&&a("#wppa-overlay-ic").show(),wppaFsShow(),wppaProtect(),!1}wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaStopVideo(0);t="black"==wppaOvlTheme?"#a7a7a7":"#272727";wppaOvlFontColor&&(t=wppaOvlFontColor);wppaOvlUrls.length;0==wppaOvlActivePanorama&&a("#wppa-overlay-ic").css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop});var l="";l+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >',wppaIsVideo?(l+='<video id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" preload="metadata"'+(wppaOvlVideoStart?" autoplay":"")+' onpause="wppaOvlVideoPlaying = false;" onplay="wppaOvlVideoPlaying = true;" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" controls style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" >'+wppaOvlVideoHtmls[p]+"</video>",wppaOvlIsVideo=!0):wppaOvlIsPdf?l+="<iframe "+wppaOvlPdfHtmls[p]+' id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" ></iframe>':(l+='<img id="wppa-overlay-img" onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);" onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);" ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" onclick="wppaOvlImgClick( event );" src="'+wppaOvlUrls[p]+'" style="border-width:'+wppaOvlBorderWidth+"px "+wppaOvlBorderWidth+"px 0;border-style:solid;border-color:"+wppaOvlTheme+";width:"+wppaSavedImageWidth+"px;height:"+wppaSavedImageHeight+"px;box-shadow:none;box-sizing:content-box;position:relative;border-top-left-radius:"+wppaOvlRadius+"px;border-top-right-radius:"+wppaOvlRadius+'px;margin:0;padding:0;" alt="'+wppaOvlAlts[p]+'" />',wppaHasAudio&&(l+='<audio id="wppa-overlay-audio" class="wppa-overlay-audio" data-from="wppa" preload="metadata" onpause="wppaOvlAudioPlaying = false;" onplay="wppaOvlAudioPlaying = true;" style="width:100%;position:absolute;box-shadow:none;left:0;bottom:0;padding:0 '+wppaOvlBorderWidth+'px;margin:0;background-color:transparent;box-sizing:border-box;" controls >'+wppaOvlAudioHtmls[p]+"</audio>"),wppaOvlIsVideo=!1),l+="</div>";e=!wppaOvlIsSingle&&wppaOvlShowCounter;return l+='<div id="wppa-overlay-txt-container" style="position:relative;padding:10px;background-color:'+wppaOvlTheme+";color:"+t+";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;" >',l+=wppaOvlNavBar(),l+=(e?wppaOvlIdx+1+"/"+wppaOvlUrls.length+"<br />":"")+wppaOvlTitles[p],l+="</div>",l+="</div>",(0==wppaOvlActivePanorama?a("#wppa-overlay-ic"):a("#wppa-overlay-pc")).html(l),""!=wppaOvlTypes[p]&&"document"!=wppaOvlTypes[p]||a("#wppa-overlay-ic").show(),wppaFsShow(),a("#wppa-overlay-img").bind("contextmenu",function(p){return!1}),0==wppaOvlPanoramaIds[p]&&wppaOvlResize(),wppaFsShow(),wppaAdjustControlbar(),!1}function wppaOvlSize(p){var a=jQuery;if(!wppaOvlActivePanorama){var t=document.getElementById("wppa-overlay-img"),e=document.getElementById("wppa-overlay-txt");if(t&&e&&"none"!=a("#wppa-overlay-bg").css("display")){if(!wppaIsFs()){var l,o=wppaWindowWidth(),i=wppaWindowHeight(),w=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,w=t.clientHeight),(t=(e=(o-3*wppaOvlBorderWidth)/l)<(t=i/w)?e:t)<1&&(l=parseInt(l*t),w=parseInt(w*t));var t=a("#wppa-overlay-txt").height(),t="auto"==wppaOvlTxtHeight?(0==t&&(t=20+2*wppaOvlBorderWidth),i-t-20-2*wppaOvlBorderWidth):i-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth,i=parseInt(t*l/w),i=(wppaOvlPadTop,parseInt((o-i)/2),i);w<t&&(wppaOvlPadTop,parseInt((o-l)/2),i=l);o=wppaSavedImageWidth-i<3&&i-wppaSavedImageWidth<3;return i<=10&&(w=180,o=!(l=i=240)),i=parseInt(i),wppaSavedImageWidth=parseInt(i),wppaSavedImageHeight=parseInt(i*w/l),wppaSavedMarginLeft=-parseInt(i/2+wppaOvlBorderWidth),wppaSavedContainerWidth=parseInt(i+2*wppaOvlBorderWidth),wppaSavedContainerHeight=parseInt(wppaSavedImageHeight+wppaOvlBorderWidth+a("#wppa-overlay-txt-container").height()+20),wppaSavedMarginTop=-parseInt(wppaSavedContainerHeight/2),wppaAnimate("#wppa-overlay-img",{width:wppaSavedImageWidth,height:wppaSavedImageHeight},p,wppaEasingLightbox),wppaAnimate("#wppa-overlay-ic",{width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop},p,wppaEasingLightbox),o?(a("#wppa-ovl-spin").hide(),wppaOvlFirst=!1):setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},p+10),!0}wppaOvlFormatFull()}}}function wppaOvlFormatFull(){var p,a=jQuery;if(wppaOvlOpen&&!(0<wppaOvlActivePanorama)){if(wppaOvlIsVideo)p=document.getElementById("wppa-overlay-img"),o=wppaOvlVideoNaturalWidths[wppaOvlIdx],i=wppaOvlVideoNaturalHeights[wppaOvlIdx];else if(wppaOvlIsPdf)p=document.getElementById("wppa-overlay-img"),o=screen.width,i=screen.height;else{if(p=document.getElementById("wppa-overlay-img"),!(wppaIsIe||p&&p.complete))return void setTimeout(wppaOvlFormatFull,200);o=p.naturalWidth,i=p.naturalHeight}var t=o/i,e=0,l=0,o=0,i=0,i=t<screen.width/screen.height?(e=(screen.width-screen.height*t)/2,l=0,o=screen.height,screen.height*t):(e=0,l=(screen.height-screen.width/t)/2,o=screen.width/t,screen.width),e=parseInt(e),l=parseInt(l),o=parseInt(o);return i=parseInt(i),a(p).css({height:o,width:i,marginLeft:e,marginTop:l,left:0,top:0,maxWidth:1e4}),a(p).css({visibility:"visible"}),a("#wppa-ovl-full-bg").css({overflow:"hidden"}),a("#wppa-ovl-full-bg").scrollTop(0),a("#wppa-ovl-full-bg").scrollLeft(0),a("#wppa-ovl-spin").hide(),a("#wppa-ovl-full-bg").css({visibility:"hidden"}),html=a("#wppa-overlay-ic").html(),html+='<div style="position:fixed;bottom:0;left:0;right:0;" >'+wppaOvlNavBar()+"</div>",a("#wppa-overlay-ic").html(html),wppaFsShow(),!0}}function wppaOvlStartAudio(){var p=document.getElementById("wppa-overlay-audio");p&&"function"==typeof p.play&&p.play()}function wppaOvlStartStop(){var p=jQuery;wppaOvlRunning?(wppaOvlRunning=!1,-1!=wppaOvlIdx&&(0!=wppaOvlIdx&&p("#wppa-ovl-prev-btn").css("visibility","visible"),wppaOvlIdx!=wppaOvlUrls.length-1&&p("#wppa-ovl-next-btn").css("visibility","visible")),p("#wppa-ovl-stop-btn").hide(),p("#wppa-ovl-start-btn").show()):(wppaOvlRunning=!0,wppaOvlRun(),p("#wppa-ovl-stop-btn").show(),p("#wppa-ovl-start-btn").hide())}function wppaOvlRun(){if(wppaOvlRunning)if(wppaOvlVideoPlaying||wppaOvlAudioPlaying)setTimeout(wppaOvlRun,50);else{if(!wppaIsVideo&&!wppaOvlIsPdf){var p=document.getElementById("wppa-overlay-img");if(p&&!wppaIsIe&&!p.complete)return void setTimeout(wppaOvlRun,200)}wppaOvlShowNext(),wppaOvlTimer=setTimeout(wppaOvlRun,wppaOvlSlideSpeed)}}function wppaOvlShowPrev(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var p=wppaOvlCurIdx-1;p<0&&(p=wppaOvlUrls.length-1);var a=document.getElementById("wppa-pre-prev");return""!=wppaOvlVideoHtmls[p]||wppaIsIe||a.complete||!wppaOvlOpen?wppaOvlShow(p):setTimeout(wppaOvlShowPrev,200),!1}function wppaOvlShowNext(){if(wppaOvlIsSingle)return!1;jQuery("#wppa-ovl-spin").show(),wppaOvlFsPhotoId=0,wppaPhotoId=0;var p=wppaOvlCurIdx+1;p>wppaOvlUrls.length-1&&(p=0);var a=document.getElementById("wppa-pre-next");return""!=wppaOvlVideoHtmls[p]||wppaIsIe||a.complete||!wppaOvlOpen?wppaOvlShow(p):setTimeout(wppaOvlShowNext,200),!1}function wppaOvlShowSame(){var p,a;wppaOvlOpen&&(p=wppaOvlCurIdx,a=wppaOvlRunning,wppaOvlHide(!0),jQuery("#wppa-ovl-spin").show(),setTimeout(function(){wppaOvlShow(p),a&&setTimeout(wppaOvlStartStop(),wppaOvlSlideSpeed)},1e3))}function wppaOvlHide(p){var a=jQuery;wppaOvlOpen=!1,wppaOvlClosing=!wppaOvlClosing,wppaStopAudio(),p||"lightbox"!=wppaFsPolicy||wppaIsFs()&&wppaFsOff(),a("#wppa-overlay-ic").html("").hide(),a("#wppa-overlay-pc").html("").hide(),a("#wppa-overlay-fpc").html("").hide(),a("#wppa-overlay-zpc").html("").hide(),a(document).off("keydown",wppaOvlKeyboardHandler),wppaKbHandlerInstalled=!1,wppaOvlFirst=!0,wppaOvlRunning=!1,clearTimeout(wppaOvlTimer),a("#wppa-ovl-spin").hide(),wppaOvlActivePanorama=0,a("body").trigger("quitimage"),document.onLbquitMocc&&(wppaStartStop(document.onLbquitMocc),document.onLbquitMocc=null,document.onLbquitIdx=null),a(window).trigger("wppalightboxend"),a(window).trigger("resize"),wppaOvlClosing&&wppaIsMobile?setTimeout(function(){wppaOvlHide(p)},250):(wppaOvlClosing=!1,p||setTimeout(function(){a("#wppa-overlay-bg").hide(),a("#wppa-ovl-spin").hide()},500))}function wppaOvlOnclick(p){switch(wppaOvlOnclickType){case"none":break;case"close":wppaOvlHide();break;case"browse":var a=p.screenX-window.screenX;48<p.clientY&&(a<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}return!0}function wppaInitOverlay(){var e=jQuery;e(".wp-caption").each(function(){var p=e(this),a=p.find("IMG[alt]").attr("alt")||"",t=p.find(".wp-caption-text").html()||"",p=p.find("a"),t=a+"<br>"+t;p.attr("data-lbtitle")||p.attr("data-lbtitle",t)});var p,a,t=e("a"),l=[];for(wppaOvlFsPhotoId=0,wppaPhotoId=0,(wppaOvlActivePanorama=0)==wppaSavedContainerWidth&&(wppaSavedContainerWidth=240+2*wppaOvlBorderWidth,wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+("auto"==wppaOvlTxtHeight?50:wppaOvlTxtHeight),wppaSavedMarginLeft=-(120+wppaOvlBorderWidth),wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+("auto"==wppaOvlTxtHeight?25:wppaOvlTxtHeight/2)),wppaSavedImageWidth=240,wppaSavedImageHeight=180+wppaOvlBorderWidth),a=0;a<t.length;a++)if(p=t[a],e(p).attr("data-rel")?l=e(p).attr("data-rel").split("["):p.rel?l=p.rel.split("["):l[0]="","wppa"==l[0])switch(wppaWppaOverlayActivated=!0,e(p).on("click",function(p){wppaOvlShow(this),p.preventDefault()}),wppaMagnifierCursor){case"pointer":e(p).css("cursor","pointer");break;case"":e(p).css("cursor","default");break;default:e(p).css("cursor","url( "+wppaImageDirectory+wppaMagnifierCursor+" ),auto")}e(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaAdjustControlbar)}function wppaOvlResize(){0<wppaOvlActivePanorama||(setTimeout("wppaOvlSize( "+wppaOvlAnimSpeed+" )",10),wppaOvlAudioStart&&!wppaOvlAudioPlaying&&setTimeout(wppaOvlStartAudio,100))}function wppaOvlImgClick(p){wppaOvlBrowseOnClick&&!wppaOvlIsSingle&&(p.screenX<screen.width/2?wppaOvlShowPrev:wppaOvlShowNext)()}function wppaOvlNavBar(){var p="";return wppaOvlIsSingle||(p+='<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>",p+='<span id="wppa-ovl-next-btn" style="margin:0 2px;float:right;display:block;" onclick="wppaOvlShowNext()" >'+wppaSvgHtml("Next-Button",wppaOvlIconSize,!0,!0)+"</span>"),p+='<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||(p+='<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>"),p}jQuery(document).ready(function(p){wppaInitOverlay()}),jQuery(window).on("resize",function(){wppaOvlResize()});
11
  // wppa-popup
wppa-admins-choice-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the admins-choice widget
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -39,7 +39,7 @@ class AdminsChoice extends WP_Widget {
39
  }
40
  else {
41
  $widget_content =
42
- '<div class="wppa-admins-choice-widget" data-wppa="yes" >' .
43
  wppa_get_admins_choice_html( false ) .
44
  '</div>';
45
  }
@@ -53,7 +53,7 @@ class AdminsChoice extends WP_Widget {
53
  }
54
  $result .= $widget_content . $after_widget;
55
 
56
- wppa_echo( wppa_compress_html( $result ) );
57
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
58
 
59
  wppa( 'in_widget', false );
@@ -79,7 +79,7 @@ class AdminsChoice extends WP_Widget {
79
  // Make sure the feature is enabled
80
  if ( wppa_opt( 'admins_choice' ) == 'none' ) {
81
  wppa_echo( '
82
- <p style="color:red;" >' .
83
  __( 'Please enable this feature', 'wp-photo-album-plus' ) . ' ' . wppa_see_also( 'system', '1', '28' ) . '
84
  </p>' );
85
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the admins-choice widget
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
39
  }
40
  else {
41
  $widget_content =
42
+ '<div class="wppa-admins-choice-widget" data-wppa="yes">' .
43
  wppa_get_admins_choice_html( false ) .
44
  '</div>';
45
  }
53
  }
54
  $result .= $widget_content . $after_widget;
55
 
56
+ wppa_echo( $result );
57
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
58
 
59
  wppa( 'in_widget', false );
79
  // Make sure the feature is enabled
80
  if ( wppa_opt( 'admins_choice' ) == 'none' ) {
81
  wppa_echo( '
82
+ <p style="color:red">' .
83
  __( 'Please enable this feature', 'wp-photo-album-plus' ) . ' ' . wppa_see_also( 'system', '1', '28' ) . '
84
  </p>' );
85
  }
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.1.09.001
6
  *
7
  */
8
 
@@ -165,7 +165,7 @@ global $wppa;
165
 
166
  // If unsubscribe link from email. format output
167
  if ( $crypt ) {
168
- $msg = '<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" ><body><div style="margin:auto;" ><h2>' . $msg . '</h2></div></body></html>';
169
  }
170
  }
171
  $mailinglist = wppa_index_array_to_string( $userarray );
@@ -913,7 +913,7 @@ global $wppa;
913
  $content .=
914
  '<br><br>' . __('His request specification is', 'wp-photo-album-plus' ) . '<br>' .
915
 
916
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
917
  <em> ' . sanitize_text_field( wppa_get( 'emailtext' ) ) . '</em>
918
  </blockquote>';
919
 
@@ -1081,7 +1081,7 @@ global $wppa;
1081
  <div
1082
  id="wppa-gutenberg-div-' . $wppa['mocc'] . '"
1083
  style="position:relative;width:100%" >
1084
- <div style="font-size:12px;color:green;margin-bottom:2px;width:100%;text-align:center;" >
1085
  <i>(' . esc_html( __('Links and buttons will not work in this preview', 'wp-photo-album-plus' ) ) . ')</i>
1086
  </div>' .
1087
  $result . '
@@ -1492,10 +1492,12 @@ global $wppa;
1492
  // Render
1493
  $result = wppa_albums();
1494
  $result = wppa_make_relative( $result );
 
 
 
 
1495
  echo( $result );
1496
 
1497
- wppa_print_psjs();
1498
-
1499
  $tim_2 = microtime( true );
1500
  $nq_2 = get_num_queries();
1501
  $mem = memory_get_peak_usage( true ) / 1024 / 1024;
@@ -4130,4 +4132,43 @@ function wppa_json_photo_update( $id, $txt, $err = '0', $thumbmod = false, $phot
4130
 
4131
  wppa_echo( $result );
4132
  wppa_exit();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4133
  }
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.1.09.003
6
  *
7
  */
8
 
165
 
166
  // If unsubscribe link from email. format output
167
  if ( $crypt ) {
168
+ $msg = '<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" ><body><div style="margin:auto"><h2>' . $msg . '</h2></div></body></html>';
169
  }
170
  }
171
  $mailinglist = wppa_index_array_to_string( $userarray );
913
  $content .=
914
  '<br><br>' . __('His request specification is', 'wp-photo-album-plus' ) . '<br>' .
915
 
916
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
917
  <em> ' . sanitize_text_field( wppa_get( 'emailtext' ) ) . '</em>
918
  </blockquote>';
919
 
1081
  <div
1082
  id="wppa-gutenberg-div-' . $wppa['mocc'] . '"
1083
  style="position:relative;width:100%" >
1084
+ <div style="font-size:12px;color:green;margin-bottom:2px;width:100%;text-align:center">
1085
  <i>(' . esc_html( __('Links and buttons will not work in this preview', 'wp-photo-album-plus' ) ) . ')</i>
1086
  </div>' .
1087
  $result . '
1492
  // Render
1493
  $result = wppa_albums();
1494
  $result = wppa_make_relative( $result );
1495
+ $result = wppa_compress_html( $result );
1496
+ $result .= wppa_print_psjs( true );
1497
+ $result_a = wppa_split_html_js( $result );
1498
+ $result = wp_json_encode( ['html' => $result_a['html'], 'js' => $result_a['js']] );
1499
  echo( $result );
1500
 
 
 
1501
  $tim_2 = microtime( true );
1502
  $nq_2 = get_num_queries();
1503
  $mem = memory_get_peak_usage( true ) / 1024 / 1024;
4132
 
4133
  wppa_echo( $result );
4134
  wppa_exit();
4135
+ }
4136
+
4137
+ // Convert html with script tags to json format like {html:html-text,js:jstext-without-script-tags}
4138
+ function wppa_split_html_js( $text ) {
4139
+
4140
+ $workarr = explode( '<script>', $text );
4141
+
4142
+ // Any js present?
4143
+ if ( count( $workarr ) == 1 ) {
4144
+
4145
+ // No
4146
+ $html = $text;
4147
+ $js = '';
4148
+ }
4149
+
4150
+ else {
4151
+
4152
+ // Yes
4153
+ $html = '';
4154
+ $js = '';
4155
+ foreach( $workarr as $chunk ) {
4156
+ $chunk_parts = explode( '</script>', $chunk );
4157
+
4158
+ // No </script> found? html only
4159
+ if ( count( $chunk_parts ) == 1 ) {
4160
+ $html .= $chunk;
4161
+ }
4162
+
4163
+ // Split html from js; ignore script tags
4164
+ else {
4165
+ $js_part = rtrim( $chunk_parts[0], ';' ) . ';';
4166
+ $js .= $js_part;
4167
+ $html_part = $chunk_parts[1];
4168
+ $html .= $html_part;
4169
+ }
4170
+ }
4171
+ }
4172
+
4173
+ return array( 'html' => $html, 'js' => $js );
4174
  }
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -487,7 +487,7 @@ global $wppa_revno;
487
  // The header
488
  wppa_echo( '
489
  <img src="' . WPPA_URL . '/img/album32.png' . '" alt="Album icon" />
490
- <h1 style="display:inline;" >' .
491
  __( 'Edit Album Information', 'wp-photo-album-plus' ) . '
492
  </h1>
493
  <p class="description">' .
@@ -887,8 +887,7 @@ global $wppa_revno;
887
  title="' . esc_attr( $title ) . '"
888
  value="' . $tree_limit . '"
889
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_tree\', this )"
890
- style="cursor:pointer;"
891
- />' .
892
 
893
  '<br>';
894
 
@@ -1001,7 +1000,7 @@ global $wppa_revno;
1001
  <input type="hidden" value="" id="wppa-dummy-del" />
1002
  <span
1003
  class="wppa-datetimedel-' . $id . '"' .
1004
- ( $albuminfo['scheduledel'] ? '' : ' style="display:none;"' ) . '
1005
  >' .
1006
  wppa_get_date_time_select_html( 'delalbum', $id, $may_change ) . '
1007
  </span>
@@ -1047,7 +1046,7 @@ global $wppa_revno;
1047
  <span class="description" >' .
1048
  __( 'Type the name of the album. Do not leave this empty.', 'wp-photo-album-plus' ) . '
1049
  </span>
1050
- <span style="float:right;" >' .
1051
  __( 'Name slug', 'wp-photo-album-plus' ) . ': ' . $sname . '
1052
  </span>
1053
  </td>
@@ -1301,7 +1300,7 @@ global $wppa_revno;
1301
  <input type="hidden" value="" id="wppa-dummy" />
1302
  <span
1303
  class="wppa-datetime-' . $id . '"' .
1304
- ( $albuminfo['scheduledtm'] ? '' : ' style="display:none;"' ) .
1305
  ' >' .
1306
  wppa_get_date_time_select_html( 'album', $id, true ) .
1307
  '</span>
@@ -1500,7 +1499,7 @@ global $wppa_revno;
1500
  <img
1501
  id="dwnspin-0-' . $albuminfo['id'] . '"
1502
  src="' . wppa_get_imgdir() . 'spinner.gif"
1503
- style="margin-left:6px; display:none; height: 18px; position: relative; bottom: -6px;"
1504
  alt="spinner"
1505
  />';
1506
  }
@@ -1542,7 +1541,7 @@ global $wppa_revno;
1542
  $result = '
1543
  <a id="manage-photos" ></a>
1544
  <img src="' . WPPA_URL . '/img/camera32.png" alt="Camera icon" />
1545
- <h1 style="display:inline;" >' . __( 'Manage Photos', 'wp-photo-album-plus' );
1546
  if ( wppa_get( 'bulk' ) )
1547
  $result .= ' - <small><i>' . __( 'Copy / move / delete / edit name / edit description / change status', 'wp-photo-album-plus' ) . '</i></small>';
1548
  elseif ( wppa_get( 'seq' ) )
@@ -1553,7 +1552,7 @@ global $wppa_revno;
1553
  $result .= ' - <small><i>' . __( 'Edit photo information', 'wp-photo-album-plus' ) . '</i></small>';
1554
  $result .= '
1555
  </h1>
1556
- <div style="clear:both;" ></div>';
1557
  wppa_echo( $result );
1558
 
1559
  if ( wppa_get( 'bulk' ) )
@@ -1584,8 +1583,8 @@ global $wppa_revno;
1584
  $result = '
1585
  <div class="wrap">
1586
  <img src="' . WPPA_URL . '/img/page_green.png" />
1587
- <h1 style="display:inline;" >' . __( 'Moderate comment', 'wp-photo-album-plus' ) . '</h1>
1588
- <div style="clear:both;" ></div>' .
1589
  wppa_album_photos( '', $photo ) . '
1590
  </div>';
1591
  wppa_echo( $result );
@@ -1603,11 +1602,11 @@ global $wppa_revno;
1603
  $result = '
1604
  <div class="wrap">
1605
  <img src="' . WPPA_URL . '/img/page_green.png" />
1606
- <h1 style="display:inline;" >' . ( wppa_get( 'tab' ) == 'pmod' ?
1607
  __( 'Moderate photo', 'wp-photo-album-plus' ) :
1608
  __( 'Edit photo', 'wp-photo-album-plus' ) ) . '
1609
  </h1>
1610
- <div style="clear:both;" ></div>';
1611
  wppa_album_photos( '', $photo ) . '
1612
  </div>';
1613
  wppa_echo( $result );
@@ -1628,7 +1627,7 @@ global $wppa_revno;
1628
  $result = '
1629
  <div class="wrap">
1630
  <img src="' . WPPA_URL . '/img/albumdel32.png" />
1631
- <h1 style="display:inline;" >' . __( 'Delete Album', 'wp-photo-album-plus' ) . '</h1>
1632
 
1633
  <p>' . __( 'Album:', 'wp-photo-album-plus' ) . '<b>' . htmlspecialchars( wppa_get_album_name( wppa_get( 'edit-id' ) ) ) . '</b></p>
1634
  <p>' . __( 'Are you sure you want to delete this album?', 'wp-photo-album-plus' ) . '<br>' .
@@ -1716,8 +1715,8 @@ global $wppa_revno;
1716
  <div class="wrap">' .
1717
  wppa_admin_spinner() . '
1718
  <img src="' . WPPA_URL . '/img/album32.png" />
1719
- <h1 style="display:inline;" >' . __( 'Manage Albums', 'wp-photo-album-plus' ) . '</h1>
1720
- <div style="clear:both;" ></div>';
1721
 
1722
  // The Create new album button
1723
  if ( wppa_can_create_top_album() ) {
@@ -1771,7 +1770,7 @@ global $wppa_revno;
1771
  type="button"
1772
  class="button-secundary"
1773
  id="wppa-open-all"
1774
- style="display:inline;"
1775
  onclick=" jQuery(\'#wppa-close-all\').css(\'display\',\'inline\');
1776
  jQuery(this).css(\'display\',\'none\');
1777
  jQuery(\'.wppa-alb-onoff\').css(\'display\',\'\');
@@ -1784,7 +1783,7 @@ global $wppa_revno;
1784
  type="button"
1785
  class="button-secundary"
1786
  id="wppa-close-all"
1787
- style="display:inline;"
1788
  onclick=" jQuery(\'#wppa-open-all\').css(\'display\',\'inline\');
1789
  jQuery(this).css(\'display\',\'none\');
1790
  jQuery(\'.wppa-alb-onoff\').css(\'display\',\'none\');
@@ -1807,7 +1806,7 @@ global $wppa_revno;
1807
  $result .= '
1808
  <option value="" ></option>';
1809
  foreach( $opts as $opt ) {
1810
- $result .= '<option value="' . $opt . '" ' . ( $f == $opt ? 'selected ' : '' ) . '>' . $opt . '</value>';
1811
  }
1812
  $result .=
1813
  '</select>';
@@ -1994,8 +1993,8 @@ global $wpdb;
1994
  }
1995
  }
1996
 
1997
- $downimg = '<img src="'.wppa_get_imgdir().'down.png" alt="down" style=" height:12px; position:relative; top:2px; " />';
1998
- $upimg = '<img src="'.wppa_get_imgdir().'up.png" alt="up" style=" height:12px; position:relative; top:2px; " />';
1999
  $show_nl = wppa_opt( 'user_create_max_level' ) != '99';
2000
  $url = get_admin_url().'admin.php?page=wppa_admin_menu&amp;order_by=';
2001
 
@@ -2069,7 +2068,7 @@ global $wpdb;
2069
  <td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
2070
  ( current_user_can( 'wppa_upload' ) ? '<td>' . __( 'Upload', 'wp-photo-album-plus' ) . '</td>' : '' ) .
2071
  ( current_user_can( 'wppa_import' ) ? '<td>' . __( 'Import', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2072
- <td >' . __( 'Delete', 'wp-photo-album-plus' ) . '</td>' .
2073
  ( wppa_can_create_album() ? '<td>' . __( 'Create', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2074
  </tr>';
2075
  $result .= $thead_body;
@@ -2118,10 +2117,10 @@ global $wpdb;
2118
  <td>' . ( $mayseq ? '<a href="' . $url . '&amp;seq=1" class="wppaedit">' . __( 'Seq', 'wp-photo-album-plus' ) . '</a>' : '' ) . '</td>
2119
  <td>' . ( $covid ? '<a href="' . $curl . '" class="wppaedit">' . __( 'CovImg', 'wp-photo-album-plus' ) . '</a>' : '' ) . '</td>';
2120
  if ( current_user_can( 'wppa_upload' ) ) {
2121
- $result .= '<td ><a href="' . get_admin_url() . '/admin.php?page=wppa_upload_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Upload', 'wp-photo-album-plus' ) . '</a></td>';
2122
  }
2123
  if ( current_user_can( 'wppa_import' ) ) {
2124
- $result .= '<td ><a href="' . get_admin_url() . '/admin.php?page=wppa_import_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Import', 'wp-photo-album-plus' ) . '</a></td>';
2125
  }
2126
  $result .= '
2127
  <td><a href="' . $delurl . '" class="wppadelete">' . __( 'Delete', 'wp-photo-album-plus' ) . '</a></td>';
@@ -2319,12 +2318,12 @@ global $wpdb;
2319
  }
2320
  }
2321
 
2322
- $downimg = '<img src="'.wppa_get_imgdir().'down.png" alt="down" style=" height:12px; position:relative; top:2px; " />';
2323
- $upimg = '<img src="'.wppa_get_imgdir().'up.png" alt="up" style=" height:12px; position:relative; top:2px; " />';
2324
  $url = get_admin_url() . 'admin.php?page=wppa_admin_menu&amp;order_by=';
2325
 
2326
  $result = wppa_album_table_pagination( $page, $count ) . '
2327
- <table class="widefat wppa-table wppa-setting-table" style="margin-top:12px;" >
2328
  <thead>';
2329
  $thead_body = '
2330
  <tr>
@@ -2394,7 +2393,7 @@ global $wpdb;
2394
  <td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
2395
  ( current_user_can( 'wppa_upload' ) ? '<td>' . __( 'Upload', 'wp-photo-album-plus' ) . '</td>' : '' ) .
2396
  ( current_user_can( 'wppa_import' ) ? '<td>' . __( 'Import', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2397
- <td >' . __( 'Delete', 'wp-photo-album-plus' ) . '</td>' .
2398
  ( wppa_can_create_album() ? '<td>' . __( 'Create', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2399
  </tr>';
2400
  $result .= $thead_body;
@@ -2598,7 +2597,7 @@ global $wpdb;
2598
 
2599
  $link = get_admin_url().'admin.php?page=wppa_admin_menu&album-page-no=';
2600
 
2601
- $result .= '<div style="line-height:1.7em;" >';
2602
 
2603
  // The links
2604
  if ( $page != '1' ) {
@@ -2608,7 +2607,7 @@ global $wpdb;
2608
  $p = '1';
2609
  while ( $p <= $npages ) {
2610
  if ( $p == $page ) {
2611
- $result .= '<span style="padding:0 0,25em;" >' . $page . '</span> ';
2612
  }
2613
  else {
2614
  $result .= '<a' .
@@ -2661,7 +2660,7 @@ global $wpdb;
2661
  if ( $alt ) $class .= ' alternate';
2662
  $style = '';
2663
  if ( $pendcount ) $style .= 'background-color:#ffdddd; ';
2664
- if ( $parent != '0' && $parent != '-1' ) $style .= 'display:none; ';
2665
 
2666
  $onclickon =
2667
  'jQuery(\'.wppa-alb-on-'.$id.'\').css(\'display\',\'\');' .
@@ -2688,13 +2687,13 @@ global $wpdb;
2688
  // Fillers before the arrow
2689
  $i = 0;
2690
  while ( $i < $indent ) {
2691
- $result .= '<td style="padding:2px;" ></td>';
2692
  $i++;
2693
  }
2694
 
2695
  // The arrow image td element
2696
  $result .= '
2697
- <td style="padding:2px; text-align:center;" >';
2698
 
2699
  // Only if the album has children the arrow will show up
2700
  if ( $haschildren ) {
@@ -2702,7 +2701,7 @@ global $wpdb;
2702
  <img
2703
  id="alb-arrow-off-' . $id . '"
2704
  class="alb-arrow-off"
2705
- style="height:16px; display:none;"
2706
  src="' . wppa_get_imgdir() . 'backarrow.gif' . '"
2707
  onclick="' . $onclickoff . '"
2708
  title="' . esc_attr( __( 'Collapse subalbums', 'wp-photo-album-plus' ) ) . '"
@@ -2737,12 +2736,12 @@ global $wpdb;
2737
 
2738
  // The album id td element
2739
  $result .= '
2740
- <td style="padding:2px;" >' . $id . ( $show_nl ? '(' . wppa_get_nesting_level( $album['id'] ) . ')' : '' ) . '</td>';
2741
 
2742
  // Fillers after the arrow
2743
  $i = $indent;
2744
  while ( $i < 5 ) {
2745
- $result .= '<td style="padding:2px;" ></td>';
2746
  $i++;
2747
  }
2748
 
@@ -2786,10 +2785,10 @@ global $wpdb;
2786
  $result .= '<td></td>';
2787
  }
2788
  if ( current_user_can( 'wppa_upload' ) ) {
2789
- $result .= '<td ><a href="' . get_admin_url() . '/admin.php?page=wppa_upload_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Upload', 'wp-photo-album-plus' ) . '</a></td>';
2790
  }
2791
  if ( current_user_can( 'wppa_import' ) ) {
2792
- $result .= '<td ><a href="' . get_admin_url() . '/admin.php?page=wppa_import_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Import', 'wp-photo-album-plus' ) . '</a></td>';
2793
  }
2794
  if ( wppa_user_is( 'administrator' ) || wppa_get_user() == $album['owner'] ) {
2795
  $url = wppa_ea_url( $id, 'del' );
@@ -3078,7 +3077,7 @@ global $wpdb;
3078
  <tbody>
3079
  <tr>
3080
  <td>
3081
- <div style="background-color:green;height:12px;" ></div>
3082
  </td>
3083
  <td>' .
3084
  __( 'Up to date', 'wp-photo-album-plus' ) . '
@@ -3086,7 +3085,7 @@ global $wpdb;
3086
  </tr>
3087
  <tr>
3088
  <td>
3089
- <div style="background-color:yellow;height:12px;" ></div>
3090
  </td>
3091
  <td>' .
3092
  __( 'Updating', 'wp-photo-album-plus' ) . '
@@ -3094,7 +3093,7 @@ global $wpdb;
3094
  </tr>
3095
  <tr>
3096
  <td>
3097
- <div style="background-color:orange;height:12px;" ></div>
3098
  </td>
3099
  <td>' .
3100
  __( 'Needs update', 'wp-photo-album-plus' ) . '
@@ -3102,7 +3101,7 @@ global $wpdb;
3102
  </tr>
3103
  <tr>
3104
  <td>
3105
- <div style="background-color:red;height:12px;" ></div>
3106
  </td>
3107
  <td>' .
3108
  __( 'Error', 'wp-photo-album-plus' ) . '
@@ -3246,7 +3245,7 @@ global $wpdb;
3246
 
3247
  $result = '
3248
  <br>
3249
- <div id="wppa-progbar" style="width:100%;height:12px;" >';
3250
 
3251
  $c = count( $albums );
3252
  $l = 100 / $c;
@@ -3255,7 +3254,7 @@ global $wpdb;
3255
  $result .= '
3256
  <div
3257
  id="wppa-pb-' . $i . '"
3258
- style="display:inline;float:left;background-color:green;height:12px;width:' . $l . '%;"
3259
  >
3260
  </div>';
3261
  $i++;
@@ -3265,7 +3264,7 @@ global $wpdb;
3265
 
3266
  <br>
3267
 
3268
- <div class="widefat" style="max-width:600px;" >
3269
  <div id="sortable-albums">';
3270
 
3271
  foreach ( $albums as $album ) {
@@ -3277,7 +3276,7 @@ global $wpdb;
3277
  style="background-color:#eeeeee;cursor:move;"
3278
  >
3279
  <div
3280
- style="height:100%;width:25%;float:left;text-align:center;overflow:hidden;"
3281
  >';
3282
  if ( wppa_is_video( $cover_photo_id ) ) {
3283
  $result .=
@@ -3299,19 +3298,19 @@ global $wpdb;
3299
  $albid = strval( intval( $album['id'] ) );
3300
  $result .= '
3301
  </div>
3302
- <div style="height:100%;width:40%;float:left;font-size:12px;overflow:hidden;" >
3303
  <b>' . htmlspecialchars( wppa_get_album_name( $albid ) ) . '</b>
3304
  <br>' .
3305
  wppa_get_album_desc( $albid ) . '
3306
  </div>
3307
- <div style="float:right;width:10%;" >
3308
  <table>
3309
  <tr>
3310
  <td>
3311
  <img
3312
  src="' . wppa_get_imgdir( 'up.png' ) . '"
3313
  title="' . esc_attr( __( 'To top', 'wp-photo-album-plus' ) ) . '"
3314
- style="cursor:pointer;"
3315
  onclick="
3316
  jQuery( \'#albumitem-' . $albid . '\' ).parent().prepend(jQuery( \'#albumitem-' . $albid . '\' ));
3317
  wppaDoRenumber();"
@@ -3323,7 +3322,7 @@ global $wpdb;
3323
  <img
3324
  src="' . wppa_get_imgdir( 'up.png' ) . '"
3325
  title="' . esc_attr( __( 'One up', 'wp-photo-album-plus' ) ) . '"
3326
- style="cursor:pointer;width:24px;"
3327
  onclick="
3328
  jQuery( \'#albumitem-' . $albid . '\' ).prev().before(jQuery( \'#albumitem-' . $albid . '\' ));
3329
  wppaDoRenumber();"
@@ -3335,7 +3334,7 @@ global $wpdb;
3335
  <img
3336
  src="' . wppa_get_imgdir( 'down.png' ) . '"
3337
  title="' . esc_attr( __( 'One down', 'wp-photo-album-plus' ) ) . '"
3338
- style="cursor:pointer;width:24px;"
3339
  onclick="
3340
  jQuery( \'#albumitem-' . $albid . '\' ).next().after(jQuery( \'#albumitem-' . $albid . '\' ));
3341
  wppaDoRenumber();"
@@ -3347,7 +3346,7 @@ global $wpdb;
3347
  <img
3348
  src="' . esc_url( wppa_get_imgdir( 'down.png' ) ) . '"
3349
  title="' . esc_attr( __( 'To bottom', 'wp-photo-album-plus' ) ) . '"
3350
- style="cursor:pointer;"
3351
  onclick="
3352
  jQuery( \'#albumitem-' . $albid . '\' ).parent().append(jQuery( \'#albumitem-' . $albid . '\' ));
3353
  wppaDoRenumber();"
@@ -3356,12 +3355,12 @@ global $wpdb;
3356
  </tr>
3357
  </table>
3358
  </div>
3359
- <div style="float:right; width:25%;" >
3360
  <span> ' . __( 'Id:' , 'wp-photo-album-plus' ) . ' ' . $albid . '</span>
3361
  <span> - ' . __( 'Ord:' , 'wp-photo-album-plus' ) . '</span>
3362
  <span id="wppa-album-seqno-' . $albid . '" > ' . $album['a_order'] . '</span>
3363
  <br>
3364
- <a href="' . wppa_ea_url( $albid ) . '" style="position:absolute;bottom:0;" >' . __( 'Edit', 'wp-photo-album-plus' ) . '</a>
3365
  </div>
3366
  <input type="hidden" id="album-nonce-' . $albid . '" value="' . wp_create_nonce( 'wppa-nonce_' . $albid ) . '" />
3367
  <input type="hidden" class="wppa-sort-item-albums" value="' . $albid . '" />
@@ -3385,29 +3384,29 @@ function _wppa_search() {
3385
  $result = '
3386
  <div class="wrap" >
3387
  <img src="' . WPPA_URL . '/img/magnifier-large.png' . '" />
3388
- <h1 style="display:inline;" >' . __( 'Search photos', 'wp-photo-album-plus' ) . '</h1>
3389
- <div style="clear:both;" >&nbsp;</div>
3390
 
3391
- <table class="wppa-table widefat wppa-setting-table" style="margin-top:12px;" >
3392
  <thead>
3393
  </thead>
3394
  <colgroup>
3395
- <col style="width:0px; color:transparent;" >
3396
  <col style="width:5%" >
3397
  <col>
3398
  <col>
3399
  <col>
3400
  <col>
3401
- <col style="width:0px;" >
3402
- <col style="width:5%;" >
3403
- <col style="width:5%;" >
3404
- <col style="width:5%;" >
3405
- <col style="width:0px;" >
3406
- <col style="width:0px;" >
3407
- <col style="width:0px;" >
3408
- <col style="width:0px;" >
3409
- <col style="width:0px;" >
3410
- <col style="width:0px;" >
3411
  </colgroup>
3412
  <tbody>' .
3413
  wppa_search_edit( false ) . '
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
487
  // The header
488
  wppa_echo( '
489
  <img src="' . WPPA_URL . '/img/album32.png' . '" alt="Album icon" />
490
+ <h1 style="display:inline">' .
491
  __( 'Edit Album Information', 'wp-photo-album-plus' ) . '
492
  </h1>
493
  <p class="description">' .
887
  title="' . esc_attr( $title ) . '"
888
  value="' . $tree_limit . '"
889
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_tree\', this )"
890
+ style="cursor:pointer"/>' .
 
891
 
892
  '<br>';
893
 
1000
  <input type="hidden" value="" id="wppa-dummy-del" />
1001
  <span
1002
  class="wppa-datetimedel-' . $id . '"' .
1003
+ ( $albuminfo['scheduledel'] ? '' : ' style="display:none"' ) . '
1004
  >' .
1005
  wppa_get_date_time_select_html( 'delalbum', $id, $may_change ) . '
1006
  </span>
1046
  <span class="description" >' .
1047
  __( 'Type the name of the album. Do not leave this empty.', 'wp-photo-album-plus' ) . '
1048
  </span>
1049
+ <span style="float:right">' .
1050
  __( 'Name slug', 'wp-photo-album-plus' ) . ': ' . $sname . '
1051
  </span>
1052
  </td>
1300
  <input type="hidden" value="" id="wppa-dummy" />
1301
  <span
1302
  class="wppa-datetime-' . $id . '"' .
1303
+ ( $albuminfo['scheduledtm'] ? '' : ' style="display:none"' ) .
1304
  ' >' .
1305
  wppa_get_date_time_select_html( 'album', $id, true ) .
1306
  '</span>
1499
  <img
1500
  id="dwnspin-0-' . $albuminfo['id'] . '"
1501
  src="' . wppa_get_imgdir() . 'spinner.gif"
1502
+ style="margin-left:6px;display:none;height:18px;position:relative;bottom:-6px"
1503
  alt="spinner"
1504
  />';
1505
  }
1541
  $result = '
1542
  <a id="manage-photos" ></a>
1543
  <img src="' . WPPA_URL . '/img/camera32.png" alt="Camera icon" />
1544
+ <h1 style="display:inline">' . __( 'Manage Photos', 'wp-photo-album-plus' );
1545
  if ( wppa_get( 'bulk' ) )
1546
  $result .= ' - <small><i>' . __( 'Copy / move / delete / edit name / edit description / change status', 'wp-photo-album-plus' ) . '</i></small>';
1547
  elseif ( wppa_get( 'seq' ) )
1552
  $result .= ' - <small><i>' . __( 'Edit photo information', 'wp-photo-album-plus' ) . '</i></small>';
1553
  $result .= '
1554
  </h1>
1555
+ <div style="clear:both"></div>';
1556
  wppa_echo( $result );
1557
 
1558
  if ( wppa_get( 'bulk' ) )
1583
  $result = '
1584
  <div class="wrap">
1585
  <img src="' . WPPA_URL . '/img/page_green.png" />
1586
+ <h1 style="display:inline">' . __( 'Moderate comment', 'wp-photo-album-plus' ) . '</h1>
1587
+ <div style="clear:both"></div>' .
1588
  wppa_album_photos( '', $photo ) . '
1589
  </div>';
1590
  wppa_echo( $result );
1602
  $result = '
1603
  <div class="wrap">
1604
  <img src="' . WPPA_URL . '/img/page_green.png" />
1605
+ <h1 style="display:inline">' . ( wppa_get( 'tab' ) == 'pmod' ?
1606
  __( 'Moderate photo', 'wp-photo-album-plus' ) :
1607
  __( 'Edit photo', 'wp-photo-album-plus' ) ) . '
1608
  </h1>
1609
+ <div style="clear:both"></div>';
1610
  wppa_album_photos( '', $photo ) . '
1611
  </div>';
1612
  wppa_echo( $result );
1627
  $result = '
1628
  <div class="wrap">
1629
  <img src="' . WPPA_URL . '/img/albumdel32.png" />
1630
+ <h1 style="display:inline">' . __( 'Delete Album', 'wp-photo-album-plus' ) . '</h1>
1631
 
1632
  <p>' . __( 'Album:', 'wp-photo-album-plus' ) . '<b>' . htmlspecialchars( wppa_get_album_name( wppa_get( 'edit-id' ) ) ) . '</b></p>
1633
  <p>' . __( 'Are you sure you want to delete this album?', 'wp-photo-album-plus' ) . '<br>' .
1715
  <div class="wrap">' .
1716
  wppa_admin_spinner() . '
1717
  <img src="' . WPPA_URL . '/img/album32.png" />
1718
+ <h1 style="display:inline">' . __( 'Manage Albums', 'wp-photo-album-plus' ) . '</h1>
1719
+ <div style="clear:both"></div>';
1720
 
1721
  // The Create new album button
1722
  if ( wppa_can_create_top_album() ) {
1770
  type="button"
1771
  class="button-secundary"
1772
  id="wppa-open-all"
1773
+ style="display:inline"
1774
  onclick=" jQuery(\'#wppa-close-all\').css(\'display\',\'inline\');
1775
  jQuery(this).css(\'display\',\'none\');
1776
  jQuery(\'.wppa-alb-onoff\').css(\'display\',\'\');
1783
  type="button"
1784
  class="button-secundary"
1785
  id="wppa-close-all"
1786
+ style="display:inline"
1787
  onclick=" jQuery(\'#wppa-open-all\').css(\'display\',\'inline\');
1788
  jQuery(this).css(\'display\',\'none\');
1789
  jQuery(\'.wppa-alb-onoff\').css(\'display\',\'none\');
1806
  $result .= '
1807
  <option value="" ></option>';
1808
  foreach( $opts as $opt ) {
1809
+ $result .= '<option value="' . $opt . '" ' . ( $f == $opt ? 'selected ' : '' ) . '>' . $opt . '</option>';
1810
  }
1811
  $result .=
1812
  '</select>';
1993
  }
1994
  }
1995
 
1996
+ $downimg = '<img src="'.wppa_get_imgdir().'down.png" alt="down" style="height:12px;position:relative;top:2px" />';
1997
+ $upimg = '<img src="'.wppa_get_imgdir().'up.png" alt="up" style="height:12px;position:relative;top:2px" />';
1998
  $show_nl = wppa_opt( 'user_create_max_level' ) != '99';
1999
  $url = get_admin_url().'admin.php?page=wppa_admin_menu&amp;order_by=';
2000
 
2068
  <td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
2069
  ( current_user_can( 'wppa_upload' ) ? '<td>' . __( 'Upload', 'wp-photo-album-plus' ) . '</td>' : '' ) .
2070
  ( current_user_can( 'wppa_import' ) ? '<td>' . __( 'Import', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2071
+ <td>' . __( 'Delete', 'wp-photo-album-plus' ) . '</td>' .
2072
  ( wppa_can_create_album() ? '<td>' . __( 'Create', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2073
  </tr>';
2074
  $result .= $thead_body;
2117
  <td>' . ( $mayseq ? '<a href="' . $url . '&amp;seq=1" class="wppaedit">' . __( 'Seq', 'wp-photo-album-plus' ) . '</a>' : '' ) . '</td>
2118
  <td>' . ( $covid ? '<a href="' . $curl . '" class="wppaedit">' . __( 'CovImg', 'wp-photo-album-plus' ) . '</a>' : '' ) . '</td>';
2119
  if ( current_user_can( 'wppa_upload' ) ) {
2120
+ $result .= '<td><a href="' . get_admin_url() . '/admin.php?page=wppa_upload_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Upload', 'wp-photo-album-plus' ) . '</a></td>';
2121
  }
2122
  if ( current_user_can( 'wppa_import' ) ) {
2123
+ $result .= '<td><a href="' . get_admin_url() . '/admin.php?page=wppa_import_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Import', 'wp-photo-album-plus' ) . '</a></td>';
2124
  }
2125
  $result .= '
2126
  <td><a href="' . $delurl . '" class="wppadelete">' . __( 'Delete', 'wp-photo-album-plus' ) . '</a></td>';
2318
  }
2319
  }
2320
 
2321
+ $downimg = '<img src="'.wppa_get_imgdir().'down.png" alt="down" style="height:12px;position:relative;top:2px" />';
2322
+ $upimg = '<img src="'.wppa_get_imgdir().'up.png" alt="up" style="height:12px;position:relative;top:2px" />';
2323
  $url = get_admin_url() . 'admin.php?page=wppa_admin_menu&amp;order_by=';
2324
 
2325
  $result = wppa_album_table_pagination( $page, $count ) . '
2326
+ <table class="widefat wppa-table wppa-setting-table" style="margin-top:12px">
2327
  <thead>';
2328
  $thead_body = '
2329
  <tr>
2393
  <td>' . __( 'CovImg', 'wp-photo-album-plus' ) . '</td>' .
2394
  ( current_user_can( 'wppa_upload' ) ? '<td>' . __( 'Upload', 'wp-photo-album-plus' ) . '</td>' : '' ) .
2395
  ( current_user_can( 'wppa_import' ) ? '<td>' . __( 'Import', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2396
+ <td>' . __( 'Delete', 'wp-photo-album-plus' ) . '</td>' .
2397
  ( wppa_can_create_album() ? '<td>' . __( 'Create', 'wp-photo-album-plus' ) . '</td>' : '' ) . '
2398
  </tr>';
2399
  $result .= $thead_body;
2597
 
2598
  $link = get_admin_url().'admin.php?page=wppa_admin_menu&album-page-no=';
2599
 
2600
+ $result .= '<div style="line-height:1.7em">';
2601
 
2602
  // The links
2603
  if ( $page != '1' ) {
2607
  $p = '1';
2608
  while ( $p <= $npages ) {
2609
  if ( $p == $page ) {
2610
+ $result .= '<span style="padding:0 0,25em">' . $page . '</span> ';
2611
  }
2612
  else {
2613
  $result .= '<a' .
2660
  if ( $alt ) $class .= ' alternate';
2661
  $style = '';
2662
  if ( $pendcount ) $style .= 'background-color:#ffdddd; ';
2663
+ if ( $parent != '0' && $parent != '-1' ) $style .= 'display:none';
2664
 
2665
  $onclickon =
2666
  'jQuery(\'.wppa-alb-on-'.$id.'\').css(\'display\',\'\');' .
2687
  // Fillers before the arrow
2688
  $i = 0;
2689
  while ( $i < $indent ) {
2690
+ $result .= '<td style="padding:2px"></td>';
2691
  $i++;
2692
  }
2693
 
2694
  // The arrow image td element
2695
  $result .= '
2696
+ <td style="padding:2px; text-align:center">';
2697
 
2698
  // Only if the album has children the arrow will show up
2699
  if ( $haschildren ) {
2701
  <img
2702
  id="alb-arrow-off-' . $id . '"
2703
  class="alb-arrow-off"
2704
+ style="height:16px;display:none"
2705
  src="' . wppa_get_imgdir() . 'backarrow.gif' . '"
2706
  onclick="' . $onclickoff . '"
2707
  title="' . esc_attr( __( 'Collapse subalbums', 'wp-photo-album-plus' ) ) . '"
2736
 
2737
  // The album id td element
2738
  $result .= '
2739
+ <td style="padding:2px">' . $id . ( $show_nl ? '(' . wppa_get_nesting_level( $album['id'] ) . ')' : '' ) . '</td>';
2740
 
2741
  // Fillers after the arrow
2742
  $i = $indent;
2743
  while ( $i < 5 ) {
2744
+ $result .= '<td style="padding:2px"></td>';
2745
  $i++;
2746
  }
2747
 
2785
  $result .= '<td></td>';
2786
  }
2787
  if ( current_user_can( 'wppa_upload' ) ) {
2788
+ $result .= '<td><a href="' . get_admin_url() . '/admin.php?page=wppa_upload_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Upload', 'wp-photo-album-plus' ) . '</a></td>';
2789
  }
2790
  if ( current_user_can( 'wppa_import' ) ) {
2791
+ $result .= '<td><a href="' . get_admin_url() . '/admin.php?page=wppa_import_photos&wppa-set-album=' . $id . '" class="wppaedit" >' . __( 'Import', 'wp-photo-album-plus' ) . '</a></td>';
2792
  }
2793
  if ( wppa_user_is( 'administrator' ) || wppa_get_user() == $album['owner'] ) {
2794
  $url = wppa_ea_url( $id, 'del' );
3077
  <tbody>
3078
  <tr>
3079
  <td>
3080
+ <div style="background-color:green;height:12px"></div>
3081
  </td>
3082
  <td>' .
3083
  __( 'Up to date', 'wp-photo-album-plus' ) . '
3085
  </tr>
3086
  <tr>
3087
  <td>
3088
+ <div style="background-color:yellow;height:12px"></div>
3089
  </td>
3090
  <td>' .
3091
  __( 'Updating', 'wp-photo-album-plus' ) . '
3093
  </tr>
3094
  <tr>
3095
  <td>
3096
+ <div style="background-color:orange;height:12px"></div>
3097
  </td>
3098
  <td>' .
3099
  __( 'Needs update', 'wp-photo-album-plus' ) . '
3101
  </tr>
3102
  <tr>
3103
  <td>
3104
+ <div style="background-color:red;height:12px"></div>
3105
  </td>
3106
  <td>' .
3107
  __( 'Error', 'wp-photo-album-plus' ) . '
3245
 
3246
  $result = '
3247
  <br>
3248
+ <div id="wppa-progbar" style="width:100%;height:12px">';
3249
 
3250
  $c = count( $albums );
3251
  $l = 100 / $c;
3254
  $result .= '
3255
  <div
3256
  id="wppa-pb-' . $i . '"
3257
+ style="display:inline;float:left;background-color:green;height:12px;width:' . $l . '%"
3258
  >
3259
  </div>';
3260
  $i++;
3264
 
3265
  <br>
3266
 
3267
+ <div class="widefat" style="max-width:600px">
3268
  <div id="sortable-albums">';
3269
 
3270
  foreach ( $albums as $album ) {
3276
  style="background-color:#eeeeee;cursor:move;"
3277
  >
3278
  <div
3279
+ style="height:100%;width:25%;float:left;text-align:center;overflow:hidden"
3280
  >';
3281
  if ( wppa_is_video( $cover_photo_id ) ) {
3282
  $result .=
3298
  $albid = strval( intval( $album['id'] ) );
3299
  $result .= '
3300
  </div>
3301
+ <div style="height:100%;width:40%;float:left;font-size:12px;overflow:hidden">
3302
  <b>' . htmlspecialchars( wppa_get_album_name( $albid ) ) . '</b>
3303
  <br>' .
3304
  wppa_get_album_desc( $albid ) . '
3305
  </div>
3306
+ <div style="float:right;width:10%">
3307
  <table>
3308
  <tr>
3309
  <td>
3310
  <img
3311
  src="' . wppa_get_imgdir( 'up.png' ) . '"
3312
  title="' . esc_attr( __( 'To top', 'wp-photo-album-plus' ) ) . '"
3313
+ style="cursor:pointer"
3314
  onclick="
3315
  jQuery( \'#albumitem-' . $albid . '\' ).parent().prepend(jQuery( \'#albumitem-' . $albid . '\' ));
3316
  wppaDoRenumber();"
3322
  <img
3323
  src="' . wppa_get_imgdir( 'up.png' ) . '"
3324
  title="' . esc_attr( __( 'One up', 'wp-photo-album-plus' ) ) . '"
3325
+ style="cursor:pointer;width:24px"
3326
  onclick="
3327
  jQuery( \'#albumitem-' . $albid . '\' ).prev().before(jQuery( \'#albumitem-' . $albid . '\' ));
3328
  wppaDoRenumber();"
3334
  <img
3335
  src="' . wppa_get_imgdir( 'down.png' ) . '"
3336
  title="' . esc_attr( __( 'One down', 'wp-photo-album-plus' ) ) . '"
3337
+ style="cursor:pointer;width:24px"
3338
  onclick="
3339
  jQuery( \'#albumitem-' . $albid . '\' ).next().after(jQuery( \'#albumitem-' . $albid . '\' ));
3340
  wppaDoRenumber();"
3346
  <img
3347
  src="' . esc_url( wppa_get_imgdir( 'down.png' ) ) . '"
3348
  title="' . esc_attr( __( 'To bottom', 'wp-photo-album-plus' ) ) . '"
3349
+ style="cursor:pointer"
3350
  onclick="
3351
  jQuery( \'#albumitem-' . $albid . '\' ).parent().append(jQuery( \'#albumitem-' . $albid . '\' ));
3352
  wppaDoRenumber();"
3355
  </tr>
3356
  </table>
3357
  </div>
3358
+ <div style="float:right; width:25%">
3359
  <span> ' . __( 'Id:' , 'wp-photo-album-plus' ) . ' ' . $albid . '</span>
3360
  <span> - ' . __( 'Ord:' , 'wp-photo-album-plus' ) . '</span>
3361
  <span id="wppa-album-seqno-' . $albid . '" > ' . $album['a_order'] . '</span>
3362
  <br>
3363
+ <a href="' . wppa_ea_url( $albid ) . '" style="position:absolute;bottom:0">' . __( 'Edit', 'wp-photo-album-plus' ) . '</a>
3364
  </div>
3365
  <input type="hidden" id="album-nonce-' . $albid . '" value="' . wp_create_nonce( 'wppa-nonce_' . $albid ) . '" />
3366
  <input type="hidden" class="wppa-sort-item-albums" value="' . $albid . '" />
3384
  $result = '
3385
  <div class="wrap" >
3386
  <img src="' . WPPA_URL . '/img/magnifier-large.png' . '" />
3387
+ <h1 style="display:inline">' . __( 'Search photos', 'wp-photo-album-plus' ) . '</h1>
3388
+ <div style="clear:both">&nbsp;</div>
3389
 
3390
+ <table class="wppa-table widefat wppa-setting-table" style="margin-top:12px">
3391
  <thead>
3392
  </thead>
3393
  <colgroup>
3394
+ <col style="width:0px; color:transparent">
3395
  <col style="width:5%" >
3396
  <col>
3397
  <col>
3398
  <col>
3399
  <col>
3400
+ <col style="width:0px">
3401
+ <col style="width:5%">
3402
+ <col style="width:5%">
3403
+ <col style="width:5%">
3404
+ <col style="width:0px">
3405
+ <col style="width:0px">
3406
+ <col style="width:0px">
3407
+ <col style="width:0px">
3408
+ <col style="width:0px">
3409
+ <col style="width:0px">
3410
  </colgroup>
3411
  <tbody>' .
3412
  wppa_search_edit( false ) . '
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -306,7 +306,7 @@ global $wpdb;
306
  // Close the Cover text frame
307
  if ( $photo_pos == 'left' ) {
308
  wppa_out( '</div>' .
309
- '<div style="clear:both;" ></div>'
310
  );
311
  }
312
 
@@ -1189,11 +1189,10 @@ global $wpdb;
1189
  $count = $treecounts['treephotoviews'];
1190
  $title = __( 'Number of photo views in this album and its sub-albums', 'wp-photo-album-plus' );
1191
  }
1192
- wppa_out( '<div' .
1193
- ' class="wppa-album-cover-viewcount"' .
1194
- ' title="' . esc_attr( $title ) . '"' .
1195
- ' style="cursor:pointer;"' .
1196
- ' >' .
1197
  __( 'Views:', 'wp-photo-album-plus' ) . ' ' . $count .
1198
  '</div>' );
1199
  }
@@ -1738,7 +1737,7 @@ function wppa_album_cover_view_link(
1738
  if ( $href_content == '#' ) {
1739
  wppa_out(
1740
  '<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
1741
- esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer;">'
1742
  );
1743
  }
1744
  else {
@@ -1746,7 +1745,7 @@ function wppa_album_cover_view_link(
1746
  '<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
1747
  $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
1748
  esc_attr( stripslashes( __( $album['name'] ) ) ) .
1749
- '" style="cursor:pointer;" >'
1750
  );
1751
  }
1752
 
@@ -1811,7 +1810,7 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1811
  if ( $href_title == '#' ) {
1812
  wppa_out(
1813
  '<a onclick="' . $onclick_title . '" title="' . $title .
1814
- '" class="wppa-title" style="cursor:pointer;" >' .
1815
  $album_title . '</a></h2>'
1816
  );
1817
  }
@@ -1843,7 +1842,7 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1843
  wppa_out( '
1844
  <span
1845
  class="wppa-cover-pcount"
1846
- style="cursor:pointer;"
1847
  title="' . esc_attr( __( 'Number of items', 'wp-photo-album-plus' ) ) . '"
1848
  >
1849
  (' . $cnt . ')
@@ -1908,7 +1907,7 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1908
  href="' . $href . '"
1909
  target="_blank"
1910
  class="wppa-cover-album-id"
1911
- style="cursor:pointer;"
1912
  title="' . esc_attr( __( 'Edit Album', 'wp-photo-album-plus' ) ) . '"
1913
  >
1914
  (' . $alb . ')
@@ -1918,7 +1917,7 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1918
  $album_id = '
1919
  <span
1920
  class="wppa-cover-album-id"
1921
- style="cursor:pointer;"
1922
  title="' . esc_attr( __( 'Album id', 'wp-photo-album-plus' ) ) . '"
1923
  >
1924
  (' . $alb . ')
@@ -2044,7 +2043,7 @@ global $wpdb;
2044
  );
2045
  }
2046
  else {
2047
- wppa_out( '<div style="clear:both;" ></div>' );
2048
  }
2049
 
2050
  // Process the sub-albums
@@ -2115,13 +2114,13 @@ global $wpdb;
2115
  case 'list':
2116
  case 'recursivelist':
2117
  if ( $link_type == 'none' ) {
2118
- wppa_out( '<li style="margin:0;cursor:pointer;" >' .
2119
  wppa_get_album_name( $album['id'] ) .
2120
  '</li>'
2121
  );
2122
  }
2123
  else {
2124
- wppa_out( '<li style="margin:0;cursor:pointer;" >' .
2125
  '<a' .
2126
  ( $href_content ? ' href="' . $href_content . '"' : '' ) .
2127
  ( $onclick_content ? ' onclick="' . $onclick_content . '"' : '' ) .
@@ -2240,7 +2239,7 @@ function wppa_the_slideshow_browse_link( $photocount, $href_slideshow, $onclick_
2240
  '<a class="wppa-album-cover-link"
2241
  onclick="' . $onclick_slideshow . '"
2242
  title="' . $label . '"
2243
- style="cursor:pointer;"
2244
  >' .
2245
  $label .
2246
  '</a>'
@@ -2253,7 +2252,7 @@ function wppa_the_slideshow_browse_link( $photocount, $href_slideshow, $onclick_
2253
  target="' . $target . '"
2254
  onclick="' . $onclick_slideshow . '"
2255
  title="' . $label . '"
2256
- style="cursor:pointer;"
2257
  >' .
2258
  $label .
2259
  '</a>'
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
306
  // Close the Cover text frame
307
  if ( $photo_pos == 'left' ) {
308
  wppa_out( '</div>' .
309
+ '<div style="clear:both"></div>'
310
  );
311
  }
312
 
1189
  $count = $treecounts['treephotoviews'];
1190
  $title = __( 'Number of photo views in this album and its sub-albums', 'wp-photo-album-plus' );
1191
  }
1192
+ wppa_out( '<div
1193
+ class="wppa-album-cover-viewcount"
1194
+ title="' . esc_attr( $title ) . '"
1195
+ style="cursor:pointer">' .
 
1196
  __( 'Views:', 'wp-photo-album-plus' ) . ' ' . $count .
1197
  '</div>' );
1198
  }
1737
  if ( $href_content == '#' ) {
1738
  wppa_out(
1739
  '<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
1740
+ esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer">'
1741
  );
1742
  }
1743
  else {
1745
  '<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
1746
  $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus' ) . ' ' .
1747
  esc_attr( stripslashes( __( $album['name'] ) ) ) .
1748
+ '" style="cursor:pointer">'
1749
  );
1750
  }
1751
 
1810
  if ( $href_title == '#' ) {
1811
  wppa_out(
1812
  '<a onclick="' . $onclick_title . '" title="' . $title .
1813
+ '" class="wppa-title" style="cursor:pointer">' .
1814
  $album_title . '</a></h2>'
1815
  );
1816
  }
1842
  wppa_out( '
1843
  <span
1844
  class="wppa-cover-pcount"
1845
+ style="cursor:pointer"
1846
  title="' . esc_attr( __( 'Number of items', 'wp-photo-album-plus' ) ) . '"
1847
  >
1848
  (' . $cnt . ')
1907
  href="' . $href . '"
1908
  target="_blank"
1909
  class="wppa-cover-album-id"
1910
+ style="cursor:pointer"
1911
  title="' . esc_attr( __( 'Edit Album', 'wp-photo-album-plus' ) ) . '"
1912
  >
1913
  (' . $alb . ')
1917
  $album_id = '
1918
  <span
1919
  class="wppa-cover-album-id"
1920
+ style="cursor:pointer"
1921
  title="' . esc_attr( __( 'Album id', 'wp-photo-album-plus' ) ) . '"
1922
  >
1923
  (' . $alb . ')
2043
  );
2044
  }
2045
  else {
2046
+ wppa_out( '<div style="clear:both"></div>' );
2047
  }
2048
 
2049
  // Process the sub-albums
2114
  case 'list':
2115
  case 'recursivelist':
2116
  if ( $link_type == 'none' ) {
2117
+ wppa_out( '<li style="margin:0;cursor:pointer">' .
2118
  wppa_get_album_name( $album['id'] ) .
2119
  '</li>'
2120
  );
2121
  }
2122
  else {
2123
+ wppa_out( '<li style="margin:0;cursor:pointer">' .
2124
  '<a' .
2125
  ( $href_content ? ' href="' . $href_content . '"' : '' ) .
2126
  ( $onclick_content ? ' onclick="' . $onclick_content . '"' : '' ) .
2239
  '<a class="wppa-album-cover-link"
2240
  onclick="' . $onclick_slideshow . '"
2241
  title="' . $label . '"
2242
+ style="cursor:pointer"
2243
  >' .
2244
  $label .
2245
  '</a>'
2252
  target="' . $target . '"
2253
  onclick="' . $onclick_slideshow . '"
2254
  title="' . $label . '"
2255
+ style="cursor:pointer"
2256
  >' .
2257
  $label .
2258
  '</a>'
wppa-album-navigator-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display album names linking to content
6
- * Version 8.1.09.001
7
  */
8
 
9
  class AlbumNavigatorWidget extends WP_Widget {
@@ -68,7 +68,7 @@ class AlbumNavigatorWidget extends WP_Widget {
68
  else {
69
  $widget_content .= $this->do_album_navigator( $parent, $page, $skip, '', '', $cache );
70
  }
71
- $widget_content .= '<div style="clear:both" data-wppa="yes" ></div>';
72
  }
73
 
74
  // Output
@@ -78,7 +78,7 @@ class AlbumNavigatorWidget extends WP_Widget {
78
  }
79
  $result .= $widget_content . $after_widget;
80
 
81
- wppa_echo( wppa_compress_html( $result ) );
82
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
83
 
84
  // Cache?
@@ -250,7 +250,7 @@ class AlbumNavigatorWidget extends WP_Widget {
250
  }
251
  else {
252
  $result .= '
253
- <span style="padding:0;margin:0 2px 0 -4px;cursor:default;font-weight:bold;" >' .
254
  ( $a == $ca ? '&raquo;' : '&nbsp;' ) .
255
  '</span>';
256
  }
@@ -364,7 +364,7 @@ class AlbumNavigatorWidget extends WP_Widget {
364
  $result .= '</ul>';
365
  }
366
  $level--;
367
- return wppa_compress_html( $result );
368
  }
369
 
370
  // Set defaults
3
  * Package: wp-photo-album-plus
4
  *
5
  * display album names linking to content
6
+ * Version 8.1.09.003
7
  */
8
 
9
  class AlbumNavigatorWidget extends WP_Widget {
68
  else {
69
  $widget_content .= $this->do_album_navigator( $parent, $page, $skip, '', '', $cache );
70
  }
71
+ $widget_content .= '<div style="clear:both" data-wppa="yes"></div>';
72
  }
73
 
74
  // Output
78
  }
79
  $result .= $widget_content . $after_widget;
80
 
81
+ wppa_echo( $result );
82
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
83
 
84
  // Cache?
250
  }
251
  else {
252
  $result .= '
253
+ <span style="padding:0;margin:0 2px 0 -4px;cursor:default;font-weight:bold">' .
254
  ( $a == $ca ? '&raquo;' : '&nbsp;' ) .
255
  '</span>';
256
  }
364
  $result .= '</ul>';
365
  }
366
  $level--;
367
+ return $result;
368
  }
369
 
370
  // Set defaults
wppa-album-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail albums
6
- * Version 8.1.09.001
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -171,19 +171,17 @@ class AlbumWidget extends WP_Widget {
171
  if ( $imgcount || ! wppa_checked( $instance['skip'] ) ) {
172
 
173
  $widget_content .=
174
- '<div' .
175
- ' class="wppa-widget"' .
176
- ' style="' .
177
  'width:' . strval( intval( $maxw ) ) . 'px;' .
178
  'height:' . strval( intval( $maxh ) ) . 'px;' .
179
  'margin:4px;' .
180
  'display:inline;' .
181
  'text-align:center;' .
182
  'float:left;' .
183
- 'overflow:hidden;' .
184
- '"' .
185
- ' data-wppa="yes"' .
186
- ' >';
187
 
188
  if ( $link ) {
189
  if ( $link['is_url'] ) { // Is a href
@@ -191,8 +189,7 @@ class AlbumWidget extends WP_Widget {
191
  <a
192
  href="' . esc_url( $link['url'] ) . '"
193
  title="' . esc_attr( $title ) . '"
194
- target="' . esc_attr( $link['target'] ) . '"
195
- >';
196
 
197
  // Video?
198
  if ( $imageid && wppa_is_video( $image['id'] ) ) {
@@ -345,7 +342,7 @@ class AlbumWidget extends WP_Widget {
345
 
346
  if ( wppa_checked( $instance['name'] ) ) {
347
  $widget_content .= '
348
- <span style="font-size:' . strval( intval( wppa_opt( 'fontsize_widget_thumb' ) ) ) . 'px; min-height:100%;" >' .
349
  htmlspecialchars( __( stripslashes( $album['name'] ) ) ) . '
350
  </span>';
351
  }
@@ -372,7 +369,7 @@ class AlbumWidget extends WP_Widget {
372
  }
373
  $result .= $widget_content . $after_widget;
374
 
375
- wppa_echo( wppa_compress_html( $result ) );
376
 
377
  // Cache?
378
  if ( $cache ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail albums
6
+ * Version 8.1.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
171
  if ( $imgcount || ! wppa_checked( $instance['skip'] ) ) {
172
 
173
  $widget_content .=
174
+ '<div
175
+ class="wppa-widget"
176
+ style="' .
177
  'width:' . strval( intval( $maxw ) ) . 'px;' .
178
  'height:' . strval( intval( $maxh ) ) . 'px;' .
179
  'margin:4px;' .
180
  'display:inline;' .
181
  'text-align:center;' .
182
  'float:left;' .
183
+ 'overflow:hidden"
184
+ data-wppa="yes">';
 
 
185
 
186
  if ( $link ) {
187
  if ( $link['is_url'] ) { // Is a href
189
  <a
190
  href="' . esc_url( $link['url'] ) . '"
191
  title="' . esc_attr( $title ) . '"
192
+ target="' . esc_attr( $link['target'] ) . '">';
 
193
 
194
  // Video?
195
  if ( $imageid && wppa_is_video( $image['id'] ) ) {
342
 
343
  if ( wppa_checked( $instance['name'] ) ) {
344
  $widget_content .= '
345
+ <span style="font-size:' . strval( intval( wppa_opt( 'fontsize_widget_thumb' ) ) ) . 'px; min-height:100%">' .
346
  htmlspecialchars( __( stripslashes( $album['name'] ) ) ) . '
347
  </span>';
348
  }
369
  }
370
  $result .= $widget_content . $after_widget;
371
 
372
+ wppa_echo( $result );
373
 
374
  // Cache?
375
  if ( $cache ) {
wppa-bestof-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the best rated photos
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -78,7 +78,7 @@ class BestOfWidget extends WP_Widget {
78
  'cache' => 'no',
79
  ) );
80
 
81
- $widget_content .= '<div style="clear:both" data-wppa="yes" ></div>';
82
 
83
  // Output
84
  $result = "\n" . $before_widget;
@@ -87,7 +87,7 @@ class BestOfWidget extends WP_Widget {
87
  }
88
  $result .= $widget_content . $after_widget;
89
 
90
- wppa_echo( wppa_compress_html( $result ) );
91
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
92
 
93
  // Cache?
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the best rated photos
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
78
  'cache' => 'no',
79
  ) );
80
 
81
+ $widget_content .= '<div style="clear:both" data-wppa="yes"></div>';
82
 
83
  // Output
84
  $result = "\n" . $before_widget;
87
  }
88
  $result .= $widget_content . $after_widget;
89
 
90
+ wppa_echo( $result );
91
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
92
 
93
  // Cache?
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -239,7 +239,7 @@ global $wpdb;
239
  $result .= '
240
  <tr>
241
  <td class="wppa-contest-table-photo" >
242
- <a href="' . wppa_get_hires_url( $id ) . '" data-rel="wppa" data-wppa="yes" >
243
  <img src="' . wppa_get_photo_url( $id ) . '" alt="' . esc_attr( $photo['name'] ) . '" >
244
  </a>
245
  <br> ';
@@ -260,7 +260,7 @@ global $wpdb;
260
  $result .= '
261
  <a
262
  title="' . esc_attr( $comment ) . '"
263
- style="cursor:pointer;"
264
  onclick="alert(\'' . esc_js( $comment ) . '\')"
265
  >' . wppa_get_user_by( 'id', $rating['userid'] )->display_name . '
266
  </a>
@@ -307,7 +307,7 @@ global $wpdb;
307
  switch ( $this_rank ) {
308
  case '1':
309
  $result .= '
310
- <span style="font-size:2em;" >1</span>&nbsp;
311
  <img
312
  src="' . WPPA_URL . '/img/medal_gold_' . wppa_opt( 'medal_color' ) .'.png"
313
  alt="gold medal"
@@ -316,7 +316,7 @@ global $wpdb;
316
  break;
317
  case '2':
318
  $result .= '
319
- <span style="font-size:1.75em;" >2</span>&nbsp;
320
  <img
321
  src="' . WPPA_URL . '/img/medal_silver_' . wppa_opt( 'medal_color' ) .'.png"
322
  alt="silver medal"
@@ -325,7 +325,7 @@ global $wpdb;
325
  break;
326
  case '3':
327
  $result .= '
328
- <span style="font-size:1.5em;" >3</span>
329
  <img
330
  src="' . WPPA_URL . '/img/medal_bronze_' . wppa_opt( 'medal_color' ) .'.png"
331
  alt="bronze medal"
@@ -346,9 +346,9 @@ global $wpdb;
346
  $result .= '
347
  </tbody>
348
  </table>
349
- <br><div style="clear:both;" ></div>';
350
 
351
- return wppa_compress_html( $result );
352
  }
353
 
354
  // Should comment be visible on contest display?
@@ -485,7 +485,7 @@ global $wppa_session;
485
  $result .= '
486
  <div
487
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
488
- style="width:' . $w . '%;float:left;"
489
  >';
490
 
491
  $cats = wppa_get_catlist();
@@ -533,7 +533,7 @@ global $wppa_session;
533
  $result .= '
534
  <div
535
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
536
- style="width:' . $w . '%;float:left;"
537
  >';
538
 
539
  // Caption
@@ -565,13 +565,13 @@ global $wppa_session;
565
  $result .= '
566
  <div
567
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
568
- style="width:' . $w . '%;float:left;"
569
  >';
570
 
571
  // Toptext
572
  $result .=
573
  wppa_opt( 'search_toptext' ) . ( $any_caption ? '&nbsp;' : '' ) . '
574
- <div style="position:relative;" >';
575
 
576
  // form core
577
  $form_core = '';
@@ -682,7 +682,7 @@ global $wppa_session;
682
  </div>';
683
 
684
  $result .= '
685
- <div style="clear:both;" ></div>';
686
 
687
  // The hidden inputs and sub/root checkboxes
688
  if ( $force_root ) {
@@ -703,7 +703,7 @@ global $wppa_session;
703
  if ( $rt && ! $force_root ) {
704
  $result .= '
705
  <div style="clear:both" ></div>
706
- <small class="wppa-search-root" style="margin:0;padding:4px 0 0;" >' .
707
  wppa_display_root( $root ) . '
708
  </small>
709
  <div style="clear:both;' . $fontsize . '" >
@@ -714,7 +714,7 @@ global $wppa_session;
714
  if ( $sub ) {
715
  $result .= '
716
  <div style="clear:both" ></div>
717
- <small class="wppa-display-searchstring" style="margin:0;padding:4px 0 0;" >' .
718
  $wppa_session['display_searchstring'] . '
719
  </small>
720
  <div style="clear:both;' . $fontsize . '" >
@@ -731,7 +731,7 @@ global $wppa_session;
731
  $result .= '
732
  </form>';
733
 
734
- return wppa_compress_html( $result );
735
  }
736
 
737
  // The supersearch box
@@ -927,7 +927,7 @@ global $photos_used;
927
  <select
928
  id="' . $id . '"
929
  name="wppa-ss-pa"
930
- style="margin:2px;padding:0;vertical-align:top;float:left;"
931
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
932
  onwheel="event.stopPropagation();"
933
  size="2"
@@ -952,7 +952,7 @@ global $photos_used;
952
  <select
953
  id="' . $id . '"
954
  name="wppa-ss-albumopt"
955
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
956
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
957
  onwheel="event.stopPropagation();"
958
  size="' . ( ! empty( $catlist ) ? '3' : '2' ) . '"
@@ -988,7 +988,7 @@ global $photos_used;
988
  <select
989
  id="' . $id . '"
990
  name="wppa-ss-albumcat"
991
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
992
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
993
  onwheel="event.stopPropagation();"
994
  size="' . ( min( count( $catlist ), '6' ) ) . '"
@@ -1018,7 +1018,7 @@ global $photos_used;
1018
  <select
1019
  id="' . $id . '"
1020
  name="wppa-ss-albumname"
1021
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1022
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1023
  onwheel="event.stopPropagation();"
1024
  size="' . ( min( count( $albums ), '6' ) ) . '"
@@ -1043,7 +1043,7 @@ global $photos_used;
1043
  <select
1044
  id="' . $id . '"
1045
  name="wppa-ss-albumtext"
1046
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1047
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1048
  onwheel="event.stopPropagation();"
1049
  size="' . ( min( count( $albumtxt ), '6' ) ) . '"
@@ -1078,7 +1078,7 @@ global $photos_used;
1078
  <select
1079
  id="wppa-ss-photoopt-' . $mocc . '"
1080
  name="wppa-ss-photoopt"
1081
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1082
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1083
  onwheel="event.stopPropagation();"
1084
  size="' . $n . '"
@@ -1141,7 +1141,7 @@ global $photos_used;
1141
  <select
1142
  id="' . $id . '"
1143
  name="wppa-ss-photoname"
1144
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1145
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1146
  onwheel="event.stopPropagation();"
1147
  size="' . min( count( $photonames ), '6' ) . '"
@@ -1166,7 +1166,7 @@ global $photos_used;
1166
  <select
1167
  id="' . $id . '"
1168
  name="wppa-ss-photoowner"
1169
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1170
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1171
  onwheel="event.stopPropagation();"
1172
  size="' . ( min( count( $ownerlist ), '6' ) ) . '"
@@ -1192,7 +1192,7 @@ global $photos_used;
1192
  <select
1193
  id="' . $id . '"
1194
  name="wppa-ss-phototag"
1195
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1196
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1197
  onwheel="event.stopPropagation();"
1198
  size="' . ( min( count( $taglist ), '6' ) ) . '"
@@ -1222,7 +1222,7 @@ global $photos_used;
1222
  <select
1223
  id="' . $id . '"
1224
  name="wppa-ss-phototext"
1225
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1226
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1227
  onwheel="event.stopPropagation();"
1228
  size="' . ( min( count( $phototxt ), '6' ) ) . '"
@@ -1251,7 +1251,7 @@ global $photos_used;
1251
  <select
1252
  id="wppa-ss-photoiptc-' . $mocc . '"
1253
  name="wppa-ss-photoiptc"
1254
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1255
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1256
  onwheel="event.stopPropagation();"
1257
  size="' . min( count( $iptclist ), '6' ) . '"
@@ -1276,7 +1276,7 @@ global $photos_used;
1276
  <select
1277
  id="wppa-ss-iptcopts-' . $mocc . '"
1278
  name="wppa-ss-iptcopts"
1279
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1280
  size="6"
1281
  onchange="wppaSuperSearchSelect(' . $mocc . ')"
1282
  onwheel="event.stopPropagation();"
@@ -1288,7 +1288,7 @@ global $photos_used;
1288
  <select
1289
  id="wppa-ss-photoexif-' . $mocc . '"
1290
  name="wppa-ss-photoexif"
1291
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1292
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1293
  onwheel="event.stopPropagation();"
1294
  size="' . min( count( $exiflist ), '6' ) . '"
@@ -1342,7 +1342,7 @@ global $photos_used;
1342
  <select
1343
  id="wppa-ss-exifopts-' . $mocc . '"
1344
  name="wppa-ss-exifopts"
1345
- style="display:none;margin:2px;padding:0;vertical-align:top;float:left;"
1346
  size="6"
1347
  onchange="wppaSuperSearchSelect(' . $mocc . ')"
1348
  onwheel="event.stopPropagation();"
@@ -1372,7 +1372,7 @@ global $photos_used;
1372
  $result .= '
1373
  </form>';
1374
 
1375
- return $result; // wppa_compress_html( $result );
1376
  }
1377
 
1378
  // Superview box
@@ -1408,7 +1408,7 @@ global $wppa_session;
1408
  <div>
1409
  <form action="' . $url . '" method = "get">
1410
  <label>' . __( 'Album:', 'wp-photo-album-plus' ) . '</label>
1411
- <select name="wppa-album" style="clear:left;" >' .
1412
  wppa_album_select_a( array( 'selected' => $wppa_session['superalbum'],
1413
  'addpleaseselect' => true,
1414
  'root' => $album_root,
@@ -1439,7 +1439,7 @@ global $wppa_session;
1439
  </form>
1440
  </div>';
1441
 
1442
- return wppa_compress_html( $result );
1443
  }
1444
 
1445
  // The admins choice box
@@ -1525,7 +1525,7 @@ function wppa_get_admins_choice_html( $admins ) {
1525
  $result .= '
1526
  <a
1527
  onclick="wppaAjaxDeleteMyZip();"
1528
- style="float:right;cursor:pointer;"
1529
  >' .
1530
  __('Delete', 'wp-photo-album-plus' ) . '
1531
  </a>';
@@ -1927,7 +1927,7 @@ global $wppa_locale;
1927
  if ( wppa_switch( 'share_qr' ) && $key != 'thumb' ) {
1928
  $src = wppa_create_qrcode_cache( $share_url, '80' );
1929
  $qr = '
1930
- <div style="float:left; padding:2px;" >
1931
  <img
1932
  src="' . $src . '"
1933
  title="' . esc_attr( $share_url ) . '"
@@ -2015,7 +2015,7 @@ global $wppa_locale;
2015
  if ( strlen( $desc ) > 500 ) $desc = substr( $desc, 0, 495 ).'...';
2016
  if ( wppa_switch( 'share_pinterest' ) ) {
2017
  $pi = '
2018
- <div class="wppa-share-icon" style="float:left; padding:0 2px;" >
2019
  <a
2020
  title="' . sprintf( __( 'Share %s on Pinterest' ,'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"
2021
  href="http://pinterest.com/pin/create/button/?url=' . urlencode( $share_url ) .
@@ -2051,7 +2051,7 @@ global $wppa_locale;
2051
  // LinkedIn
2052
  if ( wppa_switch( 'share_linkedin' ) && $key != 'thumb' && $key != 'lightbox' ) {
2053
  $li = '
2054
- <div class="wppa-share-icon" style="float:left; padding:0 2px;" >
2055
  <a
2056
  title="' . sprintf( __( 'Share %s on LinkedIn' ,'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"
2057
  href="https://www.linkedin.com/shareArticle?mini=true&url=' . urlencode( $share_url ) . '"
@@ -2187,8 +2187,8 @@ global $wppa_locale;
2187
  $width = wppa( 'auto_colwidth' ) ? '100%' : wppa_get_container_width( true );
2188
  if ( wppa_switch( 'facebook_comments' ) ) {
2189
  $fb .= '
2190
- <div style="clear:both;" ></div>
2191
- <div class="wppa-fb-comments-title" style="color:blue;" >' .
2192
  __( 'Comment on Facebook:', 'wp-photo-album-plus' ) . '
2193
  </div>
2194
  <div class="fb-comments" data-href="' . $share_url . '" data-width="' . $width . '"></div>';
@@ -2204,7 +2204,7 @@ global $wppa_locale;
2204
  $need_fb_init = false;
2205
  }
2206
 
2207
- return wppa_compress_html( '<div class="wppa-share-'.$key.'" >'.$qr.$tw.$pi.$li.$fb.'<div style="clear:both"></div></div>' );
2208
  }
2209
 
2210
  // Make html for share a page/post
@@ -2242,7 +2242,7 @@ global $wpdb;
2242
  if ( wppa_switch( 'share_qr' ) ) {
2243
  $src = wppa_create_qrcode_cache( $share_url, '80' );
2244
  $qr = '
2245
- <div style="float:left; padding:2px;" >
2246
  <img
2247
  src="' . $src . '"
2248
  title="' . esc_attr( $share_url ) . '"
@@ -2277,7 +2277,7 @@ global $wpdb;
2277
  }
2278
 
2279
  $tw = '
2280
- <div class="wppa-share-icon" style="float:left; padding:0 2px;" >
2281
  <a
2282
  title="' . sprintf( __( 'Tweet %s on Twitter', 'wp-photo-album-plus' ), esc_attr( $share_name ) ) . '"
2283
  href="https://twitter.com/intent/tweet?text=' . $tweet . '"
@@ -2364,8 +2364,8 @@ global $wpdb;
2364
  if ( wppa_switch( 'facebook_comments' ) ) {
2365
  if ( wppa_switch( 'facebook_comments' ) ) {
2366
  $fb .= '
2367
- <div style="clear:both;" ></div>
2368
- <div class="wppa-fb-comments-title" style="color:blue;" >' .
2369
  __( 'Comment on Facebook:', 'wp-photo-album-plus' ) . '
2370
  </div>
2371
  <div class="fb-comments" data-href="' . $share_url . '" data-width="100%" ></div>';
@@ -2384,7 +2384,7 @@ global $wpdb;
2384
  $qr . $tw . $pi . $li . $fb .
2385
  '<div style="clear:both"></div>';
2386
 
2387
- return wppa_compress_html( $result );
2388
 
2389
  }
2390
 
@@ -2474,7 +2474,7 @@ function wppa_user_destroy_html( $alb, $width, $where, $rsp ) {
2474
  style="clear:both;"
2475
  >
2476
  <a
2477
- style="float:left; cursor:pointer;"
2478
  onclick="
2479
  jQuery(this).html(\'' . __( 'Working...', 'wp-photo-album-plus' ) . '\');
2480
  wppaAjaxDestroyAlbum(' . $alb . ',\'' . wp_create_nonce( 'wppa-nonce_' . $alb ) . '\');
@@ -2527,6 +2527,19 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2527
  return '';
2528
  }
2529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2530
  // Have access?
2531
  if ( $parent && ! wppa_have_access( $parent ) ) {
2532
  return '';
@@ -2568,7 +2581,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2568
  jQuery( \'#_wppa-cr-'.str_replace('.','-',$alb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
2569
  window.dispatchEvent(new Event(\'resize\'));
2570
  "
2571
- style="float:left;cursor:pointer;"
2572
  > ' .
2573
  ( $alb ? __( 'Create Sub Album', 'wp-photo-album-plus' ) : __( 'Create Album', 'wp-photo-album-plus' ) ) . '
2574
  </a>
@@ -2650,7 +2663,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2650
  'tagstyle' => '',
2651
  ) ) . '
2652
  </select>
2653
- <div style="clear:both;" ></div>';
2654
  }
2655
  else {
2656
  $result .= '
@@ -2668,7 +2681,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2668
  style="width:100%;clear:both;float:left;text-align:left;"
2669
  >' .
2670
  __( 'Enter album name.', 'wp-photo-album-plus' ) . '&nbsp;
2671
- <span style="font-size:10px;" >' .
2672
  __( 'Don\'t leave this blank!', 'wp-photo-album-plus' ) . '
2673
  </span>
2674
  </div>
@@ -2696,8 +2709,8 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2696
 
2697
  if ( wppa_switch( 'user_create_captcha' ) ) {
2698
  $result .= '
2699
- <div style="float:left; margin: 6px 0;" >
2700
- <div style="float:left;">' .
2701
  wppa_make_captcha( wppa_get_randseed( 'session' ) ) . '
2702
  </div>
2703
  <input
@@ -2791,7 +2804,7 @@ static $albums_granted;
2791
  $yalb = str_replace( '.', '', $xalb );
2792
 
2793
  // Open wrapper
2794
- $result = '<div style="clear:both"></div>';//<div id="fe-upl-wrap-' . $mocc . '" style="background-color:#FFC;" >';
2795
 
2796
  // Using seqno to distinguish from different places within one occurrence because
2797
  // the album no is not known when there is a selection box.
@@ -2940,7 +2953,7 @@ static $albums_granted;
2940
  jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
2941
  window.dispatchEvent(new Event(\'resize\'));
2942
  "
2943
- style="float:left; cursor:pointer;"
2944
  >' .
2945
  __( 'Upload Photo', 'wp-photo-album-plus' ) . '
2946
  </a>
@@ -2956,7 +2969,7 @@ static $albums_granted;
2956
  jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'none\' );
2957
  window.dispatchEvent(new Event(\'resize\'));
2958
  "
2959
- style="float:right; cursor:pointer;display:none;padding-right:6px;" >' .
2960
  __( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
2961
  </a>
2962
  <div
@@ -3017,7 +3030,7 @@ static $albums_granted;
3017
  'sort' => true,
3018
  ) ) . '
3019
  </select>
3020
- <div style="clear:both;" ></div>';
3021
  }
3022
 
3023
  // No, there are too many albums
@@ -3036,7 +3049,7 @@ static $albums_granted;
3036
 
3037
  // If big, init table
3038
  if ( $big ) {
3039
- $result .= '<table class="wppa-upload-table" style="max-width:100%;" >';
3040
  }
3041
 
3042
  // Album select
@@ -3146,7 +3159,7 @@ static $albums_granted;
3146
 
3147
  // Explanation
3148
  $body .= '
3149
- <div style="font-size:10px;" >' .
3150
  sprintf( _n( 'You may upload %d photo', 'You may upload up to %d photos at once if your browser supports HTML-5 multiple file upload',
3151
  $max, 'wp-photo-album-plus' ), $max ) . '
3152
  </div>';
@@ -3154,21 +3167,21 @@ static $albums_granted;
3154
  if ( wppa_opt( 'upload_frontend_minsize' ) ) {
3155
  $minsize = wppa_opt( 'upload_frontend_minsize' );
3156
  $body .=
3157
- '<div style="font-size:10px;" >' .
3158
  sprintf( __( 'Min photo size: %d pixels', 'wp-photo-album-plus' ), $minsize ) .
3159
  '</div>';
3160
  }
3161
  if ( wppa_opt( 'upload_frontend_maxsize' ) ) {
3162
  $maxsize = wppa_opt( 'upload_frontend_maxsize' );
3163
  $body .=
3164
- '<div style="font-size:10px;" >' .
3165
  sprintf( __( 'Max photo size: %d pixels', 'wp-photo-album-plus' ), $maxsize ) .
3166
  '</div>';
3167
  }
3168
 
3169
  $supp = $wppa_supported_photo_extensions;
3170
  $body .=
3171
- '<div style="font-size:10px;" >' .
3172
  __( 'You may upload files of type', 'wp-photo-album-plus' ) . ': .' .
3173
  implode( ', .', $wppa_supported_photo_extensions );
3174
  if ( $may_video ) {
@@ -3186,7 +3199,7 @@ static $albums_granted;
3186
  // Copyright notice
3187
  if ( wppa_switch( 'copyright_on' ) ) {
3188
  $body .=
3189
- '<div style="width:100%;clear:both;" >' .
3190
  __( wppa_opt( 'copyright_notice' ) ) .
3191
  '</div>';
3192
  }
@@ -3255,7 +3268,7 @@ static $albums_granted;
3255
  // Name
3256
  $head = __( 'Name', 'wp-photo-album-plus' );
3257
  if ( wppa_switch( 'name_user_mandatory' ) ) {
3258
- $head .= '<sup style="color:red;" >*</sup>';
3259
  }
3260
  $body = '';
3261
  if ( wppa_switch( 'name_user' ) ) {
@@ -3297,7 +3310,7 @@ static $albums_granted;
3297
  style="border:1px solid ' . wppa_opt( 'bcolor' ) . ';clear:left; padding:0; width:100%;"
3298
  name="wppa-user-name"
3299
  />
3300
- <div style="clear:left;font-size:10px;" >' .
3301
  $expl . '
3302
  </div>';
3303
  }
@@ -3308,7 +3321,7 @@ static $albums_granted;
3308
 
3309
  $head = __( 'Description', 'wp-photo-album-plus' );
3310
  if ( wppa_switch( 'desc_user_mandatory' ) ) {
3311
- $head .= '<sup style="color:red;" >*</sup>';
3312
  }
3313
  $desc = wppa_switch( 'apply_newphoto_desc_user' ) ? stripslashes( wppa_opt( 'newphoto_description' ) ) : '';
3314
 
@@ -3398,7 +3411,7 @@ static $albums_granted;
3398
  }
3399
  $body .= '
3400
  </select>
3401
- <div style="clear:both;" ></div>';
3402
 
3403
  $result .= wppa_get_dlg_item( $head, $body, $big );
3404
  }
@@ -3525,7 +3538,7 @@ static $albums_granted;
3525
  '<textarea' .
3526
  ' id="wppa-blogit-pretext-'.$yalb.'-'.$mocc.'"' .
3527
  ' name="wppa-blogit-pretext"' .
3528
- ' class=wppa-user-textarea wppa-box-text"' .
3529
  ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3530
  ' >' .
3531
  '</textarea>' .
@@ -3535,7 +3548,7 @@ static $albums_granted;
3535
  '<textarea' .
3536
  ' id="wppa-blogit-posttext-'.$yalb.'-'.$mocc.'"' .
3537
  ' name="wppa-blogit-posttext"' .
3538
- ' class=wppa-user-textarea wppa-box-text"' .
3539
  ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3540
  '>' .
3541
  '</textarea>' .
@@ -3568,7 +3581,7 @@ static $albums_granted;
3568
 
3569
  $head = '';
3570
  $body =
3571
- '<div style="height:6px;clear:both;" ></div>' .
3572
  '<input' .
3573
  ' type="submit"' .
3574
  ' id="wppa-user-submit-' . $yalb . '-' . $mocc . '"' .
@@ -3685,7 +3698,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3685
  'jQuery( \'#wppa-cats-' . str_replace('.','-',$alb) . '-' . wppa( 'mocc' ) . '\' ).css( \'display\',\'none\' );'. // Hide catogory
3686
  'jQuery( \'#_wppa-ea-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show backlink
3687
  '_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )' . // Trigger autocol
3688
- '" style="float:left; cursor:pointer;">
3689
  '.__( 'Edit Album Info', 'wp-photo-album-plus' ).'
3690
  </a>
3691
  <a id="_wppa-ea-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'" class="wppa-aedit-'.$where.' wppa-album-'.$where.'-link" onclick="'.
@@ -3720,7 +3733,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3720
  $desc = esc_textarea( $desc );
3721
 
3722
  $result .=
3723
- '<div id="wppa-fe-div-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'" style="display:none;" >' .
3724
  '<form action="#" method="post" >' .
3725
  '<input' .
3726
  ' type="hidden"' .
@@ -3743,7 +3756,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3743
  '"' .
3744
  ' >'.
3745
  __( 'Enter album name', 'wp-photo-album-plus' ) . '&nbsp;' .
3746
- '<span style="font-size:10px;" >' .
3747
  __( 'Don\'t leave this blank!', 'wp-photo-album-plus' ) .
3748
  '</span>
3749
  </div>
@@ -3975,7 +3988,7 @@ global $wpdb;
3975
  $originatorblock .= '
3976
  <div
3977
  class="com_avatar"
3978
- style="float:left;margin-right:5px;" >' .
3979
  $avt .
3980
  '</div>';
3981
  }
@@ -4028,7 +4041,7 @@ global $wpdb;
4028
  // If its is the current users comment, say Awaiting YOUR rating
4029
  if ( wppa_get_user( 'display' ) == $comment['user'] ) {
4030
  $commentblock .=
4031
- '<span style="color:red;" >' .
4032
  __( 'Awaiting your rating', 'wp-photo-album-plus' ) .
4033
  '</span>';
4034
  }
@@ -4036,7 +4049,7 @@ global $wpdb;
4036
  // Other users comment (only seen by moderators)
4037
  else {
4038
  $commentblock .=
4039
- '<span style="color:red;" >' .
4040
  __( 'Awaiting a rating', 'wp-photo-album-plus' ) .
4041
  '</span>';
4042
  }
@@ -4045,7 +4058,7 @@ global $wpdb;
4045
  // Not awaiting rating, just pending
4046
  else {
4047
  $commentblock .=
4048
- '<span style="color:red;" >' .
4049
  __( 'Awaiting moderation', 'wp-photo-album-plus' ) .
4050
  '</span>';
4051
  }
@@ -4053,7 +4066,7 @@ global $wpdb;
4053
 
4054
  // Spam?
4055
  elseif ( $comment['status'] == 'spam' && stripslashes( $comment['user'] ) == wppa( 'comment_user' ) ) {
4056
- $commentblock .= '<br><span style="color:red; font-size:9px;" >'.__( 'Marked as spam', 'wp-photo-album-plus' ).'</span>';
4057
  }
4058
 
4059
  $commentblock .=
@@ -4301,11 +4314,11 @@ global $wpdb;
4301
  ( $is_current ? ' checked="checked"' : '' ) . '
4302
  id="db-agree-' . $mocc . '"
4303
  name="db-agree"
4304
- style="float:left;"
4305
  />
4306
  <label
4307
  for="db-agree-' . $mocc . '"
4308
- style="float:left;"
4309
  >
4310
  &nbsp;' .
4311
  sprintf( __( 'I agree that the information above will be stored in a database along with my %s', 'wp-photo-album-plus' ),
@@ -4416,12 +4429,12 @@ global $wpdb;
4416
  }
4417
 
4418
  $result .=
4419
- '<div id="wppa-comfooter-wrap-'.wppa( 'mocc' ).'" style="display:block;" >' .
4420
  '<table id="wppacommentfooter-'.wppa( 'mocc' ).'" class="wppa-comment-form" style="margin:0;">' .
4421
  '<tbody>' .
4422
  '<tr style="text-align:center;">' .
4423
- '<td style="text-align:center; cursor:pointer;" >' .
4424
- '<a onclick="wppaOpenComments( '.wppa( 'mocc' ).', -1 ); return false;" >';
4425
  if ( $n_comments ) {
4426
  $result .= sprintf( _n( '%d comment', '%d comments', $n_comments, 'wp-photo-album-plus' ), $n_comments );
4427
  }
@@ -4540,7 +4553,7 @@ global $wppa_iptc_cache;
4540
  '</a>';
4541
 
4542
  $result .=
4543
- '<div style="clear:both;" ></div>' .
4544
  '<table class="wppa-iptc-table-'.wppa( 'mocc' ).' wppa-detail" style="border:0 none; margin:0;'.$d2.'" >' .
4545
  '<tbody>';
4546
  $oldtag = '';
@@ -4572,11 +4585,11 @@ global $wppa_iptc_cache;
4572
  }
4573
  else {
4574
  $result .= '
4575
- <tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none;" >
4576
- <td class="wppa-iptc-label wppa-box-text wppa-td" style="width:50%;text-align:right;" >' .
4577
  esc_js( __( $label ) ) . '
4578
  </td>
4579
- <td class="wppa-iptc-value wppa-box-text wppa-td" style="width:50%;text-align:left;" >';
4580
  }
4581
  $result .= esc_js( wppa_sanitize_text( __( $iptcline['description'], 'wp-photo-album-plus' ) ) );
4582
  $oldtag = $newtag;
@@ -4660,7 +4673,7 @@ global $wppa_exif_cache;
4660
  __( 'Hide EXIF data', 'wp-photo-album-plus' ) .
4661
  '</a>';
4662
 
4663
- $result .= '<div style="clear:both;" ></div>' .
4664
  '<table' .
4665
  ' class="wppa-exif-table-'.wppa( 'mocc' ).' wppa-detail"' .
4666
  ' style="'.$d2.' border:0 none; margin:0;"' .
@@ -4694,14 +4707,14 @@ global $wppa_exif_cache;
4694
  $result .= '; '; // next item with same tag
4695
  }
4696
  else {
4697
- $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none;" >' .
4698
- '<td class="wppa-exif-label wppa-box-text wppa-td" style="width:50%;text-align:right;" >';
4699
 
4700
  $label = rtrim( wppa_exif_tagname( $exifline['tag'], $brand ), " \n\r\t\v\0:" );
4701
 
4702
  $result .= esc_js( __( $label ) );
4703
 
4704
- $result .= '</td><td class="wppa-exif-value wppa-box-text wppa-td" style="width:50%;text-align:left;" >';
4705
  }
4706
  $result .= esc_js( $exifline['f_description'] );
4707
  $oldtag = $newtag;
@@ -5033,7 +5046,7 @@ global $other_deps;
5033
 
5034
  // The image
5035
  $result .=
5036
- '<div style="height:' . $maxh . 'px;width:' . $maxw . 'px;" >' .
5037
  '<img' .
5038
  ( $widget ? ' style="height:' . $maxh . 'px; width:' . $maxw . 'px;"' :
5039
  ' style="max-height:' . $maxh . 'px; max-width:' . $maxw . 'px;margin-top:' . $tm . 'px"' ) .
@@ -5938,7 +5951,7 @@ global $photos_used;
5938
 
5939
  }
5940
  else {
5941
- $cell_content = '<span style="cursor:default;" >' . $current_day . '</span>';
5942
  }
5943
  $result .= '
5944
  <td colspan="2"
@@ -6539,7 +6552,7 @@ function wppa_get_grid_image_html( $id ) {
6539
  ( wppa_lazy() ? ' data-' : ' ' ) . 'src="' . $imgurl . '" ' .
6540
  $imgalt .
6541
  ( $title ? ' title="' . $title . '"' : '' ) . '
6542
- style="' . $imgstyle . ' cursor:pointer;"
6543
  />';
6544
  }
6545
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
239
  $result .= '
240
  <tr>
241
  <td class="wppa-contest-table-photo" >
242
+ <a href="' . wppa_get_hires_url( $id ) . '" data-rel="wppa" data-wppa="yes">
243
  <img src="' . wppa_get_photo_url( $id ) . '" alt="' . esc_attr( $photo['name'] ) . '" >
244
  </a>
245
  <br> ';
260
  $result .= '
261
  <a
262
  title="' . esc_attr( $comment ) . '"
263
+ style="cursor:pointer"
264
  onclick="alert(\'' . esc_js( $comment ) . '\')"
265
  >' . wppa_get_user_by( 'id', $rating['userid'] )->display_name . '
266
  </a>
307
  switch ( $this_rank ) {
308
  case '1':
309
  $result .= '
310
+ <span style="font-size:2em">1</span>&nbsp;
311
  <img
312
  src="' . WPPA_URL . '/img/medal_gold_' . wppa_opt( 'medal_color' ) .'.png"
313
  alt="gold medal"
316
  break;
317
  case '2':
318
  $result .= '
319
+ <span style="font-size:1.75em">2</span>&nbsp;
320
  <img
321
  src="' . WPPA_URL . '/img/medal_silver_' . wppa_opt( 'medal_color' ) .'.png"
322
  alt="silver medal"
325
  break;
326
  case '3':
327
  $result .= '
328
+ <span style="font-size:1.5em">3</span>
329
  <img
330
  src="' . WPPA_URL . '/img/medal_bronze_' . wppa_opt( 'medal_color' ) .'.png"
331
  alt="bronze medal"
346
  $result .= '
347
  </tbody>
348
  </table>
349
+ <br><div style="clear:both"></div>';
350
 
351
+ return $result;
352
  }
353
 
354
  // Should comment be visible on contest display?
485
  $result .= '
486
  <div
487
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
488
+ style="width:' . $w . '%;float:left"
489
  >';
490
 
491
  $cats = wppa_get_catlist();
533
  $result .= '
534
  <div
535
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
536
+ style="width:' . $w . '%;float:left"
537
  >';
538
 
539
  // Caption
565
  $result .= '
566
  <div
567
  class="wppa-searchsel-item wppa-searchsel-item-' . $mocc . '"
568
+ style="width:' . $w . '%;float:left"
569
  >';
570
 
571
  // Toptext
572
  $result .=
573
  wppa_opt( 'search_toptext' ) . ( $any_caption ? '&nbsp;' : '' ) . '
574
+ <div style="position:relative">';
575
 
576
  // form core
577
  $form_core = '';
682
  </div>';
683
 
684
  $result .= '
685
+ <div style="clear:both"></div>';
686
 
687
  // The hidden inputs and sub/root checkboxes
688
  if ( $force_root ) {
703
  if ( $rt && ! $force_root ) {
704
  $result .= '
705
  <div style="clear:both" ></div>
706
+ <small class="wppa-search-root" style="margin:0;padding:4px 0 0">' .
707
  wppa_display_root( $root ) . '
708
  </small>
709
  <div style="clear:both;' . $fontsize . '" >
714
  if ( $sub ) {
715
  $result .= '
716
  <div style="clear:both" ></div>
717
+ <small class="wppa-display-searchstring" style="margin:0;padding:4px 0 0">' .
718
  $wppa_session['display_searchstring'] . '
719
  </small>
720
  <div style="clear:both;' . $fontsize . '" >
731
  $result .= '
732
  </form>';
733
 
734
+ return $result;
735
  }
736
 
737
  // The supersearch box
927
  <select
928
  id="' . $id . '"
929
  name="wppa-ss-pa"
930
+ style="margin:2px;padding:0;vertical-align:top;float:left"
931
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
932
  onwheel="event.stopPropagation();"
933
  size="2"
952
  <select
953
  id="' . $id . '"
954
  name="wppa-ss-albumopt"
955
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
956
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
957
  onwheel="event.stopPropagation();"
958
  size="' . ( ! empty( $catlist ) ? '3' : '2' ) . '"
988
  <select
989
  id="' . $id . '"
990
  name="wppa-ss-albumcat"
991
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
992
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
993
  onwheel="event.stopPropagation();"
994
  size="' . ( min( count( $catlist ), '6' ) ) . '"
1018
  <select
1019
  id="' . $id . '"
1020
  name="wppa-ss-albumname"
1021
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1022
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1023
  onwheel="event.stopPropagation();"
1024
  size="' . ( min( count( $albums ), '6' ) ) . '"
1043
  <select
1044
  id="' . $id . '"
1045
  name="wppa-ss-albumtext"
1046
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1047
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1048
  onwheel="event.stopPropagation();"
1049
  size="' . ( min( count( $albumtxt ), '6' ) ) . '"
1078
  <select
1079
  id="wppa-ss-photoopt-' . $mocc . '"
1080
  name="wppa-ss-photoopt"
1081
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1082
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1083
  onwheel="event.stopPropagation();"
1084
  size="' . $n . '"
1141
  <select
1142
  id="' . $id . '"
1143
  name="wppa-ss-photoname"
1144
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1145
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1146
  onwheel="event.stopPropagation();"
1147
  size="' . min( count( $photonames ), '6' ) . '"
1166
  <select
1167
  id="' . $id . '"
1168
  name="wppa-ss-photoowner"
1169
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1170
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1171
  onwheel="event.stopPropagation();"
1172
  size="' . ( min( count( $ownerlist ), '6' ) ) . '"
1192
  <select
1193
  id="' . $id . '"
1194
  name="wppa-ss-phototag"
1195
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1196
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1197
  onwheel="event.stopPropagation();"
1198
  size="' . ( min( count( $taglist ), '6' ) ) . '"
1222
  <select
1223
  id="' . $id . '"
1224
  name="wppa-ss-phototext"
1225
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1226
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1227
  onwheel="event.stopPropagation();"
1228
  size="' . ( min( count( $phototxt ), '6' ) ) . '"
1251
  <select
1252
  id="wppa-ss-photoiptc-' . $mocc . '"
1253
  name="wppa-ss-photoiptc"
1254
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1255
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1256
  onwheel="event.stopPropagation();"
1257
  size="' . min( count( $iptclist ), '6' ) . '"
1276
  <select
1277
  id="wppa-ss-iptcopts-' . $mocc . '"
1278
  name="wppa-ss-iptcopts"
1279
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1280
  size="6"
1281
  onchange="wppaSuperSearchSelect(' . $mocc . ')"
1282
  onwheel="event.stopPropagation();"
1288
  <select
1289
  id="wppa-ss-photoexif-' . $mocc . '"
1290
  name="wppa-ss-photoexif"
1291
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1292
  onchange="wppaSuperSearchSelect(' . $mocc . ');"
1293
  onwheel="event.stopPropagation();"
1294
  size="' . min( count( $exiflist ), '6' ) . '"
1342
  <select
1343
  id="wppa-ss-exifopts-' . $mocc . '"
1344
  name="wppa-ss-exifopts"
1345
+ style="display:none;margin:2px;padding:0;vertical-align:top;float:left"
1346
  size="6"
1347
  onchange="wppaSuperSearchSelect(' . $mocc . ')"
1348
  onwheel="event.stopPropagation();"
1372
  $result .= '
1373
  </form>';
1374
 
1375
+ return $result;
1376
  }
1377
 
1378
  // Superview box
1408
  <div>
1409
  <form action="' . $url . '" method = "get">
1410
  <label>' . __( 'Album:', 'wp-photo-album-plus' ) . '</label>
1411
+ <select name="wppa-album" style="clear:left">' .
1412
  wppa_album_select_a( array( 'selected' => $wppa_session['superalbum'],
1413
  'addpleaseselect' => true,
1414
  'root' => $album_root,
1439
  </form>
1440
  </div>';
1441
 
1442
+ return $result;
1443
  }
1444
 
1445
  // The admins choice box
1525
  $result .= '
1526
  <a
1527
  onclick="wppaAjaxDeleteMyZip();"
1528
+ style="float:right;cursor:pointer"
1529
  >' .
1530
  __('Delete', 'wp-photo-album-plus' ) . '
1531
  </a>';
1927
  if ( wppa_switch( 'share_qr' ) && $key != 'thumb' ) {
1928
  $src = wppa_create_qrcode_cache( $share_url, '80' );
1929
  $qr = '
1930
+ <div style="float:left; padding:2px">
1931
  <img
1932
  src="' . $src . '"
1933
  title="' . esc_attr( $share_url ) . '"
2015
  if ( strlen( $desc ) > 500 ) $desc = substr( $desc, 0, 495 ).'...';
2016
  if ( wppa_switch( 'share_pinterest' ) ) {
2017
  $pi = '
2018
+ <div class="wppa-share-icon" style="float:left; padding:0 2px">
2019
  <a
2020
  title="' . sprintf( __( 'Share %s on Pinterest' ,'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"
2021
  href="http://pinterest.com/pin/create/button/?url=' . urlencode( $share_url ) .
2051
  // LinkedIn
2052
  if ( wppa_switch( 'share_linkedin' ) && $key != 'thumb' && $key != 'lightbox' ) {
2053
  $li = '
2054
+ <div class="wppa-share-icon" style="float:left; padding:0 2px">
2055
  <a
2056
  title="' . sprintf( __( 'Share %s on LinkedIn' ,'wp-photo-album-plus' ), esc_attr( $photo_name ) ) . '"
2057
  href="https://www.linkedin.com/shareArticle?mini=true&url=' . urlencode( $share_url ) . '"
2187
  $width = wppa( 'auto_colwidth' ) ? '100%' : wppa_get_container_width( true );
2188
  if ( wppa_switch( 'facebook_comments' ) ) {
2189
  $fb .= '
2190
+ <div style="clear:both"></div>
2191
+ <div class="wppa-fb-comments-title" style="color:blue">' .
2192
  __( 'Comment on Facebook:', 'wp-photo-album-plus' ) . '
2193
  </div>
2194
  <div class="fb-comments" data-href="' . $share_url . '" data-width="' . $width . '"></div>';
2204
  $need_fb_init = false;
2205
  }
2206
 
2207
+ return '<div class="wppa-share-' . $key . '" >' . $qr . $tw . $pi . $li . $fb . '<div style="clear:both"></div></div>';
2208
  }
2209
 
2210
  // Make html for share a page/post
2242
  if ( wppa_switch( 'share_qr' ) ) {
2243
  $src = wppa_create_qrcode_cache( $share_url, '80' );
2244
  $qr = '
2245
+ <div style="float:left; padding:2px">
2246
  <img
2247
  src="' . $src . '"
2248
  title="' . esc_attr( $share_url ) . '"
2277
  }
2278
 
2279
  $tw = '
2280
+ <div class="wppa-share-icon" style="float:left; padding:0 2px">
2281
  <a
2282
  title="' . sprintf( __( 'Tweet %s on Twitter', 'wp-photo-album-plus' ), esc_attr( $share_name ) ) . '"
2283
  href="https://twitter.com/intent/tweet?text=' . $tweet . '"
2364
  if ( wppa_switch( 'facebook_comments' ) ) {
2365
  if ( wppa_switch( 'facebook_comments' ) ) {
2366
  $fb .= '
2367
+ <div style="clear:both"></div>
2368
+ <div class="wppa-fb-comments-title" style="color:blue">' .
2369
  __( 'Comment on Facebook:', 'wp-photo-album-plus' ) . '
2370
  </div>
2371
  <div class="fb-comments" data-href="' . $share_url . '" data-width="100%" ></div>';
2384
  $qr . $tw . $pi . $li . $fb .
2385
  '<div style="clear:both"></div>';
2386
 
2387
+ return $result;
2388
 
2389
  }
2390
 
2474
  style="clear:both;"
2475
  >
2476
  <a
2477
+ style="float:left; cursor:pointer"
2478
  onclick="
2479
  jQuery(this).html(\'' . __( 'Working...', 'wp-photo-album-plus' ) . '\');
2480
  wppaAjaxDestroyAlbum(' . $alb . ',\'' . wp_create_nonce( 'wppa-nonce_' . $alb ) . '\');
2527
  return '';
2528
  }
2529
 
2530
+ // If roles specified and i am not an admin, see if i have one
2531
+ if ( wppa_opt( 'user_create_roles' ) && ! wppa_user_is( 'administrator' ) ) {
2532
+
2533
+ // Allowed roles
2534
+ $allowed_roles = explode( ',', wppa_opt( 'user_create_roles' ) );
2535
+
2536
+ // Current user roles
2537
+ $user = wp_get_current_user();
2538
+ if ( ! array_intersect( $allowed_roles, $user->roles ) ) {
2539
+ return '';
2540
+ }
2541
+ }
2542
+
2543
  // Have access?
2544
  if ( $parent && ! wppa_have_access( $parent ) ) {
2545
  return '';
2581
  jQuery( \'#_wppa-cr-'.str_replace('.','-',$alb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
2582
  window.dispatchEvent(new Event(\'resize\'));
2583
  "
2584
+ style="float:left;cursor:pointer"
2585
  > ' .
2586
  ( $alb ? __( 'Create Sub Album', 'wp-photo-album-plus' ) : __( 'Create Album', 'wp-photo-album-plus' ) ) . '
2587
  </a>
2663
  'tagstyle' => '',
2664
  ) ) . '
2665
  </select>
2666
+ <div style="clear:both"></div>';
2667
  }
2668
  else {
2669
  $result .= '
2681
  style="width:100%;clear:both;float:left;text-align:left;"
2682
  >' .
2683
  __( 'Enter album name.', 'wp-photo-album-plus' ) . '&nbsp;
2684
+ <span style="font-size:10px">' .
2685
  __( 'Don\'t leave this blank!', 'wp-photo-album-plus' ) . '
2686
  </span>
2687
  </div>
2709
 
2710
  if ( wppa_switch( 'user_create_captcha' ) ) {
2711
  $result .= '
2712
+ <div style="float:left; margin: 6px 0">
2713
+ <div style="float:left">' .
2714
  wppa_make_captcha( wppa_get_randseed( 'session' ) ) . '
2715
  </div>
2716
  <input
2804
  $yalb = str_replace( '.', '', $xalb );
2805
 
2806
  // Open wrapper
2807
+ $result = '<div style="clear:both"></div>';//<div id="fe-upl-wrap-' . $mocc . '" style="background-color:#FFC">';
2808
 
2809
  // Using seqno to distinguish from different places within one occurrence because
2810
  // the album no is not known when there is a selection box.
2953
  jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
2954
  window.dispatchEvent(new Event(\'resize\'));
2955
  "
2956
+ style="float:left; cursor:pointer"
2957
  >' .
2958
  __( 'Upload Photo', 'wp-photo-album-plus' ) . '
2959
  </a>
2969
  jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'none\' );
2970
  window.dispatchEvent(new Event(\'resize\'));
2971
  "
2972
+ style="float:right; cursor:pointer;display:none;padding-right:6px">' .
2973
  __( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
2974
  </a>
2975
  <div
3030
  'sort' => true,
3031
  ) ) . '
3032
  </select>
3033
+ <div style="clear:both"></div>';
3034
  }
3035
 
3036
  // No, there are too many albums
3049
 
3050
  // If big, init table
3051
  if ( $big ) {
3052
+ $result .= '<table class="wppa-upload-table" style="max-width:100%">';
3053
  }
3054
 
3055
  // Album select
3159
 
3160
  // Explanation
3161
  $body .= '
3162
+ <div style="font-size:10px">' .
3163
  sprintf( _n( 'You may upload %d photo', 'You may upload up to %d photos at once if your browser supports HTML-5 multiple file upload',
3164
  $max, 'wp-photo-album-plus' ), $max ) . '
3165
  </div>';
3167
  if ( wppa_opt( 'upload_frontend_minsize' ) ) {
3168
  $minsize = wppa_opt( 'upload_frontend_minsize' );
3169
  $body .=
3170
+ '<div style="font-size:10px">' .
3171
  sprintf( __( 'Min photo size: %d pixels', 'wp-photo-album-plus' ), $minsize ) .
3172
  '</div>';
3173
  }
3174
  if ( wppa_opt( 'upload_frontend_maxsize' ) ) {
3175
  $maxsize = wppa_opt( 'upload_frontend_maxsize' );
3176
  $body .=
3177
+ '<div style="font-size:10px">' .
3178
  sprintf( __( 'Max photo size: %d pixels', 'wp-photo-album-plus' ), $maxsize ) .
3179
  '</div>';
3180
  }
3181
 
3182
  $supp = $wppa_supported_photo_extensions;
3183
  $body .=
3184
+ '<div style="font-size:10px">' .
3185
  __( 'You may upload files of type', 'wp-photo-album-plus' ) . ': .' .
3186
  implode( ', .', $wppa_supported_photo_extensions );
3187
  if ( $may_video ) {
3199
  // Copyright notice
3200
  if ( wppa_switch( 'copyright_on' ) ) {
3201
  $body .=
3202
+ '<div style="width:100%;clear:both">' .
3203
  __( wppa_opt( 'copyright_notice' ) ) .
3204
  '</div>';
3205
  }
3268
  // Name
3269
  $head = __( 'Name', 'wp-photo-album-plus' );
3270
  if ( wppa_switch( 'name_user_mandatory' ) ) {
3271
+ $head .= '<sup style="color:red">*</sup>';
3272
  }
3273
  $body = '';
3274
  if ( wppa_switch( 'name_user' ) ) {
3310
  style="border:1px solid ' . wppa_opt( 'bcolor' ) . ';clear:left; padding:0; width:100%;"
3311
  name="wppa-user-name"
3312
  />
3313
+ <div style="clear:left;font-size:10px">' .
3314
  $expl . '
3315
  </div>';
3316
  }
3321
 
3322
  $head = __( 'Description', 'wp-photo-album-plus' );
3323
  if ( wppa_switch( 'desc_user_mandatory' ) ) {
3324
+ $head .= '<sup style="color:red">*</sup>';
3325
  }
3326
  $desc = wppa_switch( 'apply_newphoto_desc_user' ) ? stripslashes( wppa_opt( 'newphoto_description' ) ) : '';
3327
 
3411
  }
3412
  $body .= '
3413
  </select>
3414
+ <div style="clear:both"></div>';
3415
 
3416
  $result .= wppa_get_dlg_item( $head, $body, $big );
3417
  }
3538
  '<textarea' .
3539
  ' id="wppa-blogit-pretext-'.$yalb.'-'.$mocc.'"' .
3540
  ' name="wppa-blogit-pretext"' .
3541
+ ' class="wppa-user-textarea wppa-box-text"' .
3542
  ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3543
  ' >' .
3544
  '</textarea>' .
3548
  '<textarea' .
3549
  ' id="wppa-blogit-posttext-'.$yalb.'-'.$mocc.'"' .
3550
  ' name="wppa-blogit-posttext"' .
3551
+ ' class="wppa-user-textarea wppa-box-text"' .
3552
  ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3553
  '>' .
3554
  '</textarea>' .
3581
 
3582
  $head = '';
3583
  $body =
3584
+ '<div style="height:6px;clear:both"></div>' .
3585
  '<input' .
3586
  ' type="submit"' .
3587
  ' id="wppa-user-submit-' . $yalb . '-' . $mocc . '"' .
3698
  'jQuery( \'#wppa-cats-' . str_replace('.','-',$alb) . '-' . wppa( 'mocc' ) . '\' ).css( \'display\',\'none\' );'. // Hide catogory
3699
  'jQuery( \'#_wppa-ea-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show backlink
3700
  '_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )' . // Trigger autocol
3701
+ '" style="float:left; cursor:pointer">
3702
  '.__( 'Edit Album Info', 'wp-photo-album-plus' ).'
3703
  </a>
3704
  <a id="_wppa-ea-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'" class="wppa-aedit-'.$where.' wppa-album-'.$where.'-link" onclick="'.
3733
  $desc = esc_textarea( $desc );
3734
 
3735
  $result .=
3736
+ '<div id="wppa-fe-div-'.str_replace('.','-',$alb).'-'.wppa( 'mocc' ).'" style="display:none">' .
3737
  '<form action="#" method="post" >' .
3738
  '<input' .
3739
  ' type="hidden"' .
3756
  '"' .
3757
  ' >'.
3758
  __( 'Enter album name', 'wp-photo-album-plus' ) . '&nbsp;' .
3759
+ '<span style="font-size:10px">' .
3760
  __( 'Don\'t leave this blank!', 'wp-photo-album-plus' ) .
3761
  '</span>
3762
  </div>
3988
  $originatorblock .= '
3989
  <div
3990
  class="com_avatar"
3991
+ style="float:left;margin-right:5px">' .
3992
  $avt .
3993
  '</div>';
3994
  }
4041
  // If its is the current users comment, say Awaiting YOUR rating
4042
  if ( wppa_get_user( 'display' ) == $comment['user'] ) {
4043
  $commentblock .=
4044
+ '<span style="color:red">' .
4045
  __( 'Awaiting your rating', 'wp-photo-album-plus' ) .
4046
  '</span>';
4047
  }
4049
  // Other users comment (only seen by moderators)
4050
  else {
4051
  $commentblock .=
4052
+ '<span style="color:red">' .
4053
  __( 'Awaiting a rating', 'wp-photo-album-plus' ) .
4054
  '</span>';
4055
  }
4058
  // Not awaiting rating, just pending
4059
  else {
4060
  $commentblock .=
4061
+ '<span style="color:red">' .
4062
  __( 'Awaiting moderation', 'wp-photo-album-plus' ) .
4063
  '</span>';
4064
  }
4066
 
4067
  // Spam?
4068
  elseif ( $comment['status'] == 'spam' && stripslashes( $comment['user'] ) == wppa( 'comment_user' ) ) {
4069
+ $commentblock .= '<br><span style="color:red; font-size:9px">'.__( 'Marked as spam', 'wp-photo-album-plus' ).'</span>';
4070
  }
4071
 
4072
  $commentblock .=
4314
  ( $is_current ? ' checked="checked"' : '' ) . '
4315
  id="db-agree-' . $mocc . '"
4316
  name="db-agree"
4317
+ style="float:left"
4318
  />
4319
  <label
4320
  for="db-agree-' . $mocc . '"
4321
+ style="float:left"
4322
  >
4323
  &nbsp;' .
4324
  sprintf( __( 'I agree that the information above will be stored in a database along with my %s', 'wp-photo-album-plus' ),
4429
  }
4430
 
4431
  $result .=
4432
+ '<div id="wppa-comfooter-wrap-'.wppa( 'mocc' ).'" style="display:block">' .
4433
  '<table id="wppacommentfooter-'.wppa( 'mocc' ).'" class="wppa-comment-form" style="margin:0;">' .
4434
  '<tbody>' .
4435
  '<tr style="text-align:center;">' .
4436
+ '<td style="text-align:center; cursor:pointer">' .
4437
+ '<a onclick="wppaOpenComments( '.wppa( 'mocc' ).', -1 ); return false">';
4438
  if ( $n_comments ) {
4439
  $result .= sprintf( _n( '%d comment', '%d comments', $n_comments, 'wp-photo-album-plus' ), $n_comments );
4440
  }
4553
  '</a>';
4554
 
4555
  $result .=
4556
+ '<div style="clear:both"></div>' .
4557
  '<table class="wppa-iptc-table-'.wppa( 'mocc' ).' wppa-detail" style="border:0 none; margin:0;'.$d2.'" >' .
4558
  '<tbody>';
4559
  $oldtag = '';
4585
  }
4586
  else {
4587
  $result .= '
4588
+ <tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none">
4589
+ <td class="wppa-iptc-label wppa-box-text wppa-td" style="width:50%;text-align:right">' .
4590
  esc_js( __( $label ) ) . '
4591
  </td>
4592
+ <td class="wppa-iptc-value wppa-box-text wppa-td" style="width:50%;text-align:left">';
4593
  }
4594
  $result .= esc_js( wppa_sanitize_text( __( $iptcline['description'], 'wp-photo-album-plus' ) ) );
4595
  $oldtag = $newtag;
4673
  __( 'Hide EXIF data', 'wp-photo-album-plus' ) .
4674
  '</a>';
4675
 
4676
+ $result .= '<div style="clear:both"></div>' .
4677
  '<table' .
4678
  ' class="wppa-exif-table-'.wppa( 'mocc' ).' wppa-detail"' .
4679
  ' style="'.$d2.' border:0 none; margin:0;"' .
4707
  $result .= '; '; // next item with same tag
4708
  }
4709
  else {
4710
+ $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none">' .
4711
+ '<td class="wppa-exif-label wppa-box-text wppa-td" style="width:50%;text-align:right">';
4712
 
4713
  $label = rtrim( wppa_exif_tagname( $exifline['tag'], $brand ), " \n\r\t\v\0:" );
4714
 
4715
  $result .= esc_js( __( $label ) );
4716
 
4717
+ $result .= '</td><td class="wppa-exif-value wppa-box-text wppa-td" style="width:50%;text-align:left">';
4718
  }
4719
  $result .= esc_js( $exifline['f_description'] );
4720
  $oldtag = $newtag;
5046
 
5047
  // The image
5048
  $result .=
5049
+ '<div style="height:' . $maxh . 'px;width:' . $maxw . 'px">' .
5050
  '<img' .
5051
  ( $widget ? ' style="height:' . $maxh . 'px; width:' . $maxw . 'px;"' :
5052
  ' style="max-height:' . $maxh . 'px; max-width:' . $maxw . 'px;margin-top:' . $tm . 'px"' ) .
5951
 
5952
  }
5953
  else {
5954
+ $cell_content = '<span style="cursor:default">' . $current_day . '</span>';
5955
  }
5956
  $result .= '
5957
  <td colspan="2"
6552
  ( wppa_lazy() ? ' data-' : ' ' ) . 'src="' . $imgurl . '" ' .
6553
  $imgalt .
6554
  ( $title ? ' title="' . $title . '"' : '' ) . '
6555
+ style="' . $imgstyle . ' cursor:pointer"
6556
  />';
6557
  }
6558
 
wppa-breadcrumb.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -244,7 +244,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
244
  $searchroot = '-2'; // To get 'All albums'
245
  }
246
  $albtxt = wppa( 'is_rootsearch' ) ?
247
- ' <span style="cursor:pointer;" title="'.
248
  esc_attr( sprintf( __( 'Searchresults from album %s and its subalbums' , 'wp-photo-album-plus' ),
249
  wppa_display_root( $searchroot ) ) ).'">*</span> ' :
250
  '';
@@ -602,7 +602,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
602
  wppa_out( '<span' .
603
  ' title="' . __( 'Thumbnail view', 'wp-photo-album-plus' ) . '"' .
604
  ' class="wppa-nav-text"' .
605
- ' style="float:right; cursor:pointer;"' .
606
  ' onclick="wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.$s.'&wppa-page=\'+wppaThumbPage['.$mocc.']+\'&wppa-hilite=\'+_wppaId['.$mocc.'][_wppaCurIdx['.$mocc.']], \''.$href_url.$s.'&wppa-page=\'+wppaThumbPage['.$mocc.']+\'&wppa-hilite=\'+_wppaId['.$mocc.'][_wppaCurIdx['.$mocc.']],true)"' .
607
  ' >' .
608
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
@@ -612,7 +612,7 @@ if ( wppa( 'ajax') ) wppa_out('a');
612
  }
613
 
614
  // Close the breadcrumb box
615
- wppa_out( '<div style="clear:both;" ></div>' );
616
  wppa_out( '</div>' );
617
  }
618
 
@@ -663,7 +663,7 @@ global $wppa_lang;
663
  ' onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax . '\', \'' . $href . '\' );"' :
664
  ' href="' . $href . '"' ) .
665
  ' class="wppa-nav-text ' . $class . '"' .
666
- ' style="cursor:pointer;"' .
667
  ' title="' . esc_attr( $title ) . '" >' .
668
  $value .
669
  '</a>' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
244
  $searchroot = '-2'; // To get 'All albums'
245
  }
246
  $albtxt = wppa( 'is_rootsearch' ) ?
247
+ ' <span style="cursor:pointer" title="'.
248
  esc_attr( sprintf( __( 'Searchresults from album %s and its subalbums' , 'wp-photo-album-plus' ),
249
  wppa_display_root( $searchroot ) ) ).'">*</span> ' :
250
  '';
602
  wppa_out( '<span' .
603
  ' title="' . __( 'Thumbnail view', 'wp-photo-album-plus' ) . '"' .
604
  ' class="wppa-nav-text"' .
605
+ ' style="float:right; cursor:pointer"' .
606
  ' onclick="wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.$s.'&wppa-page=\'+wppaThumbPage['.$mocc.']+\'&wppa-hilite=\'+_wppaId['.$mocc.'][_wppaCurIdx['.$mocc.']], \''.$href_url.$s.'&wppa-page=\'+wppaThumbPage['.$mocc.']+\'&wppa-hilite=\'+_wppaId['.$mocc.'][_wppaCurIdx['.$mocc.']],true)"' .
607
  ' >' .
608
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
612
  }
613
 
614
  // Close the breadcrumb box
615
+ wppa_out( '<div style="clear:both"></div>' );
616
  wppa_out( '</div>' );
617
  }
618
 
663
  ' onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax . '\', \'' . $href . '\' );"' :
664
  ' href="' . $href . '"' ) .
665
  ' class="wppa-nav-text ' . $class . '"' .
666
+ ' style="cursor:pointer"' .
667
  ' title="' . esc_attr( $title ) . '" >' .
668
  $value .
669
  '</a>' );
wppa-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
- /* Version 8.1.09.001
7
  */
8
 
9
  // Test for caching
@@ -57,16 +57,23 @@ global $wppa_lang;
57
  if ( ! wppa_is_dir ( $root ) ) {
58
  wppa_mktree( $root );
59
  }
 
60
  $login = ( is_user_logged_in() ? 'log-' : '' );
61
  if ( $login && ( wppa_switch( 'user_upload_on' ) ) ) {
62
  $login .= get_current_user_id() . '-';
63
  }
 
 
 
 
 
 
 
64
  $cache_file =
65
  $root . '/' .
66
  $wppa_lang . '-' .
67
  $login .
68
- ( wppa_user_is( 'administrator' ) ? 'adm-' : '' ) .
69
- ( wppa_is_mobile() ? 'mob-' : '' ) .
70
  $cache_id;
71
 
72
  // Cachefile present?
@@ -423,11 +430,17 @@ global $wppa_lang;
423
  $login .= get_current_user_id() . '-';
424
  }
425
 
 
 
 
 
 
 
426
  $result =
427
  $root . '/' .
428
  $wppa_lang . '-' .
429
  $login .
430
- ( wppa_user_is( 'administrator' ) ? 'adm-' : '' ) .
431
  $widget_id;
432
 
433
  return $result;
@@ -476,17 +489,17 @@ global $wpdb;
476
  if ( $count ) {
477
  $result = '
478
  <div class="wrap" >
479
- <table class="wppa-table widefat wppa-setting-table striped" style="margin-top:12px;" >
480
- <thead style="font-weight:bold;" >
481
  <tr>
482
- <td colspan="3" ><h3 style="margin:0.1em;" >' . __( 'File data', 'wp-photo-album-plus' ) . '</h3></td>
483
- <td colspan="4" style="border-left:1px solid #c3c4c7;" ><h3 style="margin:0.1em;" >' . __( 'Dependancies', 'wp-photo-album-plus' ) . '</h3></td>
484
  </tr>
485
  <tr>
486
  <td><b>' . __( 'Name', 'wp-photo-album-plus' ) . '</b></td>
487
  <td><b>' . __( 'Size', 'wp-photo-album-plus' ) . '</b></td>
488
  <td><b>' . __( 'Age', 'wp-photo-album-plus' ) . '</b></td>
489
- <td style="border-left:1px solid #c3c4c7;" ><b>' . __( 'Albums', 'wp-photo-album-plus' ) . '</b></td>
490
  <td><b>' . __( 'Photos', 'wp-photo-album-plus' ) . '</b></td>
491
  <td><b>' . __( 'Page', 'wp-photo-album-plus' ) . '</b></td>
492
  <td><b>' . __( 'Other', 'wp-photo-album-plus' ) . '</b></td>
@@ -538,13 +551,13 @@ global $wpdb;
538
  }
539
  $result .= '
540
  <tr>
541
- <td style="width:600px;" >' . $pfile . '</td>
542
- <td style="width:75px;" >' . $size . '</td>
543
- <td style="width:100px;" >' . $age . '</td>
544
- <td style="border-left:1px solid #c3c4c7;" >' . $meta['albums'] . '</td>
545
- <td >' . $meta['photos'] . '</td>
546
- <td >' . $meta['page'] . '</td>
547
- <td >' . $meta['other'] . '</td>
548
  </tr>';
549
  }
550
  $result .= '
3
  /*
4
  /* Contains all wppa smart cache functions
5
  /*
6
+ /* Version 8.1.09.003
7
  */
8
 
9
  // Test for caching
57
  if ( ! wppa_is_dir ( $root ) ) {
58
  wppa_mktree( $root );
59
  }
60
+
61
  $login = ( is_user_logged_in() ? 'log-' : '' );
62
  if ( $login && ( wppa_switch( 'user_upload_on' ) ) ) {
63
  $login .= get_current_user_id() . '-';
64
  }
65
+
66
+ $roles = '';
67
+ if ( wppa_user_is( 'administrator' ) || ( is_user_logged_in() && wppa_switch( 'user_create_on' ) ) ) {
68
+ $user = wp_get_current_user();
69
+ $roles = implode( '-', $user->roles ) . '-';
70
+ }
71
+
72
  $cache_file =
73
  $root . '/' .
74
  $wppa_lang . '-' .
75
  $login .
76
+ $roles .
 
77
  $cache_id;
78
 
79
  // Cachefile present?
430
  $login .= get_current_user_id() . '-';
431
  }
432
 
433
+ $roles = '';
434
+ if ( wppa_user_is( 'administrator' ) || ( is_user_logged_in() && wppa_switch( 'user_create_on' ) ) ) {
435
+ $user = wp_get_current_user();
436
+ $roles = implode( '-', $user->roles ) . '-';
437
+ }
438
+
439
  $result =
440
  $root . '/' .
441
  $wppa_lang . '-' .
442
  $login .
443
+ $roles .
444
  $widget_id;
445
 
446
  return $result;
489
  if ( $count ) {
490
  $result = '
491
  <div class="wrap" >
492
+ <table class="wppa-table widefat wppa-setting-table striped" style="margin-top:12px">
493
+ <thead style="font-weight:bold">
494
  <tr>
495
+ <td colspan="3" ><h3 style="margin:0.1em">' . __( 'File data', 'wp-photo-album-plus' ) . '</h3></td>
496
+ <td colspan="4" style="border-left:1px solid #c3c4c7"><h3 style="margin:0.1em">' . __( 'Dependancies', 'wp-photo-album-plus' ) . '</h3></td>
497
  </tr>
498
  <tr>
499
  <td><b>' . __( 'Name', 'wp-photo-album-plus' ) . '</b></td>
500
  <td><b>' . __( 'Size', 'wp-photo-album-plus' ) . '</b></td>
501
  <td><b>' . __( 'Age', 'wp-photo-album-plus' ) . '</b></td>
502
+ <td style="border-left:1px solid #c3c4c7"><b>' . __( 'Albums', 'wp-photo-album-plus' ) . '</b></td>
503
  <td><b>' . __( 'Photos', 'wp-photo-album-plus' ) . '</b></td>
504
  <td><b>' . __( 'Page', 'wp-photo-album-plus' ) . '</b></td>
505
  <td><b>' . __( 'Other', 'wp-photo-album-plus' ) . '</b></td>
551
  }
552
  $result .= '
553
  <tr>
554
+ <td style="width:600px">' . $pfile . '</td>
555
+ <td style="width:75px">' . $size . '</td>
556
+ <td style="width:100px">' . $age . '</td>
557
+ <td style="border-left:1px solid #c3c4c7">' . $meta['albums'] . '</td>
558
+ <td>' . $meta['photos'] . '</td>
559
+ <td>' . $meta['page'] . '</td>
560
+ <td>' . $meta['other'] . '</td>
561
  </tr>';
562
  }
563
  $result .= '
wppa-comment-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all comments
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -37,11 +37,11 @@ class WPPA_Comment_table extends WP_List_Table {
37
  $comment_show = wppa_get_cookie( 'comadmin-show', 'all' );
38
  wppa_echo( '
39
  <div class="alignleft actions">
40
- <select id="wppa_comadmin_show" name="wppa_comadmin_show" onchange="" >
41
- <option value="all" ' . ( $comment_show == 'all' ? 'selected' : '' ) . ' >' . __( 'all', 'wp-photo-album-plus' ) . '</option>
42
- <option value="pending" ' . ( $comment_show == 'pending' ? 'selected' : '' ) . '>' . __( 'pending', 'wp-photo-album-plus' ) . '</option>
43
- <option value="approved" ' . ( $comment_show == 'approved' ? 'selected' : '' ) . '>' . __( 'approved', 'wp-photo-album-plus' ) . '</option>
44
- <option value="spam" ' . ( $comment_show == 'spam' ? 'selected' : '' ) . '>' . __( 'spam', 'wp-photo-album-plus' ) . '</option>
45
  </select>
46
  <input
47
  type="button"
@@ -157,7 +157,7 @@ class WPPA_Comment_table extends WP_List_Table {
157
  $status = '';
158
  $color = 'red';
159
  }
160
- $result = '<span id="status-' . $item['id'] . '" style="color:' . $color . ';" >' . $status . '</span>';
161
  $result .= $this->row_actions( $actions );
162
 
163
  return $result;
@@ -354,8 +354,8 @@ function _wppa_comment_admin() {
354
  wppa_echo( '
355
  <div class="wrap">
356
  <h1>' .
357
- ( $moderating ? __( 'Photo Albums -> Moderate Comment', 'wp-photo-album-plus' ) :
358
- __( 'Photo Albums -> Comment admin', 'wp-photo-album-plus' ) ) .
359
  '</h1>' );
360
  if ( $moderating ) {
361
  $status_show = array( 'pending', 'spam' );
@@ -376,30 +376,30 @@ function _wppa_comment_admin() {
376
  <table>
377
  <tbody>
378
  <tr>
379
- <td style="margin:0; font-weight:bold; color:#777777;">' . __( 'Total:', 'wp-photo-album-plus' ) . '</td>
380
- <td style="margin:0; font-weight:bold;">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments" ) . '</td>
381
  <td></td>
382
  </tr>
383
  <tr>
384
- <td style="margin:0; font-weight:bold; color:green;">' . __( 'Approved:', 'wp-photo-album-plus' ) . '</td>
385
- <td style="margin:0; font-weight:bold;">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'approved'" ) . '</td>
386
  <td></td>
387
  </tr>
388
  <tr>
389
- <td style="margin:0; font-weight:bold; color:#e66f00;">' . __( 'Pending:', 'wp-photo-album-plus' ) . '</td>
390
- <td style="margin:0; font-weight:bold;">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'pending' OR status = ''" ) . '</td>
391
  <td></td>
392
  </tr>
393
  <tr>
394
- <td style="margin:0; font-weight:bold; color:red;">' . __( 'Spam:', 'wp-photo-album-plus' ) . '</td>
395
- <td style="margin:0; font-weight:bold;">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'spam'" ) . '</td>
396
  <td></td>
397
  </tr>' );
398
  if ( $spamtime ) {
399
  wppa_echo( '
400
  <tr>
401
- <td style="margin:0; font-weight:bold; color:red;">' . __( 'Auto deleted spam:', 'wp-photo-album-plus' ) . '</td>
402
- <td style="margin:0; font-weight:bold;">' . wppa_get_option( 'wppa_spam_auto_delcount', '0' ) . '</td>
403
  <td>' . sprintf( __( 'Comments marked as spam will be deleted when they are entered longer than %s ago.', 'wp-photo-album-plus' ), $spamtime ) . '</td>
404
  </tr>' );
405
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all comments
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
37
  $comment_show = wppa_get_cookie( 'comadmin-show', 'all' );
38
  wppa_echo( '
39
  <div class="alignleft actions">
40
+ <select id="wppa_comadmin_show" name="wppa_comadmin_show" onchange="">
41
+ <option value="all"' . ( $comment_show == 'all' ? ' selected' : '' ) . '>' . __( 'all', 'wp-photo-album-plus' ) . '</option>
42
+ <option value="pending"' . ( $comment_show == 'pending' ? ' selected' : '' ) . '>' . __( 'pending', 'wp-photo-album-plus' ) . '</option>
43
+ <option value="approved"' . ( $comment_show == 'approved' ? ' selected' : '' ) . '>' . __( 'approved', 'wp-photo-album-plus' ) . '</option>
44
+ <option value="spam"' . ( $comment_show == 'spam' ? ' selected' : '' ) . '>' . __( 'spam', 'wp-photo-album-plus' ) . '</option>
45
  </select>
46
  <input
47
  type="button"
157
  $status = '';
158
  $color = 'red';
159
  }
160
+ $result = '<span id="status-' . $item['id'] . '" style="color:' . $color . '">' . $status . '</span>';
161
  $result .= $this->row_actions( $actions );
162
 
163
  return $result;
354
  wppa_echo( '
355
  <div class="wrap">
356
  <h1>' .
357
+ ( $moderating ? esc_html__( 'Photo Albums -> Moderate Comment', 'wp-photo-album-plus' ) :
358
+ esc_html__( 'Photo Albums -> Comment admin', 'wp-photo-album-plus' ) ) .
359
  '</h1>' );
360
  if ( $moderating ) {
361
  $status_show = array( 'pending', 'spam' );
376
  <table>
377
  <tbody>
378
  <tr>
379
+ <td style="margin:0;font-weight:bold;color:#777777">' . __( 'Total:', 'wp-photo-album-plus' ) . '</td>
380
+ <td style="margin:0;font-weight:bold">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments" ) . '</td>
381
  <td></td>
382
  </tr>
383
  <tr>
384
+ <td style="margin:0;font-weight:bold;color:green">' . __( 'Approved:', 'wp-photo-album-plus' ) . '</td>
385
+ <td style="margin:0;font-weight:bold">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'approved'" ) . '</td>
386
  <td></td>
387
  </tr>
388
  <tr>
389
+ <td style="margin:0;font-weight:bold;color:#e66f00">' . __( 'Pending:', 'wp-photo-album-plus' ) . '</td>
390
+ <td style="margin:0;font-weight:bold">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'pending' OR status = ''" ) . '</td>
391
  <td></td>
392
  </tr>
393
  <tr>
394
+ <td style="margin:0;font-weight:bold;color:red">' . __( 'Spam:', 'wp-photo-album-plus' ) . '</td>
395
+ <td style="margin:0;font-weight:bold">' . $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_comments WHERE status = 'spam'" ) . '</td>
396
  <td></td>
397
  </tr>' );
398
  if ( $spamtime ) {
399
  wppa_echo( '
400
  <tr>
401
+ <td style="margin:0;font-weight:bold;color:red">' . __( 'Auto deleted spam:', 'wp-photo-album-plus' ) . '</td>
402
+ <td style="margin:0;font-weight:bold">' . wppa_get_option( 'wppa_spam_auto_delcount', '0' ) . '</td>
403
  <td>' . sprintf( __( 'Comments marked as spam will be deleted when they are entered longer than %s ago.', 'wp-photo-album-plus' ), $spamtime ) . '</td>
404
  </tr>' );
405
  }
wppa-comment-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the recent commets on photos
6
- * Version 8.1.09.001
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -68,11 +68,10 @@ class wppaCommentWidget extends WP_Widget {
68
 
69
  // Make the HTML for current comment
70
  $widget_content .= '
71
- <div' .
72
- ' class="wppa-widget"' .
73
- ' style="width:' . $maxw . 'px;height:' . $maxh . 'px;margin:4px;display:inline;text-align:center;float:left"' .
74
- ' data-wppa="yes"' .
75
- ' >';
76
 
77
  $image = wppa_cache_thumb( $id );
78
 
@@ -115,7 +114,7 @@ class wppaCommentWidget extends WP_Widget {
115
  else {
116
  $widget_content .= __( 'Photo not found', 'wp-photo-album-plus' );
117
  }
118
- $widget_content .= "\n\t".'<span style="font-size:'.wppa_opt( 'fontsize_widget_thumb' ).'px; cursor:pointer;" title="'.esc_attr($first_comment['comment']).'" >'.htmlspecialchars($first_comment['user']).'</span>';
119
  $widget_content .= "\n".'</div>';
120
 
121
  }
@@ -130,7 +129,7 @@ class wppaCommentWidget extends WP_Widget {
130
  }
131
  $result .= $widget_content . $after_widget;
132
 
133
- wppa_echo( wppa_compress_html( $result ) );
134
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
135
 
136
  // Cache?
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the recent commets on photos
6
+ * Version 8.1.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
68
 
69
  // Make the HTML for current comment
70
  $widget_content .= '
71
+ <div
72
+ class="wppa-widget"
73
+ style="width:' . $maxw . 'px;height:' . $maxh . 'px;margin:4px;display:inline;text-align:center;float:left"
74
+ data-wppa="yes">';
 
75
 
76
  $image = wppa_cache_thumb( $id );
77
 
114
  else {
115
  $widget_content .= __( 'Photo not found', 'wp-photo-album-plus' );
116
  }
117
+ $widget_content .= "\n\t".'<span style="font-size:'.wppa_opt( 'fontsize_widget_thumb' ).'px; cursor:pointer" title="'.esc_attr($first_comment['comment']).'" >'.htmlspecialchars($first_comment['user']).'</span>';
118
  $widget_content .= "\n".'</div>';
119
 
120
  }
129
  }
130
  $result .= $widget_content . $after_widget;
131
 
132
+ wppa_echo( $result );
133
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
134
 
135
  // Cache?
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 8.1.09.001
6
  *
7
  */
8
 
@@ -762,7 +762,7 @@ function wppa_dbg_msg( $txt = '', $color = 'blue', $force = false, $return = fal
762
  wppa_log( 'Err', 'Forced debug message: ' . sanitize_text_field( $txt ), true );
763
  }
764
  $result = '<span>' .
765
- '<small style="color:' . sanitize_text_field( $color ) . ';" >' .
766
  '[WPPA+ dbg msg: ' . sanitize_text_field( $txt ) . ']' .
767
  '<br />' .
768
  '</small>' .
@@ -1673,48 +1673,48 @@ global $wpdb;
1673
 
1674
  $selected = $args['selected'] == '0' ? ' selected' : '';
1675
  if ( $args['addpleaseselect'] ) $result .=
1676
- '<option value="0" disabled '.$selected.' >' .
1677
  __( '- select an album -', 'wp-photo-album-plus' ) .
1678
  '</option>';
1679
 
1680
  $selected = $args['selected'] == '0' ? ' selected' : '';
1681
  if ( $args['addnone'] ) $result .=
1682
- '<option value="0"'.$selected.' >' .
1683
  __( '--- none ---', 'wp-photo-album-plus' ) .
1684
  '</option>';
1685
 
1686
  $selected = $args['selected'] == '0' ? ' selected' : '';
1687
  if ( $args['addall'] ) $result .=
1688
- '<option value="0"'.$selected.' >' .
1689
  __( '--- all ---', 'wp-photo-album-plus' ) .
1690
  '</option>';
1691
 
1692
  $selected = $args['selected'] == '-2' ? ' selected' : '';
1693
  if ( $args['addall'] ) $result .=
1694
- '<option value="-2"'.$selected.' >' .
1695
  __( '--- generic ---', 'wp-photo-album-plus' ) .
1696
  '</option>';
1697
 
1698
  $selected = $args['selected'] == '-3' ? ' selected' : '';
1699
  if ( $args['addowner'] ) $result .=
1700
- '<option value="-3"'.$selected.' >' .
1701
  __( '--- owner/public ---', 'wp-photo-album-plus' ) .
1702
  '</option>';
1703
 
1704
  $selected = $args['selected'] == '0' ? ' selected' : '';
1705
  if ( $args['addblank'] ) $result .=
1706
- '<option value="0"'.$selected.' >' .
1707
  '</option>';
1708
 
1709
  $selected = $args['selected'] == '-99' ? ' selected' : '';
1710
  if ( $args['addmultiple'] ) $result .=
1711
- '<option value="-99"'.$selected.' >' .
1712
  __( '--- multiple see below ---', 'wp-photo-album-plus' ) .
1713
  '</option>';
1714
 
1715
  $selected = $args['selected'] == '0' ? ' selected' : '';
1716
  if ( $args['addselbox'] ) $result .=
1717
- '<option value="0"'.$selected.' >' .
1718
  __( '--- a selection box ---', 'wp-photo-album-plus' ) .
1719
  '</option>';
1720
  $selected = $args['selected'] == '-1' ? ' selected' : '';
@@ -1822,48 +1822,48 @@ global $wpdb;
1822
 
1823
  $selected = $args['selected'] == '0' ? ' selected' : '';
1824
  if ( $args['addpleaseselect'] ) $result .=
1825
- '<option value="0" disabled '.$selected.' >' .
1826
  __( '- select an album -', 'wp-photo-album-plus' ) .
1827
  '</option>';
1828
 
1829
  $selected = $args['selected'] == '0' ? ' selected' : '';
1830
  if ( $args['addnone'] ) $result .=
1831
- '<option value="0"'.$selected.' >' .
1832
  __( '--- none ---', 'wp-photo-album-plus' ) .
1833
  '</option>';
1834
 
1835
  $selected = $args['selected'] == '0' ? ' selected' : '';
1836
  if ( $args['addall'] ) $result .=
1837
- '<option value="0"'.$selected.' >' .
1838
  __( '--- all ---', 'wp-photo-album-plus' ) .
1839
  '</option>';
1840
 
1841
  $selected = $args['selected'] == '-2' ? ' selected' : '';
1842
  if ( $args['addall'] ) $result .=
1843
- '<option value="-2"'.$selected.' >' .
1844
  __( '--- generic ---', 'wp-photo-album-plus' ) .
1845
  '</option>';
1846
 
1847
  $selected = $args['selected'] == '-3' ? ' selected' : '';
1848
  if ( $args['addowner'] ) $result .=
1849
- '<option value="-3"'.$selected.' >' .
1850
  __( '--- owner/public ---', 'wp-photo-album-plus' ) .
1851
  '</option>';
1852
 
1853
  $selected = $args['selected'] == '0' ? ' selected' : '';
1854
  if ( $args['addblank'] ) $result .=
1855
- '<option value="0"'.$selected.' >' .
1856
  '</option>';
1857
 
1858
  $selected = $args['selected'] == '-99' ? ' selected' : '';
1859
  if ( $args['addmultiple'] ) $result .=
1860
- '<option value="-99"'.$selected.' >' .
1861
  __( '--- multiple see below ---', 'wp-photo-album-plus' ) .
1862
  '</option>';
1863
 
1864
  $selected = $args['selected'] == '0' ? ' selected' : '';
1865
  if ( $args['addselbox'] ) $result .=
1866
- '<option value="0"'.$selected.' >' .
1867
  __( '--- a selection box ---', 'wp-photo-album-plus' ) .
1868
  '</option>';
1869
 
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 8.1.09.003
6
  *
7
  */
8
 
762
  wppa_log( 'Err', 'Forced debug message: ' . sanitize_text_field( $txt ), true );
763
  }
764
  $result = '<span>' .
765
+ '<small style="color:' . sanitize_text_field( $color ) . '">' .
766
  '[WPPA+ dbg msg: ' . sanitize_text_field( $txt ) . ']' .
767
  '<br />' .
768
  '</small>' .
1673
 
1674
  $selected = $args['selected'] == '0' ? ' selected' : '';
1675
  if ( $args['addpleaseselect'] ) $result .=
1676
+ '<option value="0" disabled '.$selected.'>' .
1677
  __( '- select an album -', 'wp-photo-album-plus' ) .
1678
  '</option>';
1679
 
1680
  $selected = $args['selected'] == '0' ? ' selected' : '';
1681
  if ( $args['addnone'] ) $result .=
1682
+ '<option value="0"'.$selected.'>' .
1683
  __( '--- none ---', 'wp-photo-album-plus' ) .
1684
  '</option>';
1685
 
1686
  $selected = $args['selected'] == '0' ? ' selected' : '';
1687
  if ( $args['addall'] ) $result .=
1688
+ '<option value="0"'.$selected.'>' .
1689
  __( '--- all ---', 'wp-photo-album-plus' ) .
1690
  '</option>';
1691
 
1692
  $selected = $args['selected'] == '-2' ? ' selected' : '';
1693
  if ( $args['addall'] ) $result .=
1694
+ '<option value="-2"'.$selected.'>' .
1695
  __( '--- generic ---', 'wp-photo-album-plus' ) .
1696
  '</option>';
1697
 
1698
  $selected = $args['selected'] == '-3' ? ' selected' : '';
1699
  if ( $args['addowner'] ) $result .=
1700
+ '<option value="-3"'.$selected.'>' .
1701
  __( '--- owner/public ---', 'wp-photo-album-plus' ) .
1702
  '</option>';
1703
 
1704
  $selected = $args['selected'] == '0' ? ' selected' : '';
1705
  if ( $args['addblank'] ) $result .=
1706
+ '<option value="0"'.$selected.'>' .
1707
  '</option>';
1708
 
1709
  $selected = $args['selected'] == '-99' ? ' selected' : '';
1710
  if ( $args['addmultiple'] ) $result .=
1711
+ '<option value="-99"'.$selected.'>' .
1712
  __( '--- multiple see below ---', 'wp-photo-album-plus' ) .
1713
  '</option>';
1714
 
1715
  $selected = $args['selected'] == '0' ? ' selected' : '';
1716
  if ( $args['addselbox'] ) $result .=
1717
+ '<option value="0"'.$selected.'>' .
1718
  __( '--- a selection box ---', 'wp-photo-album-plus' ) .
1719
  '</option>';
1720
  $selected = $args['selected'] == '-1' ? ' selected' : '';
1822
 
1823
  $selected = $args['selected'] == '0' ? ' selected' : '';
1824
  if ( $args['addpleaseselect'] ) $result .=
1825
+ '<option value="0" disabled'.$selected.'>' .
1826
  __( '- select an album -', 'wp-photo-album-plus' ) .
1827
  '</option>';
1828
 
1829
  $selected = $args['selected'] == '0' ? ' selected' : '';
1830
  if ( $args['addnone'] ) $result .=
1831
+ '<option value="0"'.$selected.'>' .
1832
  __( '--- none ---', 'wp-photo-album-plus' ) .
1833
  '</option>';
1834
 
1835
  $selected = $args['selected'] == '0' ? ' selected' : '';
1836
  if ( $args['addall'] ) $result .=
1837
+ '<option value="0"'.$selected.'>' .
1838
  __( '--- all ---', 'wp-photo-album-plus' ) .
1839
  '</option>';
1840
 
1841
  $selected = $args['selected'] == '-2' ? ' selected' : '';
1842
  if ( $args['addall'] ) $result .=
1843
+ '<option value="-2"'.$selected.'>' .
1844
  __( '--- generic ---', 'wp-photo-album-plus' ) .
1845
  '</option>';
1846
 
1847
  $selected = $args['selected'] == '-3' ? ' selected' : '';
1848
  if ( $args['addowner'] ) $result .=
1849
+ '<option value="-3"'.$selected.'>' .
1850
  __( '--- owner/public ---', 'wp-photo-album-plus' ) .
1851
  '</option>';
1852
 
1853
  $selected = $args['selected'] == '0' ? ' selected' : '';
1854
  if ( $args['addblank'] ) $result .=
1855
+ '<option value="0"'.$selected.'>' .
1856
  '</option>';
1857
 
1858
  $selected = $args['selected'] == '-99' ? ' selected' : '';
1859
  if ( $args['addmultiple'] ) $result .=
1860
+ '<option value="-99"'.$selected.'>' .
1861
  __( '--- multiple see below ---', 'wp-photo-album-plus' ) .
1862
  '</option>';
1863
 
1864
  $selected = $args['selected'] == '0' ? ' selected' : '';
1865
  if ( $args['addselbox'] ) $result .=
1866
+ '<option value="0"'.$selected.'>' .
1867
  __( '--- a selection box ---', 'wp-photo-album-plus' ) .
1868
  '</option>';
1869
 
wppa-dashboard-widgets.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains dashboard widgets code
6
  *
7
- * Version 8.1.09.001
8
  *
9
  */
10
 
@@ -41,12 +41,12 @@ function wppa_show_email_subscription() {
41
  if ( wppa_switch( 'newalbumnotify' ) ) {
42
  $in_list = wppa_am_i_in_mailinglist( 'newalbumnotify' );
43
  $body .= '
44
- <li style="padding-top:12px;clear:both;" >
45
  <input
46
  id="wppa-newalbum-notify"
47
  class="wppa-notify-check"
48
  type="checkbox"
49
- style="float:left;" ' .
50
  ( $in_list ? 'checked="checked" ' : ' ' ) .
51
  'onchange="wppaAjaxNotify(this,\'newalbumnotify\');"
52
  />
@@ -64,12 +64,12 @@ function wppa_show_email_subscription() {
64
  if ( wppa_switch( 'feuploadnotify' ) ) {
65
  $in_list = wppa_am_i_in_mailinglist( 'feuploadnotify' );
66
  $body .= '
67
- <li style="padding-top:12px;clear:both;" >
68
  <input
69
  id="wppa-feupload-notify"
70
  class="wppa-notify-check"
71
  type="checkbox"
72
- style="float:left;" ' .
73
  ( $in_list ? 'checked="checked" ' : ' ' ) .
74
  'onchange="wppaAjaxNotify(this,\'feuploadnotify\');"
75
  />
@@ -90,12 +90,12 @@ function wppa_show_email_subscription() {
90
  if ( wppa_switch( 'photoapproved' ) ) {
91
  $in_list = wppa_am_i_in_mailinglist( 'photoapproved' );
92
  $body .= '
93
- <li style="padding-top:12px;clear:both;" >
94
  <input
95
  id="wppa-photoapproved-notify"
96
  class="wppa-notify-check"
97
  type="checkbox"
98
- style="float:left;" ' .
99
  ( $in_list ? 'checked="checked" ' : ' ' ) .
100
  'onchange="wppaAjaxNotify(this,\'photoapproved\');"
101
  />
@@ -117,12 +117,12 @@ function wppa_show_email_subscription() {
117
  if ( wppa_switch( 'commentnotify' ) ) {
118
  $in_list = wppa_am_i_in_mailinglist( 'commentnotify' );
119
  $body .= '
120
- <li style="padding-top:12px;clear:both;" >
121
  <input
122
  id="wppa-comment-notify"
123
  class="wppa-notify-check"
124
  type="checkbox"
125
- style="float:left;" ' .
126
  ( $in_list ? 'checked="checked" ' : ' ' ) .
127
  'onchange="wppaAjaxNotify(this,\'commentnotify\');"
128
  />
@@ -142,12 +142,12 @@ function wppa_show_email_subscription() {
142
  if ( wppa_switch( 'commentapproved' ) ) {
143
  $in_list = wppa_am_i_in_mailinglist( 'commentapproved' );
144
  $body .= '
145
- <li style="padding-top:12px;clear:both;" >
146
  <input
147
  id="wppa-commentapproved-notify"
148
  class="wppa-notify-check"
149
  type="checkbox"
150
- style="float:left;" ' .
151
  ( $in_list ? 'checked="checked" ' : ' ' ) .
152
  'onchange="wppaAjaxNotify(this,\'commentapproved\');"
153
  />
@@ -165,12 +165,12 @@ function wppa_show_email_subscription() {
165
  if ( wppa_switch( 'commentprevious' ) ) {
166
  $in_list = wppa_am_i_in_mailinglist( 'commentprevious' );
167
  $body .= '
168
- <li style="padding-top:12px;clear:both;" >
169
  <input
170
  id="wppa-commentprevious-notify"
171
  class="wppa-notify-check"
172
  type="checkbox"
173
- style="float:left;" ' .
174
  ( $in_list ? 'checked="checked" ' : ' ' ) .
175
  'onchange="wppaAjaxNotify(this,\'commentprevious\');"
176
  />
@@ -192,12 +192,12 @@ function wppa_show_email_subscription() {
192
  if ( wppa_switch( 'upload_moderate' ) ) {
193
  $in_list = wppa_am_i_in_mailinglist( 'moderatephoto' );
194
  $body .= '
195
- <li style="padding-top:12px;clear:both;" >
196
  <input
197
  id="wppa-upload-moderate"
198
  class="wppa-notify-check"
199
  type="checkbox"
200
- style="float:left;" ' .
201
  ( $in_list ? 'checked="checked" ' : ' ' ) .
202
  'onchange="wppaAjaxNotify(this,\'moderatephoto\');"
203
  />
@@ -215,12 +215,12 @@ function wppa_show_email_subscription() {
215
  if ( wppa_opt( 'moderate_comment' ) != '-none-' ) {
216
  $in_list = wppa_am_i_in_mailinglist( 'moderatecomment' );
217
  $body .= '
218
- <li style="padding-top:12px;clear:both;" >
219
  <input
220
  id="wppa-upload-moderate-comment"
221
  class="wppa-notify-check"
222
  type="checkbox"
223
- style="float:left;" ' .
224
  ( $in_list ? 'checked="checked" ' : ' ' ) .
225
  'onchange="wppaAjaxNotify(this,\'moderatecomment\');"
226
  />
@@ -245,7 +245,7 @@ function wppa_show_email_subscription() {
245
  <br>
246
  <ul>' . $body . '</ul>
247
  <input type="hidden" id="wppa-ntfy-nonce" value="' . wp_create_nonce( 'wppa-ntfy-nonce' ) . '" />
248
- <div style="clear:both;" ></div>' );
249
  }
250
 
251
  // Activity feed
@@ -301,7 +301,7 @@ global $wpdb;
301
  if ( wppa_is_video( $id ) ) {
302
  $url = WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'video_icon' );
303
  wppa_echo( '
304
- <div style="position:relative;" >' .
305
  wppa_get_video_html( array( 'id' => $id,
306
  'width' => '50',
307
  'controls' => false,
@@ -426,7 +426,7 @@ function wppa_show_potd_log() {
426
  $href = wppa_get_photo_url( $photo['id'] );
427
  }
428
  wppa_echo( '
429
- <tr style="border-bottom:1px solid #444;" >
430
  <td>
431
  <a href="' . esc_url( $href ) . '" target="_blank" >
432
  <img src="' . esc_url( wppa_get_thumb_url( $photo['id'] ) ) . '" style="max-width:50px;max-height:50px;" />
@@ -442,7 +442,7 @@ function wppa_show_potd_log() {
442
  }
443
  else {
444
  wppa_echo( '
445
- <tr style="border-bottom:1px solid #444;" >
446
  <td>' .
447
  sprintf( __( 'Photo %d has been removed' ), $item['id'] ) . '
448
  </td>
4
  *
5
  * Contains dashboard widgets code
6
  *
7
+ * Version 8.1.09.003
8
  *
9
  */
10
 
41
  if ( wppa_switch( 'newalbumnotify' ) ) {
42
  $in_list = wppa_am_i_in_mailinglist( 'newalbumnotify' );
43
  $body .= '
44
+ <li style="padding-top:12px;clear:both">
45
  <input
46
  id="wppa-newalbum-notify"
47
  class="wppa-notify-check"
48
  type="checkbox"
49
+ style="float:left" ' .
50
  ( $in_list ? 'checked="checked" ' : ' ' ) .
51
  'onchange="wppaAjaxNotify(this,\'newalbumnotify\');"
52
  />
64
  if ( wppa_switch( 'feuploadnotify' ) ) {
65
  $in_list = wppa_am_i_in_mailinglist( 'feuploadnotify' );
66
  $body .= '
67
+ <li style="padding-top:12px;clear:both">
68
  <input
69
  id="wppa-feupload-notify"
70
  class="wppa-notify-check"
71
  type="checkbox"
72
+ style="float:left" ' .
73
  ( $in_list ? 'checked="checked" ' : ' ' ) .
74
  'onchange="wppaAjaxNotify(this,\'feuploadnotify\');"
75
  />
90
  if ( wppa_switch( 'photoapproved' ) ) {
91
  $in_list = wppa_am_i_in_mailinglist( 'photoapproved' );
92
  $body .= '
93
+ <li style="padding-top:12px;clear:both">
94
  <input
95
  id="wppa-photoapproved-notify"
96
  class="wppa-notify-check"
97
  type="checkbox"
98
+ style="float:left" ' .
99
  ( $in_list ? 'checked="checked" ' : ' ' ) .
100
  'onchange="wppaAjaxNotify(this,\'photoapproved\');"
101
  />
117
  if ( wppa_switch( 'commentnotify' ) ) {
118
  $in_list = wppa_am_i_in_mailinglist( 'commentnotify' );
119
  $body .= '
120
+ <li style="padding-top:12px;clear:both">
121
  <input
122
  id="wppa-comment-notify"
123
  class="wppa-notify-check"
124
  type="checkbox"
125
+ style="float:left" ' .
126
  ( $in_list ? 'checked="checked" ' : ' ' ) .
127
  'onchange="wppaAjaxNotify(this,\'commentnotify\');"
128
  />
142
  if ( wppa_switch( 'commentapproved' ) ) {
143
  $in_list = wppa_am_i_in_mailinglist( 'commentapproved' );
144
  $body .= '
145
+ <li style="padding-top:12px;clear:both">
146
  <input
147
  id="wppa-commentapproved-notify"
148
  class="wppa-notify-check"
149
  type="checkbox"
150
+ style="float:left" ' .
151
  ( $in_list ? 'checked="checked" ' : ' ' ) .
152
  'onchange="wppaAjaxNotify(this,\'commentapproved\');"
153
  />
165
  if ( wppa_switch( 'commentprevious' ) ) {
166
  $in_list = wppa_am_i_in_mailinglist( 'commentprevious' );
167
  $body .= '
168
+ <li style="padding-top:12px;clear:both">
169
  <input
170
  id="wppa-commentprevious-notify"
171
  class="wppa-notify-check"
172
  type="checkbox"
173
+ style="float:left" ' .
174
  ( $in_list ? 'checked="checked" ' : ' ' ) .
175
  'onchange="wppaAjaxNotify(this,\'commentprevious\');"
176
  />
192
  if ( wppa_switch( 'upload_moderate' ) ) {
193
  $in_list = wppa_am_i_in_mailinglist( 'moderatephoto' );
194
  $body .= '
195
+ <li style="padding-top:12px;clear:both">
196
  <input
197
  id="wppa-upload-moderate"
198
  class="wppa-notify-check"
199
  type="checkbox"
200
+ style="float:left" ' .
201
  ( $in_list ? 'checked="checked" ' : ' ' ) .
202
  'onchange="wppaAjaxNotify(this,\'moderatephoto\');"
203
  />
215
  if ( wppa_opt( 'moderate_comment' ) != '-none-' ) {
216
  $in_list = wppa_am_i_in_mailinglist( 'moderatecomment' );
217
  $body .= '
218
+ <li style="padding-top:12px;clear:both">
219
  <input
220
  id="wppa-upload-moderate-comment"
221
  class="wppa-notify-check"
222
  type="checkbox"
223
+ style="float:left" ' .
224
  ( $in_list ? 'checked="checked" ' : ' ' ) .
225
  'onchange="wppaAjaxNotify(this,\'moderatecomment\');"
226
  />
245
  <br>
246
  <ul>' . $body . '</ul>
247
  <input type="hidden" id="wppa-ntfy-nonce" value="' . wp_create_nonce( 'wppa-ntfy-nonce' ) . '" />
248
+ <div style="clear:both"></div>' );
249
  }
250
 
251
  // Activity feed
301
  if ( wppa_is_video( $id ) ) {
302
  $url = WPPA_UPLOAD_URL . '/icons/' . wppa_opt( 'video_icon' );
303
  wppa_echo( '
304
+ <div style="position:relative">' .
305
  wppa_get_video_html( array( 'id' => $id,
306
  'width' => '50',
307
  'controls' => false,
426
  $href = wppa_get_photo_url( $photo['id'] );
427
  }
428
  wppa_echo( '
429
+ <tr style="border-bottom:1px solid #444">
430
  <td>
431
  <a href="' . esc_url( $href ) . '" target="_blank" >
432
  <img src="' . esc_url( wppa_get_thumb_url( $photo['id'] ) ) . '" style="max-width:50px;max-height:50px;" />
442
  }
443
  else {
444
  wppa_echo( '
445
+ <tr style="border-bottom:1px solid #444">
446
  <td>' .
447
  sprintf( __( 'Photo %d has been removed' ), $item['id'] ) . '
448
  </td>
wppa-date-time.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * date and time related functions
6
- * Version 8.1.08.003
7
  *
8
  */
9
 
@@ -137,16 +137,16 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
137
 
138
  // Day
139
  if ( $type == 'Photo' ) {
140
- $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'day\', this.value);" >';
141
  }
142
  elseif ( $type == 'Delphoto' ) {
143
- $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delday\', this.value);" >';
144
  }
145
  elseif ( $type == 'Album' ) {
146
- $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'day\', this);" >';
147
  }
148
  else {
149
- $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delday\', this);" >';
150
  }
151
 
152
  foreach ( array_keys( $opt_days ) as $key ) {
@@ -157,16 +157,16 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
157
 
158
  // Month
159
  if ( $type == 'Photo' ) {
160
- $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'month\', this.value);" >';
161
  }
162
  elseif ( $type == 'Delphoto' ) {
163
- $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmonth\', this.value);" >';
164
  }
165
  elseif ( $type == 'Album' ) {
166
- $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'month\', this);" >';
167
  }
168
  else {
169
- $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delmonth\', this);" >';
170
  }
171
 
172
  foreach ( array_keys( $opt_months ) as $key ) {
@@ -177,16 +177,16 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
177
 
178
  // Year
179
  if ( $type == 'Photo' ) {
180
- $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'year\', this.value);" >';
181
  }
182
  elseif ( $type == 'Delphoto' ) {
183
- $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delyear\', this.value);" >';
184
  }
185
  elseif ( $type == 'Album' ) {
186
- $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'year\', this);" >';
187
  }
188
  else {
189
- $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delyear\', this);" >';
190
  }
191
 
192
  foreach ( array_keys( $opt_years ) as $key ) {
@@ -198,16 +198,16 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
198
 
199
  // Hour
200
  if ( $type == 'Photo' ) {
201
- $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'hour\', this.value);" >';
202
  }
203
  elseif ( $type == 'Delphoto' ) {
204
- $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delhour\', this.value);" >';
205
  }
206
  elseif ( $type == 'Album' ) {
207
- $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'hour\', this);" >';
208
  }
209
  else {
210
- $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delhour\', this);" >';
211
  }
212
 
213
  foreach ( array_keys( $opt_hours ) as $key ) {
@@ -219,10 +219,10 @@ function wppa_get_date_time_select_html( $type, $id, $selectable = true ) {
219
 
220
  // Min
221
  if ( $type == 'Photo' ) {
222
- $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'min\', this.value);" >';
223
  }
224
  elseif ( $type == 'Delphoto' ) {
225
- $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmin\', this.value);" >';
226
  }
227
  elseif ( $type == 'Album' ) {
228
  $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'min\', this);">';
3
  * Package: wp-photo-album-plus
4
  *
5
  * date and time related functions
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
137
 
138
  // Day
139
  if ( $type == 'Photo' ) {
140
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'day\', this.value)">';
141
  }
142
  elseif ( $type == 'Delphoto' ) {
143
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delday\', this.value)">';
144
  }
145
  elseif ( $type == 'Album' ) {
146
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'day\', this)">';
147
  }
148
  else {
149
+ $result .= '<select name="wppa-day" id="wppa-day-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delday\', this)">';
150
  }
151
 
152
  foreach ( array_keys( $opt_days ) as $key ) {
157
 
158
  // Month
159
  if ( $type == 'Photo' ) {
160
+ $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'month\', this.value)">';
161
  }
162
  elseif ( $type == 'Delphoto' ) {
163
+ $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmonth\', this.value)">';
164
  }
165
  elseif ( $type == 'Album' ) {
166
+ $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'month\', this)">';
167
  }
168
  else {
169
+ $result .= '<select name="wppa-month" id="wppa-month-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delmonth\', this)">';
170
  }
171
 
172
  foreach ( array_keys( $opt_months ) as $key ) {
177
 
178
  // Year
179
  if ( $type == 'Photo' ) {
180
+ $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'year\', this.value)">';
181
  }
182
  elseif ( $type == 'Delphoto' ) {
183
+ $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delyear\', this.value)">';
184
  }
185
  elseif ( $type == 'Album' ) {
186
+ $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'year\', this)">';
187
  }
188
  else {
189
+ $result .= '<select name="wppa-year" id="wppa-year-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delyear\', this)">';
190
  }
191
 
192
  foreach ( array_keys( $opt_years ) as $key ) {
198
 
199
  // Hour
200
  if ( $type == 'Photo' ) {
201
+ $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'hour\', this.value)">';
202
  }
203
  elseif ( $type == 'Delphoto' ) {
204
+ $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delhour\', this.value)">';
205
  }
206
  elseif ( $type == 'Album' ) {
207
+ $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'hour\', this)">';
208
  }
209
  else {
210
+ $result .= '<select name="wppa-hour" id="wppa-hour-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'delhour\', this)">';
211
  }
212
 
213
  foreach ( array_keys( $opt_hours ) as $key ) {
219
 
220
  // Min
221
  if ( $type == 'Photo' ) {
222
+ $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'min\', this.value)">';
223
  }
224
  elseif ( $type == 'Delphoto' ) {
225
+ $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdatePhoto('.$id.', \'delmin\', this.value)">';
226
  }
227
  elseif ( $type == 'Album' ) {
228
  $result .= '<select name="wppa-min" id="wppa-min-'.$id.'" class="'.$class.'" onchange="wppaAjaxUpdateAlbum('.$id.', \'min\', this);">';
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.1.08.003
7
  *
8
  */
9
 
@@ -28,13 +28,13 @@ Camera info
28
  </div>
29
  </a>
30
  <a onClick="jQuery(\'.wppa-dtl\').css(\'display\', \'none\'); jQuery(\'.wppa-more\').css(\'display\', \'block\'); wppaOvlResize();">
31
- <div class="wppa-dtl" style="display:none;" >
32
  Hide Camera info
33
  </div>
34
  </a>
35
  <div class="wppa-dtl" style="display:none;">
36
  <br>
37
- <table style="margin:0; border:none;" >
38
  <tr><td class="wppa-label" >Date Time</td><td class="wppa-value" >E#0132</td></tr>
39
  <tr><td class="wppa-label" >Camera</td><td class="wppa-value" >E#0110</td></tr>
40
  <tr><td class="wppa-label" >Focal length</td><td class="wppa-value" >E#920A</td></tr>
@@ -222,7 +222,7 @@ horizrailenabled:false,";
222
  'wppa_show_ubb' => 'no',
223
  'wppa_show_start_stop_icons' => 'no',
224
  'wppa_custom_on' => 'no', // 14
225
- 'wppa_custom_content' => '<div style="color:red; font-size:24px; font-weight:bold; text-align:center;">Hello world!</div><div style="text-align:center;" >You can change this text in Table II-B15</div>', // 15
226
  'wppa_show_slideshownumbar' => 'no', // 16
227
  'wppa_show_iptc' => 'no', // 17
228
  'wppa_show_iptc_open' => 'no',
@@ -319,6 +319,7 @@ horizrailenabled:false,";
319
  'wppa_user_upload_video_on' => 'no',
320
  'wppa_user_upload_audio_on' => 'no',
321
  'wppa_user_opload_roles' => '',
 
322
  'wppa_copyright_on' => 'yes', // 19
323
  'wppa_copyright_notice' => __('<span style="color:red" >Warning: Do not upload copyrighted material!</span>', 'wp-photo-album-plus' ), // 20
324
  'wppa_watermark_user' => 'no',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
28
  </div>
29
  </a>
30
  <a onClick="jQuery(\'.wppa-dtl\').css(\'display\', \'none\'); jQuery(\'.wppa-more\').css(\'display\', \'block\'); wppaOvlResize();">
31
+ <div class="wppa-dtl" style="display:none">
32
  Hide Camera info
33
  </div>
34
  </a>
35
  <div class="wppa-dtl" style="display:none;">
36
  <br>
37
+ <table style="margin:0; border:none">
38
  <tr><td class="wppa-label" >Date Time</td><td class="wppa-value" >E#0132</td></tr>
39
  <tr><td class="wppa-label" >Camera</td><td class="wppa-value" >E#0110</td></tr>
40
  <tr><td class="wppa-label" >Focal length</td><td class="wppa-value" >E#920A</td></tr>
222
  'wppa_show_ubb' => 'no',
223
  'wppa_show_start_stop_icons' => 'no',
224
  'wppa_custom_on' => 'no', // 14
225
+ 'wppa_custom_content' => '<div style="color:red; font-size:24px; font-weight:bold; text-align:center;">Hello world!</div><div style="text-align:center">You can change this text in Table II-B15</div>', // 15
226
  'wppa_show_slideshownumbar' => 'no', // 16
227
  'wppa_show_iptc' => 'no', // 17
228
  'wppa_show_iptc_open' => 'no',
319
  'wppa_user_upload_video_on' => 'no',
320
  'wppa_user_upload_audio_on' => 'no',
321
  'wppa_user_opload_roles' => '',
322
+ 'wppa_user_create_roles' => '',
323
  'wppa_copyright_on' => 'yes', // 19
324
  'wppa_copyright_notice' => __('<span style="color:red" >Warning: Do not upload copyrighted material!</span>', 'wp-photo-album-plus' ), // 20
325
  'wppa_watermark_user' => 'no',
wppa-edit-tags.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-edit-tags.php
3
  * Package: wp-photo-album-plus
4
  *
5
- * Version 8.1.09.001
6
  *
7
  */
8
 
@@ -45,8 +45,8 @@ function _wppa_edit_tags() {
45
  $result = '
46
  <div class="wrap">
47
  <img id="icon-album" src="' . esc_url( $iconurl ) . '" />
48
- <h1 style="display:inline" >' . __( 'Edit Photo Tag', 'wp-photo-album-plus' ) . '
49
- <span style="font-size:0.5em;" >' . __( 'A subset of WP Photo Album Plus Settings', 'wp-photo-album-plus' ) . '</span>
50
  </h1>
51
  <input type="hidden" id="wppa-nonce" name="wppa-nonce" value="' . wp_create_nonce( 'wppa-nonce' ) . '" />
52
  <input type="hidden" name="wppa-key" id="wppa-key" value="" />
2
  /* wppa-edit-tags.php
3
  * Package: wp-photo-album-plus
4
  *
5
+ * Version 8.1.09.003
6
  *
7
  */
8
 
45
  $result = '
46
  <div class="wrap">
47
  <img id="icon-album" src="' . esc_url( $iconurl ) . '" />
48
+ <h1 style="display:inline">' . __( 'Edit Photo Tag', 'wp-photo-album-plus' ) . '
49
+ <span style="font-size:0.5em">' . __( 'A subset of WP Photo Album Plus Settings', 'wp-photo-album-plus' ) . '</span>
50
  </h1>
51
  <input type="hidden" id="wppa-nonce" name="wppa-nonce" value="' . wp_create_nonce( 'wppa-nonce' ) . '" />
52
  <input type="hidden" name="wppa-key" id="wppa-key" value="" />
wppa-featen-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the featured photos
6
- * Version 8.0.08.006
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -135,7 +135,7 @@ class FeaTenWidget extends WP_Widget {
135
  "\n" .
136
  '<div' .
137
  ' class="wppa-widget"' .
138
- ' style="width:' . strval( intval( $maxw ) ) . 'px;height:' . strval( intval( $maxh ) ) . 'px;margin:4px;display:inline;text-align:center;float:left;"' .
139
  ' data-wppa="yes"' .
140
  ' >';
141
 
@@ -195,7 +195,7 @@ class FeaTenWidget extends WP_Widget {
195
  }
196
  $result .= $widget_content . $after_widget;
197
 
198
- echo wppa_compress_html( $result );
199
  echo wppa_widget_timer( 'show', $widget_title );
200
 
201
  // Cache?
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the featured photos
6
+ * Version 8.0.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
135
  "\n" .
136
  '<div' .
137
  ' class="wppa-widget"' .
138
+ ' style="width:' . strval( intval( $maxw ) ) . 'px;height:' . strval( intval( $maxh ) ) . 'px;margin:4px;display:inline;text-align:center;float:left"' .
139
  ' data-wppa="yes"' .
140
  ' >';
141
 
195
  }
196
  $result .= $widget_content . $after_widget;
197
 
198
+ echo $result;
199
  echo wppa_widget_timer( 'show', $widget_title );
200
 
201
  // Cache?
wppa-filter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
- * Version 8.1.06.001
7
  *
8
  */
9
 
@@ -231,7 +231,7 @@ global $other_deps;
231
  }
232
  else {
233
  wppa_bump_mocc();
234
- $err = '<span style="color:red;" >[Error: Syntax error or unsupported parent specification: ' . $atts['parent'] . ']</span>';
235
  return $err;
236
  }
237
  }
@@ -499,7 +499,7 @@ global $other_deps;
499
  $alb = $atts['album'];
500
  if ( ! $alb || $alb < '1' ) {
501
  $err = '
502
- <span style="color:red;" >
503
  Error in shortcode spec for type="' . $atts['type'] . '":
504
  either attribute album="" or parent="" should supply a positive integer or enumeration
505
  </span>';
@@ -579,7 +579,7 @@ global $other_deps;
579
  }
580
  if ( ! $album ) {
581
  $err = '
582
- <span style="color:red;" >
583
  Error in shortcode spec for type="contest":
584
  Missing or invalid attribute album="<album id>"<br>
585
  album=' . $atts['album'] . ', parent=' . $atts['parent'] . '</span>';
@@ -645,7 +645,7 @@ global $other_deps;
645
  }
646
  }
647
  elseif ( $atts['delay'] ) {
648
- return '<div style="color:red; font-weight:bold;" >' . __( 'Can not delay a single image shortcode', 'wp-photo-album-plus' ) . '</div>';
649
  }
650
 
651
  // Can not delay when in ajax
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
231
  }
232
  else {
233
  wppa_bump_mocc();
234
+ $err = '<span style="color:red">[Error: Syntax error or unsupported parent specification: ' . $atts['parent'] . ']</span>';
235
  return $err;
236
  }
237
  }
499
  $alb = $atts['album'];
500
  if ( ! $alb || $alb < '1' ) {
501
  $err = '
502
+ <span style="color:red">
503
  Error in shortcode spec for type="' . $atts['type'] . '":
504
  either attribute album="" or parent="" should supply a positive integer or enumeration
505
  </span>';
579
  }
580
  if ( ! $album ) {
581
  $err = '
582
+ <span style="color:red">
583
  Error in shortcode spec for type="contest":
584
  Missing or invalid attribute album="<album id>"<br>
585
  album=' . $atts['album'] . ', parent=' . $atts['parent'] . '</span>';
645
  }
646
  }
647
  elseif ( $atts['delay'] ) {
648
+ return '<div style="color:red; font-weight:bold">' . __( 'Can not delay a single image shortcode', 'wp-photo-album-plus' ) . '</div>';
649
  }
650
 
651
  // Can not delay when in ajax
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -225,7 +225,7 @@ global $other_deps;
225
  // The container content
226
  // wppa_runtime_to_ajax_url() produced an error?
227
  if ( wppa( 'delayerror' ) ) {
228
- wppa_out( '<div style="color:red; font-weight:bold;" >' . wppa( 'delayerror' ) . '</div>' );
229
  }
230
  // delay="yes[,nnnn]"
231
  elseif ( substr( $delay, 0, 3 ) == 'yes' ) {
@@ -2818,7 +2818,7 @@ static $user;
2818
  $editlink = '
2819
  <input
2820
  type="button"
2821
- style="float:right;margin-right:6px;cursor:pointer;"
2822
  onclick="wppaStopShow( '.wppa( 'mocc' ).' );wppaEditPhoto( '.wppa( 'mocc' ).', '.esc_js('\''.wppa_encrypt_photo($thumb['id']).'\'').' );"
2823
  value="' . esc_attr( __( wppa_opt( 'fe_edit_button' ) ) ) . '"
2824
  /><span></span>';
@@ -2829,7 +2829,7 @@ static $user;
2829
  id="wppa-delete-' . wppa_encrypt_photo($thumb['id']) . '"
2830
  class="wppa-delete-button"
2831
  type="button"
2832
- style="float:right; margin-right:6px;cursor:pointer;"
2833
  onclick="
2834
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2835
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to remove this photo?', 'wp-photo-album-plus' ) . '" ) )
@@ -2848,7 +2848,7 @@ static $user;
2848
  <input
2849
  id="admin-choice-rem-' . wppa_encrypt_photo($thumb['id']) . '-' . wppa( 'mocc' ) . '"
2850
  type="button"
2851
- style="float:right;margin-right:6px;text-decoration:line-through;cursor:pointer;"
2852
  onclick="
2853
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2854
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to remove this photo from your zipfile?', 'wp-photo-album-plus' ) . '" ) )
@@ -2862,7 +2862,7 @@ static $user;
2862
  <input
2863
  id="admin-choice-' . wppa_encrypt_photo($thumb['id']) . '-' . wppa( 'mocc' ) . '"
2864
  type="button"
2865
- style="float:right;margin-right:6px;cursor:pointer;"
2866
  onclick="
2867
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2868
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to add this photo to your selection?' ,'wp-photo-album-plus' ) . '" ) )
@@ -2880,7 +2880,7 @@ static $user;
2880
  <input
2881
  id="request-info-' . wppa_encrypt_photo( $id ) . '-' . wppa( 'mocc' ) . '"
2882
  type="button"
2883
- style="float:right;margin-right:6px;cursor:pointer;"
2884
  onclick="
2885
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2886
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to ask for info on this photo?' ,'wp-photo-album-plus' ) . '" ) )
@@ -2907,7 +2907,7 @@ static $user;
2907
  <input
2908
  type="button"
2909
  class="wppa-download"
2910
- style="float:right;margin-right:6px;cursor:pointer;"
2911
  value="' . esc_attr( __( 'Download', 'wp-photo-album-plus' ) ) . '"
2912
  />
2913
  </a>';
@@ -4071,7 +4071,7 @@ global $blog_id;
4071
  if ( ! wppa_in_widget() ) wppa_out( '<div style="clear:both;"></div>' );
4072
 
4073
  // Add diagnostic <p> if debug is 1
4074
- if ( wppa( 'debug' ) == '1' && wppa( 'mocc' ) == '1' ) wppa_out( '<p id="wppa-debug-'.wppa( 'mocc' ).'" style="font-size:9px; color:#070; line-size:12px;" ></p>' );
4075
 
4076
  if ( ! defined( 'DOING_WPPA_AJAX' ) ) {
4077
 
@@ -4169,7 +4169,7 @@ global $cover_count_key;
4169
  // Close
4170
  else {
4171
  if ( $nice ) {
4172
- wppa_out( '<div style="clear:both;" ></div></div>' );
4173
  }
4174
 
4175
  // Close wppa-nicewrap
@@ -4251,7 +4251,7 @@ function wppa_popup() {
4251
  ' onmouseout="wppaPopDown( '.wppa( 'mocc' ).' );"' .
4252
  ' >' .
4253
  '</div>' .
4254
- '<div style="clear:both;" >' .
4255
  '</div>' );
4256
  }
4257
 
@@ -4469,7 +4469,7 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
4469
  $result = 'style="width:'.$width.'px; float:right;"';
4470
  }
4471
  else {
4472
- $result = 'style="width:'.$width.'px; float:left;"';
4473
  }
4474
  }
4475
  elseif ( $type == 'cover' ) {
@@ -4485,7 +4485,7 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
4485
  $result = 'style="width:'.$width.'%;float:right;"';
4486
  break;
4487
  case 'right':
4488
- $result = 'style="width:'.$width.'%;float:left;"';
4489
  break;
4490
  case 'top':
4491
  case 'bottom':
@@ -4503,7 +4503,7 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
4503
  break;
4504
  case 'right':
4505
  $width -= wppa_get_textframe_delta();
4506
- $result = 'style="width:'.$width.'px; float:left;"';
4507
  break;
4508
  case 'top':
4509
  case 'bottom':
@@ -4984,6 +4984,22 @@ global $wppa_upload_succes_id;
4984
  // Create album possible?
4985
  $may_create = wppa_switch( 'user_create_on' );
4986
  if ( ! is_user_logged_in() ) $may_create = false; // Must login
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4987
 
4988
  // Edit album possible?
4989
  $may_edit = wppa_switch( 'user_album_edit_on' );
@@ -5797,7 +5813,7 @@ function wppa_get_lbtitle( $type, $id ) {
5797
  $result .= '
5798
  <a
5799
  title="' . __( 'Download', 'wp-photo-album-plus' ) . '"
5800
- style="cursor:pointer;"
5801
  onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( '.wppa( 'mocc' ).', \''.wppa_encrypt_photo($id).'\' );"
5802
  >' .
5803
  rtrim( __( 'Download', 'wp-photo-album-plus' ) . ' ' . $dl_name ) . '
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
225
  // The container content
226
  // wppa_runtime_to_ajax_url() produced an error?
227
  if ( wppa( 'delayerror' ) ) {
228
+ wppa_out( '<div style="color:red; font-weight:bold">' . wppa( 'delayerror' ) . '</div>' );
229
  }
230
  // delay="yes[,nnnn]"
231
  elseif ( substr( $delay, 0, 3 ) == 'yes' ) {
2818
  $editlink = '
2819
  <input
2820
  type="button"
2821
+ style="float:right;margin-right:6px;cursor:pointer"
2822
  onclick="wppaStopShow( '.wppa( 'mocc' ).' );wppaEditPhoto( '.wppa( 'mocc' ).', '.esc_js('\''.wppa_encrypt_photo($thumb['id']).'\'').' );"
2823
  value="' . esc_attr( __( wppa_opt( 'fe_edit_button' ) ) ) . '"
2824
  /><span></span>';
2829
  id="wppa-delete-' . wppa_encrypt_photo($thumb['id']) . '"
2830
  class="wppa-delete-button"
2831
  type="button"
2832
+ style="float:right; margin-right:6px;cursor:pointer"
2833
  onclick="
2834
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2835
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to remove this photo?', 'wp-photo-album-plus' ) . '" ) )
2848
  <input
2849
  id="admin-choice-rem-' . wppa_encrypt_photo($thumb['id']) . '-' . wppa( 'mocc' ) . '"
2850
  type="button"
2851
+ style="float:right;margin-right:6px;text-decoration:line-through;cursor:pointer"
2852
  onclick="
2853
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2854
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to remove this photo from your zipfile?', 'wp-photo-album-plus' ) . '" ) )
2862
  <input
2863
  id="admin-choice-' . wppa_encrypt_photo($thumb['id']) . '-' . wppa( 'mocc' ) . '"
2864
  type="button"
2865
+ style="float:right;margin-right:6px;cursor:pointer"
2866
  onclick="
2867
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2868
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to add this photo to your selection?' ,'wp-photo-album-plus' ) . '" ) )
2880
  <input
2881
  id="request-info-' . wppa_encrypt_photo( $id ) . '-' . wppa( 'mocc' ) . '"
2882
  type="button"
2883
+ style="float:right;margin-right:6px;cursor:pointer"
2884
  onclick="
2885
  wppaStopShow( ' . wppa( 'mocc' ) . ' );' .
2886
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to ask for info on this photo?' ,'wp-photo-album-plus' ) . '" ) )
2907
  <input
2908
  type="button"
2909
  class="wppa-download"
2910
+ style="float:right;margin-right:6px;cursor:pointer"
2911
  value="' . esc_attr( __( 'Download', 'wp-photo-album-plus' ) ) . '"
2912
  />
2913
  </a>';
4071
  if ( ! wppa_in_widget() ) wppa_out( '<div style="clear:both;"></div>' );
4072
 
4073
  // Add diagnostic <p> if debug is 1
4074
+ if ( wppa( 'debug' ) == '1' && wppa( 'mocc' ) == '1' ) wppa_out( '<p id="wppa-debug-'.wppa( 'mocc' ).'" style="font-size:9px; color:#070; line-size:12px"></p>' );
4075
 
4076
  if ( ! defined( 'DOING_WPPA_AJAX' ) ) {
4077
 
4169
  // Close
4170
  else {
4171
  if ( $nice ) {
4172
+ wppa_out( '<div style="clear:both"></div></div>' );
4173
  }
4174
 
4175
  // Close wppa-nicewrap
4251
  ' onmouseout="wppaPopDown( '.wppa( 'mocc' ).' );"' .
4252
  ' >' .
4253
  '</div>' .
4254
+ '<div style="clear:both">' .
4255
  '</div>' );
4256
  }
4257
 
4469
  $result = 'style="width:'.$width.'px; float:right;"';
4470
  }
4471
  else {
4472
+ $result = 'style="width:'.$width.'px; float:left"';
4473
  }
4474
  }
4475
  elseif ( $type == 'cover' ) {
4485
  $result = 'style="width:'.$width.'%;float:right;"';
4486
  break;
4487
  case 'right':
4488
+ $result = 'style="width:'.$width.'%;float:left"';
4489
  break;
4490
  case 'top':
4491
  case 'bottom':
4503
  break;
4504
  case 'right':
4505
  $width -= wppa_get_textframe_delta();
4506
+ $result = 'style="width:'.$width.'px; float:left"';
4507
  break;
4508
  case 'top':
4509
  case 'bottom':
4984
  // Create album possible?
4985
  $may_create = wppa_switch( 'user_create_on' );
4986
  if ( ! is_user_logged_in() ) $may_create = false; // Must login
4987
+ if ( $may_create ) {
4988
+
4989
+ // If roles specified and i am not an admin, see if i have one
4990
+ if ( wppa_opt( 'user_create_roles' ) && ! wppa_user_is( 'administrator' ) ) {
4991
+
4992
+ // Allowed roles
4993
+ $allowed_roles = explode( ',', wppa_opt( 'user_create_roles' ) );
4994
+
4995
+ // Current user roles
4996
+ $user = wp_get_current_user();
4997
+
4998
+ if ( ! array_intersect( $allowed_roles, $user->roles ) ) {
4999
+ $may_create = false;
5000
+ }
5001
+ }
5002
+ }
5003
 
5004
  // Edit album possible?
5005
  $may_edit = wppa_switch( 'user_album_edit_on' );
5813
  $result .= '
5814
  <a
5815
  title="' . __( 'Download', 'wp-photo-album-plus' ) . '"
5816
+ style="cursor:pointer"
5817
  onclick="' . ( wppa_is_safari() && ( wppa_opt( 'art_monkey_link' ) == 'file' ) ? 'wppaWindowReference = window.open();' : '' ) . 'wppaAjaxMakeOrigName( '.wppa( 'mocc' ).', \''.wppa_encrypt_photo($id).'\' );"
5818
  >' .
5819
  rtrim( __( 'Download', 'wp-photo-album-plus' ) . ' ' . $dl_name ) . '
wppa-gp-widget.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * A text widget that interpretes wppa shortcodes
6
  *
7
- * Version 8.0.08.006
8
  */
9
 
10
  class WppaGpWidget extends WP_Widget {
@@ -69,7 +69,7 @@ class WppaGpWidget extends WP_Widget {
69
  }
70
  $result .= $widget_content . $after_widget;
71
 
72
- echo wppa_compress_html( $result );
73
  echo wppa_widget_timer( 'show', $widget_title );
74
 
75
  // Cache?
4
  *
5
  * A text widget that interpretes wppa shortcodes
6
  *
7
+ * Version 8.0.09.003
8
  */
9
 
10
  class WppaGpWidget extends WP_Widget {
69
  }
70
  $result .= $widget_content . $after_widget;
71
 
72
+ echo $result;
73
  echo wppa_widget_timer( 'show', $widget_title );
74
 
75
  // Cache?
wppa-gutenberg-photo.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-gutenberg-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 8.1.09.001
6
  */
7
 
8
  function wppa_gutenberg_photo_block() {
@@ -67,7 +67,7 @@ global $wpdb;
67
  </tr>' .
68
 
69
  // Photo selection max 100 of all photos
70
- '<tr id="wppaphoto-allphoto-tr" style="display:none;" >
71
  <th>
72
  <label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >' .
73
  __( 'The Photo to be used', 'wp-photo-album-plus' ) . ':
@@ -91,7 +91,7 @@ global $wpdb;
91
  <th>' .
92
  __( 'Preview image', 'wp-photo-album-plus' ) . ':
93
  </th>
94
- <td id="wppaphoto-photo-preview" style="text-align:center;" >
95
  </td>
96
  </tr>';
97
 
@@ -101,13 +101,13 @@ global $wpdb;
101
  <tr id="wppa-gutenberg-upload-tr" >
102
  <th>
103
  <a
104
- style="cursor:pointer;"
105
  onclick="jQuery(\'#upload-td\').show();jQuery( \'#wppa-user-upload\' ).click();"
106
  >' .
107
  __( 'Upload new photo', 'wp-photo-album-plus' ) . ':
108
  </a>
109
  </th>
110
- <td id="upload-td" style="display:none;" >
111
 
112
  <form
113
  id="wppa-gutenberg-photo-uplform"
2
  /* wppa-gutenberg-photo.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.1.09.003
6
  */
7
 
8
  function wppa_gutenberg_photo_block() {
67
  </tr>' .
68
 
69
  // Photo selection max 100 of all photos
70
+ '<tr id="wppaphoto-allphoto-tr" style="display:none">
71
  <th>
72
  <label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >' .
73
  __( 'The Photo to be used', 'wp-photo-album-plus' ) . ':
91
  <th>' .
92
  __( 'Preview image', 'wp-photo-album-plus' ) . ':
93
  </th>
94
+ <td id="wppaphoto-photo-preview" style="text-align:center">
95
  </td>
96
  </tr>';
97
 
101
  <tr id="wppa-gutenberg-upload-tr" >
102
  <th>
103
  <a
104
+ style="cursor:pointer"
105
  onclick="jQuery(\'#upload-td\').show();jQuery( \'#wppa-user-upload\' ).click();"
106
  >' .
107
  __( 'Upload new photo', 'wp-photo-album-plus' ) . ':
108
  </a>
109
  </th>
110
+ <td id="upload-td" style="display:none">
111
 
112
  <form
113
  id="wppa-gutenberg-photo-uplform"
wppa-import.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
- * Version 8.1.08.003
7
  *
8
  */
9
 
@@ -260,7 +260,7 @@ global $wppa_session;
260
 
261
  // Local / Remote
262
  wppa_echo( '
263
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >' .
264
  wp_nonce_field( '$wppa_nonce', WPPA_NONCE, true, false ) .
265
  __( 'Select Local or Remote', 'wp-photo-album-plus' ) . '
266
  <select
@@ -270,7 +270,7 @@ global $wppa_session;
270
  <option value="local" ' . ( $source_type == 'local' ? 'selected' : '' ) . '>' . __( 'Local', 'wp-photo-album-plus' ) . '</option>
271
  <option value="remote" ' . ( $source_type == 'remote' ? 'selected' : '' ) . '>' . __( 'Remote' ,'wp-photo-album-plus' ) . '</option>
272
  </select>
273
- <span id="rem-rem-0" style="display:none;" >' .
274
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
275
  </span>
276
  <input
@@ -284,7 +284,7 @@ global $wppa_session;
284
 
285
  // Source dir / url
286
  wppa_echo( '
287
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >' .
288
  wp_nonce_field( '$wppa_nonce', WPPA_NONCE, true, false ) .
289
  __( 'Import photos from:' ,'wp-photo-album-plus' ) );
290
 
@@ -305,7 +305,7 @@ global $wppa_session;
305
  name="wppa-import-set-source-dir"
306
  style="display:none;"
307
  />
308
- <span id="rem-rem" style="display:none;" >' .
309
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
310
  </span>' );
311
  }
@@ -352,7 +352,7 @@ global $wppa_session;
352
  name="wppa-import-set-source-url"
353
  style="display:none;"
354
  />
355
- <span id="rem-rem" style="display:none;" >' .
356
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
357
  </span>
358
  <br>' .
@@ -390,11 +390,11 @@ global $wppa_session;
390
  // Display the zips
391
  if ( PHP_VERSION_ID >= 50207 && $zipcount > '0' ) {
392
  wppa_echo( '
393
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >
394
  <p><b>' .
395
  sprintf( _n( 'There is %d zipfile in the depot', 'There are %d zipfiles in the depot', $zipcount, 'wp-photo-album-plus' ), $zipcount ) . '
396
  </b></p>
397
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
398
  <thead>
399
  <tr>
400
  <td>
@@ -467,13 +467,13 @@ global $wppa_session;
467
  // Dispay the albums ( .amf files )
468
  if ( $albumcount ) {
469
  wppa_echo( '
470
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >
471
  <p>
472
  <b>' .
473
  sprintf( _n( 'There is %d albumdefinition in the depot', 'There are %d albumdefinitions in the depot', $albumcount, 'wp-photo-album-plus' ), $albumcount ) . '
474
  </b>
475
  </p>
476
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
477
  <thead>
478
  <tr>
479
  <td>
@@ -546,7 +546,7 @@ global $wppa_session;
546
  // Display the single photos
547
  if ( $photocount ) {
548
  wppa_echo( '
549
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >
550
  <p><b>' );
551
 
552
  // Local
@@ -622,7 +622,7 @@ global $wppa_session;
622
 
623
  // Header of photo list
624
  wppa_echo( '
625
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
626
  <thead>
627
  <tr>
628
  <td>
@@ -763,7 +763,7 @@ global $wppa_session;
763
 
764
  // Photo list
765
  wppa_echo( '
766
- <table class="form-table wppa-table widefat" style="margin-top:0;" >
767
  <tr>' );
768
  $ct = 0;
769
  $idx = '0';
@@ -886,7 +886,7 @@ global $wppa_session;
886
 
887
  // Header of video list
888
  wppa_echo( '
889
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
890
  <thead>
891
  <tr>
892
  <td>
@@ -926,7 +926,7 @@ global $wppa_session;
926
 
927
  // Video list
928
  wppa_echo( '
929
- <table class="form-table wppa-table widefat" style="margin-top:0;" >
930
  <tr>' );
931
  $ct = 0;
932
  $idx = '0';
@@ -1003,7 +1003,7 @@ global $wppa_session;
1003
 
1004
  // Header of audio list
1005
  wppa_echo( '
1006
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
1007
  <thead>
1008
  <tr>
1009
  <td>
@@ -1042,7 +1042,7 @@ global $wppa_session;
1042
 
1043
  // Audio list
1044
  wppa_echo( '
1045
- <table class="form-table wppa-table widefat" style="margin-top:0;" >
1046
  <tr>' );
1047
  $ct = 0;
1048
  $idx = '0';
@@ -1086,7 +1086,7 @@ global $wppa_session;
1086
  // Display the csv files
1087
  if ( $is_depot && $csvcount ) {
1088
  wppa_echo( '
1089
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >' );
1090
 
1091
  // Display number of files
1092
  wppa_echo( '
@@ -1096,7 +1096,7 @@ global $wppa_session;
1096
 
1097
  // Header of .csv file list
1098
  wppa_echo( '
1099
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
1100
  <thead>
1101
  <tr>
1102
  <td>
@@ -1130,7 +1130,7 @@ global $wppa_session;
1130
 
1131
  // CSV file list
1132
  wppa_echo( '
1133
- <table class="form-table wppa-table widefat" style="margin-top:0;" >' );
1134
  $ct = 0;
1135
  $idx = '0';
1136
  if ( is_array( $files ) ) foreach( $files as $csv ) {
@@ -1163,7 +1163,7 @@ global $wppa_session;
1163
  // Display the document files
1164
  if ( $is_depot && $documentcount ) {
1165
  wppa_echo( '
1166
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >' );
1167
 
1168
  // Display number of files
1169
  wppa_echo( '
@@ -1194,7 +1194,7 @@ global $wppa_session;
1194
 
1195
  // Header of .pdf file list
1196
  wppa_echo( '
1197
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
1198
  <thead>
1199
  <tr>
1200
  <td>
@@ -1227,7 +1227,7 @@ global $wppa_session;
1227
 
1228
  // pdf file list
1229
  wppa_echo( '
1230
- <table class="form-table wppa-table widefat" style="margin-top:0;" >
1231
  <tr>' );
1232
  $ct = 0;
1233
  $idx = '0';
@@ -1271,7 +1271,7 @@ global $wppa_session;
1271
  // Display the directories to be imported as albums. Do this in the depot only!!
1272
  if ( $is_depot && $dircount ) {
1273
  wppa_echo( '
1274
- <div style="border:1px solid gray; padding:4px; margin: 3px 0;" >' );
1275
 
1276
  // Display number of dirs
1277
  wppa_echo( '
@@ -1281,7 +1281,7 @@ global $wppa_session;
1281
 
1282
  // Header of dirlist
1283
  wppa_echo( '
1284
- <table class="form-table wppa-table widefat" style="margin-bottom:0;" >
1285
  <thead>
1286
  <tr>
1287
  <td>
@@ -1315,7 +1315,7 @@ global $wppa_session;
1315
 
1316
  // Dirlist
1317
  wppa_echo( '
1318
- <table class="form-table wppa-table widefat" style="margin-top:0;" >' );
1319
  $ct = 0;
1320
  $idx = '0';
1321
  foreach( $files as $dir ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
260
 
261
  // Local / Remote
262
  wppa_echo( '
263
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">' .
264
  wp_nonce_field( '$wppa_nonce', WPPA_NONCE, true, false ) .
265
  __( 'Select Local or Remote', 'wp-photo-album-plus' ) . '
266
  <select
270
  <option value="local" ' . ( $source_type == 'local' ? 'selected' : '' ) . '>' . __( 'Local', 'wp-photo-album-plus' ) . '</option>
271
  <option value="remote" ' . ( $source_type == 'remote' ? 'selected' : '' ) . '>' . __( 'Remote' ,'wp-photo-album-plus' ) . '</option>
272
  </select>
273
+ <span id="rem-rem-0" style="display:none">' .
274
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
275
  </span>
276
  <input
284
 
285
  // Source dir / url
286
  wppa_echo( '
287
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">' .
288
  wp_nonce_field( '$wppa_nonce', WPPA_NONCE, true, false ) .
289
  __( 'Import photos from:' ,'wp-photo-album-plus' ) );
290
 
305
  name="wppa-import-set-source-dir"
306
  style="display:none;"
307
  />
308
+ <span id="rem-rem" style="display:none">' .
309
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
310
  </span>' );
311
  }
352
  name="wppa-import-set-source-url"
353
  style="display:none;"
354
  />
355
+ <span id="rem-rem" style="display:none">' .
356
  __( 'Working, please wait...', 'wp-photo-album-plus' ) . '
357
  </span>
358
  <br>' .
390
  // Display the zips
391
  if ( PHP_VERSION_ID >= 50207 && $zipcount > '0' ) {
392
  wppa_echo( '
393
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">
394
  <p><b>' .
395
  sprintf( _n( 'There is %d zipfile in the depot', 'There are %d zipfiles in the depot', $zipcount, 'wp-photo-album-plus' ), $zipcount ) . '
396
  </b></p>
397
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
398
  <thead>
399
  <tr>
400
  <td>
467
  // Dispay the albums ( .amf files )
468
  if ( $albumcount ) {
469
  wppa_echo( '
470
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">
471
  <p>
472
  <b>' .
473
  sprintf( _n( 'There is %d albumdefinition in the depot', 'There are %d albumdefinitions in the depot', $albumcount, 'wp-photo-album-plus' ), $albumcount ) . '
474
  </b>
475
  </p>
476
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
477
  <thead>
478
  <tr>
479
  <td>
546
  // Display the single photos
547
  if ( $photocount ) {
548
  wppa_echo( '
549
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">
550
  <p><b>' );
551
 
552
  // Local
622
 
623
  // Header of photo list
624
  wppa_echo( '
625
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
626
  <thead>
627
  <tr>
628
  <td>
763
 
764
  // Photo list
765
  wppa_echo( '
766
+ <table class="form-table wppa-table widefat" style="margin-top:0">
767
  <tr>' );
768
  $ct = 0;
769
  $idx = '0';
886
 
887
  // Header of video list
888
  wppa_echo( '
889
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
890
  <thead>
891
  <tr>
892
  <td>
926
 
927
  // Video list
928
  wppa_echo( '
929
+ <table class="form-table wppa-table widefat" style="margin-top:0">
930
  <tr>' );
931
  $ct = 0;
932
  $idx = '0';
1003
 
1004
  // Header of audio list
1005
  wppa_echo( '
1006
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
1007
  <thead>
1008
  <tr>
1009
  <td>
1042
 
1043
  // Audio list
1044
  wppa_echo( '
1045
+ <table class="form-table wppa-table widefat" style="margin-top:0">
1046
  <tr>' );
1047
  $ct = 0;
1048
  $idx = '0';
1086
  // Display the csv files
1087
  if ( $is_depot && $csvcount ) {
1088
  wppa_echo( '
1089
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">' );
1090
 
1091
  // Display number of files
1092
  wppa_echo( '
1096
 
1097
  // Header of .csv file list
1098
  wppa_echo( '
1099
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
1100
  <thead>
1101
  <tr>
1102
  <td>
1130
 
1131
  // CSV file list
1132
  wppa_echo( '
1133
+ <table class="form-table wppa-table widefat" style="margin-top:0">' );
1134
  $ct = 0;
1135
  $idx = '0';
1136
  if ( is_array( $files ) ) foreach( $files as $csv ) {
1163
  // Display the document files
1164
  if ( $is_depot && $documentcount ) {
1165
  wppa_echo( '
1166
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">' );
1167
 
1168
  // Display number of files
1169
  wppa_echo( '
1194
 
1195
  // Header of .pdf file list
1196
  wppa_echo( '
1197
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
1198
  <thead>
1199
  <tr>
1200
  <td>
1227
 
1228
  // pdf file list
1229
  wppa_echo( '
1230
+ <table class="form-table wppa-table widefat" style="margin-top:0">
1231
  <tr>' );
1232
  $ct = 0;
1233
  $idx = '0';
1271
  // Display the directories to be imported as albums. Do this in the depot only!!
1272
  if ( $is_depot && $dircount ) {
1273
  wppa_echo( '
1274
+ <div style="border:1px solid gray; padding:4px; margin: 3px 0">' );
1275
 
1276
  // Display number of dirs
1277
  wppa_echo( '
1281
 
1282
  // Header of dirlist
1283
  wppa_echo( '
1284
+ <table class="form-table wppa-table widefat" style="margin-bottom:0">
1285
  <thead>
1286
  <tr>
1287
  <td>
1315
 
1316
  // Dirlist
1317
  wppa_echo( '
1318
+ <table class="form-table wppa-table widefat" style="margin-top:0">' );
1319
  $ct = 0;
1320
  $idx = '0';
1321
  foreach( $files as $dir ) {
wppa-init.php CHANGED
@@ -373,7 +373,7 @@ function wppa_check_upload_logout() {
373
 
374
  if ( wppa_switch( 'upload_logout' ) && ! wppa_switch( 'upload_moderate' ) && wppa_user_is( 'administrator' ) ) {
375
  $text = __( 'Warning: Non logged in users can upload photos while uploads do not need to be moderated. This can lead to unwanted content on this website!', 'wp-photo-album-plus' ) .
376
- '<br>' . wppa_see_also( 'users', '1', '32' ) . ' ' . __( 'and', 'wp-photo-album-plus' ) . ' ' . wppa_see_also( 'admin', '2', '11' );
377
  wppa_warning_message( $text );
378
  }
379
  }
373
 
374
  if ( wppa_switch( 'upload_logout' ) && ! wppa_switch( 'upload_moderate' ) && wppa_user_is( 'administrator' ) ) {
375
  $text = __( 'Warning: Non logged in users can upload photos while uploads do not need to be moderated. This can lead to unwanted content on this website!', 'wp-photo-album-plus' ) .
376
+ '<br>' . wppa_see_also( 'users', '1', '32' ) . ' ' . __( 'and', 'wp-photo-album-plus' ) . ' ' . wppa_see_also( 'admin', '2', '12' );
377
  wppa_warning_message( $text );
378
  }
379
  }
wppa-lasten-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the last uploaded photos
6
- * Version 8.0.08.006
7
  */
8
 
9
  class LasTenWidget extends WP_Widget {
@@ -162,7 +162,7 @@ class LasTenWidget extends WP_Widget {
162
  if ( $display == 'thumbs' ) {
163
  $widget_content .= '
164
  <div class="wppa-widget"' .
165
- ' style="width:'.$maxw.'px; height:'.$maxh.'px; margin:4px; display:inline; text-align:center; float:left;"' .
166
  ' data-wppa="yes"' .
167
  ' >';
168
  }
@@ -206,7 +206,7 @@ class LasTenWidget extends WP_Widget {
206
  }
207
  $result .= $widget_content . $after_widget;
208
 
209
- echo wppa_compress_html( $result );
210
  echo wppa_widget_timer( 'show', $widget_title );
211
 
212
  // Cache?
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the last uploaded photos
6
+ * Version 8.0.09.003
7
  */
8
 
9
  class LasTenWidget extends WP_Widget {
162
  if ( $display == 'thumbs' ) {
163
  $widget_content .= '
164
  <div class="wppa-widget"' .
165
+ ' style="width:'.$maxw.'px; height:'.$maxh.'px; margin:4px; display:inline; text-align:center; float:left"' .
166
  ' data-wppa="yes"' .
167
  ' >';
168
  }
206
  }
207
  $result .= $widget_content . $after_widget;
208
 
209
+ echo $result;
210
  echo wppa_widget_timer( 'show', $widget_title );
211
 
212
  // Cache?
wppa-links.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Frontend links
6
 
7
- * Version 8.1.09.001
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -832,13 +832,13 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
832
 
833
  $result = '
834
  <div style="clear:both;"></div>
835
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
836
  '.$app.
837
  '</a>
838
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
839
  '.$mod.
840
  '</a>
841
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', false)">
842
  '.$del.
843
  '</a><br class="wppa-approve-'.$id.'" />';
844
  break;
@@ -849,13 +849,13 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
849
 
850
  $result = '
851
  <div style="clear:both;"></div>
852
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
853
  '.$app.
854
  '</a>
855
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
856
  '.$mod.
857
  '</a>
858
- <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', true)">
859
  '.$del.
860
  '</a><br class="wppa-approve-'.$id.'" />';
861
  break;
@@ -866,19 +866,19 @@ function wppa_moderate_links( $type, $id, $comid = '' ) {
866
  $del = __('Delete', 'wp-photo-album-plus' );
867
  $result = '
868
  <br class="wppa-approve-'.$comid.'" />
869
- <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:green; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to publish this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApproveComment(\''.$comid.'\')">
870
  '.$app.
871
  '</a>';
872
  if ( current_user_can('wppa_moderate') && ! wppa_switch( 'moderate_bulk' ) ) $result .= '
873
- <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
874
  '.$mod1.
875
  '</a>';
876
  if ( current_user_can('wppa_comments') || current_user_can('wppa_moderate') ) $result .= '
877
- <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:blue; cursor:pointer;" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_manage_comments&amp;commentid='.$comid.'\'" >
878
  '.$mod2.
879
  '</a>';
880
  $result .= '
881
- <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:red; cursor:pointer;" onclick="if ( confirm(\''.__('Are you sure you want to remove this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemoveComment(\''.$comid.'\', true)">
882
  '.$del.
883
  '</a><br class="wppa-approve-'.$comid.'" />';
884
  break;
@@ -1116,7 +1116,7 @@ global $previous_page_last_id;
1116
  ' style="float:left;text-align:left;'.$vis.'"' .
1117
  ' >
1118
  <a' .
1119
- ' style="cursor:pointer;"' .
1120
  ' title="' . esc_attr( __( 'Previous page', 'wp-photo-album-plus' ) ) . '"' .
1121
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage - 1 ) . '\', \'' . wppa_convert_to_pretty ( $link_url . '&amp;wppa-page=' . ( $curpage - 1 ) ) . '\' )"' .
1122
  ' >' .
@@ -1131,7 +1131,7 @@ global $previous_page_last_id;
1131
  >
1132
  <a' .
1133
  ' id="wppa-next-pagelink-' . $mocc . '"' .
1134
- ' style="cursor:pointer;"' .
1135
  ' title="' . esc_attr( __( 'Next page', 'wp-photo-album-plus' ) ) . '"' .
1136
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage + 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage + 1 ) ) . '\')"' .
1137
  ' >' .
@@ -1163,7 +1163,7 @@ global $previous_page_last_id;
1163
 
1164
  '<a' .
1165
  ' id="wppa-pagelink-' . $mocc . '-' . $i . '"' .
1166
- ' style="cursor:pointer;"' .
1167
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . $i . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . $i ) . '\')"' .
1168
  ' >' .
1169
  '&nbsp;' . $i . '&nbsp;' .
@@ -1200,7 +1200,7 @@ global $previous_page_last_id;
1200
  $result .= $curpage . '/' . $npages;
1201
  }
1202
 
1203
- $result .= '<div style="clear:both;" ></div>';
1204
  $result .= '</div><!-- #prevnext-a-' . wppa( 'mocc' ) . ' -->';
1205
  wppa_out( $result );
1206
  }
@@ -1221,10 +1221,10 @@ global $previous_page_last_id;
1221
  >
1222
  <span
1223
  class="wppa-arrow"
1224
- style="cursor:default;" >&laquo;&nbsp;
1225
  </span>
1226
  <a
1227
- style="cursor:pointer;"
1228
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage - 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage - 1 ) ) . '\')"
1229
  >' .
1230
  __( 'Previous', 'wp-photo-album-plus' ) . '
@@ -1238,14 +1238,14 @@ global $previous_page_last_id;
1238
  >
1239
  <a
1240
  id="wppa-next-pagelink-' . $mocc . '"
1241
- style="cursor:pointer;"
1242
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage + 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage + 1 ) ) . '\')"
1243
  >' .
1244
  __( 'Next', 'wp-photo-album-plus' ) . '
1245
  </a>
1246
  <span
1247
  class="wppa-arrow"
1248
- style="cursor:default;" >&nbsp;&raquo;</span
1249
  >
1250
  </div><!-- #next-page -->';
1251
 
@@ -1271,7 +1271,7 @@ global $previous_page_last_id;
1271
  >
1272
  <a
1273
  id="wppa-pagelink-' . $mocc . '-' . $i . '"
1274
- style="cursor:pointer;"
1275
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . $i . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . $i ) . '\')"
1276
  >&nbsp;'.$i.'&nbsp;</a
1277
  >
@@ -1317,10 +1317,10 @@ function wppa_album_download_link( $albumid ) {
1317
  $mocc = wppa( 'mocc' );
1318
 
1319
  $result = '
1320
- <div style="clear:both;" ></div>
1321
  <a
1322
  onclick="wppaAjaxDownloadAlbum(' . $mocc . ', \'' . wppa_encrypt_album( $albumid ) . '\' );"
1323
- style="cursor:pointer;"
1324
  class="wppa-album-cover-link"
1325
  title="' . esc_attr( __( 'Download', 'wp-photo-album-plus' ) ) . '"
1326
  >' .
4
  *
5
  * Frontend links
6
 
7
+ * Version 8.1.09.003
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
832
 
833
  $result = '
834
  <div style="clear:both;"></div>
835
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
836
  '.$app.
837
  '</a>
838
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
839
  '.$mod.
840
  '</a>
841
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', false)">
842
  '.$del.
843
  '</a><br class="wppa-approve-'.$id.'" />';
844
  break;
849
 
850
  $result = '
851
  <div style="clear:both;"></div>
852
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:green; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to publish this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApprovePhoto(\''.$id.'\')">
853
  '.$app.
854
  '</a>
855
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:blue; cursor:pointer" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
856
  '.$mod.
857
  '</a>
858
+ <a class="wppa-approve-'.$id.'" style="font-weight:bold; color:red; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to remove this photo?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemovePhoto('.wppa('mocc').', \''.$id.'\', true)">
859
  '.$del.
860
  '</a><br class="wppa-approve-'.$id.'" />';
861
  break;
866
  $del = __('Delete', 'wp-photo-album-plus' );
867
  $result = '
868
  <br class="wppa-approve-'.$comid.'" />
869
+ <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:green; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to publish this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxApproveComment(\''.$comid.'\')">
870
  '.$app.
871
  '</a>';
872
  if ( current_user_can('wppa_moderate') && ! wppa_switch( 'moderate_bulk' ) ) $result .= '
873
+ <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:blue; cursor:pointer" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_moderate_photos&amp;photo='.$id.'\'" >
874
  '.$mod1.
875
  '</a>';
876
  if ( current_user_can('wppa_comments') || current_user_can('wppa_moderate') ) $result .= '
877
+ <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:blue; cursor:pointer" onclick="document.location=\''.get_admin_url().'admin.php?page=wppa_manage_comments&amp;commentid='.$comid.'\'" >
878
  '.$mod2.
879
  '</a>';
880
  $result .= '
881
+ <a class="wppa-approve-'.$comid.'" style="font-weight:bold; color:red; cursor:pointer" onclick="if ( confirm(\''.__('Are you sure you want to remove this comment?', 'wp-photo-album-plus' ).'\') ) wppaAjaxRemoveComment(\''.$comid.'\', true)">
882
  '.$del.
883
  '</a><br class="wppa-approve-'.$comid.'" />';
884
  break;
1116
  ' style="float:left;text-align:left;'.$vis.'"' .
1117
  ' >
1118
  <a' .
1119
+ ' style="cursor:pointer"' .
1120
  ' title="' . esc_attr( __( 'Previous page', 'wp-photo-album-plus' ) ) . '"' .
1121
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage - 1 ) . '\', \'' . wppa_convert_to_pretty ( $link_url . '&amp;wppa-page=' . ( $curpage - 1 ) ) . '\' )"' .
1122
  ' >' .
1131
  >
1132
  <a' .
1133
  ' id="wppa-next-pagelink-' . $mocc . '"' .
1134
+ ' style="cursor:pointer"' .
1135
  ' title="' . esc_attr( __( 'Next page', 'wp-photo-album-plus' ) ) . '"' .
1136
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage + 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage + 1 ) ) . '\')"' .
1137
  ' >' .
1163
 
1164
  '<a' .
1165
  ' id="wppa-pagelink-' . $mocc . '-' . $i . '"' .
1166
+ ' style="cursor:pointer"' .
1167
  ' onclick="wppaDoAjaxRender( ' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . $i . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . $i ) . '\')"' .
1168
  ' >' .
1169
  '&nbsp;' . $i . '&nbsp;' .
1200
  $result .= $curpage . '/' . $npages;
1201
  }
1202
 
1203
+ $result .= '<div style="clear:both"></div>';
1204
  $result .= '</div><!-- #prevnext-a-' . wppa( 'mocc' ) . ' -->';
1205
  wppa_out( $result );
1206
  }
1221
  >
1222
  <span
1223
  class="wppa-arrow"
1224
+ style="cursor:default">&laquo;&nbsp;
1225
  </span>
1226
  <a
1227
+ style="cursor:pointer"
1228
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage - 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage - 1 ) ) . '\')"
1229
  >' .
1230
  __( 'Previous', 'wp-photo-album-plus' ) . '
1238
  >
1239
  <a
1240
  id="wppa-next-pagelink-' . $mocc . '"
1241
+ style="cursor:pointer"
1242
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . ( $curpage + 1 ) . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . ( $curpage + 1 ) ) . '\')"
1243
  >' .
1244
  __( 'Next', 'wp-photo-album-plus' ) . '
1245
  </a>
1246
  <span
1247
  class="wppa-arrow"
1248
+ style="cursor:default">&nbsp;&raquo;</span
1249
  >
1250
  </div><!-- #next-page -->';
1251
 
1271
  >
1272
  <a
1273
  id="wppa-pagelink-' . $mocc . '-' . $i . '"
1274
+ style="cursor:pointer"
1275
  onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax_url . '&amp;wppa-page=' . $i . '\', \'' . wppa_convert_to_pretty( $link_url . '&amp;wppa-page=' . $i ) . '\')"
1276
  >&nbsp;'.$i.'&nbsp;</a
1277
  >
1317
  $mocc = wppa( 'mocc' );
1318
 
1319
  $result = '
1320
+ <div style="clear:both"></div>
1321
  <a
1322
  onclick="wppaAjaxDownloadAlbum(' . $mocc . ', \'' . wppa_encrypt_album( $albumid ) . '\' );"
1323
+ style="cursor:pointer"
1324
  class="wppa-album-cover-link"
1325
  title="' . esc_attr( __( 'Download', 'wp-photo-album-plus' ) ) . '"
1326
  >' .
wppa-mailing.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains mailing functions
6
  *
7
- * Version 8.1.09.001
8
  *
9
  */
10
 
@@ -220,7 +220,7 @@ global $wpdb;
220
  if ( $desc ) {
221
  $content .=
222
  '<br><br>' . __( 'Description', 'wp-photo-album-plus' ) . ':<br><br>' .
223
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >' .
224
  '<em>' . $desc . '</em><br>' .
225
  '</blockquote>';
226
  }
@@ -423,7 +423,7 @@ global $wpdb;
423
 
424
  // The content
425
  $cont = $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
426
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
427
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
428
  </blockquote>';
429
 
@@ -553,7 +553,7 @@ global $wpdb;
553
 
554
  $cont =
555
  $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
556
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
557
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
558
  </blockquote>';
559
 
@@ -580,7 +580,7 @@ global $wpdb;
580
  if ( $author && wppa_is_user_in_mailinglist( $author->ID, $type ) ) {
581
 
582
  $cont = __( 'You wrote on photo', 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
583
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
584
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
585
  </blockquote>';
586
 
@@ -646,7 +646,7 @@ global $wpdb;
646
 
647
  $cont =
648
  $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
649
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
650
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
651
  </blockquote>';
652
 
@@ -785,7 +785,7 @@ global $wpdb;
785
 
786
  $cont =
787
  $aut . ( strpos( $comment['email'], '@' ) ? ' (' . make_clickable( $comment['email'] ) . ') ' : ' ' ) . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $pho ) . ':' .
788
- '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px;" >
789
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
790
  </blockquote>';
791
 
4
  *
5
  * Contains mailing functions
6
  *
7
+ * Version 8.1.09.003
8
  *
9
  */
10
 
220
  if ( $desc ) {
221
  $content .=
222
  '<br><br>' . __( 'Description', 'wp-photo-album-plus' ) . ':<br><br>' .
223
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">' .
224
  '<em>' . $desc . '</em><br>' .
225
  '</blockquote>';
226
  }
423
 
424
  // The content
425
  $cont = $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
426
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
427
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
428
  </blockquote>';
429
 
553
 
554
  $cont =
555
  $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
556
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
557
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
558
  </blockquote>';
559
 
580
  if ( $author && wppa_is_user_in_mailinglist( $author->ID, $type ) ) {
581
 
582
  $cont = __( 'You wrote on photo', 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
583
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
584
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
585
  </blockquote>';
586
 
646
 
647
  $cont =
648
  $aut . ' ' . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $comment['photo'] ) . ':' .
649
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
650
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
651
  </blockquote>';
652
 
785
 
786
  $cont =
787
  $aut . ( strpos( $comment['email'], '@' ) ? ' (' . make_clickable( $comment['email'] ) . ') ' : ' ' ) . __( 'wrote on photo' , 'wp-photo-album-plus' ) . ' ' . wppa_get_photo_name( $pho ) . ':' .
788
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius: 4px">
789
  <em> ' . stripslashes( $comment['comment'] ) . '</em>
790
  </blockquote>';
791
 
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -1291,10 +1291,10 @@ global $wppa_log_file;
1291
  <table>
1292
  <thead>
1293
  <tr>
1294
- <th><span style="float:left;" >Id</span></th>
1295
- <th><span style="float:left;" >Word</span></th>
1296
- <th style="max-width:400px;" ><span style="float:left;" >Albums</span></th>
1297
- <th><span style="float:left;" >Photos</span></th>
1298
  </tr>
1299
  <tr><td colspan="3"><hr /></td></tr>
1300
  </thead>
@@ -1305,7 +1305,7 @@ global $wppa_log_file;
1305
  <tr>
1306
  <td>' . htmlspecialchars( $index['id'] ) . '</td>
1307
  <td>' . htmlspecialchars( $index['slug'] ) . '</td>
1308
- <td style="max-width:400px; word-wrap: break-word;" >' . htmlspecialchars( $index['albums'] ) . '</td>
1309
  <td>' . htmlspecialchars( $index['photos'] ) . '</td>
1310
  </tr>';
1311
  }
@@ -1453,17 +1453,17 @@ global $wppa_log_file;
1453
  </tr>
1454
  <tr><td colspan="7"><hr /></td></tr>
1455
  </thead>
1456
- <tbody style="overflow:auto;" >';
1457
  foreach ( $sessions as $session ) {
1458
  $data = wppa_unserialize( $session['data'] );
1459
  $result .= '
1460
  <tr>
1461
  <td>'.$session['id'].'</td>
1462
  <td>' . htmlspecialchars( strlen( $session['ip'] ) > 15 ? substr( $session['ip'], 0, 12 ) . '...' : $session['ip'] ) . '</td>
1463
- <td style="width:150px;" >'.wppa_local_date(wppa_get_option('date_format', "F j, Y,").' '.wppa_get_option('time_format', "g:i a"), $session['timestamp']).'</td>
1464
  <td>' . htmlspecialchars( $session['count'] ) . '</td>
1465
  <td>' . htmlspecialchars( $session['status'] ) . '</td>
1466
- <td style="border-bottom:1px solid gray;" >';
1467
  if ( is_array( $data ) ) foreach ( array_keys( $data ) as $key ) {
1468
  if ( $key != 'uris' ) {
1469
  if ( is_array( $data[$key] ) ) {
@@ -1486,7 +1486,7 @@ global $wppa_log_file;
1486
 
1487
  $result .= '
1488
  </td>
1489
- <td style="border-bottom:1px solid gray;" >';
1490
  if ( is_array( $data['uris'] ) ) {
1491
  foreach ( $data['uris'] as $uri ) {
1492
  $result .= $uri.'<br>';
@@ -1556,7 +1556,7 @@ global $wppa_log_file;
1556
  <td>' . htmlspecialchars( $comment['userid'] ) . '</td>
1557
  <td>' . htmlspecialchars( $comment['email'] ) . '</td>
1558
  <td>' . htmlspecialchars( $comment['photo'] ) . '</td>
1559
- <td style="width:250px; text-align:center;" >
1560
  <img
1561
  src="' . esc_url( wppa_get_thumb_url( $comment['photo'] ) ) . '"
1562
  style="height: 40px;"
@@ -1689,7 +1689,7 @@ function wppa_log_page() {
1689
  wppa_admin_spinner() .
1690
  wp_nonce_field( 'wppa-nonce', 'wppa-nonce', true, false ) . '
1691
  <img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
1692
- <h1 style="display:inline" >' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus' ) ) . '
1693
  <input
1694
  class="button-secundary"
1695
  style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
1291
  <table>
1292
  <thead>
1293
  <tr>
1294
+ <th><span style="float:left">Id</span></th>
1295
+ <th><span style="float:left">Word</span></th>
1296
+ <th style="max-width:400px"><span style="float:left">Albums</span></th>
1297
+ <th><span style="float:left">Photos</span></th>
1298
  </tr>
1299
  <tr><td colspan="3"><hr /></td></tr>
1300
  </thead>
1305
  <tr>
1306
  <td>' . htmlspecialchars( $index['id'] ) . '</td>
1307
  <td>' . htmlspecialchars( $index['slug'] ) . '</td>
1308
+ <td style="max-width:400px; word-wrap: break-word">' . htmlspecialchars( $index['albums'] ) . '</td>
1309
  <td>' . htmlspecialchars( $index['photos'] ) . '</td>
1310
  </tr>';
1311
  }
1453
  </tr>
1454
  <tr><td colspan="7"><hr /></td></tr>
1455
  </thead>
1456
+ <tbody style="overflow:auto">';
1457
  foreach ( $sessions as $session ) {
1458
  $data = wppa_unserialize( $session['data'] );
1459
  $result .= '
1460
  <tr>
1461
  <td>'.$session['id'].'</td>
1462
  <td>' . htmlspecialchars( strlen( $session['ip'] ) > 15 ? substr( $session['ip'], 0, 12 ) . '...' : $session['ip'] ) . '</td>
1463
+ <td style="width:150px">'.wppa_local_date(wppa_get_option('date_format', "F j, Y,").' '.wppa_get_option('time_format', "g:i a"), $session['timestamp']).'</td>
1464
  <td>' . htmlspecialchars( $session['count'] ) . '</td>
1465
  <td>' . htmlspecialchars( $session['status'] ) . '</td>
1466
+ <td style="border-bottom:1px solid gray">';
1467
  if ( is_array( $data ) ) foreach ( array_keys( $data ) as $key ) {
1468
  if ( $key != 'uris' ) {
1469
  if ( is_array( $data[$key] ) ) {
1486
 
1487
  $result .= '
1488
  </td>
1489
+ <td style="border-bottom:1px solid gray">';
1490
  if ( is_array( $data['uris'] ) ) {
1491
  foreach ( $data['uris'] as $uri ) {
1492
  $result .= $uri.'<br>';
1556
  <td>' . htmlspecialchars( $comment['userid'] ) . '</td>
1557
  <td>' . htmlspecialchars( $comment['email'] ) . '</td>
1558
  <td>' . htmlspecialchars( $comment['photo'] ) . '</td>
1559
+ <td style="width:250px; text-align:center">
1560
  <img
1561
  src="' . esc_url( wppa_get_thumb_url( $comment['photo'] ) ) . '"
1562
  style="height: 40px;"
1689
  wppa_admin_spinner() .
1690
  wp_nonce_field( 'wppa-nonce', 'wppa-nonce', true, false ) . '
1691
  <img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
1692
+ <h1 style="display:inline">' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus' ) ) . '
1693
  <input
1694
  class="button-secundary"
1695
  style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
wppa-multitag-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the multitag widget
6
- * Version 8.1.08.001
7
  *
8
  */
9
 
@@ -49,7 +49,7 @@ class MultitagPhotos extends WP_Widget {
49
 
50
  // Make the widget content
51
  $widget_content = '
52
- <div class="wppa-multitag-widget" data-wppa="yes" >' .
53
  wppa_get_multitag_html( $instance['cols'], $tags ) .
54
  '</div>' .
55
  '<div style="clear:both" ></div>';
@@ -61,7 +61,7 @@ class MultitagPhotos extends WP_Widget {
61
  }
62
  $result .= $widget_content . $after_widget;
63
 
64
- echo wppa_compress_html( $result );
65
  echo wppa_widget_timer( 'show', $widget_title );
66
 
67
  // Cache?
@@ -121,7 +121,7 @@ class MultitagPhotos extends WP_Widget {
121
  // Currently selected
122
  if ( isset( $instance['tags']['0'] ) && $instance['tags']['0'] ) $s = implode( ',', $instance['tags'] ); else $s = __( '--- all ---', 'wp-photo-album-plus' );
123
  echo
124
- '<p style="word-break:break-all;" >' .
125
  __( 'Currently selected tags', 'wp-photo-album-plus' ) . ':' .
126
  '<br>' .
127
  '<b>' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the multitag widget
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
49
 
50
  // Make the widget content
51
  $widget_content = '
52
+ <div class="wppa-multitag-widget" data-wppa="yes">' .
53
  wppa_get_multitag_html( $instance['cols'], $tags ) .
54
  '</div>' .
55
  '<div style="clear:both" ></div>';
61
  }
62
  $result .= $widget_content . $after_widget;
63
 
64
+ echo $result;
65
  echo wppa_widget_timer( 'show', $widget_title );
66
 
67
  // Cache?
121
  // Currently selected
122
  if ( isset( $instance['tags']['0'] ) && $instance['tags']['0'] ) $s = implode( ',', $instance['tags'] ); else $s = __( '--- all ---', 'wp-photo-album-plus' );
123
  echo
124
+ '<p style="word-break:break-all">' .
125
  __( 'Currently selected tags', 'wp-photo-album-plus' ) . ':' .
126
  '<br>' .
127
  '<b>' .
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -175,7 +175,7 @@ wppa_echo( '
175
  $content = esc_attr( sanitize_text_field( wppa_get_keywords( $id ) ) );
176
  if ( $content && ! in_array( $content, $done ) ) {
177
  wppa_echo( '
178
- <meta name="keywords" content="'.$content.'" >' );
179
  $done[] = $content;
180
  }
181
  }
@@ -196,7 +196,7 @@ wppa_echo( '
196
  $content = esc_attr( sanitize_text_field( wppa_get_keywords( $id ) ) );
197
  if ( $content && ! in_array( $content, $done ) ) {
198
  wppa_echo( '
199
- <meta name="keywords" content="' . $content . '" >' );
200
  $done[] = $content;
201
  }
202
  }
@@ -343,7 +343,7 @@ global $wppa_session;
343
  wp_nonce_field( 'wppa-check', 'wppa-nonce', false, true ) .
344
  wp_nonce_field( 'wppa-qr-nonce', 'wppa-qr-nonce', false, true );
345
 
346
- wppa_echo( wppa_compress_html( $result ) );
347
 
348
  // Do the upload if required and not yet done
349
  wppa_user_upload();
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
175
  $content = esc_attr( sanitize_text_field( wppa_get_keywords( $id ) ) );
176
  if ( $content && ! in_array( $content, $done ) ) {
177
  wppa_echo( '
178
+ <meta name="keywords" content="' . $content . '">' );
179
  $done[] = $content;
180
  }
181
  }
196
  $content = esc_attr( sanitize_text_field( wppa_get_keywords( $id ) ) );
197
  if ( $content && ! in_array( $content, $done ) ) {
198
  wppa_echo( '
199
+ <meta name="keywords" content="' . $content . '">' );
200
  $done[] = $content;
201
  }
202
  }
343
  wp_nonce_field( 'wppa-check', 'wppa-nonce', false, true ) .
344
  wp_nonce_field( 'wppa-qr-nonce', 'wppa-qr-nonce', false, true );
345
 
346
+ wppa_echo( $result );
347
 
348
  // Do the upload if required and not yet done
349
  wppa_user_upload();
wppa-notify-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * notify events to users
6
- * Version 8.1.05.001
7
  */
8
 
9
  class wppaNotifyWidget extends WP_Widget {
@@ -42,12 +42,12 @@ class wppaNotifyWidget extends WP_Widget {
42
  if ( wppa_switch( 'newalbumnotify' ) ) {
43
  $in_list = wppa_am_i_in_mailinglist( 'newalbumnotify' );
44
  $body .= '
45
- <div style="clear:both;" >
46
  <input
47
  id="wppa-newalbum-notify"
48
  class="wppa-notify-check"
49
  type="checkbox"
50
- style="float:left;" ' .
51
  ( $in_list ? 'checked="checked" ' : ' ' ) .
52
  'onchange="wppaAjaxNotify(this,\'newalbumnotify\');"
53
  />
@@ -65,12 +65,12 @@ class wppaNotifyWidget extends WP_Widget {
65
  if ( wppa_switch( 'feuploadnotify' ) ) {
66
  $in_list = wppa_am_i_in_mailinglist( 'feuploadnotify' );
67
  $body .= '
68
- <div style="clear:both;" >
69
  <input
70
  id="wppa-feupload-notify"
71
  class="wppa-notify-check"
72
  type="checkbox"
73
- style="float:left;" ' .
74
  ( $in_list ? 'checked="checked" ' : ' ' ) .
75
  'onchange="wppaAjaxNotify(this,\'feuploadnotify\');"
76
  />
@@ -91,12 +91,12 @@ class wppaNotifyWidget extends WP_Widget {
91
  if ( wppa_switch( 'photoapproved' ) ) {
92
  $in_list = wppa_am_i_in_mailinglist( 'photoapproved' );
93
  $body .= '
94
- <div style="clear:both;" >
95
  <input
96
  id="wppa-photoapproved-notify"
97
  class="wppa-notify-check"
98
  type="checkbox"
99
- style="float:left;" ' .
100
  ( $in_list ? 'checked="checked" ' : ' ' ) .
101
  'onchange="wppaAjaxNotify(this,\'photoapproved\');"
102
  />
@@ -118,12 +118,12 @@ class wppaNotifyWidget extends WP_Widget {
118
  if ( wppa_switch( 'commentnotify' ) ) {
119
  $in_list = wppa_am_i_in_mailinglist( 'commentnotify' );
120
  $body .= '
121
- <div style="clear:both;" >
122
  <input
123
  id="wppa-comment-notify"
124
  class="wppa-notify-check"
125
  type="checkbox"
126
- style="float:left;" ' .
127
  ( $in_list ? 'checked="checked" ' : ' ' ) .
128
  'onchange="wppaAjaxNotify(this,\'commentnotify\');"
129
  />
@@ -143,12 +143,12 @@ class wppaNotifyWidget extends WP_Widget {
143
  if ( wppa_switch( 'commentapproved' ) ) {
144
  $in_list = wppa_am_i_in_mailinglist( 'commentapproved' );
145
  $body .= '
146
- <div style="clear:both;" >
147
  <input
148
  id="wppa-commentapproved-notify"
149
  class="wppa-notify-check"
150
  type="checkbox"
151
- style="float:left;" ' .
152
  ( $in_list ? 'checked="checked" ' : ' ' ) .
153
  'onchange="wppaAjaxNotify(this,\'commentapproved\');"
154
  />
@@ -166,12 +166,12 @@ class wppaNotifyWidget extends WP_Widget {
166
  if ( wppa_switch( 'commentprevious' ) ) {
167
  $in_list = wppa_am_i_in_mailinglist( 'commentprevious' );
168
  $body .= '
169
- <div style="clear:both;" >
170
  <input
171
  id="wppa-commentprevious-notify"
172
  class="wppa-notify-check"
173
  type="checkbox"
174
- style="float:left;" ' .
175
  ( $in_list ? 'checked="checked" ' : ' ' ) .
176
  'onchange="wppaAjaxNotify(this,\'commentprevious\');"
177
  />
@@ -193,12 +193,12 @@ class wppaNotifyWidget extends WP_Widget {
193
  if ( wppa_switch( 'upload_moderate' ) ) {
194
  $in_list = wppa_am_i_in_mailinglist( 'moderatephoto' );
195
  $body .= '
196
- <div style="clear:both;" >
197
  <input
198
  id="wppa-upload-moderate"
199
  class="wppa-notify-check"
200
  type="checkbox"
201
- style="float:left;" ' .
202
  ( $in_list ? 'checked="checked" ' : ' ' ) .
203
  'onchange="wppaAjaxNotify(this,\'moderatephoto\');"
204
  />
@@ -216,12 +216,12 @@ class wppaNotifyWidget extends WP_Widget {
216
  if ( wppa_opt( 'moderate_comment' ) != '-none-' ) {
217
  $in_list = wppa_am_i_in_mailinglist( 'moderatecomment' );
218
  $body .= '
219
- <div style="clear:both;" >
220
  <input
221
  id="wppa-upload-moderate-comment"
222
  class="wppa-notify-check"
223
  type="checkbox"
224
- style="float:left;" ' .
225
  ( $in_list ? 'checked="checked" ' : ' ' ) .
226
  'onchange="wppaAjaxNotify(this,\'moderatecomment\');"
227
  />
@@ -253,7 +253,7 @@ class wppaNotifyWidget extends WP_Widget {
253
  }
254
  $result .= $widget_content . $after_widget;
255
 
256
- echo wppa_compress_html( $result );
257
  echo wppa_widget_timer( 'show', $widget_title );
258
 
259
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * notify events to users
6
+ * Version 8.1.09.003
7
  */
8
 
9
  class wppaNotifyWidget extends WP_Widget {
42
  if ( wppa_switch( 'newalbumnotify' ) ) {
43
  $in_list = wppa_am_i_in_mailinglist( 'newalbumnotify' );
44
  $body .= '
45
+ <div style="clear:both">
46
  <input
47
  id="wppa-newalbum-notify"
48
  class="wppa-notify-check"
49
  type="checkbox"
50
+ style="float:left" ' .
51
  ( $in_list ? 'checked="checked" ' : ' ' ) .
52
  'onchange="wppaAjaxNotify(this,\'newalbumnotify\');"
53
  />
65
  if ( wppa_switch( 'feuploadnotify' ) ) {
66
  $in_list = wppa_am_i_in_mailinglist( 'feuploadnotify' );
67
  $body .= '
68
+ <div style="clear:both">
69
  <input
70
  id="wppa-feupload-notify"
71
  class="wppa-notify-check"
72
  type="checkbox"
73
+ style="float:left" ' .
74
  ( $in_list ? 'checked="checked" ' : ' ' ) .
75
  'onchange="wppaAjaxNotify(this,\'feuploadnotify\');"
76
  />
91
  if ( wppa_switch( 'photoapproved' ) ) {
92
  $in_list = wppa_am_i_in_mailinglist( 'photoapproved' );
93
  $body .= '
94
+ <div style="clear:both">
95
  <input
96
  id="wppa-photoapproved-notify"
97
  class="wppa-notify-check"
98
  type="checkbox"
99
+ style="float:left" ' .
100
  ( $in_list ? 'checked="checked" ' : ' ' ) .
101
  'onchange="wppaAjaxNotify(this,\'photoapproved\');"
102
  />
118
  if ( wppa_switch( 'commentnotify' ) ) {
119
  $in_list = wppa_am_i_in_mailinglist( 'commentnotify' );
120
  $body .= '
121
+ <div style="clear:both">
122
  <input
123
  id="wppa-comment-notify"
124
  class="wppa-notify-check"
125
  type="checkbox"
126
+ style="float:left" ' .
127
  ( $in_list ? 'checked="checked" ' : ' ' ) .
128
  'onchange="wppaAjaxNotify(this,\'commentnotify\');"
129
  />
143
  if ( wppa_switch( 'commentapproved' ) ) {
144
  $in_list = wppa_am_i_in_mailinglist( 'commentapproved' );
145
  $body .= '
146
+ <div style="clear:both">
147
  <input
148
  id="wppa-commentapproved-notify"
149
  class="wppa-notify-check"
150
  type="checkbox"
151
+ style="float:left" ' .
152
  ( $in_list ? 'checked="checked" ' : ' ' ) .
153
  'onchange="wppaAjaxNotify(this,\'commentapproved\');"
154
  />
166
  if ( wppa_switch( 'commentprevious' ) ) {
167
  $in_list = wppa_am_i_in_mailinglist( 'commentprevious' );
168
  $body .= '
169
+ <div style="clear:both">
170
  <input
171
  id="wppa-commentprevious-notify"
172
  class="wppa-notify-check"
173
  type="checkbox"
174
+ style="float:left" ' .
175
  ( $in_list ? 'checked="checked" ' : ' ' ) .
176
  'onchange="wppaAjaxNotify(this,\'commentprevious\');"
177
  />
193
  if ( wppa_switch( 'upload_moderate' ) ) {
194
  $in_list = wppa_am_i_in_mailinglist( 'moderatephoto' );
195
  $body .= '
196
+ <div style="clear:both">
197
  <input
198
  id="wppa-upload-moderate"
199
  class="wppa-notify-check"
200
  type="checkbox"
201
+ style="float:left" ' .
202
  ( $in_list ? 'checked="checked" ' : ' ' ) .
203
  'onchange="wppaAjaxNotify(this,\'moderatephoto\');"
204
  />
216
  if ( wppa_opt( 'moderate_comment' ) != '-none-' ) {
217
  $in_list = wppa_am_i_in_mailinglist( 'moderatecomment' );
218
  $body .= '
219
+ <div style="clear:both">
220
  <input
221
  id="wppa-upload-moderate-comment"
222
  class="wppa-notify-check"
223
  type="checkbox"
224
+ style="float:left" ' .
225
  ( $in_list ? 'checked="checked" ' : ' ' ) .
226
  'onchange="wppaAjaxNotify(this,\'moderatecomment\');"
227
  />
253
  }
254
  $result .= $widget_content . $after_widget;
255
 
256
+ echo $result;
257
  echo wppa_widget_timer( 'show', $widget_title );
258
 
259
  wppa( 'in_widget', false );
wppa-photo-admin-autosave.php CHANGED
@@ -1156,13 +1156,13 @@ function wppaToggleExif( id, count ) {
1156
  ' id="stereo-' . $id . '"' .
1157
  ' onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'stereo\', this.value, true)"' .
1158
  ' >' .
1159
- '<option value="0"' . ( $stereo == '0' ? ' selected' : '' ) . ' >' .
1160
  __( 'no stereo image or ready anaglyph', 'wp-photo-album-plus' ) .
1161
  '</option>' .
1162
- '<option value="1"' . ( $stereo == '1' ? ' selected' : '' ) . ' >' .
1163
  __( 'Left - right stereo image', 'wp-photo-album-plus' ) .
1164
  '</option>' .
1165
- '<option value="-1"' . ( $stereo == '-1' ? ' selected' : '' ) . ' >' .
1166
  __( 'Right - left stereo image', 'wp-photo-album-plus' ) .
1167
  '</option>' .
1168
  '</select>' .
@@ -1199,9 +1199,9 @@ function wppaToggleExif( id, count ) {
1199
  wppa_echo(
1200
  __( 'Panorama' ) . ': ' .
1201
  '<select onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'panorama\', this.value, true )">' .
1202
- '<option value="0"' . ( $panorama == '0' ? ' selected' : '' ) . ' >' . __( '- none -', 'wp-photo-album-plus' ) . '</option>' .
1203
- '<option value="1"' . ( $panorama == '1' ? ' selected' : '' ) . ' >' . __( '360&deg; Spheric', 'wp-photo-album-plus' ) . '</option>' .
1204
- '<option value="2"' . ( $panorama == '2' ? ' selected' : '' ) . ' >' . __( 'Non 360&deg; Flat', 'wp-photo-album-plus' ) . '</option>' .
1205
  '</select>' );
1206
 
1207
  $source_file = wppa_get_source_path( $id );
@@ -1708,21 +1708,21 @@ function wppaToggleExif( id, count ) {
1708
  ' onchange="wppaCropper[' . $id . '].setAspectRatio(this.value)"' .
1709
  ' title="' . __( 'Aspect ratio of cropped image', 'wp-photo-album-plus' ) . '"' .
1710
  '>' .
1711
- '<option value="NaN" ' . ( $dflt == 'NaN' ? 'selected' : '' ) . ' >' . __( 'free', 'wp-photo-album-plus' ) . '</option>' .
1712
- '<option value="' . $ratio . '" ' . ( $dflt == 'ratio' ? 'selected' : '' ) . ' >' . __( 'original', 'wp-photo-album-plus' ) . '</option>' .
1713
- '<option value="1" ' . ( $dflt == '1' ? 'selected' : '' ) . ' >' . __( 'square', 'wp-photo-album-plus' ) . '</option>' .
1714
- '<option value="1.25" ' . ( $dflt == '1.25' ? 'selected' : '' ) . ' >4:5 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1715
- '<option value="1.33333" ' . ( $dflt == '1.33333' ? 'selected' : '' ) . ' >3:4 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1716
- '<option value="1.5" ' . ( $dflt == '1.5' ? 'selected' : '' ) . ' >2:3 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1717
- '<option value="1.6" ' . ( $dflt == '1.6' ? 'selected' : '' ) . ' >5:8 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1718
- '<option value="1.77777" ' . ( $dflt == '1.77777' ? 'selected' : '' ) . ' >9:16 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1719
- '<option value="2" ' . ( $dflt == '2' ? 'selected' : '' ) . ' >1:2 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1720
- '<option value="0.8" ' . ( $dflt == '0.8' ? 'selected' : '' ) . ' >4:5 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1721
- '<option value="0.75" ' . ( $dflt == '0.75' ? 'selected' : '' ) . ' >3:4 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1722
- '<option value="0.66667" ' . ( $dflt == '0.66667' ? 'selected' : '' ) . ' >2:3 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1723
- '<option value="0.625" ' . ( $dflt == '0.625' ? 'selected' : '' ) . ' >5:8 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1724
- '<option value="0.5625" ' . ( $dflt == '0.5625' ? 'selected' : '' ) . ' >9:16 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1725
- '<option value="0.5" ' . ( $dflt == '0.5' ? 'selected' : '' ) . ' >1:2 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1726
  '</select>' );
1727
 
1728
  if ( $dflt == 'ratio' ) {
@@ -2322,10 +2322,10 @@ function wppaToggleExif( id, count ) {
2322
  <td style="padding:0 4px">'.$comment['user'].'</td>
2323
  <td style="padding:0 4px">'.wppa_get_time_since( $comment['timestamp'] ).'</td>' );
2324
  if ( current_user_can( 'wppa_comments' ) || current_user_can( 'wppa_moderate' ) || ( wppa_get_user() == $photo['owner'] && wppa_switch( 'owner_moderate_comment' ) ) ) {
2325
- $p = ( $comment['status'] == 'pending' ) ? 'selected ' : '';
2326
- $a = ( $comment['status'] == 'approved' ) ? 'selected ' : '';
2327
- $s = ( $comment['status'] == 'spam' ) ? 'selected ' : '';
2328
- $t = ( $comment['status'] == 'trash' ) ? 'selected ' : '';
2329
  wppa_echo(
2330
  '<td style="padding:0 4px">' .
2331
  '<select' .
@@ -2333,10 +2333,10 @@ function wppaToggleExif( id, count ) {
2333
  ' style="background-color:' . ( $comment['status'] == 'approved' ? '#ffffe0' : '#ffebe8' ) . '"' .
2334
  ' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ')"' .
2335
  ' >' .
2336
- '<option value="pending" '.$p.'>'.__( 'Pending' , 'wp-photo-album-plus' ).'</option>' .
2337
- '<option value="approved" '.$a.'>'.__( 'Approved' , 'wp-photo-album-plus' ).'</option>' .
2338
- '<option value="spam" '.$s.'>'.__( 'Spam' , 'wp-photo-album-plus' ).'</option>' .
2339
- '<option value="trash" '.$t.'>'.__( 'Trash' , 'wp-photo-album-plus' ).'</option>' .
2340
  '</select >' .
2341
  '</td>' );
2342
  }
@@ -2701,9 +2701,9 @@ function wppaTryMove( id, video ) {
2701
  ?>
2702
  <?php $nextafterselhtml =
2703
  '<select name="next-after">' .
2704
- '<option value="-1" ' . ( $next_after == '-1' ? 'selected' : '' ) . ' >' . __( 'the previous page', 'wp-photo-album-plus' ) . '</option>' .
2705
- '<option value="0" ' . ( $next_after == '0' ? 'selected' : '' ) . ' >' . __( 'the same page', 'wp-photo-album-plus' ) . '</option>' .
2706
- '<option value="1" ' . ( $next_after == '1' ? 'selected' : '' ) . ' >' . __( 'the next page', 'wp-photo-album-plus' ) . '</option>' .
2707
  '</select>';
2708
  wppa_echo( sprintf( __( 'Go to %s after Doit!.', 'wp-photo-album-plus' ), $nextafterselhtml ) );
2709
  if ( wppa_is_mobile() ) {
1156
  ' id="stereo-' . $id . '"' .
1157
  ' onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'stereo\', this.value, true)"' .
1158
  ' >' .
1159
+ '<option value="0"' . ( $stereo == '0' ? ' selected' : '' ) . '>' .
1160
  __( 'no stereo image or ready anaglyph', 'wp-photo-album-plus' ) .
1161
  '</option>' .
1162
+ '<option value="1"' . ( $stereo == '1' ? ' selected' : '' ) . '>' .
1163
  __( 'Left - right stereo image', 'wp-photo-album-plus' ) .
1164
  '</option>' .
1165
+ '<option value="-1"' . ( $stereo == '-1' ? ' selected' : '' ) . '>' .
1166
  __( 'Right - left stereo image', 'wp-photo-album-plus' ) .
1167
  '</option>' .
1168
  '</select>' .
1199
  wppa_echo(
1200
  __( 'Panorama' ) . ': ' .
1201
  '<select onchange="wppaAjaxUpdatePhoto( ' . $id . ', \'panorama\', this.value, true )">' .
1202
+ '<option value="0"' . ( $panorama == '0' ? ' selected' : '' ) . '>' . __( '- none -', 'wp-photo-album-plus' ) . '</option>' .
1203
+ '<option value="1"' . ( $panorama == '1' ? ' selected' : '' ) . '>' . __( '360&deg; Spheric', 'wp-photo-album-plus' ) . '</option>' .
1204
+ '<option value="2"' . ( $panorama == '2' ? ' selected' : '' ) . '>' . __( 'Non 360&deg; Flat', 'wp-photo-album-plus' ) . '</option>' .
1205
  '</select>' );
1206
 
1207
  $source_file = wppa_get_source_path( $id );
1708
  ' onchange="wppaCropper[' . $id . '].setAspectRatio(this.value)"' .
1709
  ' title="' . __( 'Aspect ratio of cropped image', 'wp-photo-album-plus' ) . '"' .
1710
  '>' .
1711
+ '<option value="NaN"' . ( $dflt == 'NaN' ? ' selected' : '' ) . '>' . __( 'free', 'wp-photo-album-plus' ) . '</option>' .
1712
+ '<option value="' . $ratio . '"' . ( $dflt == 'ratio' ? ' selected' : '' ) . '>' . __( 'original', 'wp-photo-album-plus' ) . '</option>' .
1713
+ '<option value="1"' . ( $dflt == '1' ? ' selected' : '' ) . '>' . __( 'square', 'wp-photo-album-plus' ) . '</option>' .
1714
+ '<option value="1.25"' . ( $dflt == '1.25' ? ' selected' : '' ) . '>4:5 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1715
+ '<option value="1.33333"' . ( $dflt == '1.33333' ? ' selected' : '' ) . '>3:4 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1716
+ '<option value="1.5"' . ( $dflt == '1.5' ? ' selected' : '' ) . '>2:3 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1717
+ '<option value="1.6"' . ( $dflt == '1.6' ? ' selected' : '' ) . '>5:8 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1718
+ '<option value="1.77777"' . ( $dflt == '1.77777' ? ' selected' : '' ) . '>9:16 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1719
+ '<option value="2"' . ( $dflt == '2' ? ' selected' : '' ) . '>1:2 ' . __( 'landscape', 'wp-photo-album-plus' ) . '</option>' .
1720
+ '<option value="0.8"' . ( $dflt == '0.8' ? ' selected' : '' ) . '>4:5 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1721
+ '<option value="0.75"' . ( $dflt == '0.75' ? ' selected' : '' ) . '>3:4 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1722
+ '<option value="0.66667"' . ( $dflt == '0.66667' ? ' selected' : '' ) . '>2:3 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1723
+ '<option value="0.625"' . ( $dflt == '0.625' ? ' selected' : '' ) . '>5:8 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1724
+ '<option value="0.5625"' . ( $dflt == '0.5625' ? ' selected' : '' ) . '>9:16 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1725
+ '<option value="0.5"' . ( $dflt == '0.5' ? ' selected' : '' ) . '>1:2 ' . __( 'portrait', 'wp-photo-album-plus' ) . '</option>' .
1726
  '</select>' );
1727
 
1728
  if ( $dflt == 'ratio' ) {
2322
  <td style="padding:0 4px">'.$comment['user'].'</td>
2323
  <td style="padding:0 4px">'.wppa_get_time_since( $comment['timestamp'] ).'</td>' );
2324
  if ( current_user_can( 'wppa_comments' ) || current_user_can( 'wppa_moderate' ) || ( wppa_get_user() == $photo['owner'] && wppa_switch( 'owner_moderate_comment' ) ) ) {
2325
+ $p = ( $comment['status'] == 'pending' ) ? ' selected' : '';
2326
+ $a = ( $comment['status'] == 'approved' ) ? ' selected' : '';
2327
+ $s = ( $comment['status'] == 'spam' ) ? ' selected' : '';
2328
+ $t = ( $comment['status'] == 'trash' ) ? ' selected' : '';
2329
  wppa_echo(
2330
  '<td style="padding:0 4px">' .
2331
  '<select' .
2333
  ' style="background-color:' . ( $comment['status'] == 'approved' ? '#ffffe0' : '#ffebe8' ) . '"' .
2334
  ' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ')"' .
2335
  ' >' .
2336
+ '<option value="pending"'.$p.'>'.__( 'Pending' , 'wp-photo-album-plus' ).'</option>' .
2337
+ '<option value="approved"'.$a.'>'.__( 'Approved' , 'wp-photo-album-plus' ).'</option>' .
2338
+ '<option value="spam"'.$s.'>'.__( 'Spam' , 'wp-photo-album-plus' ).'</option>' .
2339
+ '<option value="trash"'.$t.'>'.__( 'Trash' , 'wp-photo-album-plus' ).'</option>' .
2340
  '</select >' .
2341
  '</td>' );
2342
  }
2701
  ?>
2702
  <?php $nextafterselhtml =
2703
  '<select name="next-after">' .
2704
+ '<option value="-1"' . ( $next_after == '-1' ? ' selected' : '' ) . '>' . __( 'the previous page', 'wp-photo-album-plus' ) . '</option>' .
2705
+ '<option value="0"' . ( $next_after == '0' ? ' selected' : '' ) . '>' . __( 'the same page', 'wp-photo-album-plus' ) . '</option>' .
2706
+ '<option value="1"' . ( $next_after == '1' ? ' selected' : '' ) . '>' . __( 'the next page', 'wp-photo-album-plus' ) . '</option>' .
2707
  '</select>';
2708
  wppa_echo( sprintf( __( 'Go to %s after Doit!.', 'wp-photo-album-plus' ), $nextafterselhtml ) );
2709
  if ( wppa_is_mobile() ) {
wppa-picture.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
- * Version 8.1.06.004
7
  *
8
  */
9
 
@@ -165,7 +165,7 @@ function wppa_get_picture_html( $args ) {
165
 
166
  // Create the html. To prevent mis-alignment of the audio control bar or to escape from the <a> tag for the pan controlbar
167
  // we wrap it in a div with zero fontsize and lineheight.
168
- $result = '<div style="font-size:0;line-height:0;" >';
169
 
170
  if ( $is_pdf && $mocc ) {
171
  wppa_js( 'wppaAutoColumnWidth[' . $mocc . '] = true;wppaAutoColumnFrac[' . $mocc . ']=1;wppaTopMoc=Math.max(wppaTopMoc,' . $mocc . ');' );
@@ -221,7 +221,7 @@ function wppa_get_picture_html( $args ) {
221
  title="' . $link['title'] . '"
222
  class="thumb-img"
223
  id="a-' . $id . '-' . $mocc . '"
224
- style="cursor:pointer;"
225
  >';
226
  }
227
  }
@@ -303,7 +303,7 @@ function wppa_get_picture_html( $args ) {
303
  // Add audio? sphoto
304
  if ( wppa_has_audio( $id ) ) {
305
 
306
- $result .= '<div style="position:relative;z-index:11;" >';
307
 
308
  // Find style for audio controls
309
  switch ( $type ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Make the picture html
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
165
 
166
  // Create the html. To prevent mis-alignment of the audio control bar or to escape from the <a> tag for the pan controlbar
167
  // we wrap it in a div with zero fontsize and lineheight.
168
+ $result = '<div style="font-size:0;line-height:0">';
169
 
170
  if ( $is_pdf && $mocc ) {
171
  wppa_js( 'wppaAutoColumnWidth[' . $mocc . '] = true;wppaAutoColumnFrac[' . $mocc . ']=1;wppaTopMoc=Math.max(wppaTopMoc,' . $mocc . ');' );
221
  title="' . $link['title'] . '"
222
  class="thumb-img"
223
  id="a-' . $id . '-' . $mocc . '"
224
+ style="cursor:pointer"
225
  >';
226
  }
227
  }
303
  // Add audio? sphoto
304
  if ( wppa_has_audio( $id ) ) {
305
 
306
+ $result .= '<div style="position:relative;z-index:11">';
307
 
308
  // Find style for audio controls
309
  switch ( $type ) {
wppa-potd-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the photo of the day widget
6
- * Version 8.1.09.001
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -99,7 +99,13 @@ class PhotoOfTheDay extends WP_Widget {
99
  $widget_content .= wppa_get_medal_html_a( array( 'id' => $id, 'size' => 'M', 'where' => 'top' ) );
100
 
101
  // The link, if any
102
- if ($link) $widget_content .= "\n\t".'<a href = "'.$link['url'].'" target="'.$link['target'].'" '.$lightbox.' ' . 'data-lbtitle' . '="'.$ltitle.'">';
 
 
 
 
 
 
103
 
104
  // The image
105
  if ( wppa_is_video( $id ) ) {
@@ -151,7 +157,7 @@ class PhotoOfTheDay extends WP_Widget {
151
  }
152
 
153
  $widget_content .= '<a href="' . $lnk . '" >' .
154
- '<div style="font-size:12px;position:absolute;right:4px;bottom:4px;" >+' . $c . '</div>' .
155
  '</a>';
156
  }
157
  }
@@ -202,7 +208,7 @@ class PhotoOfTheDay extends WP_Widget {
202
  }
203
  }
204
 
205
- $widget_content .= '<div style="clear:both;" ></div>';
206
 
207
  $widget_content .= "\n".'<!-- WPPA+ Photo of the day Widget end -->';
208
 
@@ -214,7 +220,7 @@ class PhotoOfTheDay extends WP_Widget {
214
  $result .= $widget_content . $after_widget;
215
 
216
  if ( $image ) {
217
- echo wppa_compress_html( $result );
218
  }
219
  echo wppa_widget_timer( 'show', $widget_title );
220
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the photo of the day widget
6
+ * Version 8.1.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
99
  $widget_content .= wppa_get_medal_html_a( array( 'id' => $id, 'size' => 'M', 'where' => 'top' ) );
100
 
101
  // The link, if any
102
+ if ( $link ) {
103
+ $widget_content .= '
104
+ <a href="' . $link['url'] . '"' .
105
+ ( $link['target'] ? ' target="' . $link['target'] . '"' : ' ' ) .
106
+ $lightbox . '
107
+ data-lbtitle="' . $ltitle . '">';
108
+ }
109
 
110
  // The image
111
  if ( wppa_is_video( $id ) ) {
157
  }
158
 
159
  $widget_content .= '<a href="' . $lnk . '" >' .
160
+ '<div style="font-size:12px;position:absolute;right:4px;bottom:4px">+' . $c . '</div>' .
161
  '</a>';
162
  }
163
  }
208
  }
209
  }
210
 
211
+ $widget_content .= '<div style="clear:both"></div>';
212
 
213
  $widget_content .= "\n".'<!-- WPPA+ Photo of the day Widget end -->';
214
 
220
  $result .= $widget_content . $after_widget;
221
 
222
  if ( $image ) {
223
+ wppa_echo( $result );
224
  }
225
  echo wppa_widget_timer( 'show', $widget_title );
226
 
wppa-privacy-policy.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all procedures related to the privacy policy.
6
  *
7
- * Version 7.3.00
8
  */
9
 
10
  function wppa_comment_exporter( $email_address, $page = 1 ) {
@@ -262,7 +262,7 @@ global $wpdb;
262
  if ( $video_exts ) {
263
  $media_type = __( 'Video file', 'wp-photo-album-plus' );
264
 
265
- $media_html = '<video preload="metadata" style="height:150px;float:left;" controls >';
266
  foreach( $video_exts as $ext ) {
267
  $filename = str_replace( '.xxx', '.' . $ext, wppa_get_photo_item( $id, 'filename' ) );
268
  $mime = str_replace( 'ogv', 'ogg', 'video/'.$ext );
4
  *
5
  * This file contains all procedures related to the privacy policy.
6
  *
7
+ * Version 8.1.09.003
8
  */
9
 
10
  function wppa_comment_exporter( $email_address, $page = 1 ) {
262
  if ( $video_exts ) {
263
  $media_type = __( 'Video file', 'wp-photo-album-plus' );
264
 
265
+ $media_html = '<video preload="metadata" style="height:150px;float:left" controls >';
266
  foreach( $video_exts as $ext ) {
267
  $filename = str_replace( '.xxx', '.' . $ext, wppa_get_photo_item( $id, 'filename' ) );
268
  $mime = str_replace( 'ogv', 'ogg', 'video/'.$ext );
wppa-qr-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display qr code
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -58,7 +58,7 @@ class wppaQRWidget extends WP_Widget {
58
  }
59
  $result .= $widget_content . $after_widget;
60
 
61
- wppa_echo( wppa_compress_html( $result ) );
62
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
63
 
64
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display qr code
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
58
  }
59
  $result .= $widget_content . $after_widget;
60
 
61
+ wppa_echo( $result );
62
  wppa_echo( wppa_widget_timer( 'show', $widget_title ) );
63
 
64
  wppa( 'in_widget', false );
wppa-scripts.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
- * Version 8.1.08.003
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
@@ -698,10 +698,7 @@ global $wppa_script_open;
698
  if ( $wppa_js_page_data ) {
699
  $result = '
700
  <!-- WPPA Page specific js -->
701
- <script>' . wppa_compress_js( $wppa_js_page_data ) . '
702
- </script>
703
- <!-- End WPPA Page specific js -->
704
- ';
705
 
706
  $wppa_js_page_data = '';
707
  $wppa_script_open = false;
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
+ * Version 8.1.09.003
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
698
  if ( $wppa_js_page_data ) {
699
  $result = '
700
  <!-- WPPA Page specific js -->
701
+ <script>' . wppa_compress_js( $wppa_js_page_data ) . '</script>';
 
 
 
702
 
703
  $wppa_js_page_data = '';
704
  $wppa_script_open = false;
wppa-search-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
- * Version 8.0.09.001
7
  *
8
  */
9
 
@@ -38,7 +38,7 @@ class SearchPhotos extends WP_Widget {
38
 
39
  // Make the widget content
40
  $widget_content = '
41
- <span data-wppa="yes" ></span>' .
42
  wppa_get_search_html( $instance['label'],
43
  wppa_checked( $instance['sub'] ),
44
  wppa_checked( $instance['root'] ),
@@ -55,7 +55,7 @@ class SearchPhotos extends WP_Widget {
55
  }
56
  $result .= $widget_content . $after_widget;
57
 
58
- echo wppa_compress_html( $result );
59
  echo wppa_widget_timer( 'show', $widget_title );
60
 
61
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
+ * Version 8.0.09.003
7
  *
8
  */
9
 
38
 
39
  // Make the widget content
40
  $widget_content = '
41
+ <span data-wppa="yes"></span>' .
42
  wppa_get_search_html( $instance['label'],
43
  wppa_checked( $instance['sub'] ),
44
  wppa_checked( $instance['root'] ),
55
  }
56
  $result .= $widget_content . $after_widget;
57
 
58
+ echo $result;
59
  echo wppa_widget_timer( 'show', $widget_title );
60
 
61
  wppa( 'in_widget', false );
wppa-setting-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.1.09.002
7
  *
8
  */
9
 
@@ -18,19 +18,11 @@ global $wppa_opt;
18
  <input
19
  id="' . $slug . '"
20
  title="' . $title . '"
21
- style="
22
- float:left;
23
- width:' . $width . ';
24
- height:20px;padding:0 0 0 5px;
25
- min-width:' . $minwidth . ';
26
- font-size: 11px;
27
- margin: 0px;
28
- "
29
  type="text"
30
  onchange="' .
31
  esc_attr( $onchange ) . ';
32
- wppaAjaxUpdateOptionValue(\'' . $slug . '\', this);
33
- "
34
  placeholder="' . $placeholder . '"
35
  value="' . $val . '"
36
  />
@@ -38,16 +30,10 @@ global $wppa_opt;
38
  id="img_' . $slug . '"
39
  src="' . wppa_get_imgdir() . 'star.ico"
40
  title="' . __( 'Setting unmodified', 'wp-photo-album-plus' ) . '"
41
- style="
42
- padding:0 4px;
43
- float:left;
44
- height:16px;
45
- width:16px;
46
- "
47
  />
48
  <span
49
- style="float:left"
50
- >' .
51
  $text . '
52
  </span>';
53
 
@@ -63,8 +49,8 @@ function wppa_number($xslug, $min, $max, $text = '', $onchange = '') {
63
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
64
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
65
  $val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
66
- $html = '<input'.$title.' style="float:left; height:20px; width:50px;padding:0 0 0 5px;';
67
- $html .= ' font-size: 11px; margin: 0px;" type="number" id="'.$slug.'"';
68
  if ($onchange != '') $html .= ' onchange="'. esc_attr( $onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
69
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
70
  $html .= ' value="'.$val.'" min="'.$min.'" max="'.$max.'" />';
@@ -83,14 +69,14 @@ global $wppa_opt;
83
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
84
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
85
  $val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
86
- $html = '<input'.$title.' type="color" style="float:left; width: '.$width.'; height:20px;padding:0 0 0 5px;';
87
- if ($minwidth != '') $html .= ' min-width:'.$minwidth.';';
88
- $html .= ' font-size: 11px; margin: 0px; padding:" type="text" id="'.$slug.'"';
89
  if ($onchange != '') $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
90
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
91
  if ( $placeholder ) $html .= ' placeholder="'.$placeholder.'"';
92
  $html .= ' value="'.$val.'" />';
93
- $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
94
  $html .= '<span style="float:left">'.$text.'</span>';
95
 
96
  $html .= wppa_setting_star( $onchange );
@@ -109,9 +95,9 @@ function wppa_edit( $xslug, $value, $width = '90%', $minwidth = '', $text = '',
109
 
110
  // Style
111
  $style = 'float:left;width:' . $width . ';height:20px;';
112
- $style .= 'font-size:11px;margin:0;padding:0 0 0 5px;';
113
  if ( $minwidth != '' ) {
114
- $style .= 'min-width:' . $minwidth . ';';
115
  }
116
 
117
  // Onchange
@@ -131,7 +117,7 @@ function wppa_edit( $xslug, $value, $width = '90%', $minwidth = '', $text = '',
131
  id="' . esc_attr( 'img_' . str_replace( '#', 'H', $slug ) ) . '"
132
  src="' . esc_url( wppa_get_imgdir() . 'star.ico' ) . '"
133
  title="' . esc_attr( __( 'Setting unmodified', 'wp-photo-album-plus' ) ) . '"
134
- style="padding:0 4px;float:left;height:16px;width:16px;"
135
  />' .
136
  $text;
137
 
@@ -147,7 +133,7 @@ function wppa_textarea($xslug, $buttonlabel = '', $repair_php = false ) {
147
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
148
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
149
 
150
- $html = '<textarea id="'.esc_attr($slug).'"'.$title.' style="float:left; width:300px;" onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)" >';
151
  if ( $repair_php ) {
152
  $html .= str_replace( ['&lt;?php', '&lt;?PHP', '<?php'], '', esc_textarea( stripslashes( wppa_opt( $slug ) ) ) );
153
  }
@@ -156,7 +142,7 @@ function wppa_textarea($xslug, $buttonlabel = '', $repair_php = false ) {
156
  }
157
  $html .= '</textarea>';
158
 
159
- $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
160
 
161
  return $html;
162
  }
@@ -175,7 +161,7 @@ global $wppa_opt;
175
  else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
176
 
177
  if ($class != '') $html .= ' class="'.$class.'"';
178
- $html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;"';
179
  if ($class != '') $html .= ' class="'.$class.'"';
180
  $html .= ' />';
181
 
@@ -216,7 +202,7 @@ global $wppa_opt;
216
  $tit = trim( $tit, ', ');
217
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
218
 
219
- $html = '<select style="float:left; font-size: 11px; height: 20px; margin: 0px; padding: 0px; max-width:'.$max_width.'px;" id="'.$slug.'"'.$title;
220
  $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);'.$postaction.';').'"';
221
 
222
  if ($class != '') $html .= ' class="'.$class.'"';
@@ -238,7 +224,7 @@ global $wppa_opt;
238
  $idx++;
239
  }
240
  $html .= '</select>';
241
- $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
242
 
243
  $html .= wppa_setting_star( $onchange );
244
  $html .= wppa_setting_star( $postaction );
@@ -295,7 +281,7 @@ global $wppa_opt;
295
  $idx++;
296
  }
297
  $html .= '</select>';
298
- $html .= '<img id="img_'.$slug.'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
299
 
300
  $html .= wppa_setting_star( $onchange );
301
 
@@ -311,7 +297,7 @@ function wppa_select_e( $xslug, $curval, $opts, $vals, $onchange = '', $class =
311
  return $html;
312
  }
313
 
314
- $html = '<select style="float:left; font-size: 11px; height: 20px; margin: 0px; padding: 0px;" id="'.$slug.'"';
315
  if ($onchange != '') $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
316
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
317
 
@@ -329,7 +315,7 @@ function wppa_select_e( $xslug, $curval, $opts, $vals, $onchange = '', $class =
329
  $idx++;
330
  }
331
  $html .= '</select>';
332
- $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
333
 
334
  return $html;
335
  }
@@ -371,7 +357,7 @@ function wppa_color_box( $xslug ) {
371
  <div
372
  id="colorbox-' . $slug . '"
373
  class="wppa-colorbox"
374
- style="width:100px; height:16px; float:left; background-color:' . wppa_opt( $slug ) . '; border:1px solid #dfdfdf;"
375
  >
376
  </div>';
377
 
@@ -432,8 +418,7 @@ function wppa_upload_form( $slug, $tab, $accept = 'image/*' ) {
432
  type="file"
433
  accept="' . $accept . '"
434
  name="file_1"
435
- style="float:left;
436
- font-size: 11px;"
437
  />
438
  <input
439
  type="hidden"
@@ -492,7 +477,7 @@ function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
492
  <input
493
  type="button"
494
  class="wppa-doit-button"
495
- style="height: 18px;"
496
  value="' . esc_attr( $label ) . '"';
497
 
498
  $result .= ' onclick="';
@@ -504,7 +489,7 @@ function wppa_ajax_button( $label, $slug, $elmid = '0', $no_confirm = false ) {
504
  $result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', 0)" />';
505
  }
506
 
507
- $result .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Not done yet', 'wp-photo-album-plus' ).'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
508
 
509
  return $result;
510
  }
@@ -535,7 +520,7 @@ function wppa_cronjob_button( $slug ) {
535
  id="' . $slug . '_cron_button"
536
  type="button"
537
  class="wppa-doit-button"
538
- style="height: 18px;' . ( $crashed ? 'color:red;': '' ) . '"
539
  value="' . esc_attr( $label ) . '"';
540
 
541
  if ( ! $locked ) {
@@ -676,8 +661,7 @@ function wppa_master_tab( $slug, $target, $caption, $active = false ) {
676
  id="wppa-master-tab-' . $slug . '"
677
  class="' . ( $active ? 'active ' : '' ) . 'mtabli ' . $slug . '"
678
  onclick="wppaSettingTab(\'' . $target . '\');"
679
- style="background-color:' . ( $active ? '#ffffff;' : '#eeeeee;' ) . '"
680
- >
681
  ' . $caption . '
682
  </li>' );
683
  }
@@ -693,8 +677,7 @@ global $wppa_cur_tab;
693
  id="wppa-setting-tab-' . $slug . '"
694
  class="' . ( $active ? 'active ' : '' ) . 'tabli ' . $slug . '"
695
  onclick="wppaSettingTab(\'' . $slug . '\');"
696
- style="' . ( $show ? '' : 'display:none;' ) . 'background-color:' . ( $active ? '#ffffff;' : '#eeeeee;' ) . '"
697
- >
698
  ' . $caption . '
699
  </li>' );
700
  }
@@ -740,7 +723,7 @@ global $wppa_setting_error;
740
 
741
  // Default helptext
742
  if ( ! $help ) {
743
- $help = __('No helptext available', 'wp-photo-album-plus' );
744
  }
745
 
746
  // Convert sungle slug to array with 1 elm
@@ -801,10 +784,9 @@ global $wppa_setting_error;
801
  '<tr
802
  id="wppa-setting-item-' . $item_id . '"
803
  class="wppa-setting-new ' . $item_id . '"
804
- style="color:#333;background-color:' . $bgcolor . ';' .
805
- ( $show ? '' : 'display:none;' ) .
806
- '"
807
- >' .
808
 
809
  // The item number
810
  '<td>' . $xnum . '</td>' .
@@ -828,7 +810,7 @@ global $wppa_setting_error;
828
  <td>
829
  <input
830
  type="button"
831
- style="font-size: 11px; height:20px; padding:0; cursor: pointer;"
832
  class=""
833
  title="' . esc_attr( __( 'Click for help', 'wp-photo-album-plus' ) ) . '"
834
  onclick="
@@ -838,8 +820,7 @@ global $wppa_setting_error;
838
  else {
839
  jQuery( \'#help-' . $item_id . '\' ).css(\'display\',\'none\');
840
  }"
841
- value="&nbsp;?&nbsp;"
842
- />
843
  </td>' .
844
 
845
  // Close item
@@ -851,14 +832,12 @@ global $wppa_setting_error;
851
  <tr
852
  id="help-' . $item_id . '"
853
  class="wppa-setting-new"
854
- style="display:none;"
855
- >
856
  <td></td>
857
  <td></td>
858
  <td
859
- style="color:#000077;"
860
- colspan="' . ( count( $htmls ) ) . '"
861
- >
862
  <small>
863
  <i>' .
864
  $helptext . '
@@ -901,9 +880,8 @@ global $wppa_cur_subtab_id;
901
  wppa_echo( '
902
  <div
903
  class="wppa-tabdesc wppa-tabdesc-' . $wppa_cur_subtab . ' ' . $wppa_cur_subtab_id . '"
904
- style="text-align:center;border-bottom:1px solid darkgrey;cursor:pointer;"
905
- onclick="wppaToggleSubtab(\'' . $wppa_cur_subtab . '\');"
906
- >
907
  <h3>' .
908
  $greek[$wppa_cur_subtab_id] .
909
  ': ' .
@@ -911,8 +889,7 @@ global $wppa_cur_subtab_id;
911
  '</h3>
912
  <span
913
  id="' . $wppa_cur_subtab . '-cm"
914
- style="color:red;display:none;"
915
- >' .
916
  __( 'Click to toggle open / close', 'wp-photo-album-plus' ) . '
917
  </span>
918
  </div>' );
@@ -925,11 +902,11 @@ global $wppa_cur_subtab;
925
 
926
  if ( ! $cols ) {
927
  $cols = array(
928
- __( '#', 'wp-photo-album-plus' ) => '24px;',
929
- __( 'Name', 'wp-photo-album-plus' ) => '15%;',
930
- __( 'Description', 'wp-photo-album-plus' ) => '30%;',
931
- __( 'Setting', 'wp-photo-album-plus' ) => 'auto;',
932
- __( 'Help', 'wp-photo-album-plus' ) => '24px;',
933
  );
934
  }
935
 
@@ -954,18 +931,17 @@ global $wppa_cur_subtab;
954
  <div
955
  id="' . $wppa_cur_subtab . '"
956
  class="wppa-setting-content ' . $wppa_cur_subtab . '"
957
- style="display:none;"
958
- >
959
- <table class="widefat wppa-table wppa-setting-table striped" >
960
 
961
  <colgroup>';
962
  foreach( $cols as $size ) {
963
- $result .= '<col style="width: ' . $size . '" >';
964
  }
965
  $result .= '
966
  </colgroup>
967
 
968
- <thead style="font-weight: bold;" >
969
  <tr>';
970
  foreach( array_keys( $cols ) as $caption ) {
971
  $result .= '<td>' . $caption . '</td>';
@@ -974,7 +950,7 @@ global $wppa_cur_subtab;
974
  </tr>
975
  </thead>
976
 
977
- <tbody class="wppa_table_' . $tab . '" >';
978
 
979
  wppa_echo( $result );
980
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
18
  <input
19
  id="' . $slug . '"
20
  title="' . $title . '"
21
+ style="float:left;width:' . $width . ';height:20px;padding:0 0 0 5px;min-width:' . $minwidth . ';font-size: 11px;margin: 0px"
 
 
 
 
 
 
 
22
  type="text"
23
  onchange="' .
24
  esc_attr( $onchange ) . ';
25
+ wppaAjaxUpdateOptionValue(\'' . $slug . '\', this);"
 
26
  placeholder="' . $placeholder . '"
27
  value="' . $val . '"
28
  />
30
  id="img_' . $slug . '"
31
  src="' . wppa_get_imgdir() . 'star.ico"
32
  title="' . __( 'Setting unmodified', 'wp-photo-album-plus' ) . '"
33
+ style="padding:0 4px;float:left;height:16px;width:16px;"
 
 
 
 
 
34
  />
35
  <span
36
+ style="float:left">' .
 
37
  $text . '
38
  </span>';
39
 
49
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
50
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
51
  $val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
52
+ $html = '<input'.$title.' style="float:left;height:20px;width:50px;padding:0 0 0 5px;';
53
+ $html .= 'font-size:11px;margin:0px;" type="number" id="'.$slug.'"';
54
  if ($onchange != '') $html .= ' onchange="'. esc_attr( $onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
55
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
56
  $html .= ' value="'.$val.'" min="'.$min.'" max="'.$max.'" />';
69
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
70
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
71
  $val = isset ( $wppa_opt[ $xslug ] ) ? esc_attr( $wppa_opt[ $xslug ] ) : wppa_get_option( $xslug, '' );
72
+ $html = '<input'.$title.' type="color" style="float:left;width:'.$width.';height:20px;padding:0 0 0 5px;';
73
+ if ($minwidth != '') $html .= 'min-width:'.$minwidth.';';
74
+ $html .= 'font-size:11px;margin:0px" type="text" id="'.$slug.'"';
75
  if ($onchange != '') $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
76
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
77
  if ( $placeholder ) $html .= ' placeholder="'.$placeholder.'"';
78
  $html .= ' value="'.$val.'" />';
79
+ $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px;float:left;height:16px;width:16px" />';
80
  $html .= '<span style="float:left">'.$text.'</span>';
81
 
82
  $html .= wppa_setting_star( $onchange );
95
 
96
  // Style
97
  $style = 'float:left;width:' . $width . ';height:20px;';
98
+ $style .= 'font-size:11px;margin:0;padding:0 0 0 5px';
99
  if ( $minwidth != '' ) {
100
+ $style .= ';min-width:' . $minwidth;
101
  }
102
 
103
  // Onchange
117
  id="' . esc_attr( 'img_' . str_replace( '#', 'H', $slug ) ) . '"
118
  src="' . esc_url( wppa_get_imgdir() . 'star.ico' ) . '"
119
  title="' . esc_attr( __( 'Setting unmodified', 'wp-photo-album-plus' ) ) . '"
120
+ style="padding:0 4px;float:left;height:16px;width:16px"
121
  />' .
122
  $text;
123
 
133
  $tit = __('Slug =', 'wp-photo-album-plus' ).' '.$xslug;
134
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
135
 
136
+ $html = '<textarea id="'.esc_attr($slug).'"'.$title.' style="float:left;width:300px" onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)" >';
137
  if ( $repair_php ) {
138
  $html .= str_replace( ['&lt;?php', '&lt;?PHP', '<?php'], '', esc_textarea( stripslashes( wppa_opt( $slug ) ) ) );
139
  }
142
  }
143
  $html .= '</textarea>';
144
 
145
+ $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px;float:left;height:16px;width:16px" />';
146
 
147
  return $html;
148
  }
161
  else $html .= ' onchange="wppaAjaxUpdateOptionCheckBox(\''.$slug.'\', this)"';
162
 
163
  if ($class != '') $html .= ' class="'.$class.'"';
164
+ $html .= ' /><img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px;float:left;height:16px;width:16px"';
165
  if ($class != '') $html .= ' class="'.$class.'"';
166
  $html .= ' />';
167
 
202
  $tit = trim( $tit, ', ');
203
  $title = wppa_switch( 'enable_shortcode_wppa_set' ) ? ' title="'.esc_attr( $tit ).'"' : '';
204
 
205
+ $html = '<select style="float:left;font-size:11px;height:20px;margin:0px;padding:0px;max-width:'.$max_width.'px" id="'.$slug.'"'.$title;
206
  $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);'.$postaction.';').'"';
207
 
208
  if ($class != '') $html .= ' class="'.$class.'"';
224
  $idx++;
225
  }
226
  $html .= '</select>';
227
+ $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px;float:left;height:16px;width:16px" />';
228
 
229
  $html .= wppa_setting_star( $onchange );
230
  $html .= wppa_setting_star( $postaction );
281
  $idx++;
282
  }
283
  $html .= '</select>';
284
+ $html .= '<img id="img_'.$slug.'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding:0 4px;float:left;height:16px;width:16px" />';
285
 
286
  $html .= wppa_setting_star( $onchange );
287
 
297
  return $html;
298
  }
299
 
300
+ $html = '<select style="float:left;font-size:11px;height:20px;margin:0px;padding:0px" id="'.$slug.'"';
301
  if ($onchange != '') $html .= ' onchange="'.esc_attr($onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this);').'"';
302
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
303
 
315
  $idx++;
316
  }
317
  $html .= '</select>';
318
+ $html .= '<img id="img_'.str_replace( '#', 'H', $slug ).'" class="'.$class.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px;float:left;height:16px;width:16px" />';
319
 
320
  return $html;
321
  }
357
  <div
358
  id="colorbox-' . $slug . '"
359
  class="wppa-colorbox"
360
+ style="width:100px;height:16px;float:left;background-color:' . wppa_opt( $slug ) . ';border:1px solid #dfdfdf"
361
  >
362
  </div>';
363
 
418
  type="file"
419
  accept="' . $accept . '"
420
  name="file_1"
421
+ style="float:left;font-size:11px"
 
422
  />
423
  <input
424
  type="hidden"
477
  <input
478
  type="button"
479
  class="wppa-doit-button"
480
+ style="height:18px"
481
  value="' . esc_attr( $label ) . '"';
482
 
483
  $result .= ' onclick="';
489
  $result .= 'wppaAjaxUpdateOptionValue(\''.$slug.'\', 0)" />';
490
  }
491
 
492
+ $result .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.ico" title="'.__('Not done yet', 'wp-photo-album-plus' ).'" style="padding:0 4px;float:left;height:16px;width:16px" />';
493
 
494
  return $result;
495
  }
520
  id="' . $slug . '_cron_button"
521
  type="button"
522
  class="wppa-doit-button"
523
+ style="height:18px' . ( $crashed ? ';color:red': '' ) . '"
524
  value="' . esc_attr( $label ) . '"';
525
 
526
  if ( ! $locked ) {
661
  id="wppa-master-tab-' . $slug . '"
662
  class="' . ( $active ? 'active ' : '' ) . 'mtabli ' . $slug . '"
663
  onclick="wppaSettingTab(\'' . $target . '\');"
664
+ style="background-color:' . ( $active ? '#ffffff' : '#eeeeee' ) . '">
 
665
  ' . $caption . '
666
  </li>' );
667
  }
677
  id="wppa-setting-tab-' . $slug . '"
678
  class="' . ( $active ? 'active ' : '' ) . 'tabli ' . $slug . '"
679
  onclick="wppaSettingTab(\'' . $slug . '\');"
680
+ style="' . ( $show ? '' : 'display:none;' ) . 'background-color:' . ( $active ? '#ffffff' : '#eeeeee' ) . '">
 
681
  ' . $caption . '
682
  </li>' );
683
  }
723
 
724
  // Default helptext
725
  if ( ! $help ) {
726
+ $help = __( 'No helptext available', 'wp-photo-album-plus' );
727
  }
728
 
729
  // Convert sungle slug to array with 1 elm
784
  '<tr
785
  id="wppa-setting-item-' . $item_id . '"
786
  class="wppa-setting-new ' . $item_id . '"
787
+ style="color:#333;background-color:' . $bgcolor .
788
+ ( $show ? '' : ';display:none' ) .
789
+ '">' .
 
790
 
791
  // The item number
792
  '<td>' . $xnum . '</td>' .
810
  <td>
811
  <input
812
  type="button"
813
+ style="font-size:11px;height:20px;padding:0;cursor:pointer"
814
  class=""
815
  title="' . esc_attr( __( 'Click for help', 'wp-photo-album-plus' ) ) . '"
816
  onclick="
820
  else {
821
  jQuery( \'#help-' . $item_id . '\' ).css(\'display\',\'none\');
822
  }"
823
+ value="&nbsp;?&nbsp;" />
 
824
  </td>' .
825
 
826
  // Close item
832
  <tr
833
  id="help-' . $item_id . '"
834
  class="wppa-setting-new"
835
+ style="display:none">
 
836
  <td></td>
837
  <td></td>
838
  <td
839
+ style="color:#000077"
840
+ colspan="' . ( count( $htmls ) ) . '">
 
841
  <small>
842
  <i>' .
843
  $helptext . '
880
  wppa_echo( '
881
  <div
882
  class="wppa-tabdesc wppa-tabdesc-' . $wppa_cur_subtab . ' ' . $wppa_cur_subtab_id . '"
883
+ style="text-align:center;border-bottom:1px solid darkgrey;cursor:pointer"
884
+ onclick="wppaToggleSubtab(\'' . $wppa_cur_subtab . '\');">
 
885
  <h3>' .
886
  $greek[$wppa_cur_subtab_id] .
887
  ': ' .
889
  '</h3>
890
  <span
891
  id="' . $wppa_cur_subtab . '-cm"
892
+ style="color:red;display:none">' .
 
893
  __( 'Click to toggle open / close', 'wp-photo-album-plus' ) . '
894
  </span>
895
  </div>' );
902
 
903
  if ( ! $cols ) {
904
  $cols = array(
905
+ __( '#', 'wp-photo-album-plus' ) => '24px',
906
+ __( 'Name', 'wp-photo-album-plus' ) => '15%',
907
+ __( 'Description', 'wp-photo-album-plus' ) => '30%',
908
+ __( 'Setting', 'wp-photo-album-plus' ) => 'auto',
909
+ __( 'Help', 'wp-photo-album-plus' ) => '24px',
910
  );
911
  }
912
 
931
  <div
932
  id="' . $wppa_cur_subtab . '"
933
  class="wppa-setting-content ' . $wppa_cur_subtab . '"
934
+ style="display:none">
935
+ <table class="widefat wppa-table wppa-setting-table striped">
 
936
 
937
  <colgroup>';
938
  foreach( $cols as $size ) {
939
+ $result .= '<col style="width:' . $size . '">';
940
  }
941
  $result .= '
942
  </colgroup>
943
 
944
+ <thead style="font-weight:bold">
945
  <tr>';
946
  foreach( array_keys( $cols ) as $caption ) {
947
  $result .= '<td>' . $caption . '</td>';
950
  </tr>
951
  </thead>
952
 
953
+ <tbody class="wppa_table_' . $tab . '">';
954
 
955
  wppa_echo( $result );
956
 
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.1.09.002
7
  *
8
  */
9
 
@@ -307,8 +307,8 @@ global $wppa_subtab_names;
307
  // General header
308
  wppa_echo( '
309
  <img id="icon-album" src="' . $iconurl . '" />
310
- <h1 style="display:inline" >' . __( 'WP Photo Album Plus Settings', 'wp-photo-album-plus' ) . '
311
- <span style="color:blue;"> ' . __( 'Auto Save', 'wp-photo-album-plus' ) . '</span>
312
  </h1>' );
313
  if ( current_user_can( 'administrator' ) ) {
314
  wppa_echo( ' ' .
@@ -549,14 +549,14 @@ global $wppa_subtab_names;
549
  }
550
 
551
  // The master header selectors
552
- wppa_echo( '<ul class="widefat wppa-master-tabs" >' );
553
  wppa_master_tab( 'basic', 'general', __( 'Basic settings', 'wp-photo-album-plus' ), $basic );
554
  wppa_master_tab( 'advanced', 'generaladv', __( 'Advanced settings', 'wp-photo-album-plus' ), $advan );
555
  wppa_echo( '</ul>' );
556
 
557
  // The tabs
558
  {
559
- wppa_echo( '<ul class="widefat wppa-setting-tabs" >' );
560
  wppa_setting_tab( 'general', $wppa_tab_names['general'], $basic );
561
  wppa_setting_tab( 'generaladv', $wppa_tab_names['generaladv'], $advan );
562
  wppa_setting_tab( 'layout', $wppa_tab_names['layout'], $basic );
@@ -694,7 +694,7 @@ global $wppa_subtab_names;
694
  }
695
 
696
  // Open the content area
697
- wppa_echo( '<div id="wppa-setting-content" style="display:none;clear:both;" >' );
698
 
699
  // Dispatch on tab
700
  switch($tab) {
@@ -843,8 +843,8 @@ global $wppa_subtab_names;
843
  $slug1 = 'wppa_bgcolor';
844
  $slug2 = 'wppa_bcolor';
845
  $slug = array($slug1, $slug2);
846
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
847
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
848
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
849
 
850
  $name = __('Border thickness', 'wp-photo-album-plus' );
@@ -909,8 +909,8 @@ global $wppa_subtab_names;
909
  $slug1 = 'wppa_bgcolor_img';
910
  $slug2 = 'wppa_bcolor_img';
911
  $slug = array($slug1, $slug2);
912
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
913
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
914
  wppa_setting_new($slug, '10', $name, $desc, $html, $help);
915
 
916
  $name = __('Modal render box', 'wp-photo-album-plus' );
@@ -919,7 +919,7 @@ global $wppa_subtab_names;
919
  $slug1 = 'wppa_bgcolor_modal';
920
  $slug2 = 'wppa_bcolor_modal';
921
  $slug = array($slug1, $slug2);
922
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
923
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
924
 
925
  wppa_setting_box_footer_new();
@@ -1224,8 +1224,8 @@ global $wppa_subtab_names;
1224
  $slug1 = 'wppa_svg_bg_color';
1225
  $slug2 = 'wppa_svg_color';
1226
  $slug = array($slug1, $slug2);
1227
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1228
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1229
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1230
 
1231
  $name = __('Navigation symbols Lightbox', 'wp-photo-album-plus' );
@@ -1234,8 +1234,8 @@ global $wppa_subtab_names;
1234
  $slug1 = 'wppa_ovl_svg_bg_color';
1235
  $slug2 = 'wppa_ovl_svg_color';
1236
  $slug = array($slug1, $slug2);
1237
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1238
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1239
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1240
 
1241
  $name = __('Fullscreen button', 'wp-photo-album-plus' );
@@ -1244,8 +1244,8 @@ global $wppa_subtab_names;
1244
  $slug1 = 'wppa_fs_svg_bg_color';
1245
  $slug2 = 'wppa_fs_svg_color';
1246
  $slug = array($slug1, $slug2);
1247
- $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1248
- $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1249
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1250
 
1251
  wppa_setting_box_footer_new();
@@ -2224,7 +2224,7 @@ global $wppa_subtab_names;
2224
  $day++;
2225
  }
2226
  $vals = $opts;
2227
- $html = '<span style="float:left;" >' .
2228
  sprintf( __('Current day# = %s, offset =', 'wp-photo-album-plus' ), wppa_local_date( $date_key ) ) .
2229
  '</span> ' .
2230
  wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
@@ -2247,13 +2247,13 @@ global $wppa_subtab_names;
2247
  if ( $photo ) {
2248
  if ( wppa_is_video( $photo['id'] ) ) {
2249
  $html = '
2250
- <div style="display:inline-block;width:25%;text-align:center;float:left;">' .
2251
  wppa_get_video_html( array( 'id' => $photo['id'], 'width' => '180' ) ) . '
2252
  </div>';
2253
  }
2254
  else {
2255
  $html = '
2256
- <div style="display:inline-block;width:25%;text-align:center;float:left;">
2257
  <img
2258
  src="' . esc_url( wppa_get_thumb_url( $photo['id'] ) ) . '"
2259
  style="width: 180px;"
@@ -2261,7 +2261,7 @@ global $wppa_subtab_names;
2261
  </div>';
2262
  }
2263
  $html .= '
2264
- <div style="display:inline-block;width:75%;text-align:center;vertical-align:middle;" >' .
2265
  __( 'Album', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '
2266
  <br>' .
2267
  __('Uploader', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( $photo['owner'] ) . '
@@ -2334,7 +2334,7 @@ global $wppa_subtab_names;
2334
  wppa_echo( '
2335
  <div
2336
  class="photoselect"
2337
- style="width:180px;height:200px;overflow:hidden;"
2338
  >' );
2339
 
2340
  // Open image container div
@@ -2378,7 +2378,7 @@ global $wppa_subtab_names;
2378
  style="clear:both;width:100%;margin:3px 0;position:relative;top:5px;"
2379
  >
2380
  <div
2381
- style="font-size:9px; line-height:10px;float:left;"
2382
  >
2383
  (#' . strval( intval( $photo['p_order'] ) ) . ')
2384
  </div>' );
@@ -2404,7 +2404,7 @@ global $wppa_subtab_names;
2404
  style="clear:both;overflow:hidden;height:150px;position:relative;top:10px;"
2405
  >
2406
  <div
2407
- style="font-size:11px;overflow:hidden;"
2408
  >' .
2409
  wppa_get_photo_name( $id ) . '
2410
  </div>
@@ -2638,7 +2638,7 @@ global $wppa_subtab_names;
2638
  $vals[] = $key;
2639
  }
2640
  $html = wppa_checkbox($slug) .
2641
- '<span style="float:left;" >&nbsp;' . __( 'For userrole users indicate comments given by userrole', 'wp-photo-album-plus' ) . '&nbsp;</span>' .
2642
  wppa_select($slug2, $opts, $vals);
2643
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2644
 
@@ -3094,9 +3094,9 @@ global $wppa_subtab_names;
3094
  $slug1 = 'wppa_bgcolor_numbar';
3095
  $slug2 = 'wppa_bcolor_numbar';
3096
  $slug = array($slug1, $slug2);
3097
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3098
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3099
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3100
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3101
  wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
3102
 
@@ -3106,9 +3106,9 @@ global $wppa_subtab_names;
3106
  $slug1 = 'wppa_bgcolor_numbar_active';
3107
  $slug2 = 'wppa_bcolor_numbar_active';
3108
  $slug = array($slug1, $slug2);
3109
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3110
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3111
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3112
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3113
  wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
3114
 
@@ -3147,9 +3147,9 @@ global $wppa_subtab_names;
3147
  $slug1 = 'wppa_bgcolor_fullimg';
3148
  $slug2 = 'wppa_bcolor_fullimg';
3149
  $slug = array($slug1, $slug2);
3150
- $html = '<span style="float:left;position:relative;top:5px;" >' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3151
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3152
- '<span style="float:left;position:relative;top:5px;padding-left:5px;" >' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3153
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3154
  wppa_setting_new($slug, '35', $name, $desc, $html, $help);
3155
 
@@ -3921,9 +3921,9 @@ global $wppa_subtab_names;
3921
  $slug2 = 'wppa_list_comments';
3922
  $opts = array( 'Email', 'Name', 'Timestamp' );
3923
  $vals = array( 'email', 'name', 'timestamp' );
3924
- $html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus' ).'</small>'.wppa_select($slug1, $opts, $vals);
3925
  $html2 = wppa_popup_button( $slug2, '30' );
3926
- $html = $html1 . '<span style="float:left;" >&nbsp;</span>' .$html2;
3927
  wppa_setting_new($slug1, '16', $name, $desc, $html, $help);
3928
 
3929
  wppa_setting_box_footer_new();
@@ -4289,7 +4289,7 @@ global $wppa_subtab_names;
4289
  $slug2 = 'wppa_search_oc';
4290
  $opts2 = array('1','2','3','4','5');
4291
  $vals2 = array('1','2','3','4','5');
4292
- $html2 = '<div style="float:right;" ><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
4293
 
4294
  $html = $html1 . $html2;
4295
  wppa_setting_new(false, '1', $name, $desc, $html, $help);
@@ -4534,9 +4534,9 @@ global $wppa_subtab_names;
4534
  $help = '';
4535
  $slug1 = 'wppa_list_index_display_start';
4536
  $slug2 = 'wppa_list_index';
4537
- $html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus' ).'&nbsp;</small>'.wppa_input( $slug1, '150px' );
4538
  $html2 = wppa_popup_button( $slug2, '30' );
4539
- $html = $html1 . '<span style="float:left;" >&nbsp;</span>' . $html2;
4540
  wppa_setting_new(false, '34', $name, $desc, $html, $help);
4541
 
4542
  $name = __('Show empty search', 'wp-photo-album-plus' );
@@ -5197,7 +5197,7 @@ global $wppa_subtab_names;
5197
  $npag = wppa_need_page($slug1);
5198
  $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
5199
  $html3 = $npag ? wppa_checkbox($slug3) : '';
5200
- $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
5201
  $html = array($html1, $html2, $html3, $html4);
5202
  wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5203
 
@@ -5230,7 +5230,7 @@ global $wppa_subtab_names;
5230
  $npag = wppa_need_page($slug1);
5231
  $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
5232
  $html3 = $npag ? wppa_checkbox($slug3) : '';
5233
- $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer;" >ASO&nbsp;</span>'.wppa_checkbox($slug4);
5234
  $html = array($html1, $html2, $html3, $html4);
5235
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5236
 
@@ -5794,7 +5794,7 @@ global $wppa_subtab_names;
5794
  $help .= '<br>'.wppa_see_also( 'new', '1', '29' );
5795
  $slug1 = 'wppa_name_user';
5796
  $slug2 = 'wppa_name_user_mandatory';
5797
- $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5798
  wppa_setting_new($slug1, '9', $name, $desc, $html, $help);
5799
 
5800
  $name = __('Apply Newphoto desc user', 'wp-photo-album-plus' );
@@ -5811,7 +5811,7 @@ global $wppa_subtab_names;
5811
  $help = '';
5812
  $slug1 = 'wppa_desc_user';
5813
  $slug2 = 'wppa_desc_user_mandatory';
5814
- $html = wppa_checkbox( $slug1 ) . '<span style="float:left;" >' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5815
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5816
 
5817
  $name = __('User upload custom', 'wp-photo-album-plus' );
@@ -6842,7 +6842,7 @@ global $wppa_subtab_names;
6842
  $slug1 = 'wppa_max_photo_modtime';
6843
  $html1 = wppa_select($slug1, $opts, $vals);
6844
  $slug2 = 'wppa_pup_is_aup';
6845
- $html2 = '<span style="float:left;" >'.__( 'Mod album also' ).'</span>'.wppa_checkbox($slug2);
6846
  wppa_setting_new($slug, '4', $name, $desc, $html1.$html2, $help);
6847
 
6848
  $name = __('First photo', 'wp-photo-album-plus' );
@@ -7335,12 +7335,37 @@ global $wppa_subtab_names;
7335
  $desc = __('Enable frontend album creation.', 'wp-photo-album-plus' );
7336
  $help = __('If you check this item, frontend album creation will be enabled.', 'wp-photo-album-plus' );
7337
  $slug = 'wppa_user_create_on';
7338
- $onchange = '';
7339
  $html1 = wppa_checkbox($slug, $onchange);
7340
  $html2 = '';
7341
  $html = array( $html1, $html2 );
7342
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
7343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7344
  $name = __('Max user albums', 'wp-photo-album-plus' );
7345
  $desc = __('The max number of albums a user can create.', 'wp-photo-album-plus' );
7346
  $help = __('The maximum number of albums a user can create when he is not admin', 'wp-photo-album-plus' );
@@ -7349,7 +7374,7 @@ global $wppa_subtab_names;
7349
  $html1 = wppa_input($slug, '50px', '', 'albums');
7350
  $html2 = '';
7351
  $html = array( $html1, $html2 );
7352
- wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'user_create_on' ));
7353
 
7354
  $name = __('Max nesting level', 'wp-photo-album-plus' );
7355
  $desc = __('Limits the max nesting level for frontend created albums', 'wp-photo-album-plus' );
@@ -7359,7 +7384,7 @@ global $wppa_subtab_names;
7359
  $html1 = wppa_number($slug, '0', '99');
7360
  $html2 = '';
7361
  $html = array( $html1, $html2 );
7362
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
7363
 
7364
  $name = __('User edit album', 'wp-photo-album-plus' );
7365
  $desc = __('Enable frontend edit album name and description.', 'wp-photo-album-plus' );
@@ -7368,7 +7393,7 @@ global $wppa_subtab_names;
7368
  $html1 = wppa_checkbox($slug);
7369
  $html2 = '';
7370
  $html = array( $html1, $html2 );
7371
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
7372
 
7373
  $name = __('User delete Albums', 'wp-photo-album-plus' );
7374
  $desc = __('Enable frontend album deletion', 'wp-photo-album-plus' );
@@ -7378,7 +7403,7 @@ global $wppa_subtab_names;
7378
  $html1 = wppa_checkbox($slug, $onchange);
7379
  $html2 = '';
7380
  $html = array( $html1, $html2 );
7381
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
7382
 
7383
  $name = __('User create Albums Captcha', 'wp-photo-album-plus' );
7384
  $desc = __('User must answer security question.', 'wp-photo-album-plus' );
@@ -7387,7 +7412,7 @@ global $wppa_subtab_names;
7387
  $html1 = wppa_checkbox($slug);
7388
  $html2 = '';
7389
  $html = array( $html1, $html2 );
7390
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7391
 
7392
  $name = __('Fe limts per album', 'wp-photo-album-plus' );
7393
  $desc = __('The following limits apply to individual albums', 'wp-photo-album-plus' );
@@ -7397,7 +7422,7 @@ global $wppa_subtab_names;
7397
  $html1 = wppa_checkbox($slug);
7398
  $html2 = '';
7399
  $html = array( $html1, $html2 );
7400
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
7401
 
7402
  // User upload limits
7403
  $opts = array( __('for ever', 'wp-photo-album-plus' ),
@@ -7423,7 +7448,7 @@ global $wppa_subtab_names;
7423
  $slug2 = 'wppa_'.$role.'_upload_limit_time';
7424
  $html2 = wppa_select($slug2, $opts, $vals);
7425
  $html = array( $html1, $html2 );
7426
- wppa_setting_new(false, '8.'.$t_role, $name, $desc, $html, $help);
7427
  }
7428
 
7429
  foreach (array_keys($roles) as $role) {
@@ -7438,7 +7463,7 @@ global $wppa_subtab_names;
7438
  $slug2 = '';
7439
  $html2 = '';
7440
  $html = array( $html1, $html2 );
7441
- wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help);
7442
  }
7443
 
7444
  $name = __('Upload one only', 'wp-photo-album-plus' );
@@ -7448,7 +7473,7 @@ global $wppa_subtab_names;
7448
  $html1 = wppa_checkbox($slug);
7449
  $html2 = '';
7450
  $html = array( $html1, $html2 );
7451
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
7452
 
7453
  $name = __('Upload moderation', 'wp-photo-album-plus' );
7454
  $desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus' );
@@ -7459,7 +7484,7 @@ global $wppa_subtab_names;
7459
  $html1 = wppa_checkbox($slug);
7460
  $html2 = '';
7461
  $html = array( $html1, $html2 );
7462
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
7463
 
7464
  $name = __('FE Upload private', 'wp-photo-album-plus' );
7465
  $desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus' );
@@ -7468,7 +7493,7 @@ global $wppa_subtab_names;
7468
  $html1 = wppa_checkbox($slug);
7469
  $html2 = '';
7470
  $html = array( $html1, $html2 );
7471
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
7472
 
7473
  $name = __('Min size in pixels', 'wp-photo-album-plus' );
7474
  $desc = __('Min size for height and width for front-end uploads.', 'wp-photo-album-plus' );
@@ -7477,7 +7502,7 @@ global $wppa_subtab_names;
7477
  $html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
7478
  $html2 = '';
7479
  $html = array( $html1, $html2 );
7480
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
7481
 
7482
  $name = __('Max size in pixels', 'wp-photo-album-plus' );
7483
  $desc = __('Max size for height and width for front-end uploads.', 'wp-photo-album-plus' );
@@ -7486,7 +7511,7 @@ global $wppa_subtab_names;
7486
  $html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
7487
  $html2 = '';
7488
  $html = array( $html1, $html2 );
7489
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
7490
 
7491
  $name = __('Fe alert', 'wp-photo-album-plus' );
7492
  $desc = __('Show alertbox on front-end.', 'wp-photo-album-plus' );
@@ -7505,7 +7530,7 @@ global $wppa_subtab_names;
7505
  $html1 = wppa_select($slug, $opts, $vals);
7506
  $html2 = '';
7507
  $html = array( $html1, $html2 );
7508
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
7509
 
7510
  $name = __('Max fe upload albums', 'wp-photo-album-plus' );
7511
  $desc = __('Max number of albums in frontend upload selection box.', 'wp-photo-album-plus' );
@@ -7516,7 +7541,7 @@ global $wppa_subtab_names;
7516
  $html1 = wppa_select($slug, $opts, $vals).__('albums', 'wp-photo-album-plus' );
7517
  $html2 = '';
7518
  $html = array( $html1, $html2 );
7519
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
7520
 
7521
  wppa_setting_box_footer_new();
7522
  }
@@ -8676,8 +8701,8 @@ global $wppa_subtab_names;
8676
  $opts[] = $tag;
8677
  $vals[] = $tag;
8678
  }
8679
- $html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus' ).'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
8680
- $html2 = '<div style="clear:both" ><small style="float:left;margin-right:5px;" >'.__('Change to:', 'wp-photo-album-plus' ).'</small>'.wppa_edit( $slug2, trim( wppa_get_option( $slug2 ), ',' ), '75%' ).'</div>';
8681
  $html3 = wppa_maintenance_button( $slug3 );
8682
  $html4 = wppa_status_field( $slug3 );
8683
  $html5 = wppa_togo_field( $slug3 );
@@ -8990,7 +9015,7 @@ global $wppa_subtab_names;
8990
  foreach ( $wppa_supported_camara_brands as $brand ) {
8991
  $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
8992
  if ( $lbl ) {
8993
- $html1 .= '<br><span style="clear:left;float:left;" >' . $lbl . ':</span>';
8994
  }
8995
  }
8996
 
@@ -9258,7 +9283,7 @@ global $wppa_subtab_names;
9258
  $slug = 'wppa_watermark_file';
9259
  $html = '<select style="float:left; font-size:11px; height:20px; margin:0 4px 0 0; padding:0; " id="wppa_watermark_file" onchange="wppaAjaxUpdateOptionValue(\'watermark_file\', this)" >' . wppa_watermark_file_select( 'system' ) . '</select>';
9260
  $html .= '<img id="img_watermark_file" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
9261
- $html .= '<span style="float:left; margin-left:12px;" >'.__('position:', 'wp-photo-album-plus' ).'</span><select style="float:left; font-size:11px; height:20px; margin:0 0 0 20px; padding:0; " id="wppa_watermark_pos" onchange="wppaAjaxUpdateOptionValue(\'watermark_pos\', this)" >' . wppa_watermark_pos_select( 'system' ) . '</select>';
9262
  $html .= '<img id="img_watermark_pos" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
9263
  wppa_setting_new(false, '1', $name, $desc, $html, $help);
9264
 
@@ -9756,8 +9781,8 @@ global $wppa_subtab_names;
9756
  $slug2 = 'wppa_main_photo_random_once';
9757
  $slug3 = 'wppa_main_photo_reset';
9758
  $html = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter()') .
9759
- '<span style="float:left;margin:0 6px;" >' . __('Fix first found', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2) .
9760
- '<span style="float:left;margin:0 6px;" >' . __('Reset all', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug3);
9761
  wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') == '-3' || wppa_opt('main_photo') == '-9');
9762
 
9763
  $name = __('Related count', 'wp-photo-album-plus' );
@@ -9963,7 +9988,7 @@ global $wppa_subtab_names;
9963
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
9964
 
9965
  $name = __('Cache root', 'wp-photo-album-plus' );
9966
- $desc = __('The root folder of your caching plugin', 'wp-photo-album-plus' ) . ': <span style="float:right;" >' . WPPA_CONTENT_PATH . '/</span>';
9967
  $help = __('If you have a caching plugin, make sure this setting points to the root folder where the cache files are stored', 'wp-photo-album-plus' );
9968
  $slug = 'wppa_cache_root';
9969
  $html = wppa_input($slug, '300px');
@@ -10148,14 +10173,14 @@ global $wppa_subtab_names;
10148
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
10149
 
10150
  $name = __('Delete all', 'wp-photo-album-plus' );
10151
- $desc = '<span style="color:red;" >'.__('Deletes them all !!!', 'wp-photo-album-plus' ).'</span>';
10152
  $help = '';
10153
  $slug = 'wppa_delete_all_from_cloudinary';
10154
  $html = wppa_doit_button_new($slug);
10155
  wppa_setting_new(false, '5', $name, $desc, $html, $help);
10156
 
10157
  $name = __('Delete derived images', 'wp-photo-album-plus' );
10158
- $desc = '<span style="color:red;" >'.__('Deletes all derived images !!!', 'wp-photo-album-plus' ).'</span>';
10159
  $help = '';
10160
  $slug = 'wppa_delete_derived_from_cloudinary';
10161
  $html = wppa_doit_button_new($slug);
@@ -10270,7 +10295,7 @@ global $wppa_subtab_names;
10270
  }
10271
 
10272
  $name = __('Image Magick', 'wp-photo-album-plus' );
10273
- $desc = __('Absolute path to the ImageMagick commands', 'wp-photo-album-plus' );// . ' <span style="color:red;" >' . __('experimental', 'wp-photo-album-plus' ) . '</span>';
10274
  $help = __('If you want to use ImageMagick, enter the absolute path to the ImageMagick commands', 'wp-photo-album-plus' );
10275
  $slug = 'wppa_image_magick';
10276
  $html = wppa_input($slug, '300px', '', '', 'wppaRefreshAfter();');
@@ -10422,8 +10447,7 @@ global $wppa_subtab_names;
10422
  wppa_echo( '
10423
  <div
10424
  id="wppa-modal-container"
10425
- style="width:100%;padding:0;"
10426
- >
10427
  </div>' );
10428
 
10429
  // close wrapper
@@ -10431,7 +10455,7 @@ global $wppa_subtab_names;
10431
 
10432
  // Report resource used
10433
  wppa_echo( '
10434
- <div style="clear:both;margin-top:12px;" >' .
10435
  sprintf(__('<br>Memory used on this page: %6.2f Mb.', 'wp-photo-album-plus' ), memory_get_peak_usage(true)/(1024*1024)) .
10436
  sprintf(__('<br>There are %d settings and %d runtime parameters.', 'wp-photo-album-plus' ), count($wppa_opt), count($wppa)) . '
10437
  </div>' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
307
  // General header
308
  wppa_echo( '
309
  <img id="icon-album" src="' . $iconurl . '" />
310
+ <h1 style="display:inline">' . __( 'WP Photo Album Plus Settings', 'wp-photo-album-plus' ) . '
311
+ <span style="color:blue"> ' . __( 'Auto Save', 'wp-photo-album-plus' ) . '</span>
312
  </h1>' );
313
  if ( current_user_can( 'administrator' ) ) {
314
  wppa_echo( ' ' .
549
  }
550
 
551
  // The master header selectors
552
+ wppa_echo( '<ul class="widefat wppa-master-tabs">' );
553
  wppa_master_tab( 'basic', 'general', __( 'Basic settings', 'wp-photo-album-plus' ), $basic );
554
  wppa_master_tab( 'advanced', 'generaladv', __( 'Advanced settings', 'wp-photo-album-plus' ), $advan );
555
  wppa_echo( '</ul>' );
556
 
557
  // The tabs
558
  {
559
+ wppa_echo( '<ul class="widefat wppa-setting-tabs">' );
560
  wppa_setting_tab( 'general', $wppa_tab_names['general'], $basic );
561
  wppa_setting_tab( 'generaladv', $wppa_tab_names['generaladv'], $advan );
562
  wppa_setting_tab( 'layout', $wppa_tab_names['layout'], $basic );
694
  }
695
 
696
  // Open the content area
697
+ wppa_echo( '<div id="wppa-setting-content" style="display:none;clear:both">' );
698
 
699
  // Dispatch on tab
700
  switch($tab) {
843
  $slug1 = 'wppa_bgcolor';
844
  $slug2 = 'wppa_bcolor';
845
  $slug = array($slug1, $slug2);
846
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
847
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px">' . __('Border:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
848
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
849
 
850
  $name = __('Border thickness', 'wp-photo-album-plus' );
909
  $slug1 = 'wppa_bgcolor_img';
910
  $slug2 = 'wppa_bcolor_img';
911
  $slug = array($slug1, $slug2);
912
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
913
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px">' . __('Border:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
914
  wppa_setting_new($slug, '10', $name, $desc, $html, $help);
915
 
916
  $name = __('Modal render box', 'wp-photo-album-plus' );
919
  $slug1 = 'wppa_bgcolor_modal';
920
  $slug2 = 'wppa_bcolor_modal';
921
  $slug = array($slug1, $slug2);
922
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
923
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
924
 
925
  wppa_setting_box_footer_new();
1224
  $slug1 = 'wppa_svg_bg_color';
1225
  $slug2 = 'wppa_svg_color';
1226
  $slug = array($slug1, $slug2);
1227
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1228
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px">' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1229
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
1230
 
1231
  $name = __('Navigation symbols Lightbox', 'wp-photo-album-plus' );
1234
  $slug1 = 'wppa_ovl_svg_bg_color';
1235
  $slug2 = 'wppa_ovl_svg_color';
1236
  $slug = array($slug1, $slug2);
1237
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1238
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px">' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1239
  wppa_setting_new($slug, '8', $name, $desc, $html, $help);
1240
 
1241
  $name = __('Fullscreen button', 'wp-photo-album-plus' );
1244
  $slug1 = 'wppa_fs_svg_bg_color';
1245
  $slug2 = 'wppa_fs_svg_color';
1246
  $slug = array($slug1, $slug2);
1247
+ $html = '<span style="float:left;padding-top:5px">' . __('Background:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
1248
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px">' . __('Foreground:', 'wp-photo-album-plus' ) . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
1249
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1250
 
1251
  wppa_setting_box_footer_new();
2224
  $day++;
2225
  }
2226
  $vals = $opts;
2227
+ $html = '<span style="float:left">' .
2228
  sprintf( __('Current day# = %s, offset =', 'wp-photo-album-plus' ), wppa_local_date( $date_key ) ) .
2229
  '</span> ' .
2230
  wppa_select( $slug, $opts, $vals, 'wppaRefreshAfter();' );
2247
  if ( $photo ) {
2248
  if ( wppa_is_video( $photo['id'] ) ) {
2249
  $html = '
2250
+ <div style="display:inline-block;width:25%;text-align:center;float:left">' .
2251
  wppa_get_video_html( array( 'id' => $photo['id'], 'width' => '180' ) ) . '
2252
  </div>';
2253
  }
2254
  else {
2255
  $html = '
2256
+ <div style="display:inline-block;width:25%;text-align:center;float:left">
2257
  <img
2258
  src="' . esc_url( wppa_get_thumb_url( $photo['id'] ) ) . '"
2259
  style="width: 180px;"
2261
  </div>';
2262
  }
2263
  $html .= '
2264
+ <div style="display:inline-block;width:75%;text-align:center;vertical-align:middle">' .
2265
  __( 'Album', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '
2266
  <br>' .
2267
  __('Uploader', 'wp-photo-album-plus' ) . ': ' . htmlspecialchars( $photo['owner'] ) . '
2334
  wppa_echo( '
2335
  <div
2336
  class="photoselect"
2337
+ style="width:180px;height:200px;overflow:hidden"
2338
  >' );
2339
 
2340
  // Open image container div
2378
  style="clear:both;width:100%;margin:3px 0;position:relative;top:5px;"
2379
  >
2380
  <div
2381
+ style="font-size:9px; line-height:10px;float:left"
2382
  >
2383
  (#' . strval( intval( $photo['p_order'] ) ) . ')
2384
  </div>' );
2404
  style="clear:both;overflow:hidden;height:150px;position:relative;top:10px;"
2405
  >
2406
  <div
2407
+ style="font-size:11px;overflow:hidden"
2408
  >' .
2409
  wppa_get_photo_name( $id ) . '
2410
  </div>
2638
  $vals[] = $key;
2639
  }
2640
  $html = wppa_checkbox($slug) .
2641
+ '<span style="float:left">&nbsp;' . __( 'For userrole users indicate comments given by userrole', 'wp-photo-album-plus' ) . '&nbsp;</span>' .
2642
  wppa_select($slug2, $opts, $vals);
2643
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2644
 
3094
  $slug1 = 'wppa_bgcolor_numbar';
3095
  $slug2 = 'wppa_bcolor_numbar';
3096
  $slug = array($slug1, $slug2);
3097
+ $html = '<span style="float:left;position:relative;top:5px">' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3098
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3099
+ '<span style="float:left;position:relative;top:5px;padding-left:5px">' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3100
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3101
  wppa_setting_new($slug, '29', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
3102
 
3106
  $slug1 = 'wppa_bgcolor_numbar_active';
3107
  $slug2 = 'wppa_bcolor_numbar_active';
3108
  $slug = array($slug1, $slug2);
3109
+ $html = '<span style="float:left;position:relative;top:5px">' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3110
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3111
+ '<span style="float:left;position:relative;top:5px;padding-left:5px">' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3112
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3113
  wppa_setting_new($slug, '30', $name, $desc, $html, $help, wppa_switch('show_slideshownumbar'));
3114
 
3147
  $slug1 = 'wppa_bgcolor_fullimg';
3148
  $slug2 = 'wppa_bcolor_fullimg';
3149
  $slug = array($slug1, $slug2);
3150
+ $html = '<span style="float:left;position:relative;top:5px">' . __('Background', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3151
  wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1) .
3152
+ '<span style="float:left;position:relative;top:5px;padding-left:5px">' . __('Border', 'wp-photo-album-plus' ) . ':&nbsp;</span>' .
3153
  wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
3154
  wppa_setting_new($slug, '35', $name, $desc, $html, $help);
3155
 
3921
  $slug2 = 'wppa_list_comments';
3922
  $opts = array( 'Email', 'Name', 'Timestamp' );
3923
  $vals = array( 'email', 'name', 'timestamp' );
3924
+ $html1 = '<small style="float:left">'.__('Order by:', 'wp-photo-album-plus' ).'</small>'.wppa_select($slug1, $opts, $vals);
3925
  $html2 = wppa_popup_button( $slug2, '30' );
3926
+ $html = $html1 . '<span style="float:left">&nbsp;</span>' .$html2;
3927
  wppa_setting_new($slug1, '16', $name, $desc, $html, $help);
3928
 
3929
  wppa_setting_box_footer_new();
4289
  $slug2 = 'wppa_search_oc';
4290
  $opts2 = array('1','2','3','4','5');
4291
  $vals2 = array('1','2','3','4','5');
4292
+ $html2 = '<div style="float:right"><div style="font-size:9px;foat:left;" class="" >'.__('Occur', 'wp-photo-album-plus' ).'</div>'.wppa_select($slug2, $opts2, $vals2).'</div>';
4293
 
4294
  $html = $html1 . $html2;
4295
  wppa_setting_new(false, '1', $name, $desc, $html, $help);
4534
  $help = '';
4535
  $slug1 = 'wppa_list_index_display_start';
4536
  $slug2 = 'wppa_list_index';
4537
+ $html1 = '<small style="float:left">'.__('Start at text:', 'wp-photo-album-plus' ).'&nbsp;</small>'.wppa_input( $slug1, '150px' );
4538
  $html2 = wppa_popup_button( $slug2, '30' );
4539
+ $html = $html1 . '<span style="float:left">&nbsp;</span>' . $html2;
4540
  wppa_setting_new(false, '34', $name, $desc, $html, $help);
4541
 
4542
  $name = __('Show empty search', 'wp-photo-album-plus' );
5197
  $npag = wppa_need_page($slug1);
5198
  $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
5199
  $html3 = $npag ? wppa_checkbox($slug3) : '';
5200
+ $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer">ASO&nbsp;</span>'.wppa_checkbox($slug4);
5201
  $html = array($html1, $html2, $html3, $html4);
5202
  wppa_setting_new($slug, '3', $name, $desc, $html, $help);
5203
 
5230
  $npag = wppa_need_page($slug1);
5231
  $html2 = $npag ? wppa_select($slug2, $opts_page_auto, $vals_page) : '';
5232
  $html3 = $npag ? wppa_checkbox($slug3) : '';
5233
+ $html4 = '<span title="'.esc_attr(__('Album specific link overrules', 'wp-photo-album-plus' )).'" style="float:left; cursor:pointer">ASO&nbsp;</span>'.wppa_checkbox($slug4);
5234
  $html = array($html1, $html2, $html3, $html4);
5235
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
5236
 
5794
  $help .= '<br>'.wppa_see_also( 'new', '1', '29' );
5795
  $slug1 = 'wppa_name_user';
5796
  $slug2 = 'wppa_name_user_mandatory';
5797
+ $html = wppa_checkbox( $slug1 ) . '<span style="float:left">' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5798
  wppa_setting_new($slug1, '9', $name, $desc, $html, $help);
5799
 
5800
  $name = __('Apply Newphoto desc user', 'wp-photo-album-plus' );
5811
  $help = '';
5812
  $slug1 = 'wppa_desc_user';
5813
  $slug2 = 'wppa_desc_user_mandatory';
5814
+ $html = wppa_checkbox( $slug1 ) . '<span style="float:left">' . __( 'Mandatory', 'wp-photo-album-plus' ) . ':</span>' . wppa_checkbox( $slug2 );
5815
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
5816
 
5817
  $name = __('User upload custom', 'wp-photo-album-plus' );
6842
  $slug1 = 'wppa_max_photo_modtime';
6843
  $html1 = wppa_select($slug1, $opts, $vals);
6844
  $slug2 = 'wppa_pup_is_aup';
6845
+ $html2 = '<span style="float:left">'.__( 'Mod album also' ).'</span>'.wppa_checkbox($slug2);
6846
  wppa_setting_new($slug, '4', $name, $desc, $html1.$html2, $help);
6847
 
6848
  $name = __('First photo', 'wp-photo-album-plus' );
7335
  $desc = __('Enable frontend album creation.', 'wp-photo-album-plus' );
7336
  $help = __('If you check this item, frontend album creation will be enabled.', 'wp-photo-album-plus' );
7337
  $slug = 'wppa_user_create_on';
7338
+ $onchange = 'wppaRefreshAfter()';
7339
  $html1 = wppa_checkbox($slug, $onchange);
7340
  $html2 = '';
7341
  $html = array( $html1, $html2 );
7342
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
7343
 
7344
+ if ( wppa_switch( 'user_create_on' ) ) {
7345
+ $name = __('User create roles', 'wp-photo-album-plus' );
7346
+ $desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus' );
7347
+ $help = __('Adminstrators and superusers are automatically included', 'wp-photo-album-plus' );
7348
+ $slug = 'wppa_user_create_roles';
7349
+ $roles = $wp_roles->roles;
7350
+ $opts = array();
7351
+ $vals = array();
7352
+ $opts[] = '-- '.__('Not limited', 'wp-photo-album-plus' ).' --';
7353
+ $vals[] = '';
7354
+ foreach (array_keys($roles) as $key) {
7355
+ $role = $roles[$key];
7356
+ if ( $key != 'administrator' ) {
7357
+ $rolename = translate_user_role( $role['name'] );
7358
+ $opts[] = $rolename;
7359
+ $vals[] = $key;
7360
+ }
7361
+ }
7362
+ $onch = '';
7363
+ $html1 = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
7364
+ $html2 = '';
7365
+ $html = array( $html1, $html2 );
7366
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
7367
+ }
7368
+
7369
  $name = __('Max user albums', 'wp-photo-album-plus' );
7370
  $desc = __('The max number of albums a user can create.', 'wp-photo-album-plus' );
7371
  $help = __('The maximum number of albums a user can create when he is not admin', 'wp-photo-album-plus' );
7374
  $html1 = wppa_input($slug, '50px', '', 'albums');
7375
  $html2 = '';
7376
  $html = array( $html1, $html2 );
7377
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'user_create_on' ));
7378
 
7379
  $name = __('Max nesting level', 'wp-photo-album-plus' );
7380
  $desc = __('Limits the max nesting level for frontend created albums', 'wp-photo-album-plus' );
7384
  $html1 = wppa_number($slug, '0', '99');
7385
  $html2 = '';
7386
  $html = array( $html1, $html2 );
7387
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
7388
 
7389
  $name = __('User edit album', 'wp-photo-album-plus' );
7390
  $desc = __('Enable frontend edit album name and description.', 'wp-photo-album-plus' );
7393
  $html1 = wppa_checkbox($slug);
7394
  $html2 = '';
7395
  $html = array( $html1, $html2 );
7396
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
7397
 
7398
  $name = __('User delete Albums', 'wp-photo-album-plus' );
7399
  $desc = __('Enable frontend album deletion', 'wp-photo-album-plus' );
7403
  $html1 = wppa_checkbox($slug, $onchange);
7404
  $html2 = '';
7405
  $html = array( $html1, $html2 );
7406
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7407
 
7408
  $name = __('User create Albums Captcha', 'wp-photo-album-plus' );
7409
  $desc = __('User must answer security question.', 'wp-photo-album-plus' );
7412
  $html1 = wppa_checkbox($slug);
7413
  $html2 = '';
7414
  $html = array( $html1, $html2 );
7415
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
7416
 
7417
  $name = __('Fe limts per album', 'wp-photo-album-plus' );
7418
  $desc = __('The following limits apply to individual albums', 'wp-photo-album-plus' );
7422
  $html1 = wppa_checkbox($slug);
7423
  $html2 = '';
7424
  $html = array( $html1, $html2 );
7425
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
7426
 
7427
  // User upload limits
7428
  $opts = array( __('for ever', 'wp-photo-album-plus' ),
7448
  $slug2 = 'wppa_'.$role.'_upload_limit_time';
7449
  $html2 = wppa_select($slug2, $opts, $vals);
7450
  $html = array( $html1, $html2 );
7451
+ wppa_setting_new(false, '9.'.$t_role, $name, $desc, $html, $help);
7452
  }
7453
 
7454
  foreach (array_keys($roles) as $role) {
7463
  $slug2 = '';
7464
  $html2 = '';
7465
  $html = array( $html1, $html2 );
7466
+ wppa_setting_new(false, '10.'.$t_role, $name, $desc, $html, $help);
7467
  }
7468
 
7469
  $name = __('Upload one only', 'wp-photo-album-plus' );
7473
  $html1 = wppa_checkbox($slug);
7474
  $html2 = '';
7475
  $html = array( $html1, $html2 );
7476
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
7477
 
7478
  $name = __('Upload moderation', 'wp-photo-album-plus' );
7479
  $desc = __('Uploaded photos need moderation.', 'wp-photo-album-plus' );
7484
  $html1 = wppa_checkbox($slug);
7485
  $html2 = '';
7486
  $html = array( $html1, $html2 );
7487
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
7488
 
7489
  $name = __('FE Upload private', 'wp-photo-album-plus' );
7490
  $desc = __('Front-end uploaded photos status is set to private.', 'wp-photo-album-plus' );
7493
  $html1 = wppa_checkbox($slug);
7494
  $html2 = '';
7495
  $html = array( $html1, $html2 );
7496
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
7497
 
7498
  $name = __('Min size in pixels', 'wp-photo-album-plus' );
7499
  $desc = __('Min size for height and width for front-end uploads.', 'wp-photo-album-plus' );
7502
  $html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
7503
  $html2 = '';
7504
  $html = array( $html1, $html2 );
7505
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
7506
 
7507
  $name = __('Max size in pixels', 'wp-photo-album-plus' );
7508
  $desc = __('Max size for height and width for front-end uploads.', 'wp-photo-album-plus' );
7511
  $html1 = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus' ));
7512
  $html2 = '';
7513
  $html = array( $html1, $html2 );
7514
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
7515
 
7516
  $name = __('Fe alert', 'wp-photo-album-plus' );
7517
  $desc = __('Show alertbox on front-end.', 'wp-photo-album-plus' );
7530
  $html1 = wppa_select($slug, $opts, $vals);
7531
  $html2 = '';
7532
  $html = array( $html1, $html2 );
7533
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
7534
 
7535
  $name = __('Max fe upload albums', 'wp-photo-album-plus' );
7536
  $desc = __('Max number of albums in frontend upload selection box.', 'wp-photo-album-plus' );
7541
  $html1 = wppa_select($slug, $opts, $vals).__('albums', 'wp-photo-album-plus' );
7542
  $html2 = '';
7543
  $html = array( $html1, $html2 );
7544
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
7545
 
7546
  wppa_setting_box_footer_new();
7547
  }
8701
  $opts[] = $tag;
8702
  $vals[] = $tag;
8703
  }
8704
+ $html1 = '<div><small style="float:left;margin-right:5px">'.__('Tag:', 'wp-photo-album-plus' ).'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
8705
+ $html2 = '<div style="clear:both" ><small style="float:left;margin-right:5px">'.__('Change to:', 'wp-photo-album-plus' ).'</small>'.wppa_edit( $slug2, trim( wppa_get_option( $slug2 ), ',' ), '75%' ).'</div>';
8706
  $html3 = wppa_maintenance_button( $slug3 );
8707
  $html4 = wppa_status_field( $slug3 );
8708
  $html5 = wppa_togo_field( $slug3 );
9015
  foreach ( $wppa_supported_camara_brands as $brand ) {
9016
  $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
9017
  if ( $lbl ) {
9018
+ $html1 .= '<br><span style="clear:left;float:left">' . $lbl . ':</span>';
9019
  }
9020
  }
9021
 
9283
  $slug = 'wppa_watermark_file';
9284
  $html = '<select style="float:left; font-size:11px; height:20px; margin:0 4px 0 0; padding:0; " id="wppa_watermark_file" onchange="wppaAjaxUpdateOptionValue(\'watermark_file\', this)" >' . wppa_watermark_file_select( 'system' ) . '</select>';
9285
  $html .= '<img id="img_watermark_file" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
9286
+ $html .= '<span style="float:left; margin-left:12px">'.__('position:', 'wp-photo-album-plus' ).'</span><select style="float:left; font-size:11px; height:20px; margin:0 0 0 20px; padding:0; " id="wppa_watermark_pos" onchange="wppaAjaxUpdateOptionValue(\'watermark_pos\', this)" >' . wppa_watermark_pos_select( 'system' ) . '</select>';
9287
  $html .= '<img id="img_watermark_pos" src="'.wppa_get_imgdir().'star.ico" title="'.__('Setting unmodified', 'wp-photo-album-plus' ).'" style="padding-left:4px; float:left; height:16px; width:16px;" />';
9288
  wppa_setting_new(false, '1', $name, $desc, $html, $help);
9289
 
9781
  $slug2 = 'wppa_main_photo_random_once';
9782
  $slug3 = 'wppa_main_photo_reset';
9783
  $html = wppa_select($slug1, $opts, $vals, 'wppaRefreshAfter()') .
9784
+ '<span style="float:left;margin:0 6px">' . __('Fix first found', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug2) .
9785
+ '<span style="float:left;margin:0 6px">' . __('Reset all', 'wp-photo-album-plus' ) . '</span>' . wppa_checkbox($slug3);
9786
  wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt('main_photo') == '-3' || wppa_opt('main_photo') == '-9');
9787
 
9788
  $name = __('Related count', 'wp-photo-album-plus' );
9988
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
9989
 
9990
  $name = __('Cache root', 'wp-photo-album-plus' );
9991
+ $desc = __('The root folder of your caching plugin', 'wp-photo-album-plus' ) . ': <span style="float:right">' . WPPA_CONTENT_PATH . '/</span>';
9992
  $help = __('If you have a caching plugin, make sure this setting points to the root folder where the cache files are stored', 'wp-photo-album-plus' );
9993
  $slug = 'wppa_cache_root';
9994
  $html = wppa_input($slug, '300px');
10173
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
10174
 
10175
  $name = __('Delete all', 'wp-photo-album-plus' );
10176
+ $desc = '<span style="color:red">'.__('Deletes them all !!!', 'wp-photo-album-plus' ).'</span>';
10177
  $help = '';
10178
  $slug = 'wppa_delete_all_from_cloudinary';
10179
  $html = wppa_doit_button_new($slug);
10180
  wppa_setting_new(false, '5', $name, $desc, $html, $help);
10181
 
10182
  $name = __('Delete derived images', 'wp-photo-album-plus' );
10183
+ $desc = '<span style="color:red">'.__('Deletes all derived images !!!', 'wp-photo-album-plus' ).'</span>';
10184
  $help = '';
10185
  $slug = 'wppa_delete_derived_from_cloudinary';
10186
  $html = wppa_doit_button_new($slug);
10295
  }
10296
 
10297
  $name = __('Image Magick', 'wp-photo-album-plus' );
10298
+ $desc = __('Absolute path to the ImageMagick commands', 'wp-photo-album-plus' );// . ' <span style="color:red">' . __('experimental', 'wp-photo-album-plus' ) . '</span>';
10299
  $help = __('If you want to use ImageMagick, enter the absolute path to the ImageMagick commands', 'wp-photo-album-plus' );
10300
  $slug = 'wppa_image_magick';
10301
  $html = wppa_input($slug, '300px', '', '', 'wppaRefreshAfter();');
10447
  wppa_echo( '
10448
  <div
10449
  id="wppa-modal-container"
10450
+ style="width:100%;padding:0">
 
10451
  </div>' );
10452
 
10453
  // close wrapper
10455
 
10456
  // Report resource used
10457
  wppa_echo( '
10458
+ <div style="clear:both;margin-top:12px">' .
10459
  sprintf(__('<br>Memory used on this page: %6.2f Mb.', 'wp-photo-album-plus' ), memory_get_peak_usage(true)/(1024*1024)) .
10460
  sprintf(__('<br>There are %d settings and %d runtime parameters.', 'wp-photo-album-plus' ), count($wppa_opt), count($wppa)) . '
10461
  </div>' );
wppa-slideshow-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a slideshow in the sidebar
6
- * Version 8.1.08.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -104,7 +104,7 @@ class SlideshowWidget extends WP_Widget {
104
  $widget_content .=
105
  '<div' .
106
  ' style="padding-top:2px; padding-bottom:4px;" ' .
107
- ' data-wppa="yes" >';
108
 
109
  // The very slideshow
110
  $widget_content .= wppa_albums( $album, 'slideonly', $instance['width'], 'center' );
@@ -142,7 +142,7 @@ class SlideshowWidget extends WP_Widget {
142
  }
143
  $result .= $widget_content . $after_widget;
144
 
145
- echo wppa_compress_html( $result );
146
  echo wppa_widget_timer( 'show', $widget_title );
147
 
148
  // Cache?
@@ -231,7 +231,7 @@ class SlideshowWidget extends WP_Widget {
231
  // Sizes and alignment
232
  echo
233
  __( 'Sizes and alignment', 'wp-photo-album-plus' ) . ':' .
234
- '<div style="padding:6px;border:1px solid lightgray;margin-top:2px;" >' .
235
  __( 'Enter the width and optionally the height of the area wherein the slides will appear. If you specify a 0 for the height, it will be calculated. The value for the height will be ignored if you set the vertical alignment to \'fit\'.', 'wp-photo-album-plus' ) .
236
  ' ' .
237
  __( 'Tick the portrait only checkbox if there are only portrait images in the album and you want the photos to fill the full width of the widget.', 'wp-photo-album-plus' ) .
@@ -315,7 +315,7 @@ class SlideshowWidget extends WP_Widget {
315
  // Additional boxes
316
  echo
317
  __( 'Slideshow options to display', 'wp-photo-album-plus' ) .
318
- '<div style="padding:6px;border:1px solid lightgray;margin-top:2px;margin-bottom:1em;" >' .
319
 
320
  // Name
321
  wppa_widget_checkbox( $this, 'name', $instance['name'], __( 'Show name', 'wp-photo-album-plus' ) ) .
@@ -336,7 +336,7 @@ class SlideshowWidget extends WP_Widget {
336
  // qTranslate supported textfields
337
  echo
338
  __( 'The following text fields support qTranslate', 'wp-photo-album-plus' ) .
339
- '<div style="padding:6px;border:1px solid lightgray;margin-top:2px;" >' .
340
 
341
  // Link title
342
  wppa_widget_input( $this, 'linktitle', $instance['linktitle'], __( 'Tooltip text', 'wp-photo-album-plus' ) ) .
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a slideshow in the sidebar
6
+ * Version 8.1.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
104
  $widget_content .=
105
  '<div' .
106
  ' style="padding-top:2px; padding-bottom:4px;" ' .
107
+ ' data-wppa="yes">';
108
 
109
  // The very slideshow
110
  $widget_content .= wppa_albums( $album, 'slideonly', $instance['width'], 'center' );
142
  }
143
  $result .= $widget_content . $after_widget;
144
 
145
+ echo $result;
146
  echo wppa_widget_timer( 'show', $widget_title );
147
 
148
  // Cache?
231
  // Sizes and alignment
232
  echo
233
  __( 'Sizes and alignment', 'wp-photo-album-plus' ) . ':' .
234
+ '<div style="padding:6px;border:1px solid lightgray;margin-top:2px">' .
235
  __( 'Enter the width and optionally the height of the area wherein the slides will appear. If you specify a 0 for the height, it will be calculated. The value for the height will be ignored if you set the vertical alignment to \'fit\'.', 'wp-photo-album-plus' ) .
236
  ' ' .
237
  __( 'Tick the portrait only checkbox if there are only portrait images in the album and you want the photos to fill the full width of the widget.', 'wp-photo-album-plus' ) .
315
  // Additional boxes
316
  echo
317
  __( 'Slideshow options to display', 'wp-photo-album-plus' ) .
318
+ '<div style="padding:6px;border:1px solid lightgray;margin-top:2px;margin-bottom:1em">' .
319
 
320
  // Name
321
  wppa_widget_checkbox( $this, 'name', $instance['name'], __( 'Show name', 'wp-photo-album-plus' ) ) .
336
  // qTranslate supported textfields
337
  echo
338
  __( 'The following text fields support qTranslate', 'wp-photo-album-plus' ) .
339
+ '<div style="padding:6px;border:1px solid lightgray;margin-top:2px">' .
340
 
341
  // Link title
342
  wppa_widget_input( $this, 'linktitle', $instance['linktitle'], __( 'Tooltip text', 'wp-photo-album-plus' ) ) .
wppa-slideshow.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains all the slideshow high level functions
6
  *
7
- * Version 8.1.09.002
8
  *
9
  */
10
 
@@ -325,7 +325,7 @@ function wppa_start_stop_icons( $opt = '' ) {
325
  <span
326
  id="renew-' . $mocc . '"
327
  class="wppa-nav-text renew"
328
- style="float:right;cursor:pointer;"
329
  title="' . esc_attr( __('Renew', 'wp-photo-album-plus' ) ) . '"
330
  onclick="_wppaStop(' . $mocc . ');wppaDoAjaxRender(' . $mocc . ', \'' . $ajax_url .
331
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album=' . wppa( 'start_album' ) . '&amp;wppa-occur=' . $mocc . '\', \'\' )"
@@ -407,7 +407,7 @@ function wppa_start_stop_text( $opt = '' ) {
407
  <a
408
  id="renew-' . $mocc . '"
409
  class="wppa-nav-text renew"
410
- style="float:right;cursor:pointer;"
411
  onclick="_wppaStop(' . $mocc . ');wppaDoAjaxRender(' . $mocc . ', \'' . $ajax_url .
412
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album=' . wppa( 'start_album' ) . '&amp;wppa-occur=' . $mocc . '\', \'\' )"
413
  >' .
@@ -1366,7 +1366,7 @@ function wppa_slide_filmstrip( $opt = '' ) {
1366
  '<div' .
1367
  ' id="filmwindow-'.wppa( 'mocc' ).'"' .
1368
  ' class="filmwindow"' .
1369
- ' style="'.$IE6.' position:absolute !important; display: block; height:'.$height.'px; margin: 0 0 0 '.$marg.'px; overflow:hidden;"' .
1370
  ' >' .
1371
  '<div' .
1372
  ' id="wppa-filmstrip-'.wppa( 'mocc' ).'"' .
@@ -1608,7 +1608,7 @@ function wppa_browsebar_icons( $opt = '' ) {
1608
  '<span' .
1609
  ' id="prev-arrow-' . wppa( 'mocc' ) . '"' .
1610
  ' class="wppa-prev-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1611
- ' style="float:left;text-align:left;cursor:pointer;"' .
1612
  ' title="' . __( 'Previous photo', 'wp-photo-album-plus' ) . '"' .
1613
  ' onclick="wppaPrev(' . wppa( 'mocc' ) . ')"' .
1614
  ' >' .
@@ -1617,7 +1617,7 @@ function wppa_browsebar_icons( $opt = '' ) {
1617
  '<span' .
1618
  ' id="next-arrow-' . wppa( 'mocc' ) . '"' .
1619
  ' class="wppa-next-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1620
- ' style="float:right;text-align:right;cursor:pointer;"' .
1621
  ' title="' . __( 'Next photo', 'wp-photo-album-plus' ) . '"' .
1622
  ' onclick="wppaNext(' . wppa( 'mocc' ) . ')"' .
1623
  ' >' .
@@ -1626,12 +1626,12 @@ function wppa_browsebar_icons( $opt = '' ) {
1626
  '<span' .
1627
  ' id="counter-'.wppa( 'mocc' ).'"' .
1628
  ' class="wppa-nav-text wppa-black"' .
1629
- ' style="text-align:center;cursor:pointer;"' .
1630
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1631
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus' ).'"' .
1632
  ' >' .
1633
  '</span>' .
1634
- '<div style="clear:both;" ></div>' .
1635
  '</div>'
1636
  );
1637
  }
@@ -1658,20 +1658,20 @@ function wppa_browsebar_text( $opt = '' ) {
1658
  '<a' .
1659
  ' id="prev-arrow-'.wppa( 'mocc' ).'"' .
1660
  ' class="wppa-prev-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1661
- ' style="float:left; text-align:left; cursor:pointer;" onclick="wppaPrev('.wppa( 'mocc' ).')"' .
1662
  ' >' .
1663
  '</a>' .
1664
  '<a' .
1665
  ' id="next-arrow-'.wppa( 'mocc' ).'"' .
1666
  ' class="wppa-next-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1667
- ' style="float:right; text-align:right; cursor:pointer;"' .
1668
  ' onclick="wppaNext('.wppa( 'mocc' ).')"' .
1669
  ' >' .
1670
  '</a>' .
1671
  '<span' .
1672
  ' id="counter-'.wppa( 'mocc' ).'"' .
1673
  ' class="wppa-nav-text wppa-black"' .
1674
- ' style="text-align:center; cursor:pointer;"' .
1675
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1676
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus' ).'"' .
1677
  ' >' .
4
  *
5
  * Contains all the slideshow high level functions
6
  *
7
+ * Version 8.1.09.003
8
  *
9
  */
10
 
325
  <span
326
  id="renew-' . $mocc . '"
327
  class="wppa-nav-text renew"
328
+ style="float:right;cursor:pointer"
329
  title="' . esc_attr( __('Renew', 'wp-photo-album-plus' ) ) . '"
330
  onclick="_wppaStop(' . $mocc . ');wppaDoAjaxRender(' . $mocc . ', \'' . $ajax_url .
331
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album=' . wppa( 'start_album' ) . '&amp;wppa-occur=' . $mocc . '\', \'\' )"
407
  <a
408
  id="renew-' . $mocc . '"
409
  class="wppa-nav-text renew"
410
+ style="float:right;cursor:pointer"
411
  onclick="_wppaStop(' . $mocc . ');wppaDoAjaxRender(' . $mocc . ', \'' . $ajax_url .
412
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album=' . wppa( 'start_album' ) . '&amp;wppa-occur=' . $mocc . '\', \'\' )"
413
  >' .
1366
  '<div' .
1367
  ' id="filmwindow-'.wppa( 'mocc' ).'"' .
1368
  ' class="filmwindow"' .
1369
+ ' style="'.$IE6.' position:absolute !important; display: block; height:'.$height.'px; margin: 0 0 0 '.$marg.'px; overflow:hidden"' .
1370
  ' >' .
1371
  '<div' .
1372
  ' id="wppa-filmstrip-'.wppa( 'mocc' ).'"' .
1608
  '<span' .
1609
  ' id="prev-arrow-' . wppa( 'mocc' ) . '"' .
1610
  ' class="wppa-prev-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1611
+ ' style="float:left;text-align:left;cursor:pointer"' .
1612
  ' title="' . __( 'Previous photo', 'wp-photo-album-plus' ) . '"' .
1613
  ' onclick="wppaPrev(' . wppa( 'mocc' ) . ')"' .
1614
  ' >' .
1617
  '<span' .
1618
  ' id="next-arrow-' . wppa( 'mocc' ) . '"' .
1619
  ' class="wppa-next-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1620
+ ' style="float:right;text-align:right;cursor:pointer"' .
1621
  ' title="' . __( 'Next photo', 'wp-photo-album-plus' ) . '"' .
1622
  ' onclick="wppaNext(' . wppa( 'mocc' ) . ')"' .
1623
  ' >' .
1626
  '<span' .
1627
  ' id="counter-'.wppa( 'mocc' ).'"' .
1628
  ' class="wppa-nav-text wppa-black"' .
1629
+ ' style="text-align:center;cursor:pointer"' .
1630
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1631
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus' ).'"' .
1632
  ' >' .
1633
  '</span>' .
1634
+ '<div style="clear:both"></div>' .
1635
  '</div>'
1636
  );
1637
  }
1658
  '<a' .
1659
  ' id="prev-arrow-'.wppa( 'mocc' ).'"' .
1660
  ' class="wppa-prev-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1661
+ ' style="float:left; text-align:left; cursor:pointer" onclick="wppaPrev('.wppa( 'mocc' ).')"' .
1662
  ' >' .
1663
  '</a>' .
1664
  '<a' .
1665
  ' id="next-arrow-'.wppa( 'mocc' ).'"' .
1666
  ' class="wppa-next-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1667
+ ' style="float:right; text-align:right; cursor:pointer"' .
1668
  ' onclick="wppaNext('.wppa( 'mocc' ).')"' .
1669
  ' >' .
1670
  '</a>' .
1671
  '<span' .
1672
  ' id="counter-'.wppa( 'mocc' ).'"' .
1673
  ' class="wppa-nav-text wppa-black"' .
1674
+ ' style="text-align:center; cursor:pointer"' .
1675
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1676
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus' ).'"' .
1677
  ' >' .
wppa-stats-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the stats widget
6
- * Version 8.1.08.003
7
  *
8
  */
9
  class WppaStatsWidget extends WP_Widget {
@@ -130,7 +130,7 @@ class WppaStatsWidget extends WP_Widget {
130
  }
131
  $result .= $widget_content . $after_widget;
132
 
133
- echo wppa_compress_html( $result );
134
  echo wppa_widget_timer( 'show', $widget_title );
135
 
136
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the stats widget
6
+ * Version 8.1.09.003
7
  *
8
  */
9
  class WppaStatsWidget extends WP_Widget {
130
  }
131
  $result .= $widget_content . $after_widget;
132
 
133
+ wppa_echo( $result );
134
  echo wppa_widget_timer( 'show', $widget_title );
135
 
136
  wppa( 'in_widget', false );
wppa-stereo-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the top rated photos
6
- * Version 8.0.00.024
7
  */
8
 
9
  class wppaStereoWidget extends WP_Widget {
@@ -35,7 +35,7 @@ class wppaStereoWidget extends WP_Widget {
35
  // Make the widget content
36
  $widget_content = "\n".'<!-- WPPA+ stereo Widget start -->';
37
  $widget_content .= wppa_get_stereo_html();
38
- $widget_content .= '<div style="clear:both;" data-wppa="yes" ></div>';
39
  $widget_content .= "\n".'<!-- WPPA+ stereo Widget end -->';
40
 
41
  // Output
@@ -45,7 +45,7 @@ class wppaStereoWidget extends WP_Widget {
45
  }
46
  $result .= $widget_content . $after_widget;
47
 
48
- echo wppa_compress_html( $result );
49
  echo wppa_widget_timer( 'show', $widget_title );
50
 
51
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the top rated photos
6
+ * Version 8.1.09.003
7
  */
8
 
9
  class wppaStereoWidget extends WP_Widget {
35
  // Make the widget content
36
  $widget_content = "\n".'<!-- WPPA+ stereo Widget start -->';
37
  $widget_content .= wppa_get_stereo_html();
38
+ $widget_content .= '<div style="clear:both;" data-wppa="yes"></div>';
39
  $widget_content .= "\n".'<!-- WPPA+ stereo Widget end -->';
40
 
41
  // Output
45
  }
46
  $result .= $widget_content . $after_widget;
47
 
48
+ wppa_echo( $result );
49
  echo wppa_widget_timer( 'show', $widget_title );
50
 
51
  wppa( 'in_widget', false );
wppa-styles.php CHANGED
@@ -3,7 +3,7 @@
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
- /* Version 8.1.09.001
7
  /*
8
  */
9
 
@@ -14,63 +14,63 @@ function wppa_create_wppa_dynamic_css() {
14
 
15
  $the_css = '
16
  .wppa-box { ' .
17
- ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px; ' : '' ) .
18
- ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px; ' : '' ) .
19
- ( wppa_opt( 'box_spacing' ) ? 'margin-bottom:' . wppa_opt( 'box_spacing' ) . 'px; ' : '' ) .
20
- ( wppa_opt( 'bgcolor' ) ? 'background-color:' . wppa_opt( 'bgcolor' ) . '; ' : '' ) .
21
- ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . '; ' : '' ) .
22
  ' }
23
  .wppa-mini-box { ' .
24
- ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . floor( ( wppa_opt( 'bwidth' ) + 2 ) / 3 ) . 'px; ' : '' ) .
25
- ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . floor( ( wppa_opt( 'bradius' ) + 2 ) / 3 ) . 'px; ' : '' ) .
26
  ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . ';' : '' ) .
27
  ' }
28
  .wppa-cover-box { ' .
29
- ( wppa_opt( 'cover_minheight' ) ? 'min-height:' . wppa_opt( 'cover_minheight' ) . 'px; ' : '' ) .
30
  ' }
31
  .wppa-cover-text-frame { ' .
32
- ( wppa_opt( 'head_and_text_frame_height' ) ? 'min-height:' . wppa_opt( 'head_and_text_frame_height' ) . 'px; ' : '' ) .
33
  ' }
34
  .wppa-box-text { ' .
35
- ( wppa_opt( 'fontcolor_box' ) ? 'color:' . wppa_opt( 'fontcolor_box' ) . '; ' : '' ) .
36
  ' }
37
  .wppa-box-text, .wppa-box-text-nocolor { ' .
38
- ( wppa_opt( 'fontfamily_box' ) ? 'font-family:' . wppa_opt( 'fontfamily_box' ) . '; ' : '' ) .
39
- ( wppa_opt( 'fontsize_box' ) ? 'font-size:' . wppa_opt( 'fontsize_box' ) . 'px; ' : '' ) .
40
- ( wppa_opt( 'fontweight_box' ) ? 'font-weight:' . wppa_opt( 'fontweight_box' ) . '; ' : '' ) .
41
  ' }
42
  .wppa-thumb-text { ' .
43
- ( wppa_opt( 'fontfamily_thumb' ) ? 'font-family:' . wppa_opt( 'fontfamily_thumb' ) . '; ' : '' ) .
44
- ( wppa_opt( 'fontsize_thumb' ) ? 'font-size:' . wppa_opt( 'fontsize_thumb' ) . 'px; line-height:' . floor( wppa_opt( 'fontsize_thumb' ) * 1.29 ) . 'px; ' : '' ) .
45
- ( wppa_opt( 'fontcolor_thumb' ) ? 'color:' . wppa_opt( 'fontcolor_thumb' ) . '; ' : '' ) .
46
- ( wppa_opt( 'fontweight_thumb' ) ? 'font-weight:' . wppa_opt( 'fontweight_thumb' ) . '; ' : '' ) .
47
  ' }
48
  .wppa-nav-text { ' .
49
- ( wppa_opt( 'fontfamily_nav' ) ? 'font-family:' . wppa_opt( 'fontfamily_nav' ) . '; ' : '' ) .
50
- ( wppa_opt( 'fontsize_nav' ) ? 'font-size:' . wppa_opt( 'fontsize_nav' ) . 'px; ' : '' ) .
51
- ( wppa_opt( 'fontcolor_nav' ) ? 'color:' . wppa_opt( 'fontcolor_nav' ) . '; ' : '' ) .
52
- ( wppa_opt( 'fontweight_nav' ) ? 'font-weight:' . wppa_opt( 'fontweight_nav' ) . '; ' : '' ) .
53
  ' }
54
  .wppa-img { ' .
55
- ( wppa_opt( 'bgcolor_img' ) ? 'background-color:' . wppa_opt( 'bgcolor_img' ) . '; ' : '' ) .
56
  ' }
57
  .wppa-title { ' .
58
- ( wppa_opt( 'fontfamily_title' ) ? 'font-family:' . wppa_opt( 'fontfamily_title' ) . '; ' : '' ) .
59
- ( wppa_opt( 'fontsize_title' ) ? 'font-size:' . wppa_opt( 'fontsize_title' ) . 'px; ' : '' ) .
60
- ( wppa_opt( 'fontcolor_title' ) ? 'color:' . wppa_opt( 'fontcolor_title' ) . '; ' : '' ) .
61
- ( wppa_opt( 'fontweight_title' ) ? 'font-weight:' . wppa_opt( 'fontweight_title' ) . '; ' : '' ) .
62
  ' }
63
  .wppa-fulldesc { ' .
64
- ( wppa_opt( 'fontfamily_fulldesc' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulldesc' ) . '; ' : '' ) .
65
- ( wppa_opt( 'fontsize_fulldesc' ) ? 'font-size:' . wppa_opt( 'fontsize_fulldesc' ) . 'px; ' : '' ) .
66
- ( wppa_opt( 'fontcolor_fulldesc' ) ? 'color:' . wppa_opt( 'fontcolor_fulldesc' ) . '; ' : '' ) .
67
- ( wppa_opt( 'fontweight_fulldesc' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulldesc' ) . '; ' : '' ) .
68
  ' }
69
  .wppa-fulltitle { ' .
70
- ( wppa_opt( 'fontfamily_fulltitle' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulltitle' ) . '; ' : '' ) .
71
- ( wppa_opt( 'fontsize_fulltitle' ) ? 'font-size:' . wppa_opt( 'fontsize_fulltitle' ) . 'px; ' : '' ) .
72
- ( wppa_opt( 'fontcolor_fulltitle' ) ? 'color:' . wppa_opt( 'fontcolor_fulltitle' ) . '; ' : '' ) .
73
- ( wppa_opt( 'fontweight_fulltitle' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulltitle' ) . '; ' : '' ) .
74
  ' }';
75
 
76
  // Add miscellaneous styles
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
+ /* Version 8.1.09.003
7
  /*
8
  */
9
 
14
 
15
  $the_css = '
16
  .wppa-box { ' .
17
+ ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px;' : '' ) .
18
+ ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px;' : '' ) .
19
+ ( wppa_opt( 'box_spacing' ) ? 'margin-bottom:' . wppa_opt( 'box_spacing' ) . 'px;' : '' ) .
20
+ ( wppa_opt( 'bgcolor' ) ? 'background-color:' . wppa_opt( 'bgcolor' ) . ';' : '' ) .
21
+ ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . ';' : '' ) .
22
  ' }
23
  .wppa-mini-box { ' .
24
+ ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . floor( ( wppa_opt( 'bwidth' ) + 2 ) / 3 ) . 'px;' : '' ) .
25
+ ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . floor( ( wppa_opt( 'bradius' ) + 2 ) / 3 ) . 'px;' : '' ) .
26
  ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . ';' : '' ) .
27
  ' }
28
  .wppa-cover-box { ' .
29
+ ( wppa_opt( 'cover_minheight' ) ? 'min-height:' . wppa_opt( 'cover_minheight' ) . 'px;' : '' ) .
30
  ' }
31
  .wppa-cover-text-frame { ' .
32
+ ( wppa_opt( 'head_and_text_frame_height' ) ? 'min-height:' . wppa_opt( 'head_and_text_frame_height' ) . 'px;' : '' ) .
33
  ' }
34
  .wppa-box-text { ' .
35
+ ( wppa_opt( 'fontcolor_box' ) ? 'color:' . wppa_opt( 'fontcolor_box' ) . ';' : '' ) .
36
  ' }
37
  .wppa-box-text, .wppa-box-text-nocolor { ' .
38
+ ( wppa_opt( 'fontfamily_box' ) ? 'font-family:' . wppa_opt( 'fontfamily_box' ) . ';' : '' ) .
39
+ ( wppa_opt( 'fontsize_box' ) ? 'font-size:' . wppa_opt( 'fontsize_box' ) . 'px;' : '' ) .
40
+ ( wppa_opt( 'fontweight_box' ) ? 'font-weight:' . wppa_opt( 'fontweight_box' ) . ';' : '' ) .
41
  ' }
42
  .wppa-thumb-text { ' .
43
+ ( wppa_opt( 'fontfamily_thumb' ) ? 'font-family:' . wppa_opt( 'fontfamily_thumb' ) . ';' : '' ) .
44
+ ( wppa_opt( 'fontsize_thumb' ) ? 'font-size:' . wppa_opt( 'fontsize_thumb' ) . 'px; line-height:' . floor( wppa_opt( 'fontsize_thumb' ) * 1.29 ) . 'px;' : '' ) .
45
+ ( wppa_opt( 'fontcolor_thumb' ) ? 'color:' . wppa_opt( 'fontcolor_thumb' ) . ';' : '' ) .
46
+ ( wppa_opt( 'fontweight_thumb' ) ? 'font-weight:' . wppa_opt( 'fontweight_thumb' ) . ';' : '' ) .
47
  ' }
48
  .wppa-nav-text { ' .
49
+ ( wppa_opt( 'fontfamily_nav' ) ? 'font-family:' . wppa_opt( 'fontfamily_nav' ) . ';' : '' ) .
50
+ ( wppa_opt( 'fontsize_nav' ) ? 'font-size:' . wppa_opt( 'fontsize_nav' ) . 'px;' : '' ) .
51
+ ( wppa_opt( 'fontcolor_nav' ) ? 'color:' . wppa_opt( 'fontcolor_nav' ) . ';' : '' ) .
52
+ ( wppa_opt( 'fontweight_nav' ) ? 'font-weight:' . wppa_opt( 'fontweight_nav' ) . ';' : '' ) .
53
  ' }
54
  .wppa-img { ' .
55
+ ( wppa_opt( 'bgcolor_img' ) ? 'background-color:' . wppa_opt( 'bgcolor_img' ) . ';' : '' ) .
56
  ' }
57
  .wppa-title { ' .
58
+ ( wppa_opt( 'fontfamily_title' ) ? 'font-family:' . wppa_opt( 'fontfamily_title' ) . ';' : '' ) .
59
+ ( wppa_opt( 'fontsize_title' ) ? 'font-size:' . wppa_opt( 'fontsize_title' ) . 'px;' : '' ) .
60
+ ( wppa_opt( 'fontcolor_title' ) ? 'color:' . wppa_opt( 'fontcolor_title' ) . ';' : '' ) .
61
+ ( wppa_opt( 'fontweight_title' ) ? 'font-weight:' . wppa_opt( 'fontweight_title' ) . ';' : '' ) .
62
  ' }
63
  .wppa-fulldesc { ' .
64
+ ( wppa_opt( 'fontfamily_fulldesc' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulldesc' ) . ';' : '' ) .
65
+ ( wppa_opt( 'fontsize_fulldesc' ) ? 'font-size:' . wppa_opt( 'fontsize_fulldesc' ) . 'px;' : '' ) .
66
+ ( wppa_opt( 'fontcolor_fulldesc' ) ? 'color:' . wppa_opt( 'fontcolor_fulldesc' ) . ';' : '' ) .
67
+ ( wppa_opt( 'fontweight_fulldesc' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulldesc' ) . ';' : '' ) .
68
  ' }
69
  .wppa-fulltitle { ' .
70
+ ( wppa_opt( 'fontfamily_fulltitle' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulltitle' ) . ';' : '' ) .
71
+ ( wppa_opt( 'fontsize_fulltitle' ) ? 'font-size:' . wppa_opt( 'fontsize_fulltitle' ) . 'px;' : '' ) .
72
+ ( wppa_opt( 'fontcolor_fulltitle' ) ? 'color:' . wppa_opt( 'fontcolor_fulltitle' ) . ';' : '' ) .
73
+ ( wppa_opt( 'fontweight_fulltitle' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulltitle' ) . ';' : '' ) .
74
  ' }';
75
 
76
  // Add miscellaneous styles
wppa-super-view-widget.php CHANGED
@@ -49,7 +49,7 @@ class WppaSuperView extends WP_Widget {
49
  $sort = wppa_checked( $instance['sort'] ) ? true : false;
50
 
51
  // Make the widget content
52
- $widget_content = '<span data-wppa="yes" ></span>' . wppa_get_superview_html( $album_root, $sort );
53
 
54
  // Output
55
  $result = "\n" . $before_widget;
@@ -58,7 +58,7 @@ class WppaSuperView extends WP_Widget {
58
  }
59
  $result .= $widget_content . $after_widget;
60
 
61
- echo wppa_compress_html( $result );
62
  echo wppa_widget_timer( 'show', $widget_title );
63
 
64
  // Cache?
49
  $sort = wppa_checked( $instance['sort'] ) ? true : false;
50
 
51
  // Make the widget content
52
+ $widget_content = '<span data-wppa="yes"></span>' . wppa_get_superview_html( $album_root, $sort );
53
 
54
  // Output
55
  $result = "\n" . $before_widget;
58
  }
59
  $result .= $widget_content . $after_widget;
60
 
61
+ wppa_echo( $result );
62
  echo wppa_widget_timer( 'show', $widget_title );
63
 
64
  // Cache?
wppa-tagcloud-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the tagcloud widget
6
- * Version 8.1.08.001
7
  *
8
  */
9
 
@@ -64,7 +64,7 @@ class TagcloudPhotos extends WP_Widget {
64
  }
65
  $result .= $widget_content . $after_widget;
66
 
67
- echo wppa_compress_html( $result );
68
  echo wppa_widget_timer( 'show', $widget_title );
69
 
70
  // Cache?
@@ -121,7 +121,7 @@ class TagcloudPhotos extends WP_Widget {
121
  else {
122
  $s = __( '--- all ---', 'wp-photo-album-plus' );
123
  }
124
- echo '<p style="word-break:break-all;" >' . __( 'Currently selected tags', 'wp-photo-album-plus' ) . ': <br><b>' . $s . '</b></p>';
125
 
126
  // Loggedin only
127
  echo
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the tagcloud widget
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
64
  }
65
  $result .= $widget_content . $after_widget;
66
 
67
+ wppa_echo( $result );
68
  echo wppa_widget_timer( 'show', $widget_title );
69
 
70
  // Cache?
121
  else {
122
  $s = __( '--- all ---', 'wp-photo-album-plus' );
123
  }
124
+ echo '<p style="word-break:break-all">' . __( 'Currently selected tags', 'wp-photo-album-plus' ) . ': <br><b>' . $s . '</b></p>';
125
 
126
  // Loggedin only
127
  echo
wppa-thumbnail-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail photos
6
- * Version 8.1.08.003
7
  */
8
 
9
  class ThumbnailWidget extends WP_Widget {
@@ -103,7 +103,7 @@ class ThumbnailWidget extends WP_Widget {
103
  $widget_content .= '
104
  <div' .
105
  ' class="wppa-widget"' .
106
- ' style="width:'.$maxw.'px; height:'.$maxh.'px; margin:4px; display:inline; text-align:center; float:left;"' .
107
  ' data-wppa="yes"' .
108
  ' >';
109
  }
@@ -155,7 +155,7 @@ class ThumbnailWidget extends WP_Widget {
155
  }
156
  $result .= $widget_content . $after_widget;
157
 
158
- echo wppa_compress_html( $result );
159
  echo wppa_widget_timer( 'show', $widget_title );
160
 
161
  // Cache?
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail photos
6
+ * Version 8.1.09.003
7
  */
8
 
9
  class ThumbnailWidget extends WP_Widget {
103
  $widget_content .= '
104
  <div' .
105
  ' class="wppa-widget"' .
106
+ ' style="width:'.$maxw.'px; height:'.$maxh.'px; margin:4px; display:inline; text-align:center; float:left"' .
107
  ' data-wppa="yes"' .
108
  ' >';
109
  }
155
  }
156
  $result .= $widget_content . $after_widget;
157
 
158
+ wppa_echo( $result );
159
  echo wppa_widget_timer( 'show', $widget_title );
160
 
161
  // Cache?
wppa-thumbnails.php CHANGED
@@ -5,7 +5,7 @@
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
- * Version 8.1.09.001
9
  *
10
  */
11
 
@@ -67,7 +67,7 @@ global $wpdb;
67
  // if ( ! wppa_is_video( $id ) && ! is_file( $imgsrc ) && ! wppa_has_audio( $id ) ) {
68
  // $result .= '<div' .
69
  // ' class="' . $class . '"' .
70
- // ' style="' . $framestyle . '; color:red;" >' .
71
  // 'Missing thumbnail image #' . $id .
72
  // '</div>';
73
  // return $result;
@@ -303,7 +303,7 @@ global $wpdb;
303
  ( $title ? ' title="' . $title . '"' : '' ) .
304
  ' width="' . $imgwidth . '"' .
305
  ' height="' . $imgheight . '"' .
306
- ' style="' . $imgstyle . ' cursor:pointer;"' .
307
  ' ' . $events .
308
  ' />';
309
  }
@@ -395,7 +395,7 @@ global $wpdb;
395
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
396
  ' ' . $imgalt .
397
  ( $title ? ' title="' . $title . '"' : '' ) .
398
- ' style="' . $imgstyle . ' cursor:pointer;"' .
399
  ' ' . $events .
400
  ' />';
401
  }
@@ -656,7 +656,7 @@ global $wpdb;
656
  if ( ! wppa_is_photo_in_zip( $thumb['id'] ) ) {
657
  $result .=
658
  '<a' .
659
- ' style="color:blue;cursor:pointer;"' .
660
  ' onclick="' .
661
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to add this photo to your selection?' , 'wp-photo-album-plus' ) . '" ) ) ' .
662
  'wppaAjaxAddPhotoToZip( '.$mocc.', \''.wppa_encrypt_photo($thumb['id']).'\', false ); return false;' ).'"' .
@@ -678,7 +678,7 @@ global $wpdb;
678
  $result .=
679
  '<a' .
680
  ' id="wppa-delete-' . wppa_encrypt_photo( $id ) . '"' .
681
- ' style="color:red;cursor:pointer;"' .
682
  ' onclick="'.esc_attr( 'if ( confirm( "'.__( 'Are you sure you want to remove this photo?' , 'wp-photo-album-plus' ).'" ) ) wppaAjaxRemovePhoto( '.$mocc.', \''.$xid.'\', false ); return false;' ).'"' .
683
  ' >' .
684
  __( 'Delete' , 'wp-photo-album-plus' ) .
@@ -690,7 +690,7 @@ global $wpdb;
690
  if ( wppa_may_user_fe_edit( $id ) ) {
691
  $result .=
692
  '<a' .
693
- ' style="color:green;cursor:pointer;"' .
694
  ' onclick="wppaEditPhoto( '.$mocc.', \''.$xid.'\' ); return false;"' .
695
  ' >' .
696
  __( 'Edit' , 'wp-photo-album-plus' ) .
@@ -1302,7 +1302,7 @@ global $wpdb;
1302
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1303
  ' ' . $imgalt .
1304
  ( $title ? ' title="' . $title . '"' : '' ) .
1305
- ' style="' . $imgstyle . ' cursor:pointer;"' .
1306
  ' ' . $events .
1307
  ' />';
1308
  }
@@ -1337,7 +1337,7 @@ global $wpdb;
1337
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1338
  ' ' . $imgalt .
1339
  ( $title ? ' title="' . $title . '"' : '' ) .
1340
- ' style="' . $imgstyle . 'cursor:pointer;"' .
1341
  ' ' . $events .
1342
  ' />';
1343
  }
@@ -1407,7 +1407,7 @@ global $wpdb;
1407
  else {
1408
 
1409
  // The div img
1410
- $result .= '<div onclick="'.$link['url'].'" class="thumb-img" id="x-'.$id.'-'.$mocc.'" style="height:100%;" >';
1411
 
1412
  // Video?
1413
  if ( $is_video ) {
@@ -1438,7 +1438,7 @@ global $wpdb;
1438
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1439
  ' ' . $imgalt .
1440
  ( $title ? ' title="' . $title . '"' : '' ) .
1441
- ' style="' . $imgstyle . 'cursor:pointer;"' .
1442
  ' ' . $events .
1443
  ' />';
1444
  }
@@ -1639,7 +1639,7 @@ function wppa_get_the_widget_thumb( $type, $image, $album, $display, $link, $tit
1639
  if ( $link ) {
1640
  if ( $link['is_url'] ) { // Is a href
1641
  $result .= '
1642
- <a href="' . esc_url( $link['url'] ) . '" title="' . esc_attr( $title ) . '" target="' . esc_attr( $link['target'] ) . '" >';
1643
  if ( $display == 'thumbs' ) {
1644
  if ( $is_video ) {
1645
  $result .= wppa_get_video_html( array(
@@ -1661,7 +1661,7 @@ function wppa_get_the_widget_thumb( $type, $image, $album, $display, $link, $tit
1661
  id="i-' . $xid . '-' . $mocc . '" ' .
1662
  ( $title ? ' title="' . esc_attr( $title ) . '" ' : '' ) .
1663
  ( wppa_lazy() ? 'data-' : '' ) . 'src="' . esc_url( $imgurl ) . '"
1664
- style="' . $imgstyle_a['style'] . ' cursor:pointer;" ' .
1665
  $imgevents . ' ' .
1666
  wppa_get_imgalt( $id ) . '
1667
  >';
@@ -1751,7 +1751,7 @@ function wppa_get_the_widget_thumb( $type, $image, $album, $display, $link, $tit
1751
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1752
  ' width="' . $imgstyle_a['width'] . '"' .
1753
  ' height="' . $imgstyle_a['height'] . '"' .
1754
- ' style="' . $imgstyle_a['style'] . ' cursor:pointer;"' .
1755
  ' ' . $imgevents .
1756
  ' onclick="' . $link['url'] . '"' .
1757
  ' ' . wppa_get_imgalt( $id ) .
@@ -1760,7 +1760,7 @@ function wppa_get_the_widget_thumb( $type, $image, $album, $display, $link, $tit
1760
  }
1761
  else {
1762
  $result .= '<a' .
1763
- ' style="cursor:pointer;"' .
1764
  ' onclick="' . $link['url'] . '"' .
1765
  ' >' . $name .
1766
  '</a>';
@@ -1898,7 +1898,7 @@ function wppa_do_filmthumb( $id, $idx, $do_for_feed = false, $glue = false ) {
1898
  ( $title ? ' ' . 'data-lbtitle' . '="' . $title . '"' : '' ) .
1899
  wppa_get_lb_panorama_full_html( $id ) .
1900
  ' onclick="if(_wppaSSRuns[' . $mocc . ']){wppaStopShow(' . $mocc . ');document.onLbquitMocc=' . $mocc . ';document.onLbquitIdx=' . $idx . ';};return true;"' .
1901
- ' >';
1902
  }
1903
 
1904
  // if ( $tmp == 'pre' && wppa_opt( 'film_linktype' ) == 'lightbox' ) $cursor = 'cursor:default;';
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
+ * Version 8.1.09.003
9
  *
10
  */
11
 
67
  // if ( ! wppa_is_video( $id ) && ! is_file( $imgsrc ) && ! wppa_has_audio( $id ) ) {
68
  // $result .= '<div' .
69
  // ' class="' . $class . '"' .
70
+ // ' style="' . $framestyle . '; color:red">' .
71
  // 'Missing thumbnail image #' . $id .
72
  // '</div>';
73
  // return $result;
303
  ( $title ? ' title="' . $title . '"' : '' ) .
304
  ' width="' . $imgwidth . '"' .
305
  ' height="' . $imgheight . '"' .
306
+ ' style="' . $imgstyle . ' cursor:pointer"' .
307
  ' ' . $events .
308
  ' />';
309
  }
395
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
396
  ' ' . $imgalt .
397
  ( $title ? ' title="' . $title . '"' : '' ) .
398
+ ' style="' . $imgstyle . ' cursor:pointer"' .
399
  ' ' . $events .
400
  ' />';
401
  }
656
  if ( ! wppa_is_photo_in_zip( $thumb['id'] ) ) {
657
  $result .=
658
  '<a' .
659
+ ' style="color:blue;cursor:pointer"' .
660
  ' onclick="' .
661
  esc_attr( 'if ( confirm( "' . __( 'Are you sure you want to add this photo to your selection?' , 'wp-photo-album-plus' ) . '" ) ) ' .
662
  'wppaAjaxAddPhotoToZip( '.$mocc.', \''.wppa_encrypt_photo($thumb['id']).'\', false ); return false;' ).'"' .
678
  $result .=
679
  '<a' .
680
  ' id="wppa-delete-' . wppa_encrypt_photo( $id ) . '"' .
681
+ ' style="color:red;cursor:pointer"' .
682
  ' onclick="'.esc_attr( 'if ( confirm( "'.__( 'Are you sure you want to remove this photo?' , 'wp-photo-album-plus' ).'" ) ) wppaAjaxRemovePhoto( '.$mocc.', \''.$xid.'\', false ); return false;' ).'"' .
683
  ' >' .
684
  __( 'Delete' , 'wp-photo-album-plus' ) .
690
  if ( wppa_may_user_fe_edit( $id ) ) {
691
  $result .=
692
  '<a' .
693
+ ' style="color:green;cursor:pointer"' .
694
  ' onclick="wppaEditPhoto( '.$mocc.', \''.$xid.'\' ); return false;"' .
695
  ' >' .
696
  __( 'Edit' , 'wp-photo-album-plus' ) .
1302
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1303
  ' ' . $imgalt .
1304
  ( $title ? ' title="' . $title . '"' : '' ) .
1305
+ ' style="' . $imgstyle . ' cursor:pointer"' .
1306
  ' ' . $events .
1307
  ' />';
1308
  }
1337
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1338
  ' ' . $imgalt .
1339
  ( $title ? ' title="' . $title . '"' : '' ) .
1340
+ ' style="' . $imgstyle . 'cursor:pointer"' .
1341
  ' ' . $events .
1342
  ' />';
1343
  }
1407
  else {
1408
 
1409
  // The div img
1410
+ $result .= '<div onclick="'.$link['url'].'" class="thumb-img" id="x-'.$id.'-'.$mocc.'" style="height:100%">';
1411
 
1412
  // Video?
1413
  if ( $is_video ) {
1438
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1439
  ' ' . $imgalt .
1440
  ( $title ? ' title="' . $title . '"' : '' ) .
1441
+ ' style="' . $imgstyle . 'cursor:pointer"' .
1442
  ' ' . $events .
1443
  ' />';
1444
  }
1639
  if ( $link ) {
1640
  if ( $link['is_url'] ) { // Is a href
1641
  $result .= '
1642
+ <a href="' . esc_url( $link['url'] ) . '" title="' . esc_attr( $title ) . '" target="' . esc_attr( $link['target'] ) . '">';
1643
  if ( $display == 'thumbs' ) {
1644
  if ( $is_video ) {
1645
  $result .= wppa_get_video_html( array(
1661
  id="i-' . $xid . '-' . $mocc . '" ' .
1662
  ( $title ? ' title="' . esc_attr( $title ) . '" ' : '' ) .
1663
  ( wppa_lazy() ? 'data-' : '' ) . 'src="' . esc_url( $imgurl ) . '"
1664
+ style="' . $imgstyle_a['style'] . 'cursor:pointer" ' .
1665
  $imgevents . ' ' .
1666
  wppa_get_imgalt( $id ) . '
1667
  >';
1751
  ' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . $imgurl . '"' .
1752
  ' width="' . $imgstyle_a['width'] . '"' .
1753
  ' height="' . $imgstyle_a['height'] . '"' .
1754
+ ' style="' . $imgstyle_a['style'] . ' cursor:pointer"' .
1755
  ' ' . $imgevents .
1756
  ' onclick="' . $link['url'] . '"' .
1757
  ' ' . wppa_get_imgalt( $id ) .
1760
  }
1761
  else {
1762
  $result .= '<a' .
1763
+ ' style="cursor:pointer"' .
1764
  ' onclick="' . $link['url'] . '"' .
1765
  ' >' . $name .
1766
  '</a>';
1898
  ( $title ? ' ' . 'data-lbtitle' . '="' . $title . '"' : '' ) .
1899
  wppa_get_lb_panorama_full_html( $id ) .
1900
  ' onclick="if(_wppaSSRuns[' . $mocc . ']){wppaStopShow(' . $mocc . ');document.onLbquitMocc=' . $mocc . ';document.onLbquitIdx=' . $idx . ';};return true;"' .
1901
+ '>';
1902
  }
1903
 
1904
  // if ( $tmp == 'pre' && wppa_opt( 'film_linktype' ) == 'lightbox' ) $cursor = 'cursor:default;';
wppa-tinymce-common.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-common.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 8.1.09.001
6
  *
7
  */
8
 
@@ -50,7 +50,7 @@ global $wpdb;
50
 
51
  // Photo selection max 100 of all photos
52
  '
53
- <tr id="wppaphoto-allphoto-tr" style="display:none;" >'.
54
  '<th><label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >'.__('The Photo to be used', 'wp-photo-album-plus' ).':</label></th>'.
55
  '<td>'.
56
  '<select id="wppaphoto-allphoto" name="photo" class="wppaphoto-allphoto" onchange="wppaPhotoEvaluate()" >' .
@@ -70,7 +70,7 @@ global $wpdb;
70
  '<th>' .
71
  __( 'Preview image', 'wp-photo-album-plus' ).':' .
72
  '</th>'.
73
- '<td id="wppaphoto-photo-preview" style="text-align:center;" >' .
74
  '</td>' .
75
  '</tr>';
76
 
@@ -81,13 +81,13 @@ global $wpdb;
81
  <tr id="wppa-tinymce-upload-tr" >' .
82
  '<th>' .
83
  '<a' .
84
- ' style="cursor:pointer;"' .
85
  ' onclick="jQuery(\'#upload-td\').show();jQuery( \'#wppa-user-upload\' ).click();"' .
86
  ' >' .
87
  __( 'Upload new photo', 'wp-photo-album-plus' ) . ':' .
88
  '</a>' .
89
  '</th>'.
90
- '<td id="upload-td" style="display:none;" >' .
91
 
92
  // Open form
93
  '<form' .
@@ -200,7 +200,7 @@ global $wpdb;
200
 
201
  // Insert shortcode button
202
  '
203
- <p class="submit" style="padding:4px;margin:0;" >'.
204
  '<input type="button" id="wppaphoto-submit" class="button-primary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" name="submit" />&nbsp;'.
205
  '<input type="button" id="wppaphoto-submit-notok" class="button-secundary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" onclick="alert(\''.esc_js(__('Please select a photo', 'wp-photo-album-plus' )).'\')" />&nbsp;'.
206
  '</p>' .
2
  /* wppa-tinymce-common.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.1.09.003
6
  *
7
  */
8
 
50
 
51
  // Photo selection max 100 of all photos
52
  '
53
+ <tr id="wppaphoto-allphoto-tr" style="display:none">'.
54
  '<th><label for="wppaphoto-allphoto" class="wppaphoto-allphoto" >'.__('The Photo to be used', 'wp-photo-album-plus' ).':</label></th>'.
55
  '<td>'.
56
  '<select id="wppaphoto-allphoto" name="photo" class="wppaphoto-allphoto" onchange="wppaPhotoEvaluate()" >' .
70
  '<th>' .
71
  __( 'Preview image', 'wp-photo-album-plus' ).':' .
72
  '</th>'.
73
+ '<td id="wppaphoto-photo-preview" style="text-align:center">' .
74
  '</td>' .
75
  '</tr>';
76
 
81
  <tr id="wppa-tinymce-upload-tr" >' .
82
  '<th>' .
83
  '<a' .
84
+ ' style="cursor:pointer"' .
85
  ' onclick="jQuery(\'#upload-td\').show();jQuery( \'#wppa-user-upload\' ).click();"' .
86
  ' >' .
87
  __( 'Upload new photo', 'wp-photo-album-plus' ) . ':' .
88
  '</a>' .
89
  '</th>'.
90
+ '<td id="upload-td" style="display:none">' .
91
 
92
  // Open form
93
  '<form' .
200
 
201
  // Insert shortcode button
202
  '
203
+ <p class="submit" style="padding:4px;margin:0">'.
204
  '<input type="button" id="wppaphoto-submit" class="button-primary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" name="submit" />&nbsp;'.
205
  '<input type="button" id="wppaphoto-submit-notok" class="button-secundary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" onclick="alert(\''.esc_js(__('Please select a photo', 'wp-photo-album-plus' )).'\')" />&nbsp;'.
206
  '</p>' .
wppa-topten-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the top rated photos
6
- * Version 8.1.08.003
7
  */
8
 
9
  class TopTenWidget extends WP_Widget {
@@ -525,7 +525,7 @@ class TopTenWidget extends WP_Widget {
525
  }
526
  $result .= $widget_content . $after_widget;
527
 
528
- echo wppa_compress_html( $result );
529
  echo wppa_widget_timer( 'show', $widget_title );
530
 
531
  // Cache?
@@ -607,7 +607,7 @@ class TopTenWidget extends WP_Widget {
607
  // Subtitles
608
  echo
609
  __( 'Subtitles', 'wp-photo-album-plus' ) . ':' .
610
- '<div style="padding:6px;border:1px solid lightgray;margin-top:2px;" >' .
611
 
612
  // Owner
613
  wppa_widget_checkbox( $this, 'showowner', $instance['showowner'], __( 'Owner', 'wp-photo-album-plus' ) ) .
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the top rated photos
6
+ * Version 8.1.09.003
7
  */
8
 
9
  class TopTenWidget extends WP_Widget {
525
  }
526
  $result .= $widget_content . $after_widget;
527
 
528
+ wppa_echo( $result );
529
  echo wppa_widget_timer( 'show', $widget_title );
530
 
531
  // Cache?
607
  // Subtitles
608
  echo
609
  __( 'Subtitles', 'wp-photo-album-plus' ) . ':' .
610
+ '<div style="padding:6px;border:1px solid lightgray;margin-top:2px">' .
611
 
612
  // Owner
613
  wppa_widget_checkbox( $this, 'showowner', $instance['showowner'], __( 'Owner', 'wp-photo-album-plus' ) ) .
wppa-upldr-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a list of users linking to their photos
6
- * Version 8.1.08.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -136,7 +136,7 @@ class UpldrWidget extends WP_Widget {
136
 
137
  // Create widget content
138
  $widget_content = "\n".'<!-- WPPA+ Upldr Widget start -->';
139
- $widget_content .= '<div class="wppa-upldr" data-wppa="yes" >';
140
  if ( $showownercount ) {
141
  $widget_content .= sprintf( _n( 'Number of contributors: %d', 'Number of contributors: %d', $total_ownercount, 'wp-photo-album-plus' ), $total_ownercount ) . '<br>';
142
  }
@@ -151,16 +151,16 @@ class UpldrWidget extends WP_Widget {
151
  if ( $myline ) {
152
  $user = $myline;
153
  $widget_content .= '<tr class="wppa-user" >
154
- <td style="padding: 0 3px;max-width:' . $width . 'overflow:hidden;" ><a href="'.wppa_encrypt_url(wppa_get_upldr_link($user['login']).$a).'" title="'.__('Photos uploaded by', 'wp-photo-album-plus' ).' '.$user['name'].'" ><b>'.$user['name'].'</b></a></td>
155
- <td style="padding: 0 3px;" ><b>'.$user['count'].'</b></td>
156
- <td style="padding: 0 3px;" ><b>'.wppa_get_time_since($user['date']).'</b></td>
157
  </tr>';
158
  }
159
  foreach ( $workarr as $user ) {
160
  $widget_content .= '<tr class="wppa-user" >
161
- <td style="padding: 0 3px;max-width:' . $width . 'overflow:hidden;" ><a href="'.wppa_encrypt_url(wppa_get_upldr_link($user['login']).$a).'" title="'.__('Photos uploaded by', 'wp-photo-album-plus' ).' '.$user['name'].'" >'.$user['name'].'</a></td>
162
- <td style="padding: 0 3px;" >'.$user['count'].'</td>
163
- <td style="padding: 0 3px;" >'.wppa_get_time_since($user['date']).'</td>
164
  </tr>';
165
  }
166
  $widget_content .= '</tbody></table></div>';
@@ -173,7 +173,7 @@ class UpldrWidget extends WP_Widget {
173
  }
174
  $result .= $widget_content . $after_widget;
175
 
176
- echo wppa_compress_html( $result );
177
  echo wppa_widget_timer( 'show', $widget_title );
178
 
179
  wppa( 'in_widget', false );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a list of users linking to their photos
6
+ * Version 8.1.09.003
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
136
 
137
  // Create widget content
138
  $widget_content = "\n".'<!-- WPPA+ Upldr Widget start -->';
139
+ $widget_content .= '<div class="wppa-upldr" data-wppa="yes">';
140
  if ( $showownercount ) {
141
  $widget_content .= sprintf( _n( 'Number of contributors: %d', 'Number of contributors: %d', $total_ownercount, 'wp-photo-album-plus' ), $total_ownercount ) . '<br>';
142
  }
151
  if ( $myline ) {
152
  $user = $myline;
153
  $widget_content .= '<tr class="wppa-user" >
154
+ <td style="padding: 0 3px;max-width:' . $width . 'overflow:hidden"><a href="'.wppa_encrypt_url(wppa_get_upldr_link($user['login']).$a).'" title="'.__('Photos uploaded by', 'wp-photo-album-plus' ).' '.$user['name'].'" ><b>'.$user['name'].'</b></a></td>
155
+ <td style="padding: 0 3px"><b>'.$user['count'].'</b></td>
156
+ <td style="padding: 0 3px"><b>'.wppa_get_time_since($user['date']).'</b></td>
157
  </tr>';
158
  }
159
  foreach ( $workarr as $user ) {
160
  $widget_content .= '<tr class="wppa-user" >
161
+ <td style="padding: 0 3px;max-width:' . $width . 'overflow:hidden"><a href="'.wppa_encrypt_url(wppa_get_upldr_link($user['login']).$a).'" title="'.__('Photos uploaded by', 'wp-photo-album-plus' ).' '.$user['name'].'" >'.$user['name'].'</a></td>
162
+ <td style="padding: 0 3px">'.$user['count'].'</td>
163
+ <td style="padding: 0 3px">'.wppa_get_time_since($user['date']).'</td>
164
  </tr>';
165
  }
166
  $widget_content .= '</tbody></table></div>';
173
  }
174
  $result .= $widget_content . $after_widget;
175
 
176
+ wppa_echo( $result );
177
  echo wppa_widget_timer( 'show', $widget_title );
178
 
179
  wppa( 'in_widget', false );
wppa-upload-widget.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * A wppa widget to upload photos
6
  *
7
- * Version 8.1.06.001
8
  */
9
 
10
  class WppaUploadWidget extends WP_Widget {
@@ -76,7 +76,7 @@ class WppaUploadWidget extends WP_Widget {
76
  }
77
  $result .= $widget_content . $after_widget;
78
 
79
- echo wppa_compress_html( $result );
80
  echo wppa_widget_timer( 'show', $widget_title );
81
 
82
  wppa( 'in_widget', false );
4
  *
5
  * A wppa widget to upload photos
6
  *
7
+ * Version 8.1.09.003
8
  */
9
 
10
  class WppaUploadWidget extends WP_Widget {
76
  }
77
  $result .= $widget_content . $after_widget;
78
 
79
+ wppa_echo( $result );
80
  echo wppa_widget_timer( 'show', $widget_title );
81
 
82
  wppa( 'in_widget', false );
wppa-upload.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
- * Version 8.1.08.003
7
  *
8
  */
9
 
@@ -280,7 +280,7 @@ global $upload_album;
280
  'checkupload' => true,
281
  'sort' => true,
282
  'selected' => wppa_get_last_album(),
283
- 'tagopen' => '<select name="wppa-album" id="wppa-album-s" style="max-width:100%;" >',
284
  'tagid' => 'wppa-album-s',
285
  'tagname' => 'wppa-album',
286
  'tagstyle' => 'max-width:100%;',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
280
  'checkupload' => true,
281
  'sort' => true,
282
  'selected' => wppa_get_last_album(),
283
+ 'tagopen' => '<select name="wppa-album" id="wppa-album-s" style="max-width:100%">',
284
  'tagid' => 'wppa-album-s',
285
  'tagname' => 'wppa-album',
286
  'tagstyle' => 'max-width:100%;',
wppa-users.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains user and capabilities related routines
6
- * Version 8.1.08.003
7
  *
8
  */
9
 
@@ -577,7 +577,7 @@ function wppa_get_premium_html( $userid ) {
577
  $result = '
578
  <img
579
  src="' . wppa_get_imgdir( 'medal_' . $premium . '_' . wppa_opt( 'medal_color' ) . '.png' ) . '"
580
- style="height:1em;cursor:pointer;"
581
  title="' . esc_attr( $title ) . '"
582
  />';
583
  }
@@ -585,10 +585,10 @@ function wppa_get_premium_html( $userid ) {
585
  $result = '
586
  <img
587
  src="' . wppa_get_imgdir( 'plus.png' ) . '"
588
- style="height:1em;cursor:pointer;"
589
  title="' . esc_attr( $title ) . '"
590
  />';
591
  }
592
 
593
- return wppa_compress_html( $result );
594
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains user and capabilities related routines
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
577
  $result = '
578
  <img
579
  src="' . wppa_get_imgdir( 'medal_' . $premium . '_' . wppa_opt( 'medal_color' ) . '.png' ) . '"
580
+ style="height:1em;cursor:pointer"
581
  title="' . esc_attr( $title ) . '"
582
  />';
583
  }
585
  $result = '
586
  <img
587
  src="' . wppa_get_imgdir( 'plus.png' ) . '"
588
+ style="height:1em;cursor:pointer"
589
  title="' . esc_attr( $title ) . '"
590
  />';
591
  }
592
 
593
+ return $result;
594
  }
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 8.1.09.001
7
  *
8
  */
9
 
@@ -319,7 +319,7 @@ global $wppa;
319
  if ( $wppa['geo'] == '' ) { // First
320
  $wppa['geo'] = '
321
  <div id="map-canvas-' . wppa( 'mocc' ).'"
322
- style="height:' . wppa_opt( 'map_height' ) . 'px; width:100%; padding:0; margin:0; font-size: 10px;" >
323
  </div>';
324
  $the_js .= '
325
  _wppaLat[' . wppa( 'mocc' ) . '] = [];
@@ -606,7 +606,7 @@ function wppa_add_paths( $albums ) {
606
  while ( $tempid > '0' ) {
607
  $tempid = wppa_get_parentalbumid($tempid);
608
  if ( $tempid > '0' ) {
609
- $albums[$index]['name'] = wppa_get_album_name($tempid).' > '.$albums[$index]['name'];
610
  }
611
  elseif ( $tempid == '-1' ) $albums[$index]['name'] = '-s- '.$albums[$index]['name'];
612
  }
@@ -1227,7 +1227,7 @@ global $wpdb;
1227
  if ( is_array( $in_use ) ) {
1228
 
1229
  if ( defined( 'DOING_AJAX' ) ) {
1230
- wppa_echo( 'ER||0||' . '<span style="color:#ff0000;" >' . esc_html__( 'Could not delete photo', 'wp-photo-album-plus' ) . '</span>||' .
1231
  __( 'Photo is still in use in post/page', 'wp-photo-album-plus' ) . ' ' . $in_use['post_title'] . ' (' . $in_use['ID'] . ')', 'post' );
1232
  wppa_exit();
1233
  }
@@ -3851,9 +3851,8 @@ $border = false; // debug
3851
  if ( is_ssl() ) {
3852
  $result = str_replace( 'http://', 'https://', $result );
3853
  }
3854
- $result = wppa_compress_html( $result );
3855
  return $result;
3856
-
3857
  }
3858
 
3859
  function wppa_get_mime_type( $id ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 8.1.09.003
7
  *
8
  */
9
 
319
  if ( $wppa['geo'] == '' ) { // First
320
  $wppa['geo'] = '
321
  <div id="map-canvas-' . wppa( 'mocc' ).'"
322
+ style="height:' . wppa_opt( 'map_height' ) . 'px; width:100%; padding:0; margin:0; font-size: 10px">
323
  </div>';
324
  $the_js .= '
325
  _wppaLat[' . wppa( 'mocc' ) . '] = [];
606
  while ( $tempid > '0' ) {
607
  $tempid = wppa_get_parentalbumid($tempid);
608
  if ( $tempid > '0' ) {
609
+ $albums[$index]['name'] = wppa_get_album_name($tempid).' &gt; '.$albums[$index]['name'];
610
  }
611
  elseif ( $tempid == '-1' ) $albums[$index]['name'] = '-s- '.$albums[$index]['name'];
612
  }
1227
  if ( is_array( $in_use ) ) {
1228
 
1229
  if ( defined( 'DOING_AJAX' ) ) {
1230
+ wppa_echo( 'ER||0||' . '<span style="color:#ff0000">' . esc_html__( 'Could not delete photo', 'wp-photo-album-plus' ) . '</span>||' .
1231
  __( 'Photo is still in use in post/page', 'wp-photo-album-plus' ) . ' ' . $in_use['post_title'] . ' (' . $in_use['ID'] . ')', 'post' );
1232
  wppa_exit();
1233
  }
3851
  if ( is_ssl() ) {
3852
  $result = str_replace( 'http://', 'https://', $result );
3853
  }
3854
+
3855
  return $result;
 
3856
  }
3857
 
3858
  function wppa_get_mime_type( $id ) {
wppa-widget-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-widget-functions.php
3
  /* Package: wp-photo-album-plus
4
  /*
5
- /* Version 8.1.08.003
6
  /*
7
  */
8
 
@@ -360,7 +360,7 @@ static $potd;
360
  function wppa_widget_checkbox( $class, $item, $value, $label, $subtext = '', $disabled = false, $onchange = '' ) {
361
 
362
  $result =
363
- '<p style="clear:both;" >' .
364
  '<input' .
365
  ' id="' . $class->get_field_id( $item ) . '"' .
366
  ' name="' . $class->get_field_name( $item ) . '"' .
@@ -389,7 +389,7 @@ function wppa_widget_checkbox( $class, $item, $value, $label, $subtext = '', $di
389
  function wppa_widget_input( $class, $item, $value, $label, $subtext = '' ) {
390
 
391
  $result =
392
- '<p style="clear:both;" >' .
393
  '<label' .
394
  ' for="' . $class->get_field_id( $item ) . '"' .
395
  ' >' .
@@ -437,7 +437,7 @@ function wppa_widget_number( $class, $item, $value, $label, $min, $max, $subtext
437
  $_50 = wppa_is_ie() ? '60px;': '60%';
438
 
439
  $result =
440
- '<p' . ( $float ? ' style="width:50%;float:left;"' : '' ) . '>' .
441
  '<label' .
442
  ' for="' . $class->get_field_id( $item ) . '"' .
443
  ' >' .
2
  /* wppa-widget-functions.php
3
  /* Package: wp-photo-album-plus
4
  /*
5
+ /* Version 8.1.09.003
6
  /*
7
  */
8
 
360
  function wppa_widget_checkbox( $class, $item, $value, $label, $subtext = '', $disabled = false, $onchange = '' ) {
361
 
362
  $result =
363
+ '<p style="clear:both">' .
364
  '<input' .
365
  ' id="' . $class->get_field_id( $item ) . '"' .
366
  ' name="' . $class->get_field_name( $item ) . '"' .
389
  function wppa_widget_input( $class, $item, $value, $label, $subtext = '' ) {
390
 
391
  $result =
392
+ '<p style="clear:both">' .
393
  '<label' .
394
  ' for="' . $class->get_field_id( $item ) . '"' .
395
  ' >' .
437
  $_50 = wppa_is_ie() ? '60px;': '60%';
438
 
439
  $result =
440
+ '<p' . ( $float ? ' style="width:50%;float:left"' : '' ) . '>' .
441
  '<label' .
442
  ' for="' . $class->get_field_id( $item ) . '"' .
443
  ' >' .
wppa-wrappers.php CHANGED
@@ -5,7 +5,7 @@
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
- * Version 8.1.09.002
9
  *
10
  */
11
 
@@ -798,9 +798,11 @@ static $allowed_tags;
798
  'onkeyup' => true,
799
  'disabled' => true,
800
  'accept' => true,
 
801
  ) ),
802
  'label' => array(
803
  'for' => true,
 
804
  ),
805
  'link' => array(
806
  'rel' => true,
@@ -929,10 +931,15 @@ static $allowed_tags;
929
  $t = $a_tags ? $a_tags : $allowed_tags;
930
  $p = $a_prot ? $a_prot : wp_allowed_protocols();
931
 
 
 
 
 
 
 
932
  /* Start debugging */
933
- $before = wppa_compress_html( $html );
934
  $before = str_replace( ['" >',';"','; ', '&amp;', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
935
- // $before = str_replace( ['" >',';"','; ', '&amp;', 'style=" ', '"/>'], ['">','"',';', '&', 'style="', '" />'], $before );
936
  $after = wp_kses( $before, $t, $p );
937
  $after = str_replace( ['&amp;'], ['&'], $after );
938
  if ( $before != $after ) {
@@ -962,10 +969,19 @@ static $allowed_tags;
962
  /* End debugging */
963
 
964
  if ( $return ) {
 
 
 
965
  return wp_kses( $html, $t, $p );
966
  }
967
  else {
968
  echo wp_kses( $html, $t, $p );
 
 
 
 
 
 
969
  }
970
  }
971
 
@@ -987,6 +1003,7 @@ add_filter( 'safe_style_css', function( $styles ) {
987
  'bottom',
988
  'z-index',
989
  'box-shadow',
 
990
  ];
991
 
992
  return array_merge( $styles, $my_styles );
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
+ * Version 8.1.09.003
9
  *
10
  */
11
 
798
  'onkeyup' => true,
799
  'disabled' => true,
800
  'accept' => true,
801
+ 'placeholder' => true,
802
  ) ),
803
  'label' => array(
804
  'for' => true,
805
+ 'class' => true,
806
  ),
807
  'link' => array(
808
  'rel' => true,
931
  $t = $a_tags ? $a_tags : $allowed_tags;
932
  $p = $a_prot ? $a_prot : wp_allowed_protocols();
933
 
934
+ $html = wppa_compress_html( $html );
935
+
936
+ $temp = wppa_split_html_js( $html );
937
+ $html = $temp['html'];
938
+ $js = $temp['js'];
939
+
940
  /* Start debugging */
941
+ $before = $html;
942
  $before = str_replace( ['" >',';"','; ', '&amp;', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
 
943
  $after = wp_kses( $before, $t, $p );
944
  $after = str_replace( ['&amp;'], ['&'], $after );
945
  if ( $before != $after ) {
969
  /* End debugging */
970
 
971
  if ( $return ) {
972
+ if ( $js ) {
973
+ wppa_log( 'er', 'Unexpected non output script found of ' . strlen( $js ) . ' chars: ' . htmlentities( $js ), true );
974
+ }
975
  return wp_kses( $html, $t, $p );
976
  }
977
  else {
978
  echo wp_kses( $html, $t, $p );
979
+ if ( $js && wppa( 'in_widget' ) ) {
980
+ echo '<script>' . $js . '</script>';
981
+ }
982
+ elseif ( $js ) {
983
+ wppa_log( 'er', 'Unexpected script found of ' . strlen( $js ) . ' chars: ' . htmlentities( $js ), true );
984
+ }
985
  }
986
  }
987
 
1003
  'bottom',
1004
  'z-index',
1005
  'box-shadow',
1006
+ 'box-sizing',
1007
  ];
1008
 
1009
  return array_merge( $styles, $my_styles );
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: 8.1.09.002
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_api_version;
27
- $wppa_api_version = '8.1.09.002'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
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: 8.1.09.003
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_api_version;
27
+ $wppa_api_version = '8.1.09.003'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30