WP Photo Album Plus - Version 8.0.00.010

Version Description

= 7.7.07 =

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

Release Info

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

Code changes from version 8.0.00.009 to 8.0.00.010

changelog.txt CHANGED
@@ -10,6 +10,8 @@ Ajax is always activated, because there can no longer be conflicts due to inacce
10
  * HTML in descriptions is now automatically allowed for those users who have HTML edit rights.
11
  * Restructured and greatly simplified settings page. Removed obsolete and redundant settings. Made the layout more friendly.
12
  * Widgets do no longer show up anywhere if the corresponding feature is not enabled. e.g. Notify widget - Enable email. etc.
 
 
13
 
14
  = 7.7.07 =
15
 
10
  * HTML in descriptions is now automatically allowed for those users who have HTML edit rights.
11
  * Restructured and greatly simplified settings page. Removed obsolete and redundant settings. Made the layout more friendly.
12
  * Widgets do no longer show up anywhere if the corresponding feature is not enabled. e.g. Notify widget - Enable email. etc.
13
+ * The shortcode to display the most recently uploaded photo did not work when additionally the album was specified e.g.
14
+ [wppa type="photo" photo="#last,12"] or [wppa type="photo" album="12" photo="#last"]. Fixed. Works also for type="mphoto" and type="xphoto".
15
 
16
  = 7.7.07 =
17
 
js/wppa.js CHANGED
@@ -3,7 +3,7 @@
3
  // contains common vars and functions
4
  //
5
 
6
- wppaWppaVer = '8.0.00.008';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
@@ -366,6 +366,13 @@ function wppaDoInit() {
366
 
367
  setTimeout( function() {
368
 
 
 
 
 
 
 
 
369
  jQuery(".wppa-thumb-area").each(function(){
370
  if (jQuery(this).getNiceScroll) {
371
  jQuery(this).getNiceScroll().resize();
@@ -383,12 +390,12 @@ function wppaDoInit() {
383
  jQuery(this).getNiceScroll().resize();
384
  }
385
  });
386
-
387
  if (jQuery("body").getNiceScroll) {
388
  jQuery("body").getNiceScroll().resize();
389
  }
390
 
391
- }, 2000);
392
  });
393
 
394
  // Fake a resize
3
  // contains common vars and functions
4
  //
5
 
6
+ wppaWppaVer = '8.0.00.010';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
366
 
367
  setTimeout( function() {
368
 
369
+ jQuery("div").each(function(){
370
+ if (jQuery(this).getNiceScroll) {
371
+ jQuery(this).getNiceScroll().resize();
372
+ }
373
+ });
374
+
375
+ /*
376
  jQuery(".wppa-thumb-area").each(function(){
377
  if (jQuery(this).getNiceScroll) {
378
  jQuery(this).getNiceScroll().resize();
390
  jQuery(this).getNiceScroll().resize();
391
  }
392
  });
393
+ */
394
  if (jQuery("body").getNiceScroll) {
395
  jQuery("body").getNiceScroll().resize();
396
  }
397
 
398
+ }, 1000);
399
  });
400
 
401
  // Fake a resize
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- wppaWppaVer="8.0.00.008";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisible("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisible("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery(".wppa-thumb-area").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".albumlist").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery(".wppa-div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},2e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisible("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
1
+ wppaWppaVer="8.0.00.010";var wppaIsChrome=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime),wppaIsSafari=!1,wppaOvlActivePanorama=0,wppaSlideShow,wppaPhoto,wppaOf,wppaNextPhoto,wppaPreviousPhoto,wppaNextP,wppaPrevP,wppaAvgRating,wppaMyRating,wppaAvgRat,wppaMyRat,wppaDislikeMsg,wppaStart,wppaStop,wppaPleaseName,wppaPleaseEmail,wppaPleaseComment,wppaProcessing,wppaDone,wppaUploadFailed,wppaServerError,wppaVersion="0",wppaIsIe=!1,wppaDebug,wppaFullValign=[],wppaFullHalign=[],wppaFullFrameDelta=[],wppaAnimationSpeed,wppaImageDirectory,wppaAutoColumnWidth,wppaAutoColumnWidth=wppaAutoColumnWidth||[],wppaAutoColumnFrac,wppaAutoColumnFrac=wppaAutoColumnFrac||[],wppaThumbnailAreaDelta,wppaSlideShowTimeOut=2500,wppaFadeInAfterFadeOut=!1,wppaTextFrameDelta=0,wppaBoxDelta=0,wppaPreambule=[],wppaHideWhenEmpty=!1,wppaThumbnailPitch=[],wppaFilmStripLength=[],wppaFilmStripMargin=[],wppaFilmStripAreaDelta=[],wppaFilmShowGlue=!1,wppaIsMini=[],wppaPortraitOnly=[],wppaMiniTreshold=300,wppaRatingOnce=!0,wppaBGcolorNumbar="transparent",wppaBcolorNumbar="transparent",wppaBGcolorNumbarActive="transparent",wppaBcolorNumbarActive="transparent",wppaFontFamilyNumbar="",wppaFontSizeNumbar="",wppaFontColorNumbar="",wppaFontWeightNumbar="",wppaFontFamilyNumbarActive="",wppaFontSizeNumbarActive="",wppaFontColorNumbarActive="",wppaFontWeightNumbarActive="",wppaNumbarMax="10",wppaAjaxUrl="",wppaLang="",wppaNextOnCallback=!1,wppaStarOpacity=.2,wppaLightBox=[],wppaEmailRequired="required",wppaSlideBorderWidth=0,wppaSlideInitRunning=[],wppaAnimationType="fadeover",wppaSlidePause=[],wppaSlideBlank=[],wppaRatingMax=5,wppaRatingDisplayType="graphic",wppaRatingPrec=2,wppaFilmPageSize=[],wppaAspectRatio=[],wppaFullSize=[],wppaStretch=!1,wppaThumbSpaceAuto=!1,wppaMinThumbSpace=4,wppaMagnifierCursor="",wppaArtMonkyLink="none",wppaAutoOpenComments=!1,wppaUpdateAddressLine=!1,wppaFilmThumbTitle="",wppaClickToView="",wppaUploadUrl="",wppaVoteForMe="",wppaVotedForMe="",wppaSlideSwipe=!0,wppaLightboxSingle=[],wppaMaxCoverWidth=300,wppaDownLoad="Download",wppaSiteUrl="",wppaWppaUrl="",wppaIncludeUrl="",wppaSlideToFullpopup=!1,wppaComAltSize=75,wppaBumpViewCount=!0,wppaBumpClickCount=!1,wppaFotomoto=!1,wppaArtMonkeyButton=!0,wppaShortQargs=!1,wppaOvlHires=!1,wppaMasonryCols=[],wppaVideoPlaying=[],wppaAudioPlaying=[],wppaSlideVideoStart=!1,wppaSlideAudioStart=!1,wppaAudioHeight=28,wppaHis=0,wppaStartHtml=[],wppaCanAjaxRender=!1,wppaCanPushState=!1,wppaAllowAjax=!0,wppaMaxOccur=0,wppaFirstOccur=0,wppaUsePhotoNamesInUrls=!1,wppaShareHideWhenRunning=!1,wppaCommentRequiredAfterVote=!0,wppaTopMoc=0,wppaColWidth,wppaColWidth=wppaColWidth||[],wppaMCRWidth,wppaMCRWidth=wppaMCRWidth||[],wppaFotomotoHideWhenRunning=!1,wppaFotomotoMinWidth=400,wppaPhotoView=[],wppaBackgroundColorImage="",wppaPopupLinkType="",wppaPopupOnclick=[],wppaThumbTargetBlank=!1,wppaRel="rel",wppaEditPhotoWidth="960",wppaThemeStyles="",wppaStickyHeaderHeight=0,wppaRenderModal=!1,wppaModalBgColor="#ffffff",wppaBoxRadius=0,wppaModalQuitImg,wppaUploadEdit="none",wppaPageArg="",wppaSlideshowNavigationType="icons",wppaCoverImageResponsive=[],wppaSearchBoxSelItems=[],wppaSlideWrap=[],wppaHideRightClick=!1,wppaGeoZoom=10,wppaLazyLoad=!0,wppaAreaMaxFrac=1,wppaNiceScroll=!1,wppaIconSizeNormal="default",wppaIconSizeSlide=48,wppaIconSizeStars=24,wppaResponseSpeed=500,wppaExtendedResizeCount=0,wppaExtendedResizeDelay=200,wppaThumbAspect=.75,wppaFilmonlyContinuous=!1,wppaNoAnimateOnMobile=!1,wppaAjaxScroll=!0,wppaFilmInit=[],wppaResizeEndDelay=200,wppaScrollEndDelay=200,wppaArtmonkeyFileNotSource=!1,wppaRequestInfoDialogText="Please specify your question",wppaGlobalFsIconSize=32,wppaFsFillcolor="#999999",wppaFsBgcolor="transparent",_wppaId=[],_wppaRealId=[],_wppaAvg=[],_wppaDisc=[],_wppaMyr=[],_wppaVRU=[],_wppaLinkUrl=[],_wppaLinkTitle=[],_wppaLinkTarget=[],_wppaCommentHtml=[],_wppaIptcHtml=[],_wppaExifHtml=[],_wppaToTheSame=!1,_wppaSlides=[],_wppaNames=[],_wppaFullNames=[],_wppaDsc=[],_wppaOgDsc=[],_wppaCurIdx=[],_wppaNxtIdx=[],_wppaTimeOut=[],_wppaSSRuns=[],_wppaFg=[],_wppaTP=[],_wppaIsBusy=[],_wppaFirst=[],_wppaVoteInProgress=!1,_wppaTextDelay,_wppaUrl=[],_wppaSkipRated=[],_wppaLbTitle=[],_wppaStateCount=0,_wppaDidGoto=[],_wppaShareUrl=[],_wppaShareHtml=[],_wppaFilmNoMove=[],_wppaHiresUrl=[],_wppaIsVideo=[],_wppaVideoHtml=[],_wppaAudioHtml=[],_wppaVideoNatWidth=[],_wppaVideoNatHeight=[],_wppaWaitTexts=[],_wppaImageAlt=[],_wppaLastIdx=[],_wppaStopping=[],_wppaFilename=[],__wppaOverruleRun=!1,wppaOvlUrls,wppaOvlIds,wppaOvlTitles,wppaOvlAlts,wppaOvlTypes,wppaOvlIdx=0,wppaOvlFirst=!0,wppaOvlKbHandler="",wppaOvlSizeHandler="",wppaOvlPadTop=5,wppaOvlIsSingle,wppaOvlRunning=!1,wppaOvlVideoHtmls,wppaOvlAudioHtmls,wppaOvlPdfHtmls,wppaOvlVideoNaturalWidths,wppaOvlVideoNaturalHeights,wppaOvlVideoPlaying=!1,wppaOvlAudioPlaying=!1,wppaOvlShowLegenda=!0,wppaOvlShowStartStop=!0,wppaOvlRadius=0,wppaOvlBorderWidth=16,wppaOvlOpen=!1,wppaOvlClosing=!1,wppaThumbSize=100,wppaTfMargin=4,wppaZoomData=[],wppaSphericData=[],wppaFsPolicy="lightbox",wppaOvlGlobal,wppaOvlTxtHeight=36,wppaOvlOpacity=.8,wppaOvlOnclickType="none",wppaOvlTheme="black",wppaOvlAnimSpeed=300,wppaOvlSlideSpeed=3e3,wppaVer4WindowWidth=800,wppaVer4WindowHeight=600,wppaOvlFontFamily="Helvetica",wppaOvlFontSize="10",wppaOvlFontColor="",wppaOvlFontWeight="bold",wppaOvlLineHeight="12",wppaOvlShowCounter=!0,wppaOvlIsVideo=!1,wppaShowLegenda="",wppaOvlFsPhotoId=0,wppaPhotoId=0,wppaOvlVideoStart=!1,wppaOvlAudioStart=!1,wppaLastIptc="",wppaLastExif="",wppaIsMobile=!1,wppaIsIpad=!1,wppaSvgFillcolor="gray",wppaSvgBgcolor="transparent",wppaSvgCornerStyle="light",wppaCoverSpacing=8,wppaResizeEndTimer,wppaScrollEndTimer;function wppaTabbyClick(){jQuery(window).trigger("resize"),jQuery(document).trigger("tabbychange"),jQuery(window).trigger("orientationchange"),wppaAdjustAllFilmstrips()}function wppaDoInit(){_wppaTextDelay=wppaAnimationSpeed,wppaFadeInAfterFadeOut&&(_wppaTextDelay*=2),wppaIsMobile&&wppaNoAnimateOnMobile&&(_wppaTextDelay=10),jQuery(".wppa-ajax-spin").stop().fadeOut(),jQuery(".wppa-ovl-spin").hide(),setTimeout(function(){jQuery(".wppa-ubb").each(function(){var p=jQuery(this).attr("id").substr(6);wppaUbb(p,"l","hide"),wppaUbb(p,"r","hide")})},3e3),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaDoAllAutocols),jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeArea),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){wppaMakeLazyVisible("doinitwindowon")}),jQuery(".wppa-divnicewrap").on("DOMContentLoaded load resize wppascrollend wheelend orientationchange",function(){wppaMakeLazyVisible("doinitnicewrapon")}),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",wppaInitMasonryPlus),jQuery(window).on("resize",wppaAdjustAllFilmstrips),jQuery(window).on("DOMContentLoaded load resize wppascrollend orientationchange",function(){setTimeout(function(){jQuery("div").each(function(){jQuery(this).getNiceScroll&&jQuery(this).getNiceScroll().resize()}),jQuery("body").getNiceScroll&&jQuery("body").getNiceScroll().resize()},1e3)}),jQuery(window).trigger("resize"),wppaProtect(),setTimeout(function(){jQuery(".responsive-tabs__heading").on("click",wppaTabbyClick),jQuery(".responsive-tabs__list__item").on("click",wppaTabbyClick)},10),jQuery(document).on("tabbychange",function(){jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize(),wppaDoAllAutocols()},500),setTimeout(function(){wppaDoAllAutocols(),jQuery(window).trigger("resize"),jQuery("#wppa-ovl-spin").hide(),wppaMakeLazyVisible("tabbychange")},1500)}),wppaOvlGlobal&&jQuery("a").each(function(){var p=jQuery(this).attr("href");p&&("jpg"!=(p=(p=p.split("."))[p.length-1])&&"jpeg"!=p&&"png"!=p||jQuery(this).attr("data-rel")||(jQuery(this).attr("data-rel",wppaOvlGlobal),jQuery(this).css("cursor","wait")))}),jQuery("div").on("touchmove",wppaMakeLazyVisibleScrollEnd)}function wppaSizeAutoDiv(){jQuery(".wppa-autodiv").each(function(p){var e=jQuery(window).height(),a=jQuery(this).attr("data-max-height");jQuery(this).css({maxHeight:e*a})})}jQuery(document).ready(function(){wppaDoInit()}),jQuery(document).ready(function(){jQuery(window).on("resize load",function(){clearTimeout(wppaResizeEndTimer),wppaResizeEndTimer=setTimeout(function(){jQuery(window).trigger("wpparesizeend")},wppaResizeEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("scroll wheel touchmove",function(){clearTimeout(wppaScrollEndTimer),wppaScrollEndTimer=setTimeout(function(){jQuery(window).trigger("wppascrollend")},wppaScrollEndDelay)})}),jQuery(document).ready(function(){jQuery(window).on("DOMContentLoaded load resize scroll wheel orientationchange",wppaSizeAutoDiv)});var wppaLastAllAutocols=0,wppaLastAllAutocolsTimer=0;function wppaDoAllAutocols(p){wppaTimNow()<wppaLastAllAutocols+200?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,200):(clearTimeout(wppaLastAllAutocolsTimer),wppaLastAllAutocols=wppaTimNow(),_wppaDoAllAutocols(0))}function _wppaDoAllAutocols(e){return jQuery(".wppa-container").each(function(){var p=jQuery(this).attr("id").substr(15);wppaAutoColumnWidth[p]&&_wppaDoAutocol(p,e)}),(e<wppaExtendedResizeCount||-1==wppaExtendedResizeCount)&&setTimeout(function(){_wppaDoAllAutocols(e+1)},wppaExtendedResizeDelay),!0}function wppaProtect(){wppaHideRightClick&&(jQuery("img").bind("contextmenu",function(p){return!1}),jQuery("video").bind("contextmenu",function(p){return!1}),jQuery("canvas").bind("contextmenu",function(p){return!1}))}function wppaUpdateLightboxes(){"function"==typeof wppaInitOverlay&&wppaInitOverlay(),"undefined"!=typeof myLightbox&&"function"==typeof myLightbox.updateImageList&&myLightbox.updateImageList(),jQuery().prettyPhoto&&jQuery("a[rel^='prettyPhoto']").prettyPhoto({deeplinking:!1})}function wppaStopVideo(p){var e,a,t=[];for(t[1]="wppa-overlay-img",t[2]="theimg0-"+p,t[3]="theimg1-"+p,a=0;a<3;)1==++a&&0!=p||(e=document.getElementById(t[a]))&&"function"==typeof e.pause&&e.pause()}function wppaStopAudio(p){if("number"==typeof p)jQuery("#audio-"+p).pause&&jQuery("#audio-"+p).pause();else{var e=jQuery("audio");if(0<e.length)for(var a=0;a<e.length;)"wppa"==jQuery(e[a]).attr("data-from")&&e[a].pause(),a++}}function wppaMakeFullsizeUrl(p){var e,a;p=(e=(p=p.replace("/thumbs/","/")).split("//"))[1]?(a=e[1].split("/"),e[0]+"//"):(a=e[0].split("/"),"");for(var t=0;t<a.length;){var o=a[t];"w"!=o.split("_")[0]&&(0!=t&&(p+="/"),p+=o),t++}return p}function wppaGetContainerWidth(p){var e=document.getElementById("wppa-container-"+p);if(e){var a=0;if(!wppaAutoColumnWidth[p])return e.clientWidth;for(;0==a;)e=e.parentNode,a=jQuery(e).width();return parseInt(a*wppaAutoColumnFrac[p])}}function _wppaDoAutocol(p,e){if(!wppaAutoColumnWidth[p])return!0;var a,t,o=wppaGetContainerWidth(p);if(document.getElementById("wppa-container-"+p)){if(wppaCoverImageResponsive[p]||1<(a=jQuery(".wppa-asym-text-frame-"+p)).length&&(jQuery(a[0]).width(),0==wppaResponseSpeed?(jQuery(".wppa-asym-text-frame-"+p).css({width:o-wppaTextFrameDelta}),jQuery(".wppa-cover-box-"+p).css({width:o})):(jQuery(".wppa-asym-text-frame-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-"+p).stop().animate({width:o},wppaResponseSpeed))),1<(a=jQuery(".wppa-cover-box-mcr-"+p)).length){var r=document.getElementById("wppa-albumlist-"+p).clientWidth,i=parseInt((r+wppaCoverSpacing)/(wppaMaxCoverWidth+wppaCoverSpacing))+1,n=i-1,s=parseInt((r+wppaCoverSpacing)/i-wppaCoverSpacing);if(wppaColWidth[p]!=r||wppaMCRWidth[p]!=s){wppaColWidth[p]=r,wppaMCRWidth[p]=s;for(var l=0;l<a.length;){switch(l%i){case 0:jQuery(a[l]).css({marginLeft:"0px",clear:"both",float:"left"});break;case n:jQuery(a[l]).css({marginLeft:"0px",clear:"none",float:"right"});break;default:jQuery(a[l]).css({marginLeft:wppaCoverSpacing,clear:"none",float:"left"})}l++}wppaCoverImageResponsive[p]||jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:s-wppaTextFrameDelta},wppaResponseSpeed),jQuery(a[0]).width(),jQuery(".wppa-cover-box-mcr-"+p).stop().animate({width:s},wppaResponseSpeed)}}else 1==a.length&&(wppaCoverImageResponsive[p]||(jQuery(".wppa-asym-text-frame-mcr-"+p).stop().animate({width:o-wppaTextFrameDelta},wppaResponseSpeed),jQuery(".wppa-cover-box-mcr-"+p).css({marginLeft:"0px",float:"left"})));0<jQuery(".wppa-album-cover-grid-"+p).length&&(jQuery("#wppa-container-"+p).css("line-height","0"),(t=parseInt(o/wppaMaxCoverWidth+.9999))<1&&(t=1),jQuery(".wppa-album-cover-grid-"+p).css({width:100/t+"%"})),!wppaThumbSpaceAuto||(r=parseInt(jQuery(".thumbnail-frame-"+p).css("width")))&&(s=o-wppaThumbnailAreaDelta-7,t=Math.max(1,parseInt(s/(r+wppaMinThumbSpace))),t=parseInt((s-t*r)/(t+1)),jQuery(".thumbnail-frame-"+p).css({marginLeft:t})),jQuery(".thumbnail-frame-comalt-"+p).css("width",o-wppaThumbnailAreaDelta),jQuery(".wppa-com-alt-"+p).css("width",o-wppaThumbnailAreaDelta-wppaComAltSize-16);for(var w,u=1,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");c;)w=c*(o-wppaThumbnailAreaDelta)/100,jQuery("#wppa-mas-h-"+u+"-"+p).css("height",w),u++,c=jQuery("#wppa-mas-h-"+u+"-"+p).attr("data-height-perc");return wppaSetMasHorFrameWidthsForIeAndChrome(p),document.getElementById("slide_frame-"+p)&&wppaFormatSlide(p),jQuery("#audio-slide-"+p).css("width",o-wppaBoxDelta-6),jQuery(".wppa-comment-textarea-"+p).css("width",.7*o),wppaFilmStripLength[p]=o-wppaFilmStripAreaDelta[p],jQuery("#filmwindow-"+p).css("width",wppaFilmStripLength[p]),_wppaAdjustFilmstrip(p),wppaIsMini[p]||void 0===_wppaSlides[p]||(wppaColWidth[p]<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat),jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating),jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length))),jQuery(".wppa-sphoto-"+p).css("width",o),jQuery(".wppa-simg-"+p).css("width",o-2*wppaSlideBorderWidth),jQuery(".wppa-simg-"+p).css("height",""),jQuery(".wppa-mphoto-"+p).css("width",o+10),jQuery(".wppa-mimg-"+p).css("width",o),jQuery(".wppa-mimg-"+p).css("height",""),jQuery(".smxpdf-"+p).css("height",.8*wppaWindowHeight()),0<wppaSearchBoxSelItems[p]&&(o/wppaSearchBoxSelItems[p]<125?jQuery(".wppa-searchsel-item-"+p).css("width","100%"):jQuery(".wppa-searchsel-item-"+p).css("width",100/wppaSearchBoxSelItems[p]+"%")),jQuery(".wppa-upload-album-"+p).css("maxWidth",.6*o),wppaSetRealCalendarHeights(p),!0}}function wppaSetRealCalendarHeights(e){var a,t,o,p=jQuery("#wppa-real-calendar-"+e).width();0<p&&(a=!0,t=p*wppaThumbAspect/7,jQuery(".wppa-real-calendar-day-"+e).css({height:t}),p=p/50+2,jQuery("#wppa-real-calendar-"+e).css({fontSize:p}),p=p/4,jQuery(".wppa-real-calendar-head-td-"+e).css({marginTop:p,marginBottom:p}),o=t/2,jQuery(".wppa-realcalimg-"+e).each(function(){var p;0==this.height?a=!1:(p=jQuery(this).attr("data-day"),thisb=o-(t-this.height)/2,jQuery(".wppa-real-calendar-day-content-"+p+"-"+e).css({bottom:thisb}))}),a||setTimeout(function(){wppaSetRealCalendarHeights(e)},100))}function wppaSetMasHorFrameWidthsForIeAndChrome(p){for(var e=jQuery(".wppa-mas-h-"+p),a=wppaMinThumbSpace,t=0;t<e.length;t++){var o=wppaGetChildI(e[t]);if(o){if("IMG"==o.nodeName&&!o.complete)return void setTimeout("wppaSetMasHorFrameWidthsForIeAndChrome( "+p+" )",400);o=o.naturalWidth/o.naturalHeight*o.height+a;jQuery(e[t]).css({width:o})}}}function wppaGetChildI(p){for(var e=p.childNodes,a=0;a<e.length;a++){var t=e[a];if(t.id&&"i-"==t.id.substr(0,2))return t;t=wppaGetChildI(t);if(t)return t}return!1}jQuery(document).ready(function(p){if(wppaAllowAjax&&jQuery.ajax&&(wppaCanAjaxRender=!0),void 0!==history.pushState){for(var e=1;e<=wppaMaxOccur;)wppaStartHtml[e]=jQuery("#wppa-container-"+e).html(),e++;wppaCanPushState=!0}});var wppaFotomotoLoaded=!1,wppaFotomotoToolbarIds=[];function fotomoto_loaded(){wppaFotomotoLoaded=!0}function wppaFotomotoToolbar(p,e){if(!(wppaColWidth[p]>=wppaFotomotoMinWidth))return jQuery("#wppa-fotomoto-container-"+p).css("display","none"),void jQuery("#wppa-fotomoto-checkout-"+p).css("display","none");jQuery("#wppa-fotomoto-container-"+p).css("display","inline"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","inline"),wppaFotomoto&&document.getElementById("wppa-fotomoto-container-"+p)&&(wppaFotomotoLoaded?(FOTOMOTO.API.checkinImage(e),wppaFotomotoToolbarIds[p]=FOTOMOTO.API.showToolbar("wppa-fotomoto-container-"+p,e)):setTimeout("wppaFotomotoToolbar( "+p+',"'+e+'" )',200))}function wppaFotomotoHide(p){jQuery("#wppa-fotomoto-container-"+p).css("display","none"),jQuery("#wppa-fotomoto-checkout-"+p).css("display","none")}function wppaStringContainsForbiddenChars(p){for(var e=["?","&","#","/",'"',"'"],a=0;a<e.length;){if(-1!=p.indexOf(e[a]))return!0;a++}return!1}function wppaPushStateSlide(p,e,a){if(!wppaIsMini[p]&&wppaCanPushState&&wppaUpdateAddressLine&&""!=a)try{history.pushState({page:wppaHis,occur:p,type:"slide",slide:e},"---",a)}catch(p){wppaConsoleLog("Slide history stack update failed")}}function wppaRepairScriptTags(p){if(void 0===p)return"";for(;-1!=p.indexOf("[script");)p=p.replace("[script","<script");for(;-1!=p.indexOf("[/script");)p=p.replace("[/script","</script");return p}function wppaRepairBrTags(p){return void 0===p?"":p.replace("[br /]","<br />").replace("[a","<a").replace(/&quot;/g,'"').replace('"]','">').replace("[/a]","</a>").replace("[img","<img").replace("/]","/>")}function wppaTrimAlt(p){return void 0===p?"":13<p.length?p.substr(0,10)+"...":p}window.onpopstate=function(p){var e=0;if(wppaCanPushState){if(p.state)switch(e=p.state.occur,p.state.type){case"html":jQuery("#wppa-container-"+e).html(p.state.html);break;case"slide":_wppaGoto(e,p.state.slide)}else if(wppaUpdateAddressLine){e=wppaFirstOccur,jQuery("#wppa-container-"+e).html(wppaStartHtml[e]),(wppaFirstOccur=0)==e&&(a=document.location.href.split("&wppa-occur="),e=parseInt(a[1]));var a=document.location.href.split("&wppa-photo="),t=parseInt(a[1]);if(0<t){for(var o=0;o<_wppaId[e].length&&_wppaId[e][o]!=t;)o++;o<_wppaId[e].length&&_wppaGoto(e,o)}}document.getElementById("theslide0-"+e)&&_wppaStop(e)}"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(document.location.href)};var wppaFbInitBusy=!1;function wppaFbInit(){wppaFbInitBusy||("undefined"!=typeof FB?(wppaFbInitBusy=!0,setTimeout("_wppaFbInit()",10)):setTimeout("wppaFbInit()",200))}function _wppaFbInit(){FB.init({status:!0,xfbml:!0}),wppaFbInitBusy=!1}function wppaInsertAtCursor(p,e){var a,t;document.selection?(p.focus(),sel=document.selection.createRange(),sel.text=e):p.selectionStart||"0"==p.selectionStart?(a=p.selectionStart,t=p.selectionEnd,p.value=p.value.substring(0,a)+e+p.value.substring(t,p.value.length),p.selectionStart=a+e.length,p.selectionEnd=a+e.length):p.value+=e}function wppaGeoInit(p,e,a){var e=new google.maps.LatLng(e,a),a={disableDefaultUI:!1,panControl:!1,zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,overviewMapControl:!0,zoom:wppaGeoZoom,center:e},t=new google.maps.Map(document.getElementById("map-canvas-"+p),a),o=new google.maps.Marker({position:e,map:t,title:""});google.maps.event.addListener(t,"center_changed",function(){window.setTimeout(function(){t.panTo(o.getPosition())},1e3)})}function wppaEncode(p){if(void 0!==p){for(var e=(t=(t=String(p).replace(/#/g,"||HASH||")).replace(/&/g,"||AMP||")).split("+"),a=0,t="";a<e.length;)t+=e[a],++a<e.length&&(t+="||PLUS||");return t}}function wppaUrlToId(p){var e=p.split("/wppa/");return 1==e.length&&(e=p.split("/upload/")),1==e.length?0:e=(e=(e=(e=(e=(e=(e=e[1]).split("."))[0].replace("/","")).replace("/","")).replace("/","")).replace("/","")).replace("/","")}function wppaSuperSearchSelect(p,e){jQuery("#wppa-ss-albumopt-"+p).css("display","none"),jQuery("#wppa-ss-albumcat-"+p).css("display","none"),jQuery("#wppa-ss-albumname-"+p).css("display","none"),jQuery("#wppa-ss-albumtext-"+p).css("display","none"),jQuery("#wppa-ss-photoopt-"+p).css("display","none"),jQuery("#wppa-ss-photoname-"+p).css("display","none"),jQuery("#wppa-ss-photoowner-"+p).css("display","none"),jQuery("#wppa-ss-phototag-"+p).css("display","none"),jQuery("#wppa-ss-phototext-"+p).css("display","none"),jQuery("#wppa-ss-photoexif-"+p).css("display","none"),jQuery("#wppa-ss-photoiptc-"+p).css("display","none"),jQuery("#wppa-ss-exifopts-"+p).css("display","none"),jQuery("#wppa-ss-iptcopts-"+p).css("display","none"),jQuery("#wppa-ss-spinner-"+p).css("display","none"),jQuery("#wppa-ss-button-"+p).css("display","none");var a=jQuery("#wppa-ss-pa-"+p).val(),t="",o="",r="";switch(a){case"a":switch(jQuery("#wppa-ss-albumopt-"+p).css("display",""),t=jQuery("#wppa-ss-albumopt-"+p).val()){case"c":jQuery("#wppa-ss-albumcat-"+p).css("display","");var i=jQuery(".wppa-ss-albumcat-"+p),r="";for(n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"n":jQuery("#wppa-ss-albumname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-albumname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-albumtext-"+p).css("display","");i=jQuery(".wppa-ss-albumtext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","")}break;case"p":switch(jQuery("#wppa-ss-photoopt-"+p).css("display",""),t=jQuery("#wppa-ss-photoopt-"+p).val()){case"n":jQuery("#wppa-ss-photoname-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoname-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"o":jQuery("#wppa-ss-photoowner-"+p).css("display",""),null!=(r=jQuery("#wppa-ss-photoowner-"+p).val())&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"g":jQuery("#wppa-ss-phototag-"+p).css("display","");i=jQuery(".wppa-ss-phototag-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"t":jQuery("#wppa-ss-phototext-"+p).css("display","");var n,i=jQuery(".wppa-ss-phototext-"+p);for(r="",n=0;n<i.length;n++)jQuery(i[n]).prop("selected")&&(r+="."+jQuery(i[n]).val());""!=(r=r.substr(1))&&jQuery("#wppa-ss-button-"+p).css("display","");break;case"i":jQuery("#wppa-ss-photoiptc-"+p).css("display",""),(o=jQuery("#wppa-ss-photoiptc-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-iptcopts-"+p).css("display",""),wppaLastIptc!=o?(wppaAjaxGetSsIptcList(p,o,"wppa-ss-iptcopts-"+p),wppaLastIptc=o):null!=(r=jQuery("#wppa-ss-iptcopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")));break;case"e":jQuery("#wppa-ss-photoexif-"+p).css("display",""),(o=jQuery("#wppa-ss-photoexif-"+p).val())&&(2<o.length&&(o=o.replace("#","H")),""!=o&&(jQuery("#wppa-ss-exifopts-"+p).css("display",""),wppaLastExif!=o?(wppaAjaxGetSsExifList(p,o,"wppa-ss-exifopts-"+p),wppaLastExif=o):null!=(r=jQuery("#wppa-ss-exifopts-"+p).val())&&""!=r&&jQuery("#wppa-ss-button-"+p).css("display","")))}}e&&(-1==(e=jQuery("#wppa-ss-pageurl-"+p).val()).indexOf("?")?e+="?":e+="&",e+="occur=1&wppa-supersearch="+a+","+t+","+o+","+r,document.location.href=e)}function wppaAjaxGetSsIptcList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssiptclist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-iptcopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-iptclist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsIptcList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaAjaxGetSsExifList(t,p,o){jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=getssexiflist&tag="+p+"&moccur="+t,async:!0,type:"GET",timeout:1e4,beforeSend:function(p){jQuery("#wppa-ss-spinner-"+t).css("display","")},success:function(p,e,a){jQuery("#"+o).html(p),jQuery("#wppa-ss-exifopts-"+t).css("display",""),wppaSuperSearchSelect(t),setTimeout('wppaSetIptcExifSize( ".wppa-exiflist-'+t+'", "#'+o+'" )',10)},error:function(p,e,a){wppaConsoleLog("wppaAjaxGetSsExifList failed. Error = "+a+", status = "+e,"force")},complete:function(p,e,a){jQuery("#wppa-ss-spinner-"+t).css("display","none")}})}function wppaSetIptcExifSize(p,e){p=jQuery(p).length;6<p&&(p=6),p<2&&(p=2),jQuery(e).attr("size",p)}function wppaUpdateSearchRoot(p,e){for(var a=jQuery(".wppa-search-root"),t=0;t<a.length;)jQuery(a[t]).html(p),t++;for(a=jQuery(".wppa-rootbox"),t=0;t<a.length;)e?(jQuery(a[t]).prop("checked",!1),jQuery(a[t]).prop("disabled",!1)):(jQuery(a[t]).prop("checked",!0),jQuery(a[t]).prop("disabled",!0)),t++;for(a=jQuery(".wppa-search-root-id"),t=0;t<a.length;)jQuery(a[t]).val(e),t++}function wppaSubboxChange(p){jQuery(p).prop("checked")&&jQuery(".wppa-rootbox").each(function(p){jQuery(this).prop("checked",!0)})}function wppaClearSubsearch(){for(var p=jQuery(".wppa-display-searchstring"),e=0;e<p.length;)jQuery(p[e]).html(""),e++;for(p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).prop("disabled",!0),e++}function wppaEnableSubsearch(){for(var p=jQuery(".wppa-search-sub-box"),e=0;e<p.length;)jQuery(p[e]).removeAttr("disabled"),e++}function wppaDisplaySelectedFiles(p){for(var e=jQuery("#"+p),a=0,t="";a<e[0].files.length;)t+=e[0].files[a].name+" ",a++;jQuery("#"+p+"-display").val(t)}function wppaIsEmpty(p){return null==p||(void 0===p||(""==p||(0==p||(0==p||void 0))))}function wppaGetUploadOptions(yalb,mocc,where,onComplete){var options={beforeSend:function(){jQuery("#progress-"+yalb+"-"+mocc).show(),jQuery("#bar-"+yalb+"-"+mocc).width("0%"),jQuery("#message-"+yalb+"-"+mocc).html(""),jQuery("#percent-"+yalb+"-"+mocc).html("")},uploadProgress:function(p,e,a,t){jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#7F7"),jQuery("#bar-"+yalb+"-"+mocc).width(t+"%"),t<95?jQuery("#percent-"+yalb+"-"+mocc).html(t+"%"):jQuery("#percent-"+yalb+"-"+mocc).html(wppaProcessing)},success:function(){jQuery("#bar-"+yalb+"-"+mocc).width("100%"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaDone),jQuery(".wppa-upload-button").val(wppaUploadButtonText)},complete:function(response){-1!=response.responseText.indexOf(wppaUploadFailed)?(jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed),jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>")):(jQuery("#message-"+yalb+"-"+mocc).html('<span style="font-size: 10px;" >'+response.responseText+"</span>"),"thumb"!=where&&"cover"!=where||eval(onComplete))},error:function(){jQuery("#message-"+yalb+"-"+mocc).html('<span style="color: red;" >'+wppaServerError+"</span>"),jQuery("#bar-"+yalb+"-"+mocc).css("backgroundColor","#F77"),jQuery("#percent-"+yalb+"-"+mocc).html(wppaUploadFailed)}};return options}function wppaInitMasonryPlus(){jQuery(".grid-masonryplus").each(function(){var p=jQuery(this).attr("id").substr(5),e=wppaGetContainerWidth(p)-wppaThumbnailAreaDelta,e=e/parseInt((e+wppaTfMargin)/(.75*wppaThumbSize+wppaTfMargin))-wppaTfMargin;jQuery(".grid-item").css("visibility","visible"),jQuery(".grid-item-"+p).css("width",e+"px"),jQuery("#grid-"+p).masonry({itemSelector:".grid-item-"+p,columnWidth:e,gutter:wppaTfMargin,fitWidth:!0})})}function wppaFsChange(){wppaFsShow(),wppaOvlShowSame()}function wppaGlobalFS(){if(wppaIsIpad)return!1;if(wppaIsSafari)return!1;var p=parseInt(wppaGlobalFsIconSize/4),e=p;!wppaIsMobile&&0<jQuery("#wpadminbar").length&&(p+=jQuery("#wpadminbar").height()),jQuery("body").append('<div id="wppa-fulls-btn-1" class="wppa-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Enter fullscreen" onclick="wppaFsOn()" >'+wppaSvgHtml("Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),jQuery("body").append('<div id="wppa-exit-fulls-btn-1" class="wppa-exit-fulls-btn" style="position:fixed;top:'+p+"px;right:"+e+'px;display:none;" title="Leave fullscreen" onclick="wppaFsOff()" >'+wppaSvgHtml("Exit-Full-Screen",wppaGlobalFsIconSize+"px",!0,!1,"0","0","0","0")+"</div>"),wppaFsShow()}function wppaFsOn(){var p=document.documentElement;p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullScreen&&p.webkitRequestFullScreen()}function wppaFsOff(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}function wppaIsFs(){return!wppaIsIpad&&(!wppaIsSafari&&null!==document.fullscreenElement)}function wppaFsShow(){wppaIsFs()?(jQuery(".wppa-fulls-btn").hide(),jQuery(".wppa-exit-fulls-btn").show()):(jQuery(".wppa-fulls-btn").show(),jQuery(".wppa-exit-fulls-btn").hide())}jQuery(document).ready(function(){"global"==wppaFsPolicy&&wppaGlobalFS(),jQuery(window).on("DOMContentLoaded load",wppaFsShow),jQuery(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange",wppaFsChange)});
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 8.0.00.009
7
  *
8
  */
9
 
@@ -182,6 +182,7 @@ function wppa_page_export() {
182
  function wppa_page_options() {
183
  require_once 'wppa-settings-autosave.php';
184
  require_once 'wppa-setting-functions.php';
 
185
 
186
  // jQuery Easing for Nicescroller
187
  $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 8.0.00.010
7
  *
8
  */
9
 
182
  function wppa_page_options() {
183
  require_once 'wppa-settings-autosave.php';
184
  require_once 'wppa-setting-functions.php';
185
+ require_once 'wppa-setting-see-also.php';
186
 
187
  // jQuery Easing for Nicescroller
188
  $easing_url = WPPA_URL . '/vendor/jquery-easing/jquery.easing.min.js';
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.0.00.009
6
  *
7
  */
8
 
@@ -3515,7 +3515,7 @@ global $wppa;
3515
 
3516
  update_option ( 'wppa_rerate_status', 'Required' );
3517
  $alert .= __( 'You just changed a setting that requires the recalculation of ratings.' , 'wp-photo-album-plus');
3518
- $alert .= ' '.__( 'Please run the appropriate action in Table VIII.' , 'wp-photo-album-plus');
3519
 
3520
  wppa_update_option( $option, $value );
3521
  wppa( 'error', '0' );
@@ -3904,7 +3904,7 @@ global $wppa;
3904
  if ( $old_minisize != $new_minisize ) {
3905
  update_option ( 'wppa_regen_thumbs_status', 'Required' );
3906
  $alert .= __( 'You just changed a setting that requires the regeneration of thumbnails.' , 'wp-photo-album-plus');
3907
- $alert .= ' '.__( 'Please run the appropriate action in Table VIII.' , 'wp-photo-album-plus');
3908
  }
3909
 
3910
  // Compose the cron job status and togo fields
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.0.00.010
6
  *
7
  */
8
 
3515
 
3516
  update_option ( 'wppa_rerate_status', 'Required' );
3517
  $alert .= __( 'You just changed a setting that requires the recalculation of ratings.' , 'wp-photo-album-plus');
3518
+ $alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus');
3519
 
3520
  wppa_update_option( $option, $value );
3521
  wppa( 'error', '0' );
3904
  if ( $old_minisize != $new_minisize ) {
3905
  update_option ( 'wppa_regen_thumbs_status', 'Required' );
3906
  $alert .= __( 'You just changed a setting that requires the regeneration of thumbnails.' , 'wp-photo-album-plus');
3907
+ $alert .= ' '.__( 'Please run the appropriate maintenance procedure.' , 'wp-photo-album-plus');
3908
  }
3909
 
3910
  // Compose the cron job status and togo fields
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.0.00.007
7
  *
8
  */
9
 
@@ -308,19 +308,23 @@ global $wppa_current_shortcode_atts;
308
  case 'photo':
309
  case 'sphoto':
310
  $wppa['single_photo'] = $atts['photo'];
 
311
  break;
312
  case 'mphoto':
313
  $wppa['single_photo'] = $atts['photo'];
 
314
  $wppa['is_mphoto'] = '1';
315
  break;
316
  case 'xphoto':
317
  $wppa['single_photo'] = $atts['photo'];
 
318
  $wppa['is_xphoto'] = '1';
319
  break;
320
  case 'slphoto':
321
  $wppa['is_slide'] = '1';
322
  $wppa['single_photo'] = $atts['photo'];
323
  $wppa['start_photo'] = $atts['photo'];
 
324
  $wppa['is_single'] = '1';
325
  break;
326
  case 'autopage':
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
+ * Version 8.0.00.010
7
  *
8
  */
9
 
308
  case 'photo':
309
  case 'sphoto':
310
  $wppa['single_photo'] = $atts['photo'];
311
+ $wppa['start_album'] = $atts['album'];
312
  break;
313
  case 'mphoto':
314
  $wppa['single_photo'] = $atts['photo'];
315
+ $wppa['start_album'] = $atts['album'];
316
  $wppa['is_mphoto'] = '1';
317
  break;
318
  case 'xphoto':
319
  $wppa['single_photo'] = $atts['photo'];
320
+ $wppa['start_album'] = $atts['album'];
321
  $wppa['is_xphoto'] = '1';
322
  break;
323
  case 'slphoto':
324
  $wppa['is_slide'] = '1';
325
  $wppa['single_photo'] = $atts['photo'];
326
  $wppa['start_photo'] = $atts['photo'];
327
+ $wppa['start_album'] = $atts['album'];
328
  $wppa['is_single'] = '1';
329
  break;
330
  case 'autopage':
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.0.00.009
7
  *
8
  */
9
 
@@ -772,6 +772,10 @@ global $wppa_current_shortcode_atts;
772
  if ( isset( $t[1] ) && is_numeric( $t[1] ) ) {
773
  $id = wppa_get_youngest_photo_id( $t[1] );
774
  }
 
 
 
 
775
  // No, last from system
776
  else {
777
  $id = wppa_get_youngest_photo_id();
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.0.00.010
7
  *
8
  */
9
 
772
  if ( isset( $t[1] ) && is_numeric( $t[1] ) ) {
773
  $id = wppa_get_youngest_photo_id( $t[1] );
774
  }
775
+ // Last from album by album="" shortcode arg?
776
+ elseif ( wppa( 'start_album' ) ) {
777
+ $id = wppa_get_youngest_photo_id( wppa( 'start_album' ) );
778
+ }
779
  // No, last from system
780
  else {
781
  $id = wppa_get_youngest_photo_id();
wppa-init.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
- * Version 8.0.00.007
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
@@ -254,28 +254,41 @@ function wppa_admin_bar_init() {
254
  }
255
 
256
  function wppa_maintenance_messages() {
257
- global $pagenow;
258
 
259
  if ( ! current_user_can( 'wppa_settings' ) ) {
260
  return;
261
  }
262
 
263
- // Rerate required?
264
- if ( wppa_get_option( 'wppa_rating_on' ) == 'yes' && wppa_get_option( 'wppa_rerate_status' ) ) {
265
- if ( strpos( wppa_get_option( 'wppa_rerate_user' ), 'cron' ) === false ) {
266
- wppa_error_message( __('The avarage ratings need to be recalculated. Please run <i>Photo Albums -> Settings</i> admin page <i>Table VIII-A5</i>' , 'wp-photo-album-plus') );
267
- }
268
- }
269
-
270
  // Cron jobs postponed?
271
  if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
272
- wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions. See <i>Table VIII-A0</i>', 'wp-photo-album-plus') );
273
  }
274
 
275
- // Finish setup
276
- if ( wppa_get_option( 'wppa_prevrev' ) == '100' && wppa_get_option('wppa_i_done') != 'done' && $_SERVER['QUERY_STRING'] != 'page=wppa_options' ) {
277
- wppa_ok_message( __('Please finish setting up WP Photo Album Plus on', 'wp-photo-album-plus') . ' <a href="'.get_admin_url().'admin.php?page=wppa_options">' . __('this page', 'wp-photo-album-plus') . '</a>' );
 
 
 
 
 
 
 
 
 
278
  }
 
 
 
 
 
 
 
 
 
 
 
279
  }
280
 
281
  function wppa_check_tag_system() {
@@ -297,7 +310,7 @@ global $wpdb;
297
  }
298
  }
299
  function wppa_tag_message() {
300
- wppa_error_message( __('</strong>The tags system needs to be converted. Please run <b>Photo Albums -> Settings</b> admin page <b>Table VIII-B16</b><strong>' , 'wp-photo-album-plus') );
301
  }
302
 
303
  function wppa_check_cat_system() {
@@ -319,11 +332,12 @@ global $wpdb;
319
  }
320
  }
321
  function wppa_cat_message() {
322
- wppa_error_message( __('</strong>The cats system needs to be converted. Please run <b>Photo Albums -> Settings</b> admin page <b>Table VIII-B17</b><strong>' , 'wp-photo-album-plus') );
323
  }
324
 
325
  // Print admin messages on config conflicts
326
  function wppa_check_config_conflicts() {
 
327
  global $wpdb;
328
 
329
  $any = false;
@@ -334,7 +348,8 @@ global $wpdb;
334
  $nalbs = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums" );
335
  $ualbs = $wpdb->get_col( "SELECT DISTINCT name FROM $wpdb->wppa_albums" );
336
  if ( $nalbs > count ( $ualbs ) ) {
337
- $text .= '<br />' . __( 'Table IV-A4: Album names in urls is activated, but there are duplicate album names.', 'wp-photo-album-plus' );
 
338
  $any = true;
339
  }
340
  }
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
+ * Version 8.0.00.010
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
254
  }
255
 
256
  function wppa_maintenance_messages() {
257
+ require_once 'wppa-setting-see-also.php';
258
 
259
  if ( ! current_user_can( 'wppa_settings' ) ) {
260
  return;
261
  }
262
 
 
 
 
 
 
 
 
263
  // Cron jobs postponed?
264
  if ( wppa_get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
265
+ wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '0' ) );
266
  }
267
 
268
+ // Check for pending actions
269
+ if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) {
270
+ wppa_warning_message( __( 'Remove empty albums needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '31' ) );
271
+ }
272
+ if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) {
273
+ wppa_warning_message( __( 'Applying new photo description needs completion.', 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '28' ) );
274
+ }
275
+ if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
276
+ wppa_warning_message( __( 'Appending to photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '29' ) );
277
+ }
278
+ if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) {
279
+ wppa_warning_message( __( 'Removing from photo description needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '30' ) );
280
  }
281
+ if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) {
282
+ wppa_warning_message( __( 'Removing file extensions needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '32' ) );
283
+ }
284
+ if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) {
285
+ wppa_warning_message( __( 'Regenerating the Thumbnails needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '4' ) );
286
+ }
287
+ if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) {
288
+ wppa_warning_message( __( 'Rerating needs completion.' , 'wp-photo-album-plus') . wppa_see_also( 'maintenance', '1', '5' ) );
289
+ }
290
+
291
+
292
  }
293
 
294
  function wppa_check_tag_system() {
310
  }
311
  }
312
  function wppa_tag_message() {
313
+ wppa_error_message( __('The tags system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> Item 44</i>' , 'wp-photo-album-plus') );
314
  }
315
 
316
  function wppa_check_cat_system() {
332
  }
333
  }
334
  function wppa_cat_message() {
335
+ wppa_error_message( __('The cats system needs to be converted. Please run <i>Photo Albums -> Settings -> Advanced settings -> Maintenance -> Item 45</i>' , 'wp-photo-album-plus') );
336
  }
337
 
338
  // Print admin messages on config conflicts
339
  function wppa_check_config_conflicts() {
340
+ require_once 'wppa-setting-see-also.php';
341
  global $wpdb;
342
 
343
  $any = false;
348
  $nalbs = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums" );
349
  $ualbs = $wpdb->get_col( "SELECT DISTINCT name FROM $wpdb->wppa_albums" );
350
  if ( $nalbs > count ( $ualbs ) ) {
351
+ $text .= '<br />' . __( 'Album names in urls is activated, but there are duplicate album names.', 'wp-photo-album-plus' ) .
352
+ '<br />' . wppa_see_also( 'system', '1', '5' );
353
  $any = true;
354
  }
355
  }
wppa-setting-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.009
7
  *
8
  */
9
 
@@ -476,7 +476,7 @@ global $wppa_cur_tab;
476
 
477
  function wppa_upload_form( $slug, $tab, $accept = 'image/*' ) {
478
 
479
- $label = __('Do it!', 'wp-photo-album-plus');
480
  $onclick = 'jQuery(\'#wppa-admin-spinner\').show();';
481
 
482
  $result = '
@@ -736,7 +736,10 @@ function wppa_master_tab( $slug, $target, $caption, $active = false ) {
736
  }
737
 
738
  // New style settings page selection tab html
739
- function wppa_setting_tab( $slug, $caption, $active = false, $show = true ) {
 
 
 
740
 
741
  echo '
742
  <li
@@ -751,19 +754,28 @@ function wppa_setting_tab( $slug, $caption, $active = false, $show = true ) {
751
 
752
  // New style setting
753
  function wppa_setting_new( $slug, $xnum, $name, $desc, $html, $help, $show = true ) {
754
- global $wppa_status;
755
  global $wppa_defaults;
756
- global $wppa_table;
757
- global $wppa_subtable;
758
  global $no_default;
759
  global $wppa_opt;
760
- global $wppa_totcols;
761
  global $wppa_setting_class;
 
 
 
 
 
 
 
 
 
 
 
762
 
 
763
  if ( ! $help ) {
764
  $help = __('No helptext available', 'wp-photo-album-plus');
765
  }
766
 
 
767
  if ( is_array( $slug ) ) $slugs = $slug;
768
  else {
769
  $slugs = false;
@@ -824,7 +836,11 @@ global $wppa_setting_class;
824
  echo
825
  '<tr
826
  id="wppa-setting-item-' . $slugs[0] . '"
827
- class="wppa-setting-new ' . $slugs[0] . ' ' . $wppa_setting_class . '" style="color:#333;' . ( $show ? '' : 'display:none;' ) . '"
 
 
 
 
828
  >';
829
 
830
  // The item number
@@ -912,12 +928,17 @@ global $wppa_cur_subtab_id;
912
  var cookie = wppa_getCookie(\'' . $wppa_cur_subtab . '\');
913
  if ( cookie == "on" ) {
914
  jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").css("background-color","#ffffff");
 
 
 
 
 
915
  }
916
  });
917
  </script>
918
  <div
919
  class="wppa-tabdesc wppa-tabdesc-' . $wppa_cur_subtab . ' ' . $wppa_cur_subtab_id . '"
920
- style="text-align:center;border-bottom:1px solid darkgrey;cursor:pointer;background-color:#eeeeee;"
921
  onclick="wppaToggleSubtab(\'' . $wppa_cur_subtab . '\');"
922
  >
923
  <h3>' .
@@ -1042,25 +1063,3 @@ function wppa_setting_star( $onch ) {
1042
  }
1043
  }
1044
 
1045
- // See also
1046
- function wppa_see_also( $tab, $subtab = '', $text = '' ) {
1047
-
1048
- $link = admin_url( 'admin.php' ) . '?page=wppa_options';
1049
- if ( $tab ) {
1050
- $link .= '&wppa-tab=' . sanitize_text_field( $tab );
1051
- }
1052
- if ( $subtab ) {
1053
- $link .= '&wppa-subtab=' . strval( intval( $subtab ) );
1054
- }
1055
-
1056
- $result = '
1057
- <a
1058
- href="' . $link . '"
1059
- title="' . esc_attr( 'Jump to related (sub)tab', 'wp-photo-album-plus' ) . '"
1060
- style="float:left; cursor:pointer;"
1061
- >' .
1062
- __( 'See also', 'wp-photo-album-plus' ) . ' -> ' . $text . '
1063
- </a>';
1064
-
1065
- return $result;
1066
- }
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.010
7
  *
8
  */
9
 
476
 
477
  function wppa_upload_form( $slug, $tab, $accept = 'image/*' ) {
478
 
479
+ $label = __('Upload now!', 'wp-photo-album-plus');
480
  $onclick = 'jQuery(\'#wppa-admin-spinner\').show();';
481
 
482
  $result = '
736
  }
737
 
738
  // New style settings page selection tab html
739
+ function wppa_setting_tab( $slug, $caption, $show = true ) {
740
+ global $wppa_cur_tab;
741
+
742
+ $active = $wppa_cur_tab == $slug;
743
 
744
  echo '
745
  <li
754
 
755
  // New style setting
756
  function wppa_setting_new( $slug, $xnum, $name, $desc, $html, $help, $show = true ) {
 
757
  global $wppa_defaults;
 
 
758
  global $no_default;
759
  global $wppa_opt;
 
760
  global $wppa_setting_class;
761
+ global $wppa_requested_subtab;
762
+ global $wppa_requested_items;
763
+ global $wppa_cur_subtab_id;
764
+
765
+ // Is this item requested?
766
+ $is_requested = false;
767
+ if ( $wppa_requested_subtab == $wppa_cur_subtab_id ) {
768
+ if ( $wppa_requested_items !== false && in_array( $xnum, $wppa_requested_items ) ) {
769
+ $is_requested = true;
770
+ }
771
+ }
772
 
773
+ // Default helptext
774
  if ( ! $help ) {
775
  $help = __('No helptext available', 'wp-photo-album-plus');
776
  }
777
 
778
+ // Convert sungle slug to array with 1 elm
779
  if ( is_array( $slug ) ) $slugs = $slug;
780
  else {
781
  $slugs = false;
836
  echo
837
  '<tr
838
  id="wppa-setting-item-' . $slugs[0] . '"
839
+ class="wppa-setting-new ' . $slugs[0] . ' ' . $wppa_setting_class . '"
840
+ style="color:#333;' .
841
+ ( $show ? '' : 'display:none;' ) .
842
+ ( $is_requested ? 'background-color:#eeffee;' : '' ) .
843
+ '"
844
  >';
845
 
846
  // The item number
928
  var cookie = wppa_getCookie(\'' . $wppa_cur_subtab . '\');
929
  if ( cookie == "on" ) {
930
  jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").css("background-color","#ffffff");
931
+ jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").attr("data-inactive","0");
932
+ }
933
+ else {
934
+ jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").css("background-color","#eeeeee");
935
+ jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").attr("data-inactive","1");
936
  }
937
  });
938
  </script>
939
  <div
940
  class="wppa-tabdesc wppa-tabdesc-' . $wppa_cur_subtab . ' ' . $wppa_cur_subtab_id . '"
941
+ style="text-align:center;border-bottom:1px solid darkgrey;cursor:pointer;"
942
  onclick="wppaToggleSubtab(\'' . $wppa_cur_subtab . '\');"
943
  >
944
  <h3>' .
1063
  }
1064
  }
1065
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wppa-setting-see-also.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* wppa-setting-see-also.php
3
+ * Package: wp-photo-album-plus
4
+ *
5
+ * manage all options
6
+ * Version 8.0.00.010
7
+ *
8
+ */
9
+
10
+
11
+ global $wppa_tab_names;
12
+ global $wppa_subtab_names;
13
+
14
+ // The header tabs
15
+ $wppa_tab_names = array(
16
+ 'general' => __( 'General', 'wp-photo-album-plus' ),
17
+ 'generaladv' => __( 'General', 'wp-photo-album-plus' ),
18
+ 'layout' => __( 'Layout', 'wp-photo-album-plus' ),
19
+ 'covers' => __( 'Albums', 'wp-photo-album-plus'),
20
+ 'photos' => __( 'Photos', 'wp-photo-album-plus'),
21
+ 'thumbs' => __( 'Thumbnails', 'wp-photo-album-plus'),
22
+ 'slide' => __( 'Slideshow', 'wp-photo-album-plus'),
23
+ 'lightbox' => __( 'Lightbox', 'wp-photo-album-plus' ),
24
+ 'comments' => __( 'Comments', 'wp-photo-album-plus' ),
25
+ 'rating' => __( 'Rating', 'wp-photo-album-plus' ),
26
+ 'search' => __( 'Search', 'wp-photo-album-plus' ),
27
+ 'widget' => __( 'Widget', 'wp-photo-album-plus' ),
28
+ 'links' => __( 'Links', 'wp-photo-album-plus' ),
29
+ 'users' => __( 'Users', 'wp-photo-album-plus' ),
30
+ 'email' => __( 'Email', 'wp-photo-album-plus' ),
31
+ 'share' => __( 'Share', 'wp-photo-album-plus' ),
32
+ 'system' => __( 'System', 'wp-photo-album-plus' ),
33
+ 'files' => __( 'Files', 'wp-photo-album-plus' ),
34
+ 'new' => __( 'New', 'wp-photo-album-plus' ),
35
+ 'admin' => __( 'Admin', 'wp-photo-album-plus' ),
36
+ 'maintenance' => __( 'Maintenance', 'wp-photo-album-plus' ),
37
+ 'exif' => 'EXIF',
38
+ 'iptc' => 'IPTC',
39
+ 'gpx' => 'GPX',
40
+ 'watermark' => __( 'Watermark', 'wp-photo-album-plus' ),
41
+ 'custom' => __( 'Custom data', 'wp-photo-album-plus' ),
42
+ 'constants' => __( 'Constants', 'wp-photo-album-plus' ),
43
+ 'misc' => __( 'Misc', 'wp-photo-album-plus' ),
44
+ 'miscadv' => __( 'Misc', 'wp-photo-album-plus' ),
45
+ );
46
+ $wppa_subtab_names = array(
47
+ 'general' => array(
48
+ '1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus'),
49
+ ),
50
+ 'generaladv' => array(
51
+ '1' => __('On this tab you can select the features you want to use', 'wp-photo-album-plus'),
52
+ ),
53
+ 'layout' => array(
54
+ '1' => __('General layout settings', 'wp-photo-album-plus'),
55
+ '2' => __('Breadcrumb specifications', 'wp-photo-album-plus'),
56
+ '3' => __('Navigation symbol specifications', 'wp-photo-album-plus'),
57
+ '4' => __('Multimedia icon and stubfile specifications', 'wp-photo-album-plus'),
58
+ '5' => __('Fonts', 'wp-photo-album-plus'),
59
+ ),
60
+ 'covers' => array(
61
+ '1' => __('Album cover size specifications', 'wp-photo-album-plus'),
62
+ '2' => __('Album cover options', 'wp-photo-album-plus'),
63
+ '3' => __('Album cover layout settings', 'wp-photo-album-plus'),
64
+ ),
65
+ 'photos' => array(
66
+ '1' => __('Photo specifications', 'wp-photo-album-plus'),
67
+ '2' => __('Shortcode [photo ... ] specifications', 'wp-photo-album-plus'),
68
+ ),
69
+ 'thumbs' => array(
70
+ '1' => __('Thumbnail size specifications', 'wp-photo-album-plus'),
71
+ '2' => __('Thumbnail display options', 'wp-photo-album-plus'),
72
+ '3' => __('Thumbnail layout settings', 'wp-photo-album-plus'),
73
+ ),
74
+ 'slide' => array(
75
+ '1' => __('Sllideshow component specifications', 'wp-photo-album-plus'),
76
+ '2' => __('Slideshow component sequence', 'wp-photo-album-plus'),
77
+ '3' => __('Slideshow layout settings', 'wp-photo-album-plus'),
78
+ '4' => __('Slideshow dynamic behaviour', 'wp-photo-album-plus'),
79
+ ),
80
+ 'lightbox' => array(
81
+ '1' => __('Lightbox overlay configuration settings', 'wp-photo-album-plus'),
82
+ ),
83
+ 'comments' => array(
84
+ '1' => __('Comments system related settings', 'wp-photo-album-plus'),
85
+ ),
86
+ 'rating' => array(
87
+ '1' => __('Rating system related settings', 'wp-photo-album-plus'),
88
+ ),
89
+ 'search' => array(
90
+ '1' => __('Search albums and photos features related settings', 'wp-photo-album-plus'),
91
+ ),
92
+ 'widget' => array(
93
+ '1' => __('General widget size settings', 'wp-photo-album-plus'),
94
+ '2' => __('Visibility settings', 'wp-photo-album-plus'),
95
+ '3' => __('QR Code widget settings', 'wp-photo-album-plus'),
96
+ ),
97
+ 'links' => array(
98
+ '1' => __('Links from standard images', 'wp-photo-album-plus'),
99
+ '2' => __('Links from items and images in widgets', 'wp-photo-album-plus'),
100
+ '3' => __('Other links', 'wp-photo-album-plus'),
101
+ ),
102
+ 'users' => array(
103
+ '1' => __('Frontend (user) upload related settings', 'wp-photo-album-plus'),
104
+ ),
105
+ 'email' => array(
106
+ '1' => __('Email configuration settings', 'wp-photo-album-plus'),
107
+ '2' => __('Failed mails', 'wp-photo-album-plus'),
108
+ '3' => __('Permanently failed mails', 'wp-photo-album-plus'),
109
+ ),
110
+ 'share' => array(
111
+ '1' => __('Social media related settings', 'wp-photo-album-plus'),
112
+ '2' => __('Search Engine Optimalisation settings', 'wp-photo-album-plus'),
113
+ ),
114
+ 'system' => array(
115
+ '1' => __('System behaviour related settings' , 'wp-photo-album-plus'),
116
+ ),
117
+ 'files' => array(
118
+ '1' => __('Original source file related settings', 'wp-photo-album-plus'),
119
+ ),
120
+ 'new' => array(
121
+ '1' => __('New albums / photos related settings', 'wp-photo-album-plus'),
122
+ ),
123
+ 'admin' => array(
124
+ '1' => __('WPPA+ related roles and capabilities', 'wp-photo-album-plus'),
125
+ '2' => __('Frontend create Albums and upload Photos enabling and limiting settings' , 'wp-photo-album-plus'),
126
+ '3' => __('Import related settings', 'wp-photo-album-plus'),
127
+ '4' => __('Admin Functionality restrictions for non administrators' , 'wp-photo-album-plus'),
128
+ '5' => __('Miscellaneous limiting settings' , 'wp-photo-album-plus'),
129
+ '6' => __('Miscellaneous admin related settings', 'wp-photo-album-plus' ),
130
+ ),
131
+ 'maintenance' => array(
132
+ '1' => __('Maintenance procedures', 'wp-photo-album-plus'),
133
+ ),
134
+ 'exif' => array(
135
+ '1' => __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
136
+ ),
137
+ 'iptc' => array(
138
+ '1' => __('IPTC tags and their labels as found in the uploaded photos', 'wp-photo-album-plus'),
139
+ ),
140
+ 'gpx' => array(
141
+ '1' => __('GPX configuration', 'wp-photo-album-plus'),
142
+ ),
143
+ 'custom' => array(
144
+ '1' => __( 'Album custom data fields configuration', 'wp-photo-album-plus' ),
145
+ '2' => __( 'Photo custom data fields configuration', 'wp-photo-album-plus' ),
146
+ ),
147
+ 'watermark' => array(
148
+ '1' => __('Watermark related settings', 'wp-photo-album-plus'),
149
+ ),
150
+ 'constants' => array(
151
+ '1' => __('System constants (read only)', 'wp-photo-album-plus'),
152
+ ),
153
+ 'misc' => array(
154
+ '1' => __('Miscellaneous settings', 'wp-photo-album-plus'),
155
+ '2' => __('Panorma related settings', 'wp-photo-album-plus'),
156
+ ),
157
+ 'miscadv' => array(
158
+ '1' => __('Advanced miscellaneous settings', 'wp-photo-album-plus'),
159
+ '2' => __('Logging', 'wp-photo-album-plus'),
160
+ '3' => __('External services related settings and actions', 'wp-photo-album-plus'),
161
+ '4' => __('Other plugins related settings', 'wp-photo-album-plus'),
162
+ ),
163
+ );
164
+
165
+ // See also
166
+ function wppa_see_also( $tab, $subtab = '', $items = '', $switch = '', $value = '' ) {
167
+ global $wppa_tab_names;
168
+ global $wppa_subtab_names;
169
+
170
+ // Do they need us?
171
+ if ( $switch && ! $value ) {
172
+ if ( ! wppa_switch( $switch ) ) {
173
+ return;
174
+ }
175
+ }
176
+ if ( $switch && $value ) {
177
+ if ( wppa_opt( $switch ) != $value ) {
178
+ return;
179
+ }
180
+ }
181
+
182
+ // Make the full link
183
+ $link = admin_url( 'admin.php' ) . '?page=wppa_options';
184
+ if ( $tab ) {
185
+ $link .= '&wppa-tab=' . sanitize_text_field( $tab );
186
+ }
187
+ if ( $subtab ) {
188
+ $link .= '&wppa-subtab=' . strval( intval( $subtab ) );
189
+ }
190
+ if ( $items !== '' ) {
191
+ $link .= '&wppa-item=' . sanitize_text_field( $items );
192
+ }
193
+
194
+ // Make the htnl
195
+ $result = '
196
+ &nbsp;<a
197
+ href="' . $link . '"
198
+ title="' . esc_attr( 'Jump to related (sub)tab', 'wp-photo-album-plus' ) . '"
199
+ style="cursor:pointer;"
200
+
201
+ >' .
202
+ __( 'See also', 'wp-photo-album-plus' ) . ': ' . $wppa_tab_names[$tab] . ' -> ' . $wppa_subtab_names[$tab][$subtab] . '
203
+ </a>&nbsp;';
204
+
205
+ return $result;
206
+ }
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.009
7
  *
8
  */
9
 
@@ -28,7 +28,10 @@ global $wppa_supported_camara_brands;
28
  global $wppa_setting_class;
29
  global $wppa_cur_tab;
30
  global $wppa_cur_mtab;
31
-
 
 
 
32
 
33
  // Start test area
34
 
@@ -395,22 +398,13 @@ global $wppa_cur_mtab;
395
  wppa_error_message(__("Please remove 'define( 'DISABLE_WP_CRON', true );' from wp-config.php", 'wp-photo-album-plus' ) );
396
  }
397
 
398
- // Check for pending actions
399
- if ( wppa_get_option( 'wppa_remove_empty_albums_status' ) && wppa_get_option( 'wppa_remove_empty_albums_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Remove empty albums needs completion. See <b>Advanced settings -> Maintenance</b>', 'wp-photo-album-plus') );
400
- if ( wppa_get_option( 'wppa_apply_new_photodesc_all_status' ) && wppa_get_option( 'wppa_apply_new_photodesc_all_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Applying new photo description needs completion. See <b>Advanced settings -> Maintenance</b>', 'wp-photo-album-plus') );
401
- if ( wppa_get_option( 'wppa_append_to_photodesc_status' ) && wppa_get_option( 'wppa_append_to_photodesc_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Appending to photo description needs completion. See <b>Advanced settings -> Maintenance</b>' , 'wp-photo-album-plus') );
402
- if ( wppa_get_option( 'wppa_remove_from_photodesc_status' ) && wppa_get_option( 'wppa_remove_from_photodesc_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Removing from photo description needs completion. See <b>Advanced settings -> Maintenance</b>' , 'wp-photo-album-plus') );
403
- if ( wppa_get_option( 'wppa_remove_file_extensions_status' ) && wppa_get_option( 'wppa_remove_file_extensions_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Removing file extensions needs completion. See <b>Advanced settings -> Maintenance</b>' , 'wp-photo-album-plus') );
404
- if ( wppa_get_option( 'wppa_regen_thumbs_status' ) && wppa_get_option( 'wppa_regen_thumbs_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Regenerating the Thumbnails needs completion. See <b>Advanced settings -> Maintenance</b>' , 'wp-photo-album-plus') );
405
- if ( wppa_get_option( 'wppa_rerate_status' ) && wppa_get_option( 'wppa_rerate_user', wppa_get_user() ) == wppa_get_user() ) wppa_warning_message( __( 'Rerating needs completion. See <b>Advanced settings -> Maintenance</b>' , 'wp-photo-album-plus') );
406
-
407
  // Check for inconsistencies
408
  if ( ( wppa_opt( 'thumbtype' ) == 'default' ) && (
409
  wppa_opt( 'tf_width' ) < wppa_opt( 'thumbsize' ) ||
410
  wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
411
  wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
412
  wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
413
- wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size. Please correct the corresponding setting(s) <b>Admin -> VI Photo admin max albums</b>' , 'wp-photo-album-plus') );
414
  }
415
 
416
  // Check for 'many' albums
@@ -659,44 +653,56 @@ global $wppa_cur_mtab;
659
  $advan = true;
660
  }
661
 
 
 
 
 
 
 
 
 
 
 
 
 
662
  // The master header selectors
663
  echo '<ul class="widefat wppa-master-tabs" >';
664
  wppa_master_tab( 'basic', 'general', __( 'Basic settings', 'wp-photo-album-plus' ), $basic );
665
  wppa_master_tab( 'advanced', 'generaladv', __( 'Advanced settings', 'wp-photo-album-plus' ), $advan );
666
  echo '</ul>';
667
 
668
- // The header tabs
669
  {
670
  echo '<ul class="widefat wppa-setting-tabs" >';
671
- wppa_setting_tab( 'general', __( 'General', 'wp-photo-album-plus' ), $tab == 'general', $basic );
672
- wppa_setting_tab( 'generaladv', __( 'General', 'wp-photo-album-plus' ), $tab == 'generaladv', $advan );
673
- wppa_setting_tab( 'layout', __( 'Layout', 'wp-photo-album-plus' ), $tab == 'layout', $basic );
674
- wppa_setting_tab( 'covers', __( 'Albums', 'wp-photo-album-plus'), $tab == 'covers', $basic );
675
- wppa_setting_tab( 'photos', __( 'Photos', 'wp-photo-album-plus'), $tab == 'photos', $basic );
676
- wppa_setting_tab( 'thumbs', __( 'Thumbnails', 'wp-photo-album-plus'), $tab == 'thumbs', $basic );
677
- wppa_setting_tab( 'slide', __( 'Slideshow', 'wp-photo-album-plus'), $tab == 'slide', $basic );
678
- wppa_setting_tab( 'lightbox', __( 'Lightbox', 'wp-photo-album-plus' ), $tab == 'lightbox', $basic );
679
- wppa_setting_tab( 'comments', __( 'Comments', 'wp-photo-album-plus' ), $tab == 'comments', $basic && wppa_switch( 'show_comments' ) );
680
- wppa_setting_tab( 'rating', __( 'Rating', 'wp-photo-album-plus' ), $tab == 'rating', $basic && wppa_switch( 'rating_on' ) );
681
- wppa_setting_tab( 'search', __( 'Search', 'wp-photo-album-plus' ), $tab == 'search', $basic );
682
- wppa_setting_tab( 'widget', __( 'Widget', 'wp-photo-album-plus' ), $tab == 'widget', $basic );
683
- wppa_setting_tab( 'links', __( 'Links', 'wp-photo-album-plus' ), $tab == 'links', $basic );
684
- wppa_setting_tab( 'users', __( 'Users', 'wp-photo-album-plus' ), $tab == 'users', $advan && wppa_switch( 'user_upload_on' ) );
685
- wppa_setting_tab( 'email', __( 'Email', 'wp-photo-album-plus' ), $tab == 'email', $advan && wppa_switch( 'email_on' ) );
686
- wppa_setting_tab( 'share', __( 'Share', 'wp-photo-album-plus' ), $tab == 'share', $advan && wppa_switch( 'share_on' ) );
687
- wppa_setting_tab( 'system', __( 'System', 'wp-photo-album-plus' ), $tab == 'system', $advan );
688
- wppa_setting_tab( 'files', __( 'Files', 'wp-photo-album-plus' ), $tab == 'files', $advan );
689
- wppa_setting_tab( 'new', __( 'New', 'wp-photo-album-plus' ), $tab == 'new', $advan );
690
- wppa_setting_tab( 'admin', __( 'Admin', 'wp-photo-album-plus' ), $tab == 'admin', $advan );
691
- wppa_setting_tab( 'maintenance', __( 'Maintenance', 'wp-photo-album-plus' ), $tab == 'maintenance', $advan );
692
- wppa_setting_tab( 'exif', 'EXIF', $tab == 'exif', $advan && wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
693
- wppa_setting_tab( 'iptc', 'IPTC', $tab == 'iptc', $advan && wppa_switch( 'save_iptc' ) && function_exists('exif_read_data') );
694
- wppa_setting_tab( 'gpx', 'GPX', $tab == 'gpx', $advan && wppa_switch( 'save_gpx' ) && wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
695
- wppa_setting_tab( 'watermark', __( 'Watermark', 'wp-photo-album-plus' ), $tab == 'watermark', $advan && wppa_switch( 'watermark_on' ) );
696
- wppa_setting_tab( 'custom', __( 'Custom data', 'wp-photo-album-plus' ), $tab == 'custom', $advan && ( wppa_switch( 'album_custom_fields' ) || wppa_switch( 'custom_fields' ) ) );
697
- wppa_setting_tab( 'constants', __( 'Constants', 'wp-photo-album-plus' ), $tab == 'constants', $advan );
698
- wppa_setting_tab( 'misc', __( 'Misc', 'wp-photo-album-plus' ), $tab == 'misc', $basic );
699
- wppa_setting_tab( 'miscadv', __( 'Misc', 'wp-photo-album-plus' ), $tab == 'miscadv', $advan );
700
  echo '</ul>';
701
  }
702
 
@@ -758,6 +764,7 @@ global $wppa_cur_mtab;
758
  });
759
  jQuery(".wppa-tabdesc").each(function(){
760
  jQuery(this).css("background-color", "#eeeeee");
 
761
  });
762
  jQuery( "#"+clas ).show();
763
  jQuery( ".wppa-tabdesc-"+clas ).css("background-color", "#ffffff");
@@ -766,6 +773,7 @@ global $wppa_cur_mtab;
766
  else {
767
  jQuery( "#"+clas ).hide();
768
  jQuery( ".wppa-tabdesc-"+clas ).css("background-color", "#eeeeee");
 
769
  wppa_setCookie(clas,"off",30);
770
  }
771
  jQuery( "#"+clas+"-cm" ).hide();
@@ -776,9 +784,13 @@ global $wppa_cur_mtab;
776
  wppaAjaxUpdateOptionValue( "heartbeat", heartbeat );
777
  }, 10000 );
778
  jQuery(document).ready(function(){setTimeout(function(){
779
- ' . ( $subtab ? 'if (jQuery(".' . $subtab . '").css("background-color") == "#eeeeee") jQuery(".' . $subtab . '").trigger("click");' : '' ) . '
780
  jQuery("#wppa-setting-content").show();
781
- },10)});
 
 
 
 
 
782
  </script>';
783
  }
784
 
@@ -791,9 +803,9 @@ global $wppa_cur_mtab;
791
 
792
  case 'general':
793
  case 'generaladv': {
794
-
795
- $desc = __('On this tab you can select the features you want to use', 'wp-photo-album-plus');
796
  {
 
797
  wppa_setting_tab_description($desc);
798
  wppa_setting_box_header_new($tab);
799
 
@@ -801,115 +813,118 @@ global $wppa_cur_mtab;
801
  $desc = __('Enables photo support', 'wp-photo-album-plus');
802
  $help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
803
  $slug = '';
804
- $html = '<input type="checkbox" style="float:left;" checked disabled >'; // . wppa_see_also( 'photos', '1' );
805
  wppa_setting_new($slug, '0', $name, $desc, $html, $help);
806
 
807
  $name = __('Enable Video', 'wp-photo-album-plus');
808
  $desc = __('Enables video support.', 'wp-photo-album-plus');
809
  $help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
810
  $slug = 'wppa_enable_video';
811
- $onch = 'wppaSlave( this, "wppa_user_upload_video_on" )';
812
- $html = wppa_checkbox($slug, $onch); // . ( wppa_switch( 'enable_video' ) ? wppa_see_also( 'misc', '1' ) : '' );
813
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
814
 
815
  $name = __('Enable pdf', 'wp-photo-album-plus');
816
  $desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
817
  $help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
818
  $slug = 'wppa_enable_pdf';
819
- $html = wppa_checkbox($slug);
820
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
821
 
822
  $name = __('Enable Audio', 'wp-photo-album-plus');
823
  $desc = __('Enables audio support.', 'wp-photo-album-plus');
824
  $help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
825
  $slug = 'wppa_enable_audio';
826
- $onch = 'wppaSlave(this,"wppa_user_upload_audio_on")';
827
- $html = wppa_checkbox($slug, $onch);
828
  wppa_setting_new($slug, '3', $name, $desc, $html, $help);
829
 
830
  $name = __('Enable Comments', 'wp-photo-album-plus');
831
  $desc = __('Enables the comments system.', 'wp-photo-album-plus');
832
  $help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
833
  $slug = 'wppa_show_comments';
834
- $onch = 'wppaSlave(this,"comments")';
835
- $html = wppa_checkbox($slug, $onch);
836
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
837
 
838
  $name = __('Enable Ratings', 'wp-photo-album-plus');
839
  $desc = __('Enables the rating system.', 'wp-photo-album-plus');
840
  $help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
841
  $slug = 'wppa_rating_on';
842
- $onch = 'wppaSlave(this,"rating")';
843
- $html = wppa_checkbox($slug, $onch);
844
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
845
 
846
  $name = __('Enable User uploads', 'wp-photo-album-plus');
847
  $desc = __('Enables frontend upload.', 'wp-photo-album-plus');
848
  $help = '';
849
  $slug = 'wppa_user_upload_on';
850
- $onch = 'wppaSlave(this,"users");';
851
- $html = wppa_checkbox($slug, $onch);
852
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
853
 
854
  $name = __('Enable Email', 'wp-photo-album-plus');
855
  $desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
856
  $help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
857
  $slug = 'wppa_email_on';
858
- $onch = 'wppaSlave(this,"email");';
859
- $html = wppa_checkbox($slug, $onch);
860
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
861
 
862
  $name = __('Enable EXIF', 'wp-photo-album-plus');
863
  $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
864
  $help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
865
  $slug = 'wppa_save_exif';
866
- $onch = 'wppaSlave(this,"wppa_save_gpx");wppaSlave(this,"gpx");wppaSlave(this,"exif");'; //'wppaRefreshAfter()';
867
- $html = wppa_checkbox($slug, $onch);
868
  wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
869
 
870
  $name = __('Enable IPTC', 'wp-photo-album-plus');
871
  $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
872
  $help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
873
  $slug = 'wppa_save_iptc';
874
- $onch = 'wppaSlave(this,"iptc")';
875
- $html = wppa_checkbox($slug, $onch);
876
  wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
877
 
878
  $name = __('Enable GPX', 'wp-photo-album-plus');
879
  $desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
880
  $help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
881
  $slug = 'wppa_save_gpx';
882
- $onch = 'wppaSlave(this,"gpx")';
883
- $html = wppa_checkbox($slug, $onch);
884
  wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
885
 
886
  $name = __('Enable Custom data albums', 'wp-photo-album-plus');
887
  $desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
888
  $help = '';
889
  $slug = 'wppa_album_custom_fields';
890
- $html = wppa_checkbox($slug, $onch);
 
891
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
892
 
893
  $name = __('Enable Custom data photos', 'wp-photo-album-plus');
894
  $desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
895
  $help = '';
896
  $slug = 'wppa_custom_fields';
897
- $html = wppa_checkbox($slug, $onch);
 
898
  wppa_setting_new($slug, '12', $name, $desc, $html, $help);
899
 
900
  $name = __('Enable Watermark', 'wp-photo-album-plus');
901
  $desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
902
- $help = __('See Tab Watermark for detailed settings.', 'wp-photo-album-plus');
903
  $slug = 'wppa_watermark_on';
904
- $onch = 'wppaSlave(this,"watermark")';
905
- $html = wppa_checkbox($slug, $onch);
906
  wppa_setting_new($slug, '13', $name, $desc, $html, $help);
907
 
908
  $name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus');
909
  $desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus');
910
  $help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus');
911
  $slug = 'wppa_photo_shortcode_enabled';
912
- $html = wppa_checkbox($slug);
 
913
  wppa_setting_new($slug, '14', $name, $desc, $html, $help);
914
 
915
  wppa_setting_box_footer_new();
@@ -918,8 +933,8 @@ global $wppa_cur_mtab;
918
  break;
919
 
920
  case 'layout': {
921
-
922
- $desc = __('General layout settings', 'wp-photo-album-plus');
923
  {
924
  wppa_setting_tab_description($desc);
925
  wppa_setting_box_header_new($tab);
@@ -1011,8 +1026,8 @@ global $wppa_cur_mtab;
1011
 
1012
  wppa_setting_box_footer_new();
1013
  }
1014
-
1015
- $desc = __('Breadcrumb specifications', 'wp-photo-album-plus');
1016
  {
1017
  wppa_setting_tab_description($desc);
1018
  wppa_setting_box_header_new($tab);
@@ -1152,8 +1167,8 @@ global $wppa_cur_mtab;
1152
 
1153
  wppa_setting_box_footer_new();
1154
  }
1155
-
1156
- $desc = __('Navigation symbol specifications', 'wp-photo-album-plus');
1157
  {
1158
  wppa_setting_tab_description($desc);
1159
  wppa_setting_box_header_new($tab);
@@ -1343,8 +1358,8 @@ global $wppa_cur_mtab;
1343
  </script>';
1344
 
1345
  }
1346
-
1347
- $desc = __('Multimedia icon and stubfile specifications', 'wp-photo-album-plus');
1348
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
1349
  {
1350
  wppa_setting_tab_description($desc);
@@ -1419,8 +1434,8 @@ global $wppa_cur_mtab;
1419
 
1420
  wppa_setting_box_footer_new();
1421
  }
1422
-
1423
- $desc = __('Fonts', 'wp-photo-album-plus');
1424
  {
1425
  $coldef = array();
1426
  wppa_setting_tab_description($desc);
@@ -1615,8 +1630,8 @@ global $wppa_cur_mtab;
1615
  break;
1616
 
1617
  case 'covers': {
1618
-
1619
- $desc = __('Album cover size specifications', 'wp-photo-album-plus');
1620
  {
1621
  wppa_setting_tab_description($desc);
1622
  wppa_setting_box_header_new($tab);
@@ -1722,8 +1737,8 @@ global $wppa_cur_mtab;
1722
 
1723
  wppa_setting_box_footer_new();
1724
  }
1725
-
1726
- $desc = __('Album cover options', 'wp-photo-album-plus');
1727
  {
1728
  wppa_setting_tab_description($desc);
1729
  wppa_setting_box_header_new($tab);
@@ -1810,8 +1825,8 @@ global $wppa_cur_mtab;
1810
 
1811
  wppa_setting_box_footer_new();
1812
  }
1813
-
1814
- $desc = __('Album cover layout settings', 'wp-photo-album-plus');
1815
  {
1816
  wppa_setting_tab_description($desc);
1817
  wppa_setting_box_header_new($tab);
@@ -1904,8 +1919,8 @@ global $wppa_cur_mtab;
1904
  break;
1905
 
1906
  case 'photos': {
1907
-
1908
- $desc = __('Photo specifications', 'wp-photo-album-plus');
1909
  {
1910
  wppa_setting_tab_description($desc);
1911
  wppa_setting_box_header_new($tab);
@@ -1969,119 +1984,119 @@ global $wppa_cur_mtab;
1969
 
1970
  wppa_setting_box_footer_new();
1971
  }
1972
-
1973
- $desc = __('Shortcode [photo ... ] specifications', 'wp-photo-album-plus');
1974
  if ( wppa_switch( 'photo_shortcode_enabled' ) ) {
1975
- wppa_setting_tab_description($desc);
1976
- wppa_setting_box_header_new($tab);
1977
 
1978
- $name = __('Single image type', 'wp-photo-album-plus');
1979
- $desc = __('Specify the single image type the shortcode [photo ..] should show.', 'wp-photo-album-plus');
1980
- $help = '';
1981
- $slug = 'wppa_photo_shortcode_type';
1982
- $opts = array( __('A plain single photo', 'wp-photo-album-plus'),
1983
- __('A single photo with caption', 'wp-photo-album-plus'),
1984
- __('A single photo with extended caption', 'wp-photo-album-plus'),
1985
- __('A single photo in the style of a slideshow', 'wp-photo-album-plus'),
1986
- );
1987
- $vals = array( 'photo',
1988
- 'mphoto',
1989
- 'xphoto',
1990
- 'slphoto',
1991
- );
1992
- $html = wppa_select($slug, $opts, $vals);
1993
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
1994
 
1995
- $name = __('Size', 'wp-photo-album-plus');
1996
- $desc = __('Specify the size (width) of the image.', 'wp-photo-album-plus');
1997
- $help = __('Use the same syntax as in the [wppa size=".."] shortcode', 'wp-photo-album-plus');
1998
- $help .= '<br />'.__('Examples: 350 for a fixed width of 350 pixels, or: 0.75 for a responsive display of 75% width, or: auto,350 for responsive with a maximum of 350 pixels.', 'wp-photo-album-plus');
1999
- $slug = 'wppa_photo_shortcode_size';
2000
- $html = wppa_input($slug, '300px');
2001
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2002
 
2003
- $name = __('Align', 'wp-photo-album-plus');
2004
- $desc = __('Specify the alignment of the image.', 'wp-photo-album-plus');
2005
- $help = '';
2006
- $slug = 'wppa_photo_shortcode_align';
2007
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2008
- __('left', 'wp-photo-album-plus'),
2009
- __('center', 'wp-photo-album-plus'),
2010
- __('right', 'wp-photo-album-plus'),
2011
- );
2012
- $vals = array( '',
2013
- 'left',
2014
- 'center',
2015
- 'right',
2016
- );
2017
- $html = wppa_select($slug, $opts, $vals);
2018
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2019
 
2020
- $name = __('Fe type', 'wp-photo-album-plus');
2021
- $desc = __('Frontend editor shortcode generator output type', 'wp-photo-album-plus');
2022
- $help = __( 'If you want to use the shortcode generator in frontend tinymce editors, select if you want the shortcode or the html to be entered in the post', 'wp-photo-album-plus');
2023
- $help .= '<br />'.__('Select \'html\' if the inserted shortcode not is converted to the photo', 'wp-photo-album-plus');
2024
- $slug = 'wppa_photo_shortcode_fe_type';
2025
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2026
- __('shortcode', 'wp-photo-album-plus'),
2027
- __('html', 'wp-photo-album-plus'),
2028
- __('img tag', 'wp-photo-album-plus'),
2029
- );
2030
- $vals = array( '-none-',
2031
- 'shortcode',
2032
- 'html',
2033
- 'img',
2034
- );
2035
- $html = wppa_select($slug, $opts, $vals);
2036
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2037
 
2038
- $name = __('Albums', 'wp-photo-album-plus');
2039
- $desc = __('Select album(s) for random photo', 'wp-photo-album-plus');
2040
- $help = __( 'The albums to be used for the selection of a random photo for shortcode: [photo random]', 'wp-photo-album-plus');
2041
- $slug = 'wppa_photo_shortcode_random_albums';
2042
- if ( wppa_has_many_albums() ) {
2043
- $html = wppa_input( $slug, '220', __('Enter album ids separated by commas','wp-photo-album-plus' ) );
2044
- }
2045
- else {
2046
- $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums", ARRAY_A );
2047
- $albums = wppa_add_paths( $albums );
2048
- $albums = wppa_array_sort( $albums, 'name' );
2049
- $opts = array();
2050
- $vals = array();
2051
- $opts[] = __( '--- all ---', 'wp-photo-album-plus' );
2052
- $vals[] = '-2';
2053
- foreach( $albums as $album ) {
2054
- $opts[] = $album['name'];
2055
- $vals[] = $album['id'];
2056
  }
2057
- $html = wppa_select_m($slug, $opts, $vals, '', '', false, '', $max_width = '400' );
2058
- }
2059
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
2060
 
2061
- $name = __('Select photo once', 'wp-photo-album-plus');
2062
- $desc = __('The same random photo on every pageload', 'wp-photo-album-plus');
2063
- $help = __('If ticked: the random photo is determined once at page/post creation time', 'wp-photo-album-plus');
2064
- $help .= '<br />'.__('If unticked: every pageload a different photo', 'wp-photo-album-plus');
2065
- $slug = 'wppa_photo_shortcode_random_fixed';
2066
- $html = wppa_checkbox($slug);
2067
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2068
 
2069
- $name = __('Render photo once', 'wp-photo-album-plus');
2070
- $desc = __('Replace shortcode by html', 'wp-photo-album-plus');
2071
- $help = __('Do not replace \'random\' by a number, but by the corresponding html', 'wp-photo-album-plus') . '<br />';
2072
- $help .= __('WARNING: changes in [photo] shortcode afterwards do no longer have any effect!', 'wp-photo-album-plus');
2073
- $slug = 'wppa_photo_shortcode_random_fixed_html';
2074
- $html = wppa_checkbox($slug);
2075
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
2076
 
2077
- wppa_setting_box_footer_new();
2078
  }
2079
  }
2080
  break;
2081
 
2082
  case 'thumbs': {
2083
-
2084
- $desc = __('Thumbnail size specifications', 'wp-photo-album-plus');
2085
  {
2086
  wppa_setting_tab_description($desc);
2087
  wppa_setting_box_header_new($tab);
@@ -2240,8 +2255,8 @@ global $wppa_cur_mtab;
2240
 
2241
  wppa_setting_box_footer_new();
2242
  }
2243
-
2244
- $desc = __('Thumbnail display options', 'wp-photo-album-plus');
2245
  {
2246
  wppa_setting_tab_description($desc);
2247
  wppa_setting_box_header_new($tab);
@@ -2387,8 +2402,8 @@ global $wppa_cur_mtab;
2387
 
2388
  wppa_setting_box_footer_new();
2389
  }
2390
-
2391
- $desc = __('Thumbnail layout settings', 'wp-photo-album-plus');
2392
  {
2393
  wppa_setting_tab_description($desc);
2394
  wppa_setting_box_header_new($tab);
@@ -2481,8 +2496,8 @@ global $wppa_cur_mtab;
2481
  break;
2482
 
2483
  case 'slide': {
2484
-
2485
- $desc = __('Sllideshow component specifications', 'wp-photo-album-plus');
2486
  {
2487
  wppa_setting_tab_description($desc);
2488
  wppa_setting_box_header_new($tab);
@@ -2782,8 +2797,8 @@ global $wppa_cur_mtab;
2782
 
2783
  wppa_setting_box_footer_new();
2784
  }
2785
-
2786
- $desc = __('Slideshow component sequence', 'wp-photo-album-plus');
2787
  {
2788
  wppa_setting_tab_description($desc);
2789
  wppa_setting_box_header_new($tab);
@@ -2891,8 +2906,8 @@ global $wppa_cur_mtab;
2891
 
2892
  wppa_setting_box_footer_new();
2893
  }
2894
-
2895
- $desc = __('Slideshow layout settings', 'wp-photo-album-plus');
2896
  {
2897
  wppa_setting_tab_description($desc);
2898
  wppa_setting_box_header_new($tab);
@@ -2963,8 +2978,8 @@ global $wppa_cur_mtab;
2963
 
2964
  wppa_setting_box_footer_new();
2965
  }
2966
-
2967
- $desc = __('Slideshow dynamic behaviour', 'wp-photo-album-plus');
2968
  {
2969
  wppa_setting_tab_description($desc);
2970
  wppa_setting_box_header_new($tab);
@@ -3101,8 +3116,8 @@ global $wppa_cur_mtab;
3101
  break;
3102
 
3103
  case 'lightbox': {
3104
-
3105
- $desc = __('Lightbox overlay configuration settings', 'wp-photo-album-plus');
3106
  {
3107
  wppa_setting_tab_description($desc);
3108
  wppa_setting_box_header_new($tab);
@@ -3355,8 +3370,8 @@ global $wppa_cur_mtab;
3355
  break;
3356
 
3357
  case 'comments': {
3358
-
3359
- $desc = __('Comments system related settings', 'wp-photo-album-plus');
3360
  {
3361
  wppa_setting_tab_description($desc);
3362
  wppa_setting_box_header_new($tab);
@@ -3508,8 +3523,8 @@ global $wppa_cur_mtab;
3508
  break;
3509
 
3510
  case 'rating': {
3511
-
3512
- $desc = __('Rating system related settings', 'wp-photo-album-plus');
3513
  {
3514
  wppa_setting_tab_description($desc);
3515
  wppa_setting_box_header_new($tab);
@@ -3551,7 +3566,7 @@ global $wppa_cur_mtab;
3551
  $slug = 'wppa_rating_max';
3552
  $opts = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
3553
  $vals = array('5', '10', '1');
3554
- $html = wppa_select($slug, $opts, $vals);
3555
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3556
 
3557
  $name = __('Display precision', 'wp-photo-album-plus');
@@ -3814,8 +3829,8 @@ global $wppa_cur_mtab;
3814
  break;
3815
 
3816
  case 'search': {
3817
-
3818
- $desc = __('Search albums and photos features related settings', 'wp-photo-album-plus');
3819
  {
3820
  wppa_setting_tab_description($desc);
3821
  wppa_setting_box_header_new($tab);
@@ -4104,8 +4119,8 @@ global $wppa_cur_mtab;
4104
  break;
4105
 
4106
  case 'widget': {
4107
-
4108
- $desc = __('General widget size settings', 'wp-photo-album-plus');
4109
  {
4110
  wppa_setting_tab_description($desc);
4111
  wppa_setting_box_header_new($tab);
@@ -4242,8 +4257,8 @@ global $wppa_cur_mtab;
4242
 
4243
  wppa_setting_box_footer_new();
4244
  }
4245
-
4246
- $desc = __('Visibility settings', 'wp-photo-album-plus');
4247
  {
4248
  wppa_setting_tab_description($desc);
4249
  wppa_setting_box_header_new($tab);
@@ -4273,8 +4288,8 @@ global $wppa_cur_mtab;
4273
 
4274
  wppa_setting_box_footer_new();
4275
  }
4276
-
4277
- $desc = __('QR Code widget settings', 'wp-photo-album-plus');
4278
  {
4279
  wppa_setting_tab_description($desc);
4280
  wppa_setting_box_header_new($tab);
@@ -4312,8 +4327,8 @@ global $wppa_cur_mtab;
4312
  break;
4313
 
4314
  case 'links': {
4315
-
4316
- $desc = __('Links from standard images', 'wp-photo-album-plus');
4317
  {
4318
  wppa_setting_tab_description($desc);
4319
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
@@ -4540,8 +4555,8 @@ global $wppa_cur_mtab;
4540
 
4541
  wppa_setting_box_footer_new();
4542
  }
4543
-
4544
- $desc = __('Links from items and images in widgets', 'wp-photo-album-plus');
4545
  {
4546
  wppa_setting_tab_description($desc);
4547
  wppa_setting_box_header_new($tab, $coldef);
@@ -4941,8 +4956,8 @@ global $wppa_cur_mtab;
4941
 
4942
  wppa_setting_box_footer_new();
4943
  }
4944
-
4945
- $desc = __('Other links', 'wp-photo-album-plus');
4946
  {
4947
  wppa_setting_tab_description($desc);
4948
  wppa_setting_box_header_new($tab, $coldef);
@@ -5172,8 +5187,8 @@ global $wppa_cur_mtab;
5172
  break;
5173
 
5174
  case 'users': {
5175
-
5176
- $desc = __('Frontend (user) upload related settings', 'wp-photo-album-plus');
5177
  {
5178
  wppa_setting_tab_description($desc);
5179
  wppa_setting_box_header_new($tab);
@@ -5441,8 +5456,8 @@ global $wppa_cur_mtab;
5441
  break;
5442
 
5443
  case 'email': {
5444
-
5445
- $desc = __('Email configuration settings', 'wp-photo-album-plus');
5446
  {
5447
  wppa_setting_tab_description($desc);
5448
  wppa_setting_box_header_new($tab);
@@ -5563,8 +5578,8 @@ global $wppa_cur_mtab;
5563
 
5564
  wppa_setting_box_footer_new();
5565
  }
5566
-
5567
- $desc = __('Failed mails', 'wp-photo-album-plus');
5568
  {
5569
 
5570
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
@@ -5596,8 +5611,8 @@ global $wppa_cur_mtab;
5596
  wppa_setting_box_footer_new();
5597
  }
5598
  }
5599
-
5600
- $desc = __('Permanently failed mails', 'wp-photo-album-plus');
5601
  {
5602
  $mails = wppa_get_option( 'wppa_perm_failed_mails', array() );
5603
  if ( count( $mails ) ) {
@@ -5625,8 +5640,8 @@ global $wppa_cur_mtab;
5625
  break;
5626
 
5627
  case 'share': {
5628
-
5629
- $desc = __('Social media related settings', 'wp-photo-album-plus');
5630
  {
5631
  wppa_setting_tab_description($desc);
5632
  wppa_setting_box_header_new($tab);
@@ -5773,8 +5788,8 @@ global $wppa_cur_mtab;
5773
 
5774
  wppa_setting_box_footer_new();
5775
  }
5776
-
5777
- $desc = __('Search Engine Optimalisation settings', 'wp-photo-album-plus');
5778
  {
5779
  wppa_setting_tab_description($desc);
5780
  wppa_setting_box_header_new($tab);
@@ -5817,8 +5832,8 @@ global $wppa_cur_mtab;
5817
  break;
5818
 
5819
  case 'system': {
5820
-
5821
- $desc = __('System behaviour related settings' , 'wp-photo-album-plus');
5822
  {
5823
  wppa_setting_tab_description($desc);
5824
  wppa_setting_box_header_new($tab);
@@ -6066,7 +6081,8 @@ global $wppa_cur_mtab;
6066
  $desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
6067
  $help = '';
6068
  $slug = 'wppa_login_links';
6069
- $html = wppa_checkbox($slug);
 
6070
  wppa_setting_new($slug, '31', $name, $desc, $html, $help);
6071
 
6072
  $name = __('Relative urls', 'wp-photo-album-plus');
@@ -6203,8 +6219,8 @@ global $wppa_cur_mtab;
6203
  break;
6204
 
6205
  case 'files': {
6206
-
6207
- $desc = __('Original source file related settings', 'wp-photo-album-plus');
6208
  {
6209
  wppa_setting_tab_description($desc);
6210
  wppa_setting_box_header_new($tab);
@@ -6240,8 +6256,8 @@ global $wppa_cur_mtab;
6240
  break;
6241
 
6242
  case 'new': {
6243
-
6244
- $desc = __('New albums / photos related settings', 'wp-photo-album-plus');
6245
  {
6246
  wppa_setting_tab_description($desc);
6247
  wppa_setting_box_header_new($tab);
@@ -6681,8 +6697,8 @@ global $wppa_cur_mtab;
6681
  break;
6682
 
6683
  case 'admin': {
6684
-
6685
- $desc = __('WPPA+ related roles and capabilities', 'wp-photo-album-plus');
6686
  {
6687
  wppa_setting_tab_description($desc);
6688
 
@@ -6756,8 +6772,8 @@ global $wppa_cur_mtab;
6756
 
6757
  wppa_setting_box_footer_new();
6758
  }
6759
-
6760
- $desc = __('Frontend create Albums and upload Photos enabling and limiting settings' , 'wp-photo-album-plus');
6761
  {
6762
  wppa_setting_tab_description($desc);
6763
  $coldef = array( '#' => 'auto;',
@@ -6962,8 +6978,8 @@ global $wppa_cur_mtab;
6962
 
6963
  wppa_setting_box_footer_new();
6964
  }
6965
-
6966
- $desc = __('Import related settings', 'wp-photo-album-plus');
6967
  {
6968
  wppa_setting_tab_description($desc);
6969
  wppa_setting_box_header_new($tab);
@@ -7060,8 +7076,8 @@ global $wppa_cur_mtab;
7060
 
7061
  wppa_setting_box_footer_new();
7062
  }
7063
-
7064
- $desc = __('Admin Functionality restrictions for non administrators' , 'wp-photo-album-plus');
7065
  {
7066
  wppa_setting_tab_description($desc);
7067
  wppa_setting_box_header_new($tab);
@@ -7145,8 +7161,8 @@ global $wppa_cur_mtab;
7145
 
7146
  wppa_setting_box_footer_new();
7147
  }
7148
-
7149
- $desc = __('Miscellaneous limiting settings' , 'wp-photo-album-plus');
7150
  {
7151
  wppa_setting_tab_description($desc);
7152
  wppa_setting_box_header_new($tab);
@@ -7400,8 +7416,8 @@ global $wppa_cur_mtab;
7400
 
7401
  wppa_setting_box_footer_new();
7402
  }
7403
-
7404
- $desc = __('Miscellaneous admin related settings', 'wp-photo-album-plus' );
7405
  {
7406
  wppa_setting_tab_description($desc);
7407
  wppa_setting_box_header_new($tab);
@@ -7528,991 +7544,991 @@ global $wppa_cur_mtab;
7528
  break;
7529
 
7530
  case 'maintenance': {
7531
-
7532
- $desc = __('Maintenance procedures', 'wp-photo-album-plus');
7533
  {
7534
- wppa_setting_tab_description($desc);
7535
-
7536
- $coldef = array( '#' => '24px;',
7537
- __('Name', 'wp-photo-album-plus') => 'auto;',
7538
- __('Description', 'wp-photo-album-plus') => 'auto;',
7539
- __('Specification', 'wp-photo-album-plus') => 'auto;',
7540
- __('Do it!', 'wp-photo-album-plus') => 'auto;',
7541
- __('Status', 'wp-photo-album-plus') => 'auto;',
7542
- __('To Go', 'wp-photo-album-plus') => 'auto;',
7543
- __('Help', 'wp-photo-album-plus') => '24px;',
7544
- );
7545
-
7546
- wppa_setting_box_header_new($tab, $coldef);
7547
 
7548
- $name = __('Postpone cron', 'wp-photo-album-plus');
7549
- $desc = __('Temporary do no background processes.', 'wp-photo-album-plus');
7550
- $help = __('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus');
7551
- $slug = 'wppa_maint_ignore_cron';
7552
- $html1 = wppa_checkbox( $slug );
7553
- $html2 = '';
7554
- $html3 = '';
7555
- $html4 = '';
7556
- $html = array($html1, $html2, $html3, $html4);
7557
- wppa_setting_new(false, '0', $name, $desc, $html, $help);
7558
 
7559
- $name = __('Setup', 'wp-photo-album-plus');
7560
- $desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
7561
- $help = __('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wp-photo-album-plus');
7562
- $help .= '<br />'.__('This action may be required to setup blogs in a multiblog (network) site as well as in rare cases to correct initilization errors.', 'wp-photo-album-plus');
7563
- $slug = 'wppa_setup';
7564
- $html1 = '';
7565
- $html2 = wppa_doit_button_new($slug);
7566
- $html3 = '';
7567
- $html4 = '';
7568
- $html = array($html1, $html2, $html3, $html4);
7569
- wppa_setting_new(false, '1', $name, $desc, $html, $help);
7570
 
7571
- $name = __('Backup settings', 'wp-photo-album-plus');
7572
- $desc = __('Save all settings into a backup file.', 'wp-photo-album-plus');
7573
- $help = __('Saves all the settings into a backup file', 'wp-photo-album-plus');
7574
- $slug1 = 'wppa_backup_filename';
7575
- $slug2 = 'wppa_backup';
7576
- $html1 = wppa_input( $slug1, '200px;', '', '', '', 'settings.bak' );
7577
- $html2 = wppa_doit_button_new($slug2);
7578
- $html3 = '';
7579
- $html4 = '';
7580
- $html = array($html1, $html2, $html3, $html4);
7581
- wppa_setting_new(false, '2', $name, $desc, $html, $help);
7582
 
7583
- $name = __( 'Load settings', 'wp-photo-album-plus' );
7584
- $desc = __( 'Restore all settings from defaults, a backup or skin file.', 'wp-photo-album-plus' );
7585
- $help = __( 'Restores all the settings from the factory supplied defaults, the backup you created or from a skin file.', 'wp-photo-album-plus' );
7586
- $help .= ' ' . __( 'Restoring a .skin-file will not overwrite linkpage settings.', 'wp-photo-album-plus' );
7587
- $slug1 = 'wppa_skinfile';
7588
- $slug2 = 'wppa_load_skin';
7589
- $files1 = wppa_glob(WPPA_PATH.'/theme/*.skin');
7590
- $files2 = wppa_glob(WPPA_DEPOT_PATH.'/*.bak');
7591
- $files3 = wppa_glob(WPPA_DEPOT_PATH.'/*.skin');
7592
- $files = array_merge( $files1, $files2, $files3 );
7593
- $opts = false;
7594
- $vals = false;
7595
- $opts[] = __( 'Please select an item', 'wp-photo-album-plus' );
7596
- $opts[] = __( '--- set to defaults ---', 'wp-photo-album-plus' );
7597
- $vals[] = '';
7598
- $vals[] = 'default';
7599
- if ( count( $files ) ) {
7600
- foreach ( $files as $file ) {
7601
- $fname = basename( $file );
7602
- $ext = strrchr( $fname, '.' );
7603
- if ( $ext == '.skin' || $ext == '.bak' ) {
7604
- $opts[] = $fname;
7605
- $vals[] = $file;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7606
  }
7607
  }
7608
- }
7609
- $html1 = wppa_select($slug1, $opts, $vals);
7610
- $html2 = wppa_doit_button_new($slug2);
7611
- $html3 = '';
7612
- $html4 = '';
7613
- $html = array($html1, $html2, $html3, $html4);
7614
- wppa_setting_new(false, '3', $name, $desc, $html, $help);
7615
-
7616
- $name = __('Regenerate', 'wp-photo-album-plus');
7617
- $desc = __('Regenerate all thumbnails.', 'wp-photo-album-plus');
7618
- $help = '';
7619
- $slug1 = 'wppa_regen_thumbs_skip_one';
7620
- $slug2 = 'wppa_regen_thumbs';
7621
- $html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'regen_thumbs_skip_one', '0', true );
7622
- $html2 = wppa_maintenance_button( $slug2 );
7623
- $html3 = wppa_status_field( $slug2 );
7624
- $html4 = wppa_togo_field( $slug2 );
7625
- $html = array($html1, $html2, $html3, $html4);
7626
- wppa_setting_new(false, '4', $name, $desc, $html, $help);
7627
 
7628
- $name = __('Rerate', 'wp-photo-album-plus');
7629
- $desc = __('Recalculate ratings.', 'wp-photo-album-plus');
7630
- $help = __('This function will recalculate all mean photo ratings from the ratings table.', 'wp-photo-album-plus');
7631
- $slug2 = 'wppa_rerate';
7632
- $html1 = wppa_cronjob_button( $slug2 );
7633
- $html2 = wppa_maintenance_button( $slug2 );
7634
- $html3 = wppa_status_field( $slug2 );
7635
- $html4 = wppa_togo_field( $slug2 );
7636
- $html = array($html1, $html2, $html3, $html4);
7637
- wppa_setting_new(false, '5', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
 
7638
 
7639
- $name = __('Lost and found', 'wp-photo-album-plus');
7640
- $desc = __('Find "lost" photos.', 'wp-photo-album-plus');
7641
- $help = __('This function will attempt to find lost photos.', 'wp-photo-album-plus');
7642
- $slug2 = 'wppa_cleanup';
7643
- $html1 = '';
7644
- $html2 = wppa_maintenance_button( $slug2 );
7645
- $html3 = wppa_status_field( $slug2 );
7646
- $html4 = wppa_togo_field( $slug2 );
7647
- $html = array($html1, $html2, $html3, $html4);
7648
- wppa_setting_new(false, '6', $name, $desc, $html, $help);
7649
 
7650
- $name = __('Recuperate', 'wp-photo-album-plus');
7651
- $desc = __('Recuperate IPTC and EXIF data from photos in WPPA+.', 'wp-photo-album-plus');
7652
- $help = __('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wp-photo-album-plus');
7653
- $slug2 = 'wppa_recup';
7654
- $html1 = wppa_cronjob_button( $slug2 );
7655
- $html2 = wppa_maintenance_button( $slug2 );
7656
- $html3 = wppa_status_field( $slug2 );
7657
- $html4 = wppa_togo_field( $slug2 );
7658
- $html = array($html1, $html2, $html3, $html4);
7659
- wppa_setting_new(false, '7', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) || wppa_switch( 'save_iptc' ) );
7660
 
7661
- $name = __('Format exif', 'wp-photo-album-plus');
7662
- $desc = __('Format EXIF data', 'wp-photo-album-plus');
7663
- $help = '';
7664
- $slug2 = 'wppa_format_exif';
7665
- $html1 = wppa_cronjob_button( $slug2 );
7666
- $html2 = wppa_maintenance_button( $slug2 );
7667
- $html3 = wppa_status_field( $slug2 );
7668
- $html4 = wppa_togo_field( $slug2 );
7669
- $html = array($html1, $html2, $html3, $html4);
7670
- wppa_setting_new(false, '8', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
7671
 
7672
- $name = __('Remake Index Albums', 'wp-photo-album-plus');
7673
- $desc = __('Remakes the index database table for albums.', 'wp-photo-album-plus');
7674
- $help = '';
7675
- $slug2 = 'wppa_remake_index_albums';
7676
- $html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus') . wppa_checkbox( $slug2.'_ad_inf' );
7677
- $html2 = wppa_maintenance_button( $slug2 );
7678
- $html3 = wppa_status_field( $slug2 );
7679
- $html4 = wppa_togo_field( $slug2 );
7680
- $html = array($html1, $html2, $html3, $html4);
7681
- wppa_setting_new(false, '9', $name, $desc, $html, $help);
7682
 
7683
- $name = __('Remake Index Photos', 'wp-photo-album-plus');
7684
- $desc = __('Remakes the index database table for photos.', 'wp-photo-album-plus');
7685
- $help = '';
7686
- $slug2 = 'wppa_remake_index_photos';
7687
- $html1 = wppa_cronjob_button( $slug2 );
7688
- $html2 = wppa_maintenance_button( $slug2 );
7689
- $html3 = wppa_status_field( $slug2 );
7690
- $html4 = wppa_togo_field( $slug2 );
7691
- $html = array($html1, $html2, $html3, $html4);
7692
- wppa_setting_new(false, '10', $name, $desc, $html, $help);
7693
 
7694
- $name = __('Clean Index', 'wp-photo-album-plus');
7695
- $desc = __('Remove obsolete entries from index db table.', 'wp-photo-album-plus');
7696
- $help = '';
7697
- $slug2 = 'wppa_cleanup_index';
7698
- $html1 = wppa_cronjob_button( $slug2 );
7699
- $html2 = wppa_maintenance_button( $slug2 );
7700
- $html3 = wppa_status_field( $slug2 );
7701
- $html4 = wppa_togo_field( $slug2 );
7702
- $html = array($html1, $html2, $html3, $html4);
7703
- wppa_setting_new(false, '11', $name, $desc, $html, $help);
7704
 
7705
- $fs = wppa_get_option('wppa_file_system');
7706
- if ( ! $fs ) {
7707
- $fs = 'flat';
7708
- wppa_update_option('wppa_file_system', 'flat');
7709
- }
7710
- if ( $fs == 'flat' || $fs == 'to-tree' ) {
7711
- $name = __('Convert to tree', 'wp-photo-album-plus');
7712
- $desc = __('Convert filesystem to tree structure.', 'wp-photo-album-plus');
7713
- }
7714
- if ( $fs == 'tree' || $fs == 'to-flat' ) {
7715
- $name = __('Convert to flat', 'wp-photo-album-plus');
7716
- $desc = __('Convert filesystem to flat structure.', 'wp-photo-album-plus');
7717
- }
7718
- $help = __('If you want to go back to a wppa+ version prior to 5.0.16, you MUST convert to flat first.', 'wp-photo-album-plus');
7719
- $slug2 = 'wppa_file_system';
7720
- $html1 = '';
7721
- $html2 = wppa_maintenance_button( $slug2 );
7722
- $html3 = wppa_status_field( $slug2 );
7723
- $html4 = wppa_togo_field( $slug2 );
7724
- $html = array($html1, $html2, $html3, $html4);
7725
- wppa_setting_new(false, '12', $name, $desc, $html, $help);
7726
 
7727
- $name = __('Remake add', 'wp-photo-album-plus');
7728
- $desc = __('Photos will be added from the source pool. See next item', 'wp-photo-album-plus');
7729
- $help = __('If checked: If photo files are found in the source directory that do not exist in the corresponding album, they will be added to the album.', 'wp-photo-album-plus');
7730
- $slug = 'wppa_remake_add';
7731
- $html1 = wppa_checkbox($slug);
7732
- $html0 = '';
7733
- $html = array($html1, $html0, $html0, $html0);
7734
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
7735
-
7736
- $name = __('Remake', 'wp-photo-album-plus');
7737
- $desc = __('Remake the photofiles from photo sourcefiles.', 'wp-photo-album-plus');
7738
- $help = __('This action will remake the fullsize images, thumbnail images, and will refresh the iptc and exif data for all photos where the source is found in the corresponding album sub-directory of the source directory.', 'wp-photo-album-plus');
7739
- $slug1 = 'wppa_remake_skip_one';
7740
- $slug2 = 'wppa_remake';
7741
- $html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'remake_skip_one', '0', true );
7742
- $html2 = wppa_maintenance_button( $slug2 );
7743
- $html3 = wppa_status_field( $slug2 );
7744
- $html4 = wppa_togo_field( $slug2 );
7745
- $html = array($html1, $html2, $html3, $html4);
7746
- wppa_setting_new(false, '14', $name, $desc, $html, $help);
 
7747
 
7748
- $name = __('Orientation only', 'wp-photo-album-plus');
7749
- $desc = __('Remake non standard orientated photos only.', 'wp-photo-album-plus');
7750
- $help = '';
7751
- $slug1 = '';
7752
- $slug2 = 'wppa_remake_orientation_only';
7753
- $html1 = '';
7754
- $html2 = wppa_checkbox( $slug2 );
7755
- $html3 = wppa_status_field( $slug2 );
7756
- $html4 = wppa_togo_field( $slug2 );
7757
- $html = array($html1, $html2, $html3, $html4);
7758
- wppa_setting_new(false, '15', $name, $desc, $html, $help);
7759
 
7760
- $name = __('Missing only', 'wp-photo-album-plus');
7761
- $desc = __('Remake missing photofiles only.', 'wp-photo-album-plus');
7762
- $help = '';
7763
- $slug1 = '';
7764
- $slug2 = 'wppa_remake_missing_only';
7765
- $html1 = '';
7766
- $html2 = wppa_checkbox( $slug2 );
7767
- $html3 = wppa_status_field( $slug2 );
7768
- $html4 = wppa_togo_field( $slug2 );
7769
- $html = array($html1, $html2, $html3, $html4);
7770
- wppa_setting_new(false, '16', $name, $desc, $html, $help);
7771
 
7772
- $name = __('Recalc sizes', 'wp-photo-album-plus');
7773
- $desc = __('Recalculate photosizes and save to db.', 'wp-photo-album-plus');
7774
- $help = '';
7775
- $slug2 = 'wppa_comp_sizes';
7776
- $html1 = wppa_cronjob_button( $slug2 );
7777
- $html2 = wppa_maintenance_button( $slug2 );
7778
- $html3 = wppa_status_field( $slug2 );
7779
- $html4 = wppa_togo_field( $slug2 );
7780
- $html = array($html1, $html2, $html3, $html4);
7781
- wppa_setting_new(false, '17', $name, $desc, $html, $help);
 
7782
 
7783
- $name = __('Renew album crypt', 'wp-photo-album-plus');
7784
- $desc = __('Renew album encrcryption codes.', 'wp-photo-album-plus');
7785
- $help = '';
7786
- $slug2 = 'wppa_crypt_albums';
7787
- $html1 = wppa_cronjob_button( $slug2 );
7788
- $html2 = wppa_maintenance_button( $slug2 );
7789
- $html3 = wppa_status_field( $slug2 );
7790
- $html4 = wppa_togo_field( $slug2 );
7791
- $html = array($html1, $html2, $html3, $html4);
7792
- wppa_setting_new(false, '18', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
 
7793
 
7794
- $name = __('Renew album crypt every', 'wp-photo-album-plus');
7795
- $desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
7796
- $help = __('The periodic times are an approximation', 'wp-photo-album-plus');
7797
- $slug = 'wppa_crypt_albums_every';
7798
- $opts = array( __('--- off ---', 'wp-photo-album-plus'),
7799
- __('hour', 'wp-photo-album-plus'),
7800
- __('day', 'wp-photo-album-plus'),
7801
- __('week', 'wp-photo-album-plus'),
7802
- __('month', 'wp-photo-album-plus'),
7803
- );
7804
- $vals = array( '0', '1', '24', '168', '720' );
7805
- $html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
7806
- wppa_setting_new(false, '19', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7807
-
7808
- $name = __('Renew photo crypt', 'wp-photo-album-plus');
7809
- $desc = __('Renew photo encrcryption codes.', 'wp-photo-album-plus');
7810
- $help = '';
7811
- $slug2 = 'wppa_crypt_photos';
7812
- $html1 = wppa_cronjob_button( $slug2 );
7813
- $html2 = wppa_maintenance_button( $slug2 );
7814
- $html3 = wppa_status_field( $slug2 );
7815
- $html4 = wppa_togo_field( $slug2 );
7816
- $html = array($html1, $html2, $html3, $html4);
7817
- wppa_setting_new(false, '20', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7818
 
7819
- $name = __('Renew photo crypt every', 'wp-photo-album-plus');
7820
- $desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
7821
- $help = __('The periodic times are an approximation', 'wp-photo-album-plus');
7822
- $slug = 'wppa_crypt_photos_every';
7823
- $opts = array( __('--- off ---', 'wp-photo-album-plus'),
7824
- __('hour', 'wp-photo-album-plus'),
7825
- __('day', 'wp-photo-album-plus'),
7826
- __('week', 'wp-photo-album-plus'),
7827
- __('month', 'wp-photo-album-plus'),
7828
- );
7829
- $vals = array( '0', '1', '24', '168', '720' );
7830
- $html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
7831
- wppa_setting_new(false, '21', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7832
-
7833
- $name = __('Create orietation sources', 'wp-photo-album-plus');
7834
- $desc = __('Creates correctly oriented pseudo source file.', 'wp-photo-album-plus');
7835
- $help = '';
7836
- $slug1 = 'wppa_create_o1_files_skip_one';
7837
- $slug2 = 'wppa_create_o1_files';
7838
- $html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'create_o1_files_skip_one', '0', true );
7839
- $html2 = wppa_maintenance_button( $slug2 );
7840
- $html3 = wppa_status_field( $slug2 );
7841
- $html4 = wppa_togo_field( $slug2 );
7842
- $html = array($html1, $html2, $html3, $html4);
7843
- wppa_setting_new(false, '22', $name, $desc, $html, $help);
7844
 
7845
- $name = __('Clear ratings', 'wp-photo-album-plus');
7846
- $desc = __('Reset all ratings.', 'wp-photo-album-plus');
7847
- $help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
7848
- $slug = 'wppa_rating_clear';
7849
- $html1 = '';
7850
- $html2 = wppa_ajax_button('', 'rating_clear');
7851
- $html3 = '';
7852
- $html4 = '';
7853
- $html = array($html1, $html2, $html3, $html4);
7854
- wppa_setting_new(false, '23', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7855
 
7856
- $name = __('Clear viewcounts', 'wp-photo-album-plus');
7857
- $desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
7858
- $help = __('WARNING: If checked, this will clear all viewcounts in the system!', 'wp-photo-album-plus');
7859
- $slug = 'wppa_viewcount_clear';
7860
- $html1 = '';
7861
- $html2 = wppa_ajax_button('', 'viewcount_clear');
7862
- $html3 = '';
7863
- $html4 = '';
7864
- $html = array($html1, $html2, $html3, $html4);
7865
- wppa_setting_new(false, '24', $name, $desc, $html, $help);
 
7866
 
7867
- $name = __('Reset IPTC', 'wp-photo-album-plus');
7868
- $desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
7869
- $help = __('WARNING: If checked, this will clear all IPTC data in the system!', 'wp-photo-album-plus');
7870
- $slug = 'wppa_iptc_clear';
7871
- $html1 = '';
7872
- $html2 = wppa_ajax_button('', 'iptc_clear');
7873
- $html3 = '';
7874
- $html4 = '';
7875
- $html = array($html1, $html2, $html3, $html4);
7876
- wppa_setting_new(false, '25', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7877
 
7878
- $name = __('Reset EXIF', 'wp-photo-album-plus');
7879
- $desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
7880
- $help = __('WARNING: If checked, this will clear all EXIF data in the system!', 'wp-photo-album-plus');
7881
- $slug = 'wppa_exif_clear';
7882
- $html1 = '';
7883
- $html2 = wppa_ajax_button('', 'exif_clear');
7884
- $html3 = '';
7885
- $html4 = '';
7886
- $html = array($html1, $html2, $html3, $html4);
7887
- wppa_setting_new(false, '26', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
7888
 
7889
- $name = __('Apply Default Photoname', 'wp-photo-album-plus');
7890
- $desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
7891
- $help = __('Puts the content of Table IX-D13 in all photo name.', 'wp-photo-album-plus');
7892
- $slug2 = 'wppa_apply_default_photoname_all';
7893
- $html1 = '';
7894
- $html2 = wppa_maintenance_button( $slug2 );
7895
- $html3 = wppa_status_field( $slug2 );
7896
- $html4 = wppa_togo_field( $slug2 );
7897
- $html = array($html1, $html2, $html3, $html4);
7898
- wppa_setting_new(false, '27', $name, $desc, $html, $help);
7899
 
7900
- $name = __('Apply New Photodesc', 'wp-photo-album-plus');
7901
- $desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
7902
- $help = __('Puts the content of Table IX-D5 in all photo descriptions.', 'wp-photo-album-plus');
7903
- $slug2 = 'wppa_apply_new_photodesc_all';
7904
- $html1 = '';
7905
- $html2 = wppa_maintenance_button( $slug2 );
7906
- $html3 = wppa_status_field( $slug2 );
7907
- $html4 = wppa_togo_field( $slug2 );
7908
- $html = array($html1, $html2, $html3, $html4);
7909
- wppa_setting_new(false, '28', $name, $desc, $html, $help);
7910
-
7911
- $name = __('Append to photodesc', 'wp-photo-album-plus');
7912
- $desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
7913
- $help = __('Appends a space character and the given text to the description of all photos.', 'wp-photo-album-plus');
7914
- $help .= '<br />'.__('First edit the text to append, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
7915
- $slug1 = 'wppa_append_text';
7916
- $slug2 = 'wppa_append_to_photodesc';
7917
- $html1 = wppa_input( $slug1, '200px' );
7918
- $html2 = wppa_maintenance_button( $slug2 );
7919
- $html3 = wppa_status_field( $slug2 );
7920
- $html4 = wppa_togo_field( $slug2 );
7921
- $html = array($html1, $html2, $html3, $html4);
7922
- wppa_setting_new(false, '29', $name, $desc, $html, $help);
7923
-
7924
- $name = __('Remove from photodesc', 'wp-photo-album-plus');
7925
- $desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
7926
- $help = __('Removes all occurrencies of the given text from the description of all photos.', 'wp-photo-album-plus');
7927
- $help .= '<br />'.__('First edit the text to remove, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
7928
- $slug1 = 'wppa_remove_text';
7929
- $slug2 = 'wppa_remove_from_photodesc';
7930
- $html1 = wppa_input( $slug1, '200px' );
7931
- $html2 = wppa_maintenance_button( $slug2 );
7932
- $html3 = wppa_status_field( $slug2 );
7933
- $html4 = wppa_togo_field( $slug2 );
7934
- $html = array($html1, $html2, $html3, $html4);
7935
- wppa_setting_new(false, '30', $name, $desc, $html, $help);
7936
 
7937
- $name = __('Remove empty albums', 'wp-photo-album-plus');
7938
- $desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
7939
- $help = __('Removes all albums that have no photos and no sub albums in it.', 'wp-photo-album-plus');
7940
- $slug2 = 'wppa_remove_empty_albums';
7941
- $html1 = '';
7942
- $html2 = wppa_maintenance_button( $slug2 );
7943
- $html3 = wppa_status_field( $slug2 );
7944
- $html4 = wppa_togo_field( $slug2 );
7945
- $html = array($html1, $html2, $html3, $html4);
7946
- wppa_setting_new(false, '31', $name, $desc, $html, $help);
7947
 
7948
- $name = __('Remove file-ext', 'wp-photo-album-plus');
7949
- $desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
7950
- $help = __('This may be required for old photos, uploaded when the option to set the name to the filename without extension was not yet available/selected.', 'wp-photo-album-plus');
7951
- $slug2 = 'wppa_remove_file_extensions';
7952
- $html1 = '';
7953
- $html2 = wppa_maintenance_button( $slug2 );
7954
- $html3 = wppa_status_field( $slug2 );
7955
- $html4 = wppa_togo_field( $slug2 );
7956
- $html = array($html1, $html2, $html3, $html4);
7957
- wppa_setting_new(false, '32', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7958
 
7959
- $name = __('Re-add file-ext', 'wp-photo-album-plus');
7960
- $desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus');
7961
- $help = '';
7962
- $slug2 = 'wppa_readd_file_extensions';
7963
- $html1 = '';
7964
- $html2 = wppa_maintenance_button( $slug2 );
7965
- $html3 = wppa_status_field( $slug2 );
7966
- $html4 = wppa_togo_field( $slug2 );
7967
- $html = array($html1, $html2, $html3, $html4);
7968
- wppa_setting_new(false, '33', $name, $desc, $html, $help);
7969
 
7970
- $name = __('All to lower', 'wp-photo-album-plus');
7971
- $desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
7972
- $help = __('Affects display files, thumbnail files, and saved extensions in database table. Leaves sourcefiles untouched', 'wp-photo-album-plus');
7973
- $help .= '<br />'.__('If both upper and lowercase files exist, the file with the uppercase extension will be removed.', 'wp-photo-album-plus');
7974
- $slug2 = 'wppa_all_ext_to_lower';
7975
- $html1 = '';
7976
- $html2 = wppa_maintenance_button( $slug2 );
7977
- $html3 = wppa_status_field( $slug2 );
7978
- $html4 = wppa_togo_field( $slug2 );
7979
- $html = array($html1, $html2, $html3, $html4);
7980
- wppa_setting_new(false, '34', $name, $desc, $html, $help);
7981
 
7982
- $name = __('Watermark all', 'wp-photo-album-plus');
7983
- $desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
7984
- $help = __('See Tab Watermark for the current watermark settings', 'wp-photo-album-plus');
7985
- $slug2 = 'wppa_watermark_all';
7986
- $html1 = '';
7987
- $html2 = wppa_maintenance_button( $slug2 );
7988
- $html3 = wppa_status_field( $slug2 );
7989
- $html4 = wppa_togo_field( $slug2 );
7990
- $html = array($html1, $html2, $html3, $html4);
7991
- wppa_setting_new(false, '35', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
7992
 
7993
- $name = __('Create all autopages', 'wp-photo-album-plus');
7994
- $desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
7995
- $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
7996
- $help .= '<br />'.__('Make sure you have a custom menu and the "Automatically add new top-level pages to this menu" box UNticked!!', 'wp-photo-album-plus');
7997
- $slug2 = 'wppa_create_all_autopages';
7998
- $html1 = '';
7999
- $html2 = wppa_maintenance_button( $slug2 );
8000
- $html3 = wppa_status_field( $slug2 );
8001
- $html4 = wppa_togo_field( $slug2 );
8002
- $html = array($html1, $html2, $html3, $html4);
8003
- wppa_setting_new(false, '36', $name, $desc, $html, $help);
8004
 
8005
- $name = __('Delete all autopages', 'wp-photo-album-plus');
8006
- $desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
8007
- $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
8008
- $help .= '';
8009
- $slug2 = 'wppa_delete_all_autopages';
8010
- $html1 = '';
8011
- $html2 = wppa_maintenance_button( $slug2 );
8012
- $html3 = wppa_status_field( $slug2 );
8013
- $html4 = wppa_togo_field( $slug2 );
8014
- $html = array($html1, $html2, $html3, $html4);
8015
- wppa_setting_new(false, '37', $name, $desc, $html, $help);
8016
-
8017
- $name = __('Leading zeroes', 'wp-photo-album-plus');
8018
- $desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
8019
- $help = __('You can extend the name with leading zeros, so alphabetic sort becomes equal to numeric sort order.', 'wp-photo-album-plus');
8020
- $slug1 = 'wppa_zero_numbers';
8021
- $slug2 = 'wppa_leading_zeros';
8022
- $html1 = wppa_input( $slug1, '50px' ).__('Total chars', 'wp-photo-album-plus');
8023
- $html2 = wppa_maintenance_button( $slug2 );
8024
- $html3 = wppa_status_field( $slug2 );
8025
- $html4 = wppa_togo_field( $slug2 );
8026
- $html = array($html1, $html2, $html3, $html4);
8027
- wppa_setting_new(false, '38', $name, $desc, $html, $help);
8028
 
8029
- $name = __('Add GPX tag', 'wp-photo-album-plus');
8030
- $desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
8031
- $help = '';
8032
- $slug2 = 'wppa_add_gpx_tag';
8033
- $html1 = wppa_cronjob_button( $slug2 );
8034
- $html2 = wppa_maintenance_button( $slug2 );
8035
- $html3 = wppa_status_field( $slug2 );
8036
- $html4 = wppa_togo_field( $slug2 );
8037
- $html = array($html1, $html2, $html3, $html4);
8038
- wppa_setting_new(false, '39', $name, $desc, $html, $help);
 
8039
 
8040
- $name = __('Add HD tag', 'wp-photo-album-plus');
8041
- $desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
8042
- $help = '';
8043
- $slug2 = 'wppa_add_hd_tag';
8044
- $html1 = wppa_cronjob_button( $slug2 );
8045
- $html2 = wppa_maintenance_button( $slug2 );
8046
- $html3 = wppa_status_field( $slug2 );
8047
- $html4 = wppa_togo_field( $slug2 );
8048
- $html = array($html1, $html2, $html3, $html4);
8049
- wppa_setting_new(false, '40', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
8050
 
8051
- if ( function_exists( 'ewww_image_optimizer') ) {
8052
- $name = __('Optimize files', 'wp-photo-album-plus');
8053
- $desc = __('Optimize with EWWW image optimizer', 'wp-photo-album-plus');
8054
  $help = '';
8055
- $slug2 = 'wppa_optimize_ewww';
8056
- $html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'optimize_ewww_skip_one', '0', true );
8057
  $html2 = wppa_maintenance_button( $slug2 );
8058
  $html3 = wppa_status_field( $slug2 );
8059
  $html4 = wppa_togo_field( $slug2 );
8060
  $html = array($html1, $html2, $html3, $html4);
8061
- wppa_setting_new(false, '41', $name, $desc, $html, $help);
8062
- }
8063
 
8064
- $name = __('Edit tag', 'wp-photo-album-plus');
8065
- $desc = __('Globally change a tagname.', 'wp-photo-album-plus');
8066
- $help = '';
8067
- $slug1 = 'wppa_tag_to_edit';
8068
- $slug2 = 'wppa_new_tag_value';
8069
- $slug3 = 'wppa_edit_tag';
8070
- $tags = wppa_get_taglist();
8071
- $opts = array(__('-select a tag-', 'wp-photo-album-plus'));
8072
- $vals = array( '' );
8073
- if ( $tags ) foreach( array_keys( $tags ) as $tag ) {
8074
- $opts[] = $tag;
8075
- $vals[] = $tag;
8076
- }
8077
- $html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus').'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
8078
- $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>';
8079
- $html3 = wppa_maintenance_button( $slug3 );
8080
- $html4 = wppa_status_field( $slug3 );
8081
- $html5 = wppa_togo_field( $slug3 );
8082
- $html = array( $html1 . '<br />' . $html2, $html3, $html4, $html5 );
8083
- wppa_setting_new( false, '42', $name, $desc, $html, $help);
8084
-
8085
- $name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
8086
- $desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
8087
- $help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
8088
- $help .= '<br />'.__('See Table IX-K4.7 for the configured lifetime.', 'wp-photo-album-plus');
8089
- $slug2 = 'wppa_sync_cloud';
8090
- $html1 = '';
8091
- $html2 = wppa_maintenance_button( $slug2 );
8092
- $html3 = wppa_status_field( $slug2 );
8093
- $html4 = wppa_togo_field( $slug2 );
8094
- $html = array($html1, $html2, $html3, $html4);
8095
- wppa_setting_new(false, '43', $name, $desc, $html, $help);
8096
-
8097
- $name = __('Fix tags', 'wp-photo-album-plus');
8098
- $desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
8099
- $help = __('Fixes tags to be conform current database rules.', 'wp-photo-album-plus');
8100
- $slug2 = 'wppa_sanitize_tags';
8101
- $html1 = '';
8102
- $html2 = wppa_maintenance_button( $slug2 );
8103
- $html3 = wppa_status_field( $slug2 );
8104
- $html4 = wppa_togo_field( $slug2 );
8105
- $html = array($html1, $html2, $html3, $html4);
8106
- wppa_setting_new(false, '44', $name, $desc, $html, $help);
8107
 
8108
- $name = __('Fix cats', 'wp-photo-album-plus');
8109
- $desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
8110
- $help = __('Fixes cats to be conform current database rules.', 'wp-photo-album-plus');
8111
- $slug2 = 'wppa_sanitize_cats';
8112
- $html1 = '';
8113
- $html2 = wppa_maintenance_button( $slug2 );
8114
- $html3 = wppa_status_field( $slug2 );
8115
- $html4 = wppa_togo_field( $slug2 );
8116
- $html = array($html1, $html2, $html3, $html4);
8117
- wppa_setting_new(false, '45', $name, $desc, $html, $help);
 
 
8118
 
8119
- $name = __('Set owner to name', 'wp-photo-album-plus');
8120
- $desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
8121
- $help = '';
8122
- $slug2 = 'wppa_owner_to_name_proc';
8123
- $html1 = '';
8124
- $html2 = wppa_maintenance_button( $slug2 );
8125
- $html3 = wppa_status_field( $slug2 );
8126
- $html4 = wppa_togo_field( $slug2 );
8127
- $html = array($html1, $html2, $html3, $html4);
8128
- wppa_setting_new(false, '46', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8129
 
8130
- $name = __('Move all photos', 'wp-photo-album-plus');
8131
- $desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
8132
- $help = '';
8133
- $slug2 = 'wppa_move_all_photos';
8134
- $html1 = '';
8135
- $html2 = wppa_maintenance_button( $slug2 );
8136
- $html3 = wppa_status_field( $slug2 );
8137
- $html4 = wppa_togo_field( $slug2 );
8138
- $html = array($html1, $html2, $html3, $html4);
8139
- wppa_setting_new(false, '47', $name, $desc, $html, $help);
8140
 
8141
- if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
 
 
 
 
 
 
 
 
 
8142
 
8143
- $name = __('From', 'wp-photo-album-plus');
8144
- $desc = __('Move from album number', 'wp-photo-album-plus');
8145
  $help = '';
8146
- $slug = 'wppa_move_all_photos_from';
8147
- $html = wppa_input($slug, '100px' );
8148
- $html = array($html, '', '', '');
8149
- wppa_setting_new(false, '48', $name, $desc, $html, $help);
 
 
 
8150
 
8151
- $name = __('To', 'wp-photo-album-plus');
8152
- $desc = __('Move to album number', 'wp-photo-album-plus');
8153
  $help = '';
8154
- $slug = 'wppa_move_all_photos_to';
8155
- $html = wppa_input($slug, '100px' );
8156
- $html = array($html, '', '', '');
8157
- wppa_setting_new(false, '49', $name, $desc, $html, $help);
 
 
 
8158
 
8159
- }
8160
- else { // Few albums: selectionbox
8161
 
8162
- $name = __('From', 'wp-photo-album-plus');
8163
- $desc = __('Move from album', 'wp-photo-album-plus');
8164
- $help = '';
8165
- $slug = 'wppa_move_all_photos_from';
8166
- $html = '<select' .
8167
- ' id=""' .
8168
- ' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_from\',this)"' .
8169
- ' name="move_all_photos_to"' .
8170
- ' style="float:left;max-width:220px;"' .
8171
- ' >'.
8172
- wppa_album_select_a(array( 'addpleaseselect'=>true,
8173
- 'path'=>true,
8174
- 'selected'=>wppa_get_option('wppa_move_all_photos_from')
8175
- )).
8176
- '</select>' .
8177
- '<img' .
8178
- ' id="img_move_all_photos_from"' .
8179
- ' class=""' .
8180
- ' src="'.wppa_get_imgdir().'star.ico"' .
8181
- ' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
8182
- ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8183
- ' />';
8184
- $html = array($html, '', '', '');
8185
- wppa_setting_new(false, '50', $name, $desc, $html, $help);
8186
-
8187
- $name = __('To', 'wp-photo-album-plus');
8188
- $desc = __('Move to album', 'wp-photo-album-plus');
8189
- $help = '';
8190
- $slug = 'wppa_move_all_photos_to';
8191
- $html = '<select' .
8192
- ' id=""' .
8193
- ' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_to\',this)"' .
8194
- ' name="move_all_photos_to"' .
8195
- ' style="float:left;max-width:220px;"' .
8196
- ' >'.
8197
- wppa_album_select_a(array( 'addpleaseselect'=>true,
8198
- 'path'=>true,
8199
- 'selected'=>wppa_get_option('wppa_move_all_photos_to')
8200
- )).
8201
- '</select>' .
8202
- '<img' .
8203
- ' id="img_move_all_photos_to"' .
8204
- ' class=""' .
8205
- ' src="'.wppa_get_imgdir().'star.ico"' .
8206
- ' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
8207
- ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8208
- ' />';
8209
- $html = array($html, '', '', '');
8210
- wppa_setting_new(false, '51', $name, $desc, $html, $help);
8211
- }
8212
 
8213
- $name = __('Remove hypens from photonames', 'wp-photo-album-plus');
8214
- $desc = __('Remove all hyphens from all photo names and replace them by spaces', 'wp-photo-album-plus');
8215
- $help = '';
8216
- $slug2 = 'wppa_photos_hyphens_to_spaces';
8217
- $html1 = wppa_cronjob_button( $slug2 );
8218
- $html2 = wppa_maintenance_button( $slug2 );
8219
- $html3 = wppa_status_field( $slug2 );
8220
- $html4 = wppa_togo_field( $slug2 );
8221
- $html = array($html1, $html2, $html3, $html4);
8222
- wppa_setting_new(false, '52', $name, $desc, $html, $help);
8223
 
8224
- $name = __('PNG to JPG', 'wp-photo-album-plus');
8225
- $desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
8226
- $help = '';
8227
- $slug2 = 'wppa_png_to_jpg';
8228
- $html1 = '';
8229
- $html2 = wppa_maintenance_button( $slug2 );
8230
- $html3 = wppa_status_field( $slug2 );
8231
- $html4 = wppa_togo_field( $slug2 );
8232
- $html = array($html1, $html2, $html3, $html4);
8233
- wppa_setting_new(false, '53', $name, $desc, $html, $help);
8234
 
8235
- $name = __('Fix mp4 meta data', 'wp-photo-album-plus');
8236
- $desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
8237
- $help = '';
8238
- $slug2 = 'wppa_fix_mp4_meta';
8239
- $html1 = '';
8240
- $html2 = wppa_maintenance_button( $slug2 );
8241
- $html3 = wppa_status_field( $slug2 );
8242
- $html4 = wppa_togo_field( $slug2 );
8243
- $html = array($html1, $html2, $html3, $html4);
8244
- wppa_setting_new(false, '54', $name, $desc, $html, $help);
8245
-
8246
- $name = __('Fix user ids', 'wp-photo-album-plus');
8247
- $desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
8248
- $help = __('Only used to update ratings and comments entered before version 7.3 to meet the new standards', 'wp-photo-album-plus');
8249
- $slug2 = 'wppa_fix_userids';
8250
- $html1 = wppa_cronjob_button( $slug2 );
8251
- $html2 = wppa_maintenance_button( $slug2 );
8252
- $html3 = wppa_status_field( $slug2 );
8253
- $html4 = wppa_togo_field( $slug2 );
8254
- $html = array($html1, $html2, $html3, $html4);
8255
- wppa_setting_new(false, '55', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8256
 
8257
- $name = __('Re-init custom and tags', 'wp-photo-album-plus');
8258
- $desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
8259
- $help = '';
8260
- $slug2 = 'wppa_fix_custom_tags';
8261
- $html1 = '';
8262
- $html2 = wppa_maintenance_button( $slug2 );
8263
- $html3 = wppa_status_field( $slug2 );
8264
- $html4 = wppa_togo_field( $slug2 );
8265
- $html = array($html1, $html2, $html3, $html4);
8266
- wppa_setting_new(false, '56', $name, $desc, $html, $help);
8267
-
8268
- if ( current_user_can( 'administrator' ) ) {
8269
- $name = __('Custom album proc', 'wp-photo-album-plus');
8270
- $desc = __('The php code to execute on all albums', 'wp-photo-album-plus');
8271
- $help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
8272
- $slug2 = 'wppa_custom_album_proc';
8273
- $html1 = wppa_textarea( $slug2 );
8274
  $html2 = wppa_maintenance_button( $slug2 );
8275
  $html3 = wppa_status_field( $slug2 );
8276
  $html4 = wppa_togo_field( $slug2 );
8277
  $html = array($html1, $html2, $html3, $html4);
8278
- wppa_setting_new(false, '57', $name, $desc, $html, $help);
8279
 
8280
- $name = __('Custom photo proc', 'wp-photo-album-plus');
8281
- $desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
8282
- $help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
8283
- $slug2 = 'wppa_custom_photo_proc';
8284
- $html1 = wppa_textarea( $slug2 );
8285
  $html2 = wppa_maintenance_button( $slug2 );
8286
  $html3 = wppa_status_field( $slug2 );
8287
  $html4 = wppa_togo_field( $slug2 );
8288
  $html = array($html1, $html2, $html3, $html4);
8289
- wppa_setting_new(false, '57', $name, $desc, $html, $help);
8290
- }
8291
 
8292
- $name = __('List Logfile', 'wp-photo-album-plus');
8293
- $desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
8294
- $help = '';
8295
- $slug1 = 'wppa_errorlog_purge';
8296
- $slug2 = 'wppa_list_errorlog';
8297
- $slug4 = 'wppa_logfile_on_menu';
8298
- $html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
8299
- $html2 = wppa_popup_button( $slug2 );
8300
- $html3 = __('On menu', 'wp-photo-album-plus');
8301
- $html4 = wppa_checkbox($slug4);
8302
- $html = array($html1, $html2, $html3, $html4);
8303
- wppa_setting_new(false, '58', $name, $desc, $html, $help);
8304
 
8305
- $name = __('List Ratings', 'wp-photo-album-plus');
8306
- $desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
8307
- $help = '';
8308
- $slug1 = '';
8309
- $slug2 = 'wppa_list_rating';
8310
- $html1 = '';
8311
- $html2 = wppa_popup_button( $slug2 );
8312
- $html3 = '';
8313
- $html4 = '';
8314
- $html = array($html1, $html2, $html3, $html4);
8315
- wppa_setting_new(false, '59', $name, $desc, $html, $help);
8316
 
8317
- $name = __('List Index', 'wp-photo-album-plus');
8318
- $desc = __('Show the content of the index table.', 'wp-photo-album-plus');
8319
- $help = '';
8320
- $slug1 = 'wppa_list_index_display_start';
8321
- $slug2 = 'wppa_list_index';
8322
- $html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').'</small>'.wppa_input( $slug1, '150px' );
8323
- $html2 = wppa_popup_button( $slug2 );
8324
- $html3 = '';
8325
- $html4 = '';
8326
- $clas = '';
8327
- $html = array($html1, $html2, $html3, $html4);
8328
- wppa_setting_new(false, '60', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8329
 
8330
- $name = __('List active sessions', 'wp-photo-album-plus');
8331
- $desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
8332
- $help = '';
8333
- $slug1 = '';
8334
- $slug2 = 'wppa_list_session';
8335
- $html1 = '';
8336
- $html2 = wppa_popup_button( $slug2 );
8337
- $html3 = '';
8338
- $html4 = '';
8339
- $html = array($html1, $html2, $html3, $html4);
8340
- wppa_setting_new(false, '61', $name, $desc, $html, $help);
 
8341
 
8342
- $name = __('List comments', 'wp-photo-album-plus');
8343
- $desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
8344
- $help = '';
8345
- $slug1 = 'wppa_list_comments_by';
8346
- $slug2 = 'wppa_list_comments';
8347
- $opts = array( 'Email', 'Name', 'Timestamp' );
8348
- $vals = array( 'email', 'name', 'timestamp' );
8349
- $html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
8350
- $html2 = wppa_popup_button( $slug2 );
8351
- $html3 = '';
8352
- $html4 = '';
8353
- $html = array($html1, $html2, $html3, $html4);
8354
- wppa_setting_new(false, '62', $name, $desc, $html, $help);
8355
 
8356
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8357
  }
8358
  }
8359
  break;
8360
 
8361
  case 'exif': {
8362
-
8363
- $desc = __('EXIF tags and their labels as found in the uploaded photos', 'wp-photo-album-plus');
8364
  {
8365
- wppa_setting_tab_description($desc);
 
8366
 
8367
- $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8368
- __('Tag', 'wp-photo-album-plus') => 'auto;',
8369
- __('Brand', 'wp-photo-album-plus') => 'auto;',
8370
- __('Description', 'wp-photo-album-plus') => 'auto;',
8371
- __('Status', 'wp-photo-album-plus') => 'auto;',
8372
- __('Help', 'wp-photo-album-plus') => '24px;',
8373
- );
8374
- wppa_setting_box_header_new($tab, $coldef);
8375
 
8376
- $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
8377
- WHERE photo = '0'
8378
- ORDER BY tag", ARRAY_A );
8379
 
8380
- if ( is_array( $labels ) ) {
8381
- $i = '1';
8382
- foreach ( $labels as $label ) {
8383
- $name = htmlspecialchars( $label['tag'] );
8384
 
8385
- $desc = '';
8386
- foreach ( $wppa_supported_camara_brands as $brand ) {
8387
- $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
8388
- if ( $lbl ) {
8389
- $desc .= '<br />' . $brand;
 
8390
  }
8391
- }
8392
 
8393
- $help = '';
8394
- $slug1 = 'wppa_exif_label_'.$name;
8395
- $slug2 = 'wppa_exif_status_'.$name;
8396
-
8397
- $html1 = wppa_edit( $slug1, htmlspecialchars( $label['description'] ) );
8398
- foreach ( $wppa_supported_camara_brands as $brand ) {
8399
- $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
8400
- if ( $lbl ) {
8401
- $html1 .= '<br /><span style="clear:left;float:left;" >' . $lbl . ':</span>';
 
8402
  }
8403
- }
8404
 
8405
- $opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
8406
- $vals = array('display', 'hide', 'option');
8407
- $html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $opts, $vals);
8408
- $html = array($html1, $html2);
8409
- wppa_setting_new(false, $i, $name, $desc, $html, $help);
8410
- $i++;
 
8411
  }
8412
- }
8413
 
8414
- wppa_setting_box_footer_new();
8415
  }
8416
  }
8417
  break;
8418
 
8419
  case 'iptc': {
8420
-
8421
- $desc = __('IPTC tags and their labels as found in the uploaded photos', 'wp-photo-album-plus');
8422
  {
8423
- wppa_setting_tab_description($desc);
8424
-
8425
- $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8426
- __('Tag', 'wp-photo-album-plus') => 'auto;',
8427
- __('Description', 'wp-photo-album-plus') => 'auto;',
8428
- __('Status', 'wp-photo-album-plus') => 'auto;',
8429
- __('Help', 'wp-photo-album-plus') => '24px;',
8430
- );
8431
- wppa_setting_box_header_new($tab, $coldef);
8432
 
8433
- $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_iptc
8434
- WHERE photo = '0'
8435
- ORDER BY tag", ARRAY_A );
 
 
 
 
8436
 
8437
- if ( is_array( $labels ) ) {
8438
- $i = '1';
8439
- foreach ( $labels as $label ) {
8440
- $name = htmlspecialchars( $label['tag'] );
8441
- $desc = '';
8442
- $help = '';
8443
- $slug1 = 'wppa_iptc_label_'.$name;
8444
- $slug2 = 'wppa_iptc_status_'.$name;
8445
- $html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
8446
- $opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
8447
- $vals = array('display', 'hide', 'option');
8448
- $html2 = wppa_select_e($slug2, $label['status'], $opts, $vals);
8449
- wppa_setting_new(false, $i, $name, $html1, $html2, $help);
8450
- $i++;
 
 
 
 
 
8451
  }
8452
- }
8453
 
8454
- wppa_setting_box_footer_new();
8455
  }
8456
  }
8457
  break;
8458
 
8459
  case 'gpx': {
8460
-
8461
- $desc = __('GPX configuration', 'wp-photo-album-plus');
8462
  {
8463
- wppa_setting_tab_description($desc);
8464
- wppa_setting_box_header_new($tab);
 
8465
 
8466
- $name = __('GPX Implementation', 'wp-photo-album-plus');
8467
- $desc = __('The way the maps are produced.', 'wp-photo-album-plus');
8468
- $help = __('Select the way the maps are produced.', 'wp-photo-album-plus');
8469
- $slug = 'wppa_gpx_implementation';
8470
- $opts = array( __('WPPA+ Embedded code', 'wp-photo-album-plus'), __('External plugin', 'wp-photo-album-plus') );
8471
- $vals = array( 'wppa-plus-embedded', 'external-plugin' );
8472
- $onch = 'wppaRefreshAfter()';
8473
- $html = wppa_select($slug, $opts, $vals, $onch);
8474
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
8475
 
8476
- $name = __('Map height', 'wp-photo-album-plus');
8477
- $desc = __('The height of the map display.', 'wp-photo-album-plus');
8478
- $help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
8479
- $slug = 'wppa_map_height';
8480
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
8481
- wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
8482
-
8483
- $name = __('Google maps API key', 'wp-photo-album-plus');
8484
- $desc = __('Enter your Google maps api key here if you have one.', 'wp-photo-album-plus');
8485
- $help = '';
8486
- $slug = 'wppa_map_apikey';
8487
- $html = wppa_input($slug, '300px', '');
8488
- wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
8489
-
8490
- $name = __('GPX Shortcode', 'wp-photo-album-plus');
8491
- $desc = __('The shortcode to be used for the gpx feature.', 'wp-photo-album-plus');
8492
- $help = __('Enter / modify the shortcode to be generated for the gpx plugin. It must contain w#lat and w#lon as placeholders for the latitude and longitude.', 'wp-photo-album-plus');
8493
- $help .= '<br />' . __('This item is required for using an external Google maps viewer plugin only', 'wp-photo-album-plus');
8494
- $slug = 'wppa_gpx_shortcode';
8495
- $html = wppa_input($slug, '500px');
8496
- wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
8497
-
8498
- $name = __('Zoom level', 'wp-photo-album-plus');
8499
- $desc = __('The zoomlevel for GPX maps', 'wp-photo-album-plus');
8500
- $help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
8501
- $slug = 'wppa_geo_zoom';
8502
- $opts = array('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25',);
8503
- $vals = $opts;
8504
- $html = wppa_select($slug, $opts, $vals);
8505
- wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
8506
 
8507
- wppa_setting_box_footer_new();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8508
  }
8509
  }
8510
  break;
8511
 
8512
  case 'custom': {
8513
-
8514
- $desc = __( 'Album custom data fields configuration', 'wp-photo-album-plus' );
8515
  {
 
8516
  if ( wppa_switch( 'album_custom_fields' ) ) {
8517
  $coldef = array( '#' => '24px;',
8518
  __('Name', 'wp-photo-album-plus') => 'auto;',
@@ -8545,9 +8561,9 @@ global $wppa_cur_mtab;
8545
  wppa_setting_box_footer_new();
8546
  }
8547
  }
8548
-
8549
- $desc = __( 'Photo custom data fields configuration', 'wp-photo-album-plus' );
8550
  {
 
8551
  if ( wppa_switch( 'custom_fields' ) ) {
8552
  $coldef = array( '#' => '24px;',
8553
  __('Name', 'wp-photo-album-plus') => 'auto;',
@@ -8651,9 +8667,9 @@ global $wppa_cur_mtab;
8651
  break;
8652
 
8653
  case 'watermark': {
8654
-
8655
- $desc = __('Watermark related settings', 'wp-photo-album-plus');
8656
  {
 
8657
  wppa_setting_tab_description($desc);
8658
  wppa_setting_box_header_new($tab);
8659
 
@@ -8830,9 +8846,9 @@ global $wppa_cur_mtab;
8830
  break;
8831
 
8832
  case 'constants': {
8833
-
8834
- $desc = __('System constants (read only)', 'wp-photo-album-plus');
8835
  {
 
8836
  wppa_setting_tab_description($desc);
8837
 
8838
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
@@ -8847,7 +8863,7 @@ global $wppa_cur_mtab;
8847
  $name = 'WPPA_ALBUMS';
8848
  $desc = __('Albums db table name.', 'wp-photo-album-plus');
8849
  $help = '';
8850
- $html1 = WPPA_ALBUMS;
8851
  $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
8852
  __('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
8853
  '</a> ' .
@@ -9064,130 +9080,130 @@ global $wppa_cur_mtab;
9064
  break;
9065
 
9066
  case 'misc': {
9067
-
9068
- $desc = __('Miscellaneous settings', 'wp-photo-album-plus');
9069
  {
9070
- wppa_setting_tab_description($desc);
9071
- wppa_setting_box_header_new($tab);
 
9072
 
9073
- $name = __('Album sequence default', 'wp-photo-album-plus');
9074
- $desc = __('Album ordering sequence method.', 'wp-photo-album-plus');
9075
- $help = __('Specify the way the albums should be ordered.', 'wp-photo-album-plus');
9076
- $slug = 'wppa_list_albums_by';
9077
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
9078
- __('Order #', 'wp-photo-album-plus'),
9079
- __('Name', 'wp-photo-album-plus'),
9080
- __('Random', 'wp-photo-album-plus'),
9081
- __('Timestamp', 'wp-photo-album-plus'),
9082
- __('Order # desc', 'wp-photo-album-plus'),
9083
- __('Name desc', 'wp-photo-album-plus'),
9084
- __('Timestamp desc', 'wp-photo-album-plus'),
9085
- );
9086
- $vals = array( '0',
9087
- '1',
9088
- '2',
9089
- '3',
9090
- '5',
9091
- '-1',
9092
- '-2',
9093
- '-5'
9094
- );
9095
- $html = wppa_select($slug, $opts, $vals);
9096
- wppa_setting_new($slug, '1', $name, $desc, $html, $help);
9097
 
9098
- $name = __('Photo sequence default', 'wp-photo-album-plus');
9099
- $desc = __('Photo ordering sequence method.', 'wp-photo-album-plus');
9100
- $help = __('Specify the way the photos should be ordered. This is the default setting. You can overrule the default sorting order on a per album basis.', 'wp-photo-album-plus');
9101
- $slug = 'wppa_list_photos_by';
9102
- $opts = array( __('--- none ---', 'wp-photo-album-plus'),
9103
- __('Order #', 'wp-photo-album-plus'),
9104
- __('Name', 'wp-photo-album-plus'),
9105
- __('Random', 'wp-photo-album-plus'),
9106
- __('Rating mean value', 'wp-photo-album-plus'),
9107
- __('Number of votes', 'wp-photo-album-plus'),
9108
- __('Timestamp', 'wp-photo-album-plus'),
9109
- __('EXIF Date', 'wp-photo-album-plus'),
9110
- __('Order # desc', 'wp-photo-album-plus'),
9111
- __('Name desc', 'wp-photo-album-plus'),
9112
- __('Rating mean value desc', 'wp-photo-album-plus'),
9113
- __('Number of votes desc', 'wp-photo-album-plus'),
9114
- __('Timestamp desc', 'wp-photo-album-plus'),
9115
- __('EXIF Date desc', 'wp-photo-album-plus')
9116
- );
9117
- $vals = array( '0',
9118
- '1',
9119
- '2',
9120
- '3',
9121
- '4',
9122
- '6',
9123
- '5',
9124
- '7',
9125
- '-1',
9126
- '-2',
9127
- '-4',
9128
- '-6',
9129
- '-5',
9130
- '-7'
9131
- );
9132
- $html = wppa_select($slug, $opts, $vals);
9133
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
9134
 
9135
- $name = __('Default coverphoto selection', 'wp-photo-album-plus');
9136
- $desc = __('Default select cover photo method.', 'wp-photo-album-plus');
9137
- $help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
9138
- $help .= '<br />' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
9139
- $opts = array( __('--- random ---', 'wp-photo-album-plus'),
9140
- __('--- random featured ---', 'wp-photo-album-plus'),
9141
- __('--- most recent added ---', 'wp-photo-album-plus'),
9142
- __('--- random from (grand)children ---', 'wp-photo-album-plus'),
9143
- __('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
9144
- __('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
9145
- );
9146
- $vals = array('-9', '-1', '-2', '-3', '-4', '-5');
9147
- $slug = 'wppa_main_photo';
9148
- $html = wppa_select($slug, $opts, $vals);
9149
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
9150
 
9151
- $name = __('Related count', 'wp-photo-album-plus');
9152
- $desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
9153
- $help = __('When using shortcodes like [wppa type="album" album="#related,desc,23"], the maximum number is 23. Omitting the number gives the maximum of this setting.', 'wp-photo-album-plus');
9154
- $slug = 'wppa_related_count';
9155
- $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
9156
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
9157
 
9158
- $name = __('Max file name length', 'wp-photo-album-plus');
9159
- $desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus');
9160
- $help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
9161
- $slug = 'wppa_max_filename_length';
9162
- $html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
9163
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
9164
 
9165
- $name = __('Max photo name length', 'wp-photo-album-plus');
9166
- $desc = __('The max length of a photo name.', 'wp-photo-album-plus');
9167
- $help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
9168
- $slug = 'wppa_max_photoname_length';
9169
- $html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
9170
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
9171
 
9172
- $name = __('Default Video width', 'wp-photo-album-plus');
9173
- $desc = __('The width of most videos', 'wp-photo-album-plus');
9174
- $help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
9175
- $slug = 'wppa_video_width';
9176
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
9177
- wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
9178
 
9179
- $name = __('Default Video height', 'wp-photo-album-plus');
9180
- $desc = __('The height of most videos', 'wp-photo-album-plus');
9181
- $help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
9182
- $slug = 'wppa_video_height';
9183
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
9184
- wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('enable_video'));
9185
 
9186
- wppa_setting_box_footer_new();
9187
  }
9188
-
9189
- $desc = __('Panorma related settings', 'wp-photo-album-plus');
9190
  {
 
9191
  if ( wppa_switch( 'enable_panorama' ) ) {
9192
 
9193
  wppa_setting_tab_description($desc);
@@ -9289,9 +9305,9 @@ global $wppa_cur_mtab;
9289
  break;
9290
 
9291
  case 'miscadv': {
9292
-
9293
- $desc = __('Advanced miscellaneous settings', 'wp-photo-album-plus');
9294
  {
 
9295
  wppa_setting_tab_description($desc);
9296
  wppa_setting_box_header_new($tab);
9297
 
@@ -9393,9 +9409,9 @@ global $wppa_cur_mtab;
9393
 
9394
  wppa_setting_box_footer_new();
9395
  }
9396
-
9397
- $desc = __('Logging', 'wp-photo-album-plus');
9398
  {
 
9399
  wppa_setting_tab_description($desc);
9400
  wppa_setting_box_header_new($tab);
9401
 
@@ -9450,9 +9466,9 @@ global $wppa_cur_mtab;
9450
 
9451
  wppa_setting_box_footer_new();
9452
  }
9453
-
9454
- $desc = __('External services related settings and actions.', 'wp-photo-album-plus');
9455
  {
 
9456
  wppa_setting_tab_description($desc);
9457
  wppa_setting_box_header_new($tab);
9458
 
@@ -9674,9 +9690,9 @@ global $wppa_cur_mtab;
9674
 
9675
  wppa_setting_box_footer_new();
9676
  }
9677
-
9678
- $desc = __( 'Other plugins related settings' , 'wp-photo-album-plus');
9679
  {
 
9680
  wppa_setting_tab_description($desc);
9681
  wppa_setting_box_header_new($tab);
9682
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.010
7
  *
8
  */
9
 
28
  global $wppa_setting_class;
29
  global $wppa_cur_tab;
30
  global $wppa_cur_mtab;
31
+ global $wppa_requested_subtab;
32
+ global $wppa_requested_items;
33
+ global $wppa_tab_names;
34
+ global $wppa_subtab_names;
35
 
36
  // Start test area
37
 
398
  wppa_error_message(__("Please remove 'define( 'DISABLE_WP_CRON', true );' from wp-config.php", 'wp-photo-album-plus' ) );
399
  }
400
 
 
 
 
 
 
 
 
 
 
401
  // Check for inconsistencies
402
  if ( ( wppa_opt( 'thumbtype' ) == 'default' ) && (
403
  wppa_opt( 'tf_width' ) < wppa_opt( 'thumbsize' ) ||
404
  wppa_opt( 'tf_width_alt') < wppa_opt( 'thumbsize_alt' ) ||
405
  wppa_opt( 'tf_height' ) < wppa_opt( 'thumbsize' ) ||
406
  wppa_opt( 'tf_height_alt') < wppa_opt( 'thumbsize_alt' ) ) ) {
407
+ wppa_warning_message( __( 'A thumbframe width or height should not be smaller than a thumbnail size.' , 'wp-photo-album-plus') . wppa_see_also( 'thumbs', '1', '1.2.5..8' ) );
408
  }
409
 
410
  // Check for 'many' albums
653
  $advan = true;
654
  }
655
 
656
+ // See if specific item is requested
657
+ $wppa_requested_subtab = $subtab;
658
+ $wppa_requested_items = false;
659
+ if ( isset( $_REQUEST['wppa-item'] ) ) {
660
+ if ( $_REQUEST['wppa-item'] === '0' ) {
661
+ $wppa_requested_items = array( '0' );
662
+ }
663
+ else {
664
+ $wppa_requested_items = explode( '.', wppa_expand_enum( sanitize_text_field( $_REQUEST['wppa-item'] ) ) );
665
+ }
666
+ }
667
+
668
  // The master header selectors
669
  echo '<ul class="widefat wppa-master-tabs" >';
670
  wppa_master_tab( 'basic', 'general', __( 'Basic settings', 'wp-photo-album-plus' ), $basic );
671
  wppa_master_tab( 'advanced', 'generaladv', __( 'Advanced settings', 'wp-photo-album-plus' ), $advan );
672
  echo '</ul>';
673
 
674
+ // The tabs
675
  {
676
  echo '<ul class="widefat wppa-setting-tabs" >';
677
+ wppa_setting_tab( 'general', $wppa_tab_names['general'], $basic );
678
+ wppa_setting_tab( 'generaladv', $wppa_tab_names['generaladv'], $advan );
679
+ wppa_setting_tab( 'layout', $wppa_tab_names['layout'], $basic );
680
+ wppa_setting_tab( 'covers', $wppa_tab_names['covers'], $basic );
681
+ wppa_setting_tab( 'photos', $wppa_tab_names['photos'], $basic );
682
+ wppa_setting_tab( 'thumbs', $wppa_tab_names['thumbs'], $basic );
683
+ wppa_setting_tab( 'slide', $wppa_tab_names['slide'], $basic );
684
+ wppa_setting_tab( 'lightbox', $wppa_tab_names['lightbox'], $basic );
685
+ wppa_setting_tab( 'comments', $wppa_tab_names['comments'], $basic && wppa_switch( 'show_comments' ) );
686
+ wppa_setting_tab( 'rating', $wppa_tab_names['rating'], $basic && wppa_switch( 'rating_on' ) );
687
+ wppa_setting_tab( 'search', $wppa_tab_names['search'], $basic );
688
+ wppa_setting_tab( 'widget', $wppa_tab_names['widget'], $basic );
689
+ wppa_setting_tab( 'links', $wppa_tab_names['links'], $basic );
690
+ wppa_setting_tab( 'users', $wppa_tab_names['users'], $advan && wppa_switch( 'user_upload_on' ) );
691
+ wppa_setting_tab( 'email', $wppa_tab_names['email'], $advan && wppa_switch( 'email_on' ) );
692
+ wppa_setting_tab( 'share', $wppa_tab_names['share'], $advan && wppa_switch( 'share_on' ) || wppa_switch( 'share_on_lightbox' ) );
693
+ wppa_setting_tab( 'system', $wppa_tab_names['system'], $advan );
694
+ wppa_setting_tab( 'files', $wppa_tab_names['files'], $advan );
695
+ wppa_setting_tab( 'new', $wppa_tab_names['new'], $advan );
696
+ wppa_setting_tab( 'admin', $wppa_tab_names['admin'], $advan );
697
+ wppa_setting_tab( 'maintenance', $wppa_tab_names['maintenance'], $advan );
698
+ wppa_setting_tab( 'exif', $wppa_tab_names['exif'], $advan && wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
699
+ wppa_setting_tab( 'iptc', $wppa_tab_names['iptc'], $advan && wppa_switch( 'save_iptc' ) && function_exists('exif_read_data') );
700
+ wppa_setting_tab( 'gpx', $wppa_tab_names['gpx'], $advan && wppa_switch( 'save_gpx' ) && wppa_switch( 'save_exif' ) && function_exists('exif_read_data') );
701
+ wppa_setting_tab( 'watermark', $wppa_tab_names['watermark'], $advan && wppa_switch( 'watermark_on' ) );
702
+ wppa_setting_tab( 'custom', $wppa_tab_names['custom'], $advan && ( wppa_switch( 'album_custom_fields' ) || wppa_switch( 'custom_fields' ) ) );
703
+ wppa_setting_tab( 'constants', $wppa_tab_names['constants'], $advan );
704
+ wppa_setting_tab( 'misc', $wppa_tab_names['misc'], $basic );
705
+ wppa_setting_tab( 'miscadv', $wppa_tab_names['miscadv'], $advan );
706
  echo '</ul>';
707
  }
708
 
764
  });
765
  jQuery(".wppa-tabdesc").each(function(){
766
  jQuery(this).css("background-color", "#eeeeee");
767
+ jQuery(this).attr("data-inactive","1");
768
  });
769
  jQuery( "#"+clas ).show();
770
  jQuery( ".wppa-tabdesc-"+clas ).css("background-color", "#ffffff");
773
  else {
774
  jQuery( "#"+clas ).hide();
775
  jQuery( ".wppa-tabdesc-"+clas ).css("background-color", "#eeeeee");
776
+ jQuery(this).attr("data-inactive","0");
777
  wppa_setCookie(clas,"off",30);
778
  }
779
  jQuery( "#"+clas+"-cm" ).hide();
784
  wppaAjaxUpdateOptionValue( "heartbeat", heartbeat );
785
  }, 10000 );
786
  jQuery(document).ready(function(){setTimeout(function(){
 
787
  jQuery("#wppa-setting-content").show();
788
+ },10)}); ' .
789
+ ( $subtab ? '
790
+ jQuery(document).ready(function(){setTimeout(function(){
791
+ if (jQuery(".' . $subtab . '").attr("data-inactive") == "1") jQuery(".' . $subtab . '").trigger("click");
792
+ },100)});' : ''
793
+ ) . '
794
  </script>';
795
  }
796
 
803
 
804
  case 'general':
805
  case 'generaladv': {
806
+ // On this tab you can select the features you want to use
 
807
  {
808
+ $desc = $wppa_subtab_names[$tab]['1'];
809
  wppa_setting_tab_description($desc);
810
  wppa_setting_box_header_new($tab);
811
 
813
  $desc = __('Enables photo support', 'wp-photo-album-plus');
814
  $help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
815
  $slug = '';
816
+ $html = '<input type="checkbox" style="float:left;" checked disabled >' . wppa_see_also( 'photos', '1' );
817
  wppa_setting_new($slug, '0', $name, $desc, $html, $help);
818
 
819
  $name = __('Enable Video', 'wp-photo-album-plus');
820
  $desc = __('Enables video support.', 'wp-photo-album-plus');
821
  $help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
822
  $slug = 'wppa_enable_video';
823
+ $onch = 'wppaRefreshAfter();';
824
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'misc', '1', '7.8', 'enable_video' ) . wppa_see_also( 'users', '1', '2', 'enable_video' );
825
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
826
 
827
  $name = __('Enable pdf', 'wp-photo-album-plus');
828
  $desc = __('Enables the support of pdf files', 'wp-photo-album-plus');
829
  $help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
830
  $slug = 'wppa_enable_pdf';
831
+ $html = wppa_checkbox($slug) . ( wppa_opt( 'art_monkey_link' ) == 'new' ? wppa_see_also( 'links', '3', '3' ) : '' );
832
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
833
 
834
  $name = __('Enable Audio', 'wp-photo-album-plus');
835
  $desc = __('Enables audio support.', 'wp-photo-album-plus');
836
  $help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
837
  $slug = 'wppa_enable_audio';
838
+ $onch = 'wppaRefreshAfter();';
839
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '3', 'enable_audio' );
840
  wppa_setting_new($slug, '3', $name, $desc, $html, $help);
841
 
842
  $name = __('Enable Comments', 'wp-photo-album-plus');
843
  $desc = __('Enables the comments system.', 'wp-photo-album-plus');
844
  $help = __('Display the comments box under the slideshow images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
845
  $slug = 'wppa_show_comments';
846
+ $onch = 'wppaRefreshAfter();';
847
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'comments', '1', '', 'show_comments' );
848
  wppa_setting_new($slug, '4', $name, $desc, $html, $help);
849
 
850
  $name = __('Enable Ratings', 'wp-photo-album-plus');
851
  $desc = __('Enables the rating system.', 'wp-photo-album-plus');
852
  $help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
853
  $slug = 'wppa_rating_on';
854
+ $onch = 'wppaRefreshAfter();';
855
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'rating', '1', '', 'rating_on' );
856
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
857
 
858
  $name = __('Enable User uploads', 'wp-photo-album-plus');
859
  $desc = __('Enables frontend upload.', 'wp-photo-album-plus');
860
  $help = '';
861
  $slug = 'wppa_user_upload_on';
862
+ $onch = 'wppaRefreshAfter();';
863
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'users', '1', '', 'user_upload_on' );
864
  wppa_setting_new($slug, '6', $name, $desc, $html, $help);
865
 
866
  $name = __('Enable Email', 'wp-photo-album-plus');
867
  $desc = __('Enables sending emails when albums, photos or comments are entered.', 'wp-photo-album-plus');
868
  $help = __('See Tab Emails for detailed settings', 'wp-photo-album-plus');
869
  $slug = 'wppa_email_on';
870
+ $onch = 'wppaRefreshAfter();';
871
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'email', '1', '', 'email_on' );
872
  wppa_setting_new($slug, '7', $name, $desc, $html, $help);
873
 
874
  $name = __('Enable EXIF', 'wp-photo-album-plus');
875
  $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
876
  $help = __('You will need this if you enabled the display of exif data in the photo descriptions.', 'wp-photo-album-plus');
877
  $slug = 'wppa_save_exif';
878
+ $onch = 'wppaRefreshAfter();';
879
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'exif', '1', '', 'save_exif' );
880
  wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
881
 
882
  $name = __('Enable IPTC', 'wp-photo-album-plus');
883
  $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
884
  $help = __('You will need this if you enabled the display of iptc data in the photo descriptions.', 'wp-photo-album-plus');
885
  $slug = 'wppa_save_iptc';
886
+ $onch = 'wppaRefreshAfter();';
887
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'iptc', '1', '', 'save_iptc' );
888
  wppa_setting_new($slug, '9', $name, $desc, $html, $help, function_exists('exif_read_data') );
889
 
890
  $name = __('Enable GPX', 'wp-photo-album-plus');
891
  $desc = __('Store the gpx data from the photo into the exif db table', 'wp-photo-album-plus');
892
  $help = __('You will need this if you enabled the display of gpx data in the photo descriptions.', 'wp-photo-album-plus');
893
  $slug = 'wppa_save_gpx';
894
+ $onch = 'wppaRefreshAfter();';
895
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'gpx', '1', '', 'save_gpx' );
896
  wppa_setting_new($slug, '10', $name, $desc, $html, $help, function_exists('exif_read_data') && wppa_switch( 'save_exif' ) );
897
 
898
  $name = __('Enable Custom data albums', 'wp-photo-album-plus');
899
  $desc = __('Define up to 10 custom data fields for albums.', 'wp-photo-album-plus');
900
  $help = '';
901
  $slug = 'wppa_album_custom_fields';
902
+ $onch = 'wppaRefreshAfter();';
903
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '1', '', 'album_custom_fields' );
904
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
905
 
906
  $name = __('Enable Custom data photos', 'wp-photo-album-plus');
907
  $desc = __('Define up to 10 custom data fields for photos.', 'wp-photo-album-plus');
908
  $help = '';
909
  $slug = 'wppa_custom_fields';
910
+ $onch = 'wppaRefreshAfter();';
911
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'custom', '2', '', 'custom_fields' );
912
  wppa_setting_new($slug, '12', $name, $desc, $html, $help);
913
 
914
  $name = __('Enable Watermark', 'wp-photo-album-plus');
915
  $desc = __('Enable the application of watermarks.', 'wp-photo-album-plus');
916
+ $help = '';
917
  $slug = 'wppa_watermark_on';
918
+ $onch = 'wppaRefreshAfter();';
919
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'watermark', '1', '', 'watermark_on' );
920
  wppa_setting_new($slug, '13', $name, $desc, $html, $help);
921
 
922
  $name = __('Enable shortcode [photo ..]', 'wp-photo-album-plus');
923
  $desc = __('Make the use of shortcode [photo ..] possible', 'wp-photo-album-plus');
924
  $help = __('Only disable this when there is a conflict with another plugin', 'wp-photo-album-plus');
925
  $slug = 'wppa_photo_shortcode_enabled';
926
+ $onch = 'wppaRefreshAfter();';
927
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'photos', '2', '', 'photo_shortcode_enabled' );
928
  wppa_setting_new($slug, '14', $name, $desc, $html, $help);
929
 
930
  wppa_setting_box_footer_new();
933
  break;
934
 
935
  case 'layout': {
936
+ // General layout settings
937
+ $desc = $wppa_subtab_names[$tab]['1'];
938
  {
939
  wppa_setting_tab_description($desc);
940
  wppa_setting_box_header_new($tab);
1026
 
1027
  wppa_setting_box_footer_new();
1028
  }
1029
+ // Breadcrumb specifications
1030
+ $desc = $wppa_subtab_names[$tab]['2'];
1031
  {
1032
  wppa_setting_tab_description($desc);
1033
  wppa_setting_box_header_new($tab);
1167
 
1168
  wppa_setting_box_footer_new();
1169
  }
1170
+ // Navigation symbol specifications
1171
+ $desc = $wppa_subtab_names[$tab]['3'];
1172
  {
1173
  wppa_setting_tab_description($desc);
1174
  wppa_setting_box_header_new($tab);
1358
  </script>';
1359
 
1360
  }
1361
+ // Multimedia icon and stubfile specifications
1362
+ $desc = $wppa_subtab_names[$tab]['4'];
1363
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
1364
  {
1365
  wppa_setting_tab_description($desc);
1434
 
1435
  wppa_setting_box_footer_new();
1436
  }
1437
+ // Fonts
1438
+ $desc = $wppa_subtab_names[$tab]['5'];
1439
  {
1440
  $coldef = array();
1441
  wppa_setting_tab_description($desc);
1630
  break;
1631
 
1632
  case 'covers': {
1633
+ // Album cover size specifications
1634
+ $desc = $wppa_subtab_names[$tab]['1'];
1635
  {
1636
  wppa_setting_tab_description($desc);
1637
  wppa_setting_box_header_new($tab);
1737
 
1738
  wppa_setting_box_footer_new();
1739
  }
1740
+ // Album cover options
1741
+ $desc = $wppa_subtab_names[$tab]['2'];
1742
  {
1743
  wppa_setting_tab_description($desc);
1744
  wppa_setting_box_header_new($tab);
1825
 
1826
  wppa_setting_box_footer_new();
1827
  }
1828
+ // Album cover layout settings
1829
+ $desc = $wppa_subtab_names[$tab]['3'];
1830
  {
1831
  wppa_setting_tab_description($desc);
1832
  wppa_setting_box_header_new($tab);
1919
  break;
1920
 
1921
  case 'photos': {
1922
+ // Photo specifications
1923
+ $desc = $wppa_subtab_names[$tab]['1'];
1924
  {
1925
  wppa_setting_tab_description($desc);
1926
  wppa_setting_box_header_new($tab);
1984
 
1985
  wppa_setting_box_footer_new();
1986
  }
1987
+ // Shortcode [photo ... ] specifications
1988
+ $desc = $wppa_subtab_names[$tab]['2'];
1989
  if ( wppa_switch( 'photo_shortcode_enabled' ) ) {
1990
+ wppa_setting_tab_description($desc);
1991
+ wppa_setting_box_header_new($tab);
1992
 
1993
+ $name = __('Single image type', 'wp-photo-album-plus');
1994
+ $desc = __('Specify the single image type the shortcode [photo ..] should show.', 'wp-photo-album-plus');
1995
+ $help = '';
1996
+ $slug = 'wppa_photo_shortcode_type';
1997
+ $opts = array( __('A plain single photo', 'wp-photo-album-plus'),
1998
+ __('A single photo with caption', 'wp-photo-album-plus'),
1999
+ __('A single photo with extended caption', 'wp-photo-album-plus'),
2000
+ __('A single photo in the style of a slideshow', 'wp-photo-album-plus'),
2001
+ );
2002
+ $vals = array( 'photo',
2003
+ 'mphoto',
2004
+ 'xphoto',
2005
+ 'slphoto',
2006
+ );
2007
+ $html = wppa_select($slug, $opts, $vals);
2008
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
2009
 
2010
+ $name = __('Size', 'wp-photo-album-plus');
2011
+ $desc = __('Specify the size (width) of the image.', 'wp-photo-album-plus');
2012
+ $help = __('Use the same syntax as in the [wppa size=".."] shortcode', 'wp-photo-album-plus');
2013
+ $help .= '<br />'.__('Examples: 350 for a fixed width of 350 pixels, or: 0.75 for a responsive display of 75% width, or: auto,350 for responsive with a maximum of 350 pixels.', 'wp-photo-album-plus');
2014
+ $slug = 'wppa_photo_shortcode_size';
2015
+ $html = wppa_input($slug, '300px');
2016
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
2017
 
2018
+ $name = __('Align', 'wp-photo-album-plus');
2019
+ $desc = __('Specify the alignment of the image.', 'wp-photo-album-plus');
2020
+ $help = '';
2021
+ $slug = 'wppa_photo_shortcode_align';
2022
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2023
+ __('left', 'wp-photo-album-plus'),
2024
+ __('center', 'wp-photo-album-plus'),
2025
+ __('right', 'wp-photo-album-plus'),
2026
+ );
2027
+ $vals = array( '',
2028
+ 'left',
2029
+ 'center',
2030
+ 'right',
2031
+ );
2032
+ $html = wppa_select($slug, $opts, $vals);
2033
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
2034
 
2035
+ $name = __('Fe type', 'wp-photo-album-plus');
2036
+ $desc = __('Frontend editor shortcode generator output type', 'wp-photo-album-plus');
2037
+ $help = __( 'If you want to use the shortcode generator in frontend tinymce editors, select if you want the shortcode or the html to be entered in the post', 'wp-photo-album-plus');
2038
+ $help .= '<br />'.__('Select \'html\' if the inserted shortcode not is converted to the photo', 'wp-photo-album-plus');
2039
+ $slug = 'wppa_photo_shortcode_fe_type';
2040
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
2041
+ __('shortcode', 'wp-photo-album-plus'),
2042
+ __('html', 'wp-photo-album-plus'),
2043
+ __('img tag', 'wp-photo-album-plus'),
2044
+ );
2045
+ $vals = array( '-none-',
2046
+ 'shortcode',
2047
+ 'html',
2048
+ 'img',
2049
+ );
2050
+ $html = wppa_select($slug, $opts, $vals);
2051
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
2052
 
2053
+ $name = __('Albums', 'wp-photo-album-plus');
2054
+ $desc = __('Select album(s) for random photo', 'wp-photo-album-plus');
2055
+ $help = __( 'The albums to be used for the selection of a random photo for shortcode: [photo random]', 'wp-photo-album-plus');
2056
+ $slug = 'wppa_photo_shortcode_random_albums';
2057
+ if ( wppa_has_many_albums() ) {
2058
+ $html = wppa_input( $slug, '220', __('Enter album ids separated by commas','wp-photo-album-plus' ) );
 
 
 
 
 
 
 
 
 
 
 
 
2059
  }
2060
+ else {
2061
+ $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums", ARRAY_A );
2062
+ $albums = wppa_add_paths( $albums );
2063
+ $albums = wppa_array_sort( $albums, 'name' );
2064
+ $opts = array();
2065
+ $vals = array();
2066
+ $opts[] = __( '--- all ---', 'wp-photo-album-plus' );
2067
+ $vals[] = '-2';
2068
+ foreach( $albums as $album ) {
2069
+ $opts[] = $album['name'];
2070
+ $vals[] = $album['id'];
2071
+ }
2072
+ $html = wppa_select_m($slug, $opts, $vals, '', '', false, '', $max_width = '400' );
2073
+ }
2074
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
2075
 
2076
+ $name = __('Select photo once', 'wp-photo-album-plus');
2077
+ $desc = __('The same random photo on every pageload', 'wp-photo-album-plus');
2078
+ $help = __('If ticked: the random photo is determined once at page/post creation time', 'wp-photo-album-plus');
2079
+ $help .= '<br />'.__('If unticked: every pageload a different photo', 'wp-photo-album-plus');
2080
+ $slug = 'wppa_photo_shortcode_random_fixed';
2081
+ $html = wppa_checkbox($slug);
2082
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
2083
 
2084
+ $name = __('Render photo once', 'wp-photo-album-plus');
2085
+ $desc = __('Replace shortcode by html', 'wp-photo-album-plus');
2086
+ $help = __('Do not replace \'random\' by a number, but by the corresponding html', 'wp-photo-album-plus') . '<br />';
2087
+ $help .= __('WARNING: changes in [photo] shortcode afterwards do no longer have any effect!', 'wp-photo-album-plus');
2088
+ $slug = 'wppa_photo_shortcode_random_fixed_html';
2089
+ $html = wppa_checkbox($slug);
2090
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
2091
 
2092
+ wppa_setting_box_footer_new();
2093
  }
2094
  }
2095
  break;
2096
 
2097
  case 'thumbs': {
2098
+ // Thumbnail size specifications
2099
+ $desc = $wppa_subtab_names[$tab]['1'];
2100
  {
2101
  wppa_setting_tab_description($desc);
2102
  wppa_setting_box_header_new($tab);
2255
 
2256
  wppa_setting_box_footer_new();
2257
  }
2258
+ // Thumbnail display options
2259
+ $desc = $wppa_subtab_names[$tab]['2'];
2260
  {
2261
  wppa_setting_tab_description($desc);
2262
  wppa_setting_box_header_new($tab);
2402
 
2403
  wppa_setting_box_footer_new();
2404
  }
2405
+ // Thumbnail layout settings
2406
+ $desc = $wppa_subtab_names[$tab]['3'];
2407
  {
2408
  wppa_setting_tab_description($desc);
2409
  wppa_setting_box_header_new($tab);
2496
  break;
2497
 
2498
  case 'slide': {
2499
+ // Sllideshow component specifications
2500
+ $desc = $wppa_subtab_names[$tab]['1'];
2501
  {
2502
  wppa_setting_tab_description($desc);
2503
  wppa_setting_box_header_new($tab);
2797
 
2798
  wppa_setting_box_footer_new();
2799
  }
2800
+ // Slideshow component sequence
2801
+ $desc = $wppa_subtab_names[$tab]['2'];
2802
  {
2803
  wppa_setting_tab_description($desc);
2804
  wppa_setting_box_header_new($tab);
2906
 
2907
  wppa_setting_box_footer_new();
2908
  }
2909
+ // Slideshow layout settings
2910
+ $desc = $wppa_subtab_names[$tab]['3'];
2911
  {
2912
  wppa_setting_tab_description($desc);
2913
  wppa_setting_box_header_new($tab);
2978
 
2979
  wppa_setting_box_footer_new();
2980
  }
2981
+ // Slideshow dynamic behaviour
2982
+ $desc = $wppa_subtab_names[$tab]['4'];
2983
  {
2984
  wppa_setting_tab_description($desc);
2985
  wppa_setting_box_header_new($tab);
3116
  break;
3117
 
3118
  case 'lightbox': {
3119
+ // Lightbox overlay configuration settings
3120
+ $desc = $wppa_subtab_names[$tab]['1'];
3121
  {
3122
  wppa_setting_tab_description($desc);
3123
  wppa_setting_box_header_new($tab);
3370
  break;
3371
 
3372
  case 'comments': {
3373
+ // Comments system related settings
3374
+ $desc = $wppa_subtab_names[$tab]['1'];
3375
  {
3376
  wppa_setting_tab_description($desc);
3377
  wppa_setting_box_header_new($tab);
3523
  break;
3524
 
3525
  case 'rating': {
3526
+ // Rating system related settings
3527
+ $desc = $wppa_subtab_names[$tab]['1'];
3528
  {
3529
  wppa_setting_tab_description($desc);
3530
  wppa_setting_box_header_new($tab);
3566
  $slug = 'wppa_rating_max';
3567
  $opts = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
3568
  $vals = array('5', '10', '1');
3569
+ $html = wppa_select($slug, $opts, $vals) . wppa_see_also( 'maintenance', '1', '5' );
3570
  wppa_setting_new($slug, '5', $name, $desc, $html, $help);
3571
 
3572
  $name = __('Display precision', 'wp-photo-album-plus');
3829
  break;
3830
 
3831
  case 'search': {
3832
+ // Search albums and photos features related settings
3833
+ $desc = $wppa_subtab_names[$tab]['1'];
3834
  {
3835
  wppa_setting_tab_description($desc);
3836
  wppa_setting_box_header_new($tab);
4119
  break;
4120
 
4121
  case 'widget': {
4122
+ // General widget size settings
4123
+ $desc = $wppa_subtab_names[$tab]['1'];
4124
  {
4125
  wppa_setting_tab_description($desc);
4126
  wppa_setting_box_header_new($tab);
4257
 
4258
  wppa_setting_box_footer_new();
4259
  }
4260
+ // Visibility settings
4261
+ $desc = $wppa_subtab_names[$tab]['2'];
4262
  {
4263
  wppa_setting_tab_description($desc);
4264
  wppa_setting_box_header_new($tab);
4288
 
4289
  wppa_setting_box_footer_new();
4290
  }
4291
+ // QR Code widget settings
4292
+ $desc = $wppa_subtab_names[$tab]['3'];
4293
  {
4294
  wppa_setting_tab_description($desc);
4295
  wppa_setting_box_header_new($tab);
4327
  break;
4328
 
4329
  case 'links': {
4330
+ // Links from standard images
4331
+ $desc = $wppa_subtab_names[$tab]['1'];
4332
  {
4333
  wppa_setting_tab_description($desc);
4334
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
4555
 
4556
  wppa_setting_box_footer_new();
4557
  }
4558
+ // Links from items and images in widgets
4559
+ $desc = $wppa_subtab_names[$tab]['2'];
4560
  {
4561
  wppa_setting_tab_description($desc);
4562
  wppa_setting_box_header_new($tab, $coldef);
4956
 
4957
  wppa_setting_box_footer_new();
4958
  }
4959
+ // Other links
4960
+ $desc = $wppa_subtab_names[$tab]['3'];
4961
  {
4962
  wppa_setting_tab_description($desc);
4963
  wppa_setting_box_header_new($tab, $coldef);
5187
  break;
5188
 
5189
  case 'users': {
5190
+ // Frontend (user) upload related settings
5191
+ $desc = $wppa_subtab_names[$tab]['1'];
5192
  {
5193
  wppa_setting_tab_description($desc);
5194
  wppa_setting_box_header_new($tab);
5456
  break;
5457
 
5458
  case 'email': {
5459
+ // Email configuration settings
5460
+ $desc = $wppa_subtab_names[$tab]['1'];
5461
  {
5462
  wppa_setting_tab_description($desc);
5463
  wppa_setting_box_header_new($tab);
5578
 
5579
  wppa_setting_box_footer_new();
5580
  }
5581
+ // Failed mails
5582
+ $desc = $wppa_subtab_names[$tab]['2'];
5583
  {
5584
 
5585
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
5611
  wppa_setting_box_footer_new();
5612
  }
5613
  }
5614
+ // Permanently failed mails
5615
+ $desc = $wppa_subtab_names[$tab]['3'];
5616
  {
5617
  $mails = wppa_get_option( 'wppa_perm_failed_mails', array() );
5618
  if ( count( $mails ) ) {
5640
  break;
5641
 
5642
  case 'share': {
5643
+ // Social media related settings
5644
+ $desc = $wppa_subtab_names[$tab]['1'];
5645
  {
5646
  wppa_setting_tab_description($desc);
5647
  wppa_setting_box_header_new($tab);
5788
 
5789
  wppa_setting_box_footer_new();
5790
  }
5791
+ // Search Engine Optimalisation settings
5792
+ $desc = $wppa_subtab_names[$tab]['2'];
5793
  {
5794
  wppa_setting_tab_description($desc);
5795
  wppa_setting_box_header_new($tab);
5832
  break;
5833
 
5834
  case 'system': {
5835
+ // System behaviour related settings
5836
+ $desc = $wppa_subtab_names[$tab]['1'];
5837
  {
5838
  wppa_setting_tab_description($desc);
5839
  wppa_setting_box_header_new($tab);
6081
  $desc = __('You must login to... links to login page.', 'wp-photo-album-plus');
6082
  $help = '';
6083
  $slug = 'wppa_login_links';
6084
+ $onch = 'wppaRefreshAfter();';
6085
+ $html = wppa_checkbox($slug, $onch) . wppa_see_also( 'miscadv', '1', '6', 'login_links' );
6086
  wppa_setting_new($slug, '31', $name, $desc, $html, $help);
6087
 
6088
  $name = __('Relative urls', 'wp-photo-album-plus');
6219
  break;
6220
 
6221
  case 'files': {
6222
+ // Original source file related settings
6223
+ $desc = $wppa_subtab_names[$tab]['1'];
6224
  {
6225
  wppa_setting_tab_description($desc);
6226
  wppa_setting_box_header_new($tab);
6256
  break;
6257
 
6258
  case 'new': {
6259
+ // New albums / photos related settings
6260
+ $desc = $wppa_subtab_names[$tab]['1'];
6261
  {
6262
  wppa_setting_tab_description($desc);
6263
  wppa_setting_box_header_new($tab);
6697
  break;
6698
 
6699
  case 'admin': {
6700
+ // WPPA+ related roles and capabilities
6701
+ $desc = $wppa_subtab_names[$tab]['1'];
6702
  {
6703
  wppa_setting_tab_description($desc);
6704
 
6772
 
6773
  wppa_setting_box_footer_new();
6774
  }
6775
+ // Frontend create Albums and upload Photos enabling and limiting settings
6776
+ $desc = $wppa_subtab_names[$tab]['2'];
6777
  {
6778
  wppa_setting_tab_description($desc);
6779
  $coldef = array( '#' => 'auto;',
6978
 
6979
  wppa_setting_box_footer_new();
6980
  }
6981
+ // Import related settings
6982
+ $desc = $wppa_subtab_names[$tab]['3'];
6983
  {
6984
  wppa_setting_tab_description($desc);
6985
  wppa_setting_box_header_new($tab);
7076
 
7077
  wppa_setting_box_footer_new();
7078
  }
7079
+ // Admin Functionality restrictions for non administrators
7080
+ $desc = $wppa_subtab_names[$tab]['4'];
7081
  {
7082
  wppa_setting_tab_description($desc);
7083
  wppa_setting_box_header_new($tab);
7161
 
7162
  wppa_setting_box_footer_new();
7163
  }
7164
+ // Miscellaneous limiting settings
7165
+ $desc = $wppa_subtab_names[$tab]['5'];
7166
  {
7167
  wppa_setting_tab_description($desc);
7168
  wppa_setting_box_header_new($tab);
7416
 
7417
  wppa_setting_box_footer_new();
7418
  }
7419
+ // Miscellaneous admin related settings
7420
+ $desc = $wppa_subtab_names[$tab]['6'];
7421
  {
7422
  wppa_setting_tab_description($desc);
7423
  wppa_setting_box_header_new($tab);
7544
  break;
7545
 
7546
  case 'maintenance': {
7547
+ // Maintenance procedures
 
7548
  {
7549
+ $desc = $wppa_subtab_names[$tab]['1'];
7550
+ wppa_setting_tab_description($desc);
 
 
 
 
 
 
 
 
 
 
 
7551
 
7552
+ $coldef = array( '#' => '24px;',
7553
+ __('Name', 'wp-photo-album-plus') => 'auto;',
7554
+ __('Description', 'wp-photo-album-plus') => 'auto;',
7555
+ __('Specification', 'wp-photo-album-plus') => 'auto;',
7556
+ __('Do it!', 'wp-photo-album-plus') => 'auto;',
7557
+ __('Status', 'wp-photo-album-plus') => 'auto;',
7558
+ __('To Go', 'wp-photo-album-plus') => 'auto;',
7559
+ __('Help', 'wp-photo-album-plus') => '24px;',
7560
+ );
 
7561
 
7562
+ wppa_setting_box_header_new($tab, $coldef);
 
 
 
 
 
 
 
 
 
 
7563
 
7564
+ $name = __('Postpone cron', 'wp-photo-album-plus');
7565
+ $desc = __('Temporary do no background processes.', 'wp-photo-album-plus');
7566
+ $help = __('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus');
7567
+ $slug = 'wppa_maint_ignore_cron';
7568
+ $html1 = wppa_checkbox( $slug );
7569
+ $html2 = '';
7570
+ $html3 = '';
7571
+ $html4 = '';
7572
+ $html = array($html1, $html2, $html3, $html4);
7573
+ wppa_setting_new(false, '0', $name, $desc, $html, $help);
 
7574
 
7575
+ $name = __('Setup', 'wp-photo-album-plus');
7576
+ $desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
7577
+ $help = __('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wp-photo-album-plus');
7578
+ $help .= '<br />'.__('This action may be required to setup blogs in a multiblog (network) site as well as in rare cases to correct initilization errors.', 'wp-photo-album-plus');
7579
+ $slug = 'wppa_setup';
7580
+ $html1 = '';
7581
+ $html2 = wppa_doit_button_new($slug);
7582
+ $html3 = '';
7583
+ $html4 = '';
7584
+ $html = array($html1, $html2, $html3, $html4);
7585
+ wppa_setting_new(false, '1', $name, $desc, $html, $help);
7586
+
7587
+ $name = __('Backup settings', 'wp-photo-album-plus');
7588
+ $desc = __('Save all settings into a backup file.', 'wp-photo-album-plus');
7589
+ $help = __('Saves all the settings into a backup file', 'wp-photo-album-plus');
7590
+ $slug1 = 'wppa_backup_filename';
7591
+ $slug2 = 'wppa_backup';
7592
+ $html1 = wppa_input( $slug1, '200px;', '', '', '', 'settings.bak' );
7593
+ $html2 = wppa_doit_button_new($slug2);
7594
+ $html3 = '';
7595
+ $html4 = '';
7596
+ $html = array($html1, $html2, $html3, $html4);
7597
+ wppa_setting_new(false, '2', $name, $desc, $html, $help);
7598
+
7599
+ $name = __( 'Load settings', 'wp-photo-album-plus' );
7600
+ $desc = __( 'Restore all settings from defaults, a backup or skin file.', 'wp-photo-album-plus' );
7601
+ $help = __( 'Restores all the settings from the factory supplied defaults, the backup you created or from a skin file.', 'wp-photo-album-plus' );
7602
+ $help .= ' ' . __( 'Restoring a .skin-file will not overwrite linkpage settings.', 'wp-photo-album-plus' );
7603
+ $slug1 = 'wppa_skinfile';
7604
+ $slug2 = 'wppa_load_skin';
7605
+ $files1 = wppa_glob(WPPA_PATH.'/theme/*.skin');
7606
+ $files2 = wppa_glob(WPPA_DEPOT_PATH.'/*.bak');
7607
+ $files3 = wppa_glob(WPPA_DEPOT_PATH.'/*.skin');
7608
+ $files = array_merge( $files1, $files2, $files3 );
7609
+ $opts = false;
7610
+ $vals = false;
7611
+ $opts[] = __( 'Please select an item', 'wp-photo-album-plus' );
7612
+ $opts[] = __( '--- set to defaults ---', 'wp-photo-album-plus' );
7613
+ $vals[] = '';
7614
+ $vals[] = 'default';
7615
+ if ( count( $files ) ) {
7616
+ foreach ( $files as $file ) {
7617
+ $fname = basename( $file );
7618
+ $ext = strrchr( $fname, '.' );
7619
+ if ( $ext == '.skin' || $ext == '.bak' ) {
7620
+ $opts[] = $fname;
7621
+ $vals[] = $file;
7622
+ }
7623
  }
7624
  }
7625
+ $html1 = wppa_select($slug1, $opts, $vals);
7626
+ $html2 = wppa_doit_button_new($slug2);
7627
+ $html3 = '';
7628
+ $html4 = '';
7629
+ $html = array($html1, $html2, $html3, $html4);
7630
+ wppa_setting_new(false, '3', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
7631
 
7632
+ $name = __('Regenerate', 'wp-photo-album-plus');
7633
+ $desc = __('Regenerate all thumbnails.', 'wp-photo-album-plus');
7634
+ $help = '';
7635
+ $slug1 = 'wppa_regen_thumbs_skip_one';
7636
+ $slug2 = 'wppa_regen_thumbs';
7637
+ $html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'regen_thumbs_skip_one', '0', true );
7638
+ $html2 = wppa_maintenance_button( $slug2 );
7639
+ $html3 = wppa_status_field( $slug2 );
7640
+ $html4 = wppa_togo_field( $slug2 );
7641
+ $html = array($html1, $html2, $html3, $html4);
7642
+ wppa_setting_new(false, '4', $name, $desc, $html, $help);
7643
 
7644
+ $name = __('Rerate', 'wp-photo-album-plus');
7645
+ $desc = __('Recalculate ratings.', 'wp-photo-album-plus');
7646
+ $help = __('This function will recalculate all mean photo ratings from the ratings table.', 'wp-photo-album-plus');
7647
+ $slug2 = 'wppa_rerate';
7648
+ $html1 = wppa_cronjob_button( $slug2 );
7649
+ $html2 = wppa_maintenance_button( $slug2 );
7650
+ $html3 = wppa_status_field( $slug2 );
7651
+ $html4 = wppa_togo_field( $slug2 );
7652
+ $html = array($html1, $html2, $html3, $html4);
7653
+ wppa_setting_new(false, '5', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7654
 
7655
+ $name = __('Lost and found', 'wp-photo-album-plus');
7656
+ $desc = __('Find "lost" photos.', 'wp-photo-album-plus');
7657
+ $help = __('This function will attempt to find lost photos.', 'wp-photo-album-plus');
7658
+ $slug2 = 'wppa_cleanup';
7659
+ $html1 = '';
7660
+ $html2 = wppa_maintenance_button( $slug2 );
7661
+ $html3 = wppa_status_field( $slug2 );
7662
+ $html4 = wppa_togo_field( $slug2 );
7663
+ $html = array($html1, $html2, $html3, $html4);
7664
+ wppa_setting_new(false, '6', $name, $desc, $html, $help);
7665
 
7666
+ $name = __('Recuperate', 'wp-photo-album-plus');
7667
+ $desc = __('Recuperate IPTC and EXIF data from photos in WPPA+.', 'wp-photo-album-plus');
7668
+ $help = __('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wp-photo-album-plus');
7669
+ $slug2 = 'wppa_recup';
7670
+ $html1 = wppa_cronjob_button( $slug2 );
7671
+ $html2 = wppa_maintenance_button( $slug2 );
7672
+ $html3 = wppa_status_field( $slug2 );
7673
+ $html4 = wppa_togo_field( $slug2 );
7674
+ $html = array($html1, $html2, $html3, $html4);
7675
+ wppa_setting_new(false, '7', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) || wppa_switch( 'save_iptc' ) );
7676
 
7677
+ $name = __('Format exif', 'wp-photo-album-plus');
7678
+ $desc = __('Format EXIF data', 'wp-photo-album-plus');
7679
+ $help = '';
7680
+ $slug2 = 'wppa_format_exif';
7681
+ $html1 = wppa_cronjob_button( $slug2 );
7682
+ $html2 = wppa_maintenance_button( $slug2 );
7683
+ $html3 = wppa_status_field( $slug2 );
7684
+ $html4 = wppa_togo_field( $slug2 );
7685
+ $html = array($html1, $html2, $html3, $html4);
7686
+ wppa_setting_new(false, '8', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
7687
 
7688
+ $name = __('Remake Index Albums', 'wp-photo-album-plus');
7689
+ $desc = __('Remakes the index database table for albums.', 'wp-photo-album-plus');
7690
+ $help = '';
7691
+ $slug2 = 'wppa_remake_index_albums';
7692
+ $html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus') . wppa_checkbox( $slug2.'_ad_inf' );
7693
+ $html2 = wppa_maintenance_button( $slug2 );
7694
+ $html3 = wppa_status_field( $slug2 );
7695
+ $html4 = wppa_togo_field( $slug2 );
7696
+ $html = array($html1, $html2, $html3, $html4);
7697
+ wppa_setting_new(false, '9', $name, $desc, $html, $help);
7698
 
7699
+ $name = __('Remake Index Photos', 'wp-photo-album-plus');
7700
+ $desc = __('Remakes the index database table for photos.', 'wp-photo-album-plus');
7701
+ $help = '';
7702
+ $slug2 = 'wppa_remake_index_photos';
7703
+ $html1 = wppa_cronjob_button( $slug2 );
7704
+ $html2 = wppa_maintenance_button( $slug2 );
7705
+ $html3 = wppa_status_field( $slug2 );
7706
+ $html4 = wppa_togo_field( $slug2 );
7707
+ $html = array($html1, $html2, $html3, $html4);
7708
+ wppa_setting_new(false, '10', $name, $desc, $html, $help);
7709
 
7710
+ $name = __('Clean Index', 'wp-photo-album-plus');
7711
+ $desc = __('Remove obsolete entries from index db table.', 'wp-photo-album-plus');
7712
+ $help = '';
7713
+ $slug2 = 'wppa_cleanup_index';
7714
+ $html1 = wppa_cronjob_button( $slug2 );
7715
+ $html2 = wppa_maintenance_button( $slug2 );
7716
+ $html3 = wppa_status_field( $slug2 );
7717
+ $html4 = wppa_togo_field( $slug2 );
7718
+ $html = array($html1, $html2, $html3, $html4);
7719
+ wppa_setting_new(false, '11', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
7720
 
7721
+ $fs = wppa_get_option('wppa_file_system');
7722
+ if ( ! $fs ) {
7723
+ $fs = 'flat';
7724
+ wppa_update_option('wppa_file_system', 'flat');
7725
+ }
7726
+ if ( $fs == 'flat' || $fs == 'to-tree' ) {
7727
+ $name = __('Convert to tree', 'wp-photo-album-plus');
7728
+ $desc = __('Convert filesystem to tree structure.', 'wp-photo-album-plus');
7729
+ }
7730
+ if ( $fs == 'tree' || $fs == 'to-flat' ) {
7731
+ $name = __('Convert to flat', 'wp-photo-album-plus');
7732
+ $desc = __('Convert filesystem to flat structure.', 'wp-photo-album-plus');
7733
+ }
7734
+ $help = __('If you want to go back to a wppa+ version prior to 5.0.16, you MUST convert to flat first.', 'wp-photo-album-plus');
7735
+ $slug2 = 'wppa_file_system';
7736
+ $html1 = '';
7737
+ $html2 = wppa_maintenance_button( $slug2 );
7738
+ $html3 = wppa_status_field( $slug2 );
7739
+ $html4 = wppa_togo_field( $slug2 );
7740
+ $html = array($html1, $html2, $html3, $html4);
7741
+ wppa_setting_new(false, '12', $name, $desc, $html, $help);
7742
 
7743
+ $name = __('Remake add', 'wp-photo-album-plus');
7744
+ $desc = __('Photos will be added from the source pool. See next item', 'wp-photo-album-plus');
7745
+ $help = __('If checked: If photo files are found in the source directory that do not exist in the corresponding album, they will be added to the album.', 'wp-photo-album-plus');
7746
+ $slug = 'wppa_remake_add';
7747
+ $html1 = wppa_checkbox($slug);
7748
+ $html0 = '';
7749
+ $html = array($html1, $html0, $html0, $html0);
7750
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
 
 
 
7751
 
7752
+ $name = __('Remake', 'wp-photo-album-plus');
7753
+ $desc = __('Remake the photofiles from photo sourcefiles.', 'wp-photo-album-plus');
7754
+ $help = __('This action will remake the fullsize images, thumbnail images, and will refresh the iptc and exif data for all photos where the source is found in the corresponding album sub-directory of the source directory.', 'wp-photo-album-plus');
7755
+ $slug1 = 'wppa_remake_skip_one';
7756
+ $slug2 = 'wppa_remake';
7757
+ $html1 = wppa_cronjob_button( $slug2 ) . wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'remake_skip_one', '0', true );
7758
+ $html2 = wppa_maintenance_button( $slug2 );
7759
+ $html3 = wppa_status_field( $slug2 );
7760
+ $html4 = wppa_togo_field( $slug2 );
7761
+ $html = array($html1, $html2, $html3, $html4);
7762
+ wppa_setting_new(false, '14', $name, $desc, $html, $help);
7763
 
7764
+ $name = __('Orientation only', 'wp-photo-album-plus');
7765
+ $desc = __('Remake non standard orientated photos only.', 'wp-photo-album-plus');
7766
+ $help = '';
7767
+ $slug1 = '';
7768
+ $slug2 = 'wppa_remake_orientation_only';
7769
+ $html1 = '';
7770
+ $html2 = wppa_checkbox( $slug2 );
7771
+ $html3 = wppa_status_field( $slug2 );
7772
+ $html4 = wppa_togo_field( $slug2 );
7773
+ $html = array($html1, $html2, $html3, $html4);
7774
+ wppa_setting_new(false, '15', $name, $desc, $html, $help);
7775
 
7776
+ $name = __('Missing only', 'wp-photo-album-plus');
7777
+ $desc = __('Remake missing photofiles only.', 'wp-photo-album-plus');
7778
+ $help = '';
7779
+ $slug1 = '';
7780
+ $slug2 = 'wppa_remake_missing_only';
7781
+ $html1 = '';
7782
+ $html2 = wppa_checkbox( $slug2 );
7783
+ $html3 = wppa_status_field( $slug2 );
7784
+ $html4 = wppa_togo_field( $slug2 );
7785
+ $html = array($html1, $html2, $html3, $html4);
7786
+ wppa_setting_new(false, '16', $name, $desc, $html, $help);
7787
 
7788
+ $name = __('Recalc sizes', 'wp-photo-album-plus');
7789
+ $desc = __('Recalculate photosizes and save to db.', 'wp-photo-album-plus');
7790
+ $help = '';
7791
+ $slug2 = 'wppa_comp_sizes';
7792
+ $html1 = wppa_cronjob_button( $slug2 );
7793
+ $html2 = wppa_maintenance_button( $slug2 );
7794
+ $html3 = wppa_status_field( $slug2 );
7795
+ $html4 = wppa_togo_field( $slug2 );
7796
+ $html = array($html1, $html2, $html3, $html4);
7797
+ wppa_setting_new(false, '17', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7798
 
7799
+ $name = __('Renew album crypt', 'wp-photo-album-plus');
7800
+ $desc = __('Renew album encrcryption codes.', 'wp-photo-album-plus');
7801
+ $help = '';
7802
+ $slug2 = 'wppa_crypt_albums';
7803
+ $html1 = wppa_cronjob_button( $slug2 );
7804
+ $html2 = wppa_maintenance_button( $slug2 );
7805
+ $html3 = wppa_status_field( $slug2 );
7806
+ $html4 = wppa_togo_field( $slug2 );
7807
+ $html = array($html1, $html2, $html3, $html4);
7808
+ wppa_setting_new(false, '18', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7809
+
7810
+ $name = __('Renew album crypt every', 'wp-photo-album-plus');
7811
+ $desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
7812
+ $help = __('The periodic times are an approximation', 'wp-photo-album-plus');
7813
+ $slug = 'wppa_crypt_albums_every';
7814
+ $opts = array( __('--- off ---', 'wp-photo-album-plus'),
7815
+ __('hour', 'wp-photo-album-plus'),
7816
+ __('day', 'wp-photo-album-plus'),
7817
+ __('week', 'wp-photo-album-plus'),
7818
+ __('month', 'wp-photo-album-plus'),
7819
+ );
7820
+ $vals = array( '0', '1', '24', '168', '720' );
7821
+ $html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
7822
+ wppa_setting_new(false, '19', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
 
7823
 
7824
+ $name = __('Renew photo crypt', 'wp-photo-album-plus');
7825
+ $desc = __('Renew photo encrcryption codes.', 'wp-photo-album-plus');
7826
+ $help = '';
7827
+ $slug2 = 'wppa_crypt_photos';
7828
+ $html1 = wppa_cronjob_button( $slug2 );
7829
+ $html2 = wppa_maintenance_button( $slug2 );
7830
+ $html3 = wppa_status_field( $slug2 );
7831
+ $html4 = wppa_togo_field( $slug2 );
7832
+ $html = array($html1, $html2, $html3, $html4);
7833
+ wppa_setting_new(false, '20', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7834
+
7835
+ $name = __('Renew photo crypt every', 'wp-photo-album-plus');
7836
+ $desc = __('Renew cryptic codes periodically', 'wp-photo-album-plus');
7837
+ $help = __('The periodic times are an approximation', 'wp-photo-album-plus');
7838
+ $slug = 'wppa_crypt_photos_every';
7839
+ $opts = array( __('--- off ---', 'wp-photo-album-plus'),
7840
+ __('hour', 'wp-photo-album-plus'),
7841
+ __('day', 'wp-photo-album-plus'),
7842
+ __('week', 'wp-photo-album-plus'),
7843
+ __('month', 'wp-photo-album-plus'),
7844
+ );
7845
+ $vals = array( '0', '1', '24', '168', '720' );
7846
+ $html = wppa_select( $slug, $opts, $vals ) . '<td></td><td></td><td></td>';
7847
+ wppa_setting_new(false, '21', $name, $desc, $html, $help, wppa_switch( 'use_encrypted_links' ) );
7848
 
7849
+ $name = __('Create orietation sources', 'wp-photo-album-plus');
7850
+ $desc = __('Creates correctly oriented pseudo source file.', 'wp-photo-album-plus');
7851
+ $help = '';
7852
+ $slug1 = 'wppa_create_o1_files_skip_one';
7853
+ $slug2 = 'wppa_create_o1_files';
7854
+ $html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'create_o1_files_skip_one', '0', true );
7855
+ $html2 = wppa_maintenance_button( $slug2 );
7856
+ $html3 = wppa_status_field( $slug2 );
7857
+ $html4 = wppa_togo_field( $slug2 );
7858
+ $html = array($html1, $html2, $html3, $html4);
7859
+ wppa_setting_new(false, '22', $name, $desc, $html, $help);
7860
 
7861
+ $name = __('Clear ratings', 'wp-photo-album-plus');
7862
+ $desc = __('Reset all ratings.', 'wp-photo-album-plus');
7863
+ $help = __('WARNING: If checked, this will clear all ratings in the system!', 'wp-photo-album-plus');
7864
+ $slug = 'wppa_rating_clear';
7865
+ $html1 = '';
7866
+ $html2 = wppa_ajax_button('', 'rating_clear');
7867
+ $html3 = '';
7868
+ $html4 = '';
7869
+ $html = array($html1, $html2, $html3, $html4);
7870
+ wppa_setting_new(false, '23', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7871
 
7872
+ $name = __('Clear viewcounts', 'wp-photo-album-plus');
7873
+ $desc = __('Reset all viewcounts.', 'wp-photo-album-plus');
7874
+ $help = __('WARNING: If checked, this will clear all viewcounts in the system!', 'wp-photo-album-plus');
7875
+ $slug = 'wppa_viewcount_clear';
7876
+ $html1 = '';
7877
+ $html2 = wppa_ajax_button('', 'viewcount_clear');
7878
+ $html3 = '';
7879
+ $html4 = '';
7880
+ $html = array($html1, $html2, $html3, $html4);
7881
+ wppa_setting_new(false, '24', $name, $desc, $html, $help);
7882
 
7883
+ $name = __('Reset IPTC', 'wp-photo-album-plus');
7884
+ $desc = __('Clear all IPTC data.', 'wp-photo-album-plus');
7885
+ $help = __('WARNING: If checked, this will clear all IPTC data in the system!', 'wp-photo-album-plus');
7886
+ $slug = 'wppa_iptc_clear';
7887
+ $html1 = '';
7888
+ $html2 = wppa_ajax_button('', 'iptc_clear');
7889
+ $html3 = '';
7890
+ $html4 = '';
7891
+ $html = array($html1, $html2, $html3, $html4);
7892
+ wppa_setting_new(false, '25', $name, $desc, $html, $help, wppa_switch( 'rating_on' ) );
7893
 
7894
+ $name = __('Reset EXIF', 'wp-photo-album-plus');
7895
+ $desc = __('Clear all EXIF data.', 'wp-photo-album-plus');
7896
+ $help = __('WARNING: If checked, this will clear all EXIF data in the system!', 'wp-photo-album-plus');
7897
+ $slug = 'wppa_exif_clear';
7898
+ $html1 = '';
7899
+ $html2 = wppa_ajax_button('', 'exif_clear');
7900
+ $html3 = '';
7901
+ $html4 = '';
7902
+ $html = array($html1, $html2, $html3, $html4);
7903
+ wppa_setting_new(false, '26', $name, $desc, $html, $help, wppa_switch( 'save_exif' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7904
 
7905
+ $name = __('Apply Default Photoname', 'wp-photo-album-plus');
7906
+ $desc = __('Apply Default photo name on all photos in the system.', 'wp-photo-album-plus');
7907
+ $help = __('Puts the content of Table IX-D13 in all photo name.', 'wp-photo-album-plus');
7908
+ $slug2 = 'wppa_apply_default_photoname_all';
7909
+ $html1 = '';
7910
+ $html2 = wppa_maintenance_button( $slug2 );
7911
+ $html3 = wppa_status_field( $slug2 );
7912
+ $html4 = wppa_togo_field( $slug2 );
7913
+ $html = array($html1, $html2, $html3, $html4);
7914
+ wppa_setting_new(false, '27', $name, $desc, $html, $help);
7915
 
7916
+ $name = __('Apply New Photodesc', 'wp-photo-album-plus');
7917
+ $desc = __('Apply New photo description on all photos in the system.', 'wp-photo-album-plus');
7918
+ $help = __('Puts the content of Table IX-D5 in all photo descriptions.', 'wp-photo-album-plus');
7919
+ $slug2 = 'wppa_apply_new_photodesc_all';
7920
+ $html1 = '';
7921
+ $html2 = wppa_maintenance_button( $slug2 );
7922
+ $html3 = wppa_status_field( $slug2 );
7923
+ $html4 = wppa_togo_field( $slug2 );
7924
+ $html = array($html1, $html2, $html3, $html4);
7925
+ wppa_setting_new(false, '28', $name, $desc, $html, $help);
7926
+
7927
+ $name = __('Append to photodesc', 'wp-photo-album-plus');
7928
+ $desc = __('Append this text to all photo descriptions.', 'wp-photo-album-plus');
7929
+ $help = __('Appends a space character and the given text to the description of all photos.', 'wp-photo-album-plus');
7930
+ $help .= '<br />'.__('First edit the text to append, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
7931
+ $slug1 = 'wppa_append_text';
7932
+ $slug2 = 'wppa_append_to_photodesc';
7933
+ $html1 = wppa_input( $slug1, '200px' );
7934
+ $html2 = wppa_maintenance_button( $slug2 );
7935
+ $html3 = wppa_status_field( $slug2 );
7936
+ $html4 = wppa_togo_field( $slug2 );
7937
+ $html = array($html1, $html2, $html3, $html4);
7938
+ wppa_setting_new(false, '29', $name, $desc, $html, $help);
7939
+
7940
+ $name = __('Remove from photodesc', 'wp-photo-album-plus');
7941
+ $desc = __('Remove this text from all photo descriptions.', 'wp-photo-album-plus');
7942
+ $help = __('Removes all occurrencies of the given text from the description of all photos.', 'wp-photo-album-plus');
7943
+ $help .= '<br />'.__('First edit the text to remove, click outside the edit window and wait for the green checkmark to appear. Then click the Start! button.', 'wp-photo-album-plus');
7944
+ $slug1 = 'wppa_remove_text';
7945
+ $slug2 = 'wppa_remove_from_photodesc';
7946
+ $html1 = wppa_input( $slug1, '200px' );
7947
+ $html2 = wppa_maintenance_button( $slug2 );
7948
+ $html3 = wppa_status_field( $slug2 );
7949
+ $html4 = wppa_togo_field( $slug2 );
7950
+ $html = array($html1, $html2, $html3, $html4);
7951
+ wppa_setting_new(false, '30', $name, $desc, $html, $help);
7952
 
7953
+ $name = __('Remove empty albums', 'wp-photo-album-plus');
7954
+ $desc = __('Removes albums that are not used.', 'wp-photo-album-plus');
7955
+ $help = __('Removes all albums that have no photos and no sub albums in it.', 'wp-photo-album-plus');
7956
+ $slug2 = 'wppa_remove_empty_albums';
7957
+ $html1 = '';
7958
+ $html2 = wppa_maintenance_button( $slug2 );
7959
+ $html3 = wppa_status_field( $slug2 );
7960
+ $html4 = wppa_togo_field( $slug2 );
7961
+ $html = array($html1, $html2, $html3, $html4);
7962
+ wppa_setting_new(false, '31', $name, $desc, $html, $help);
7963
 
7964
+ $name = __('Remove file-ext', 'wp-photo-album-plus');
7965
+ $desc = __('Remove possible file extension from photo name.', 'wp-photo-album-plus');
7966
+ $help = __('This may be required for old photos, uploaded when the option to set the name to the filename without extension was not yet available/selected.', 'wp-photo-album-plus');
7967
+ $slug2 = 'wppa_remove_file_extensions';
7968
+ $html1 = '';
7969
+ $html2 = wppa_maintenance_button( $slug2 );
7970
+ $html3 = wppa_status_field( $slug2 );
7971
+ $html4 = wppa_togo_field( $slug2 );
7972
+ $html = array($html1, $html2, $html3, $html4);
7973
+ wppa_setting_new(false, '32', $name, $desc, $html, $help);
 
7974
 
7975
+ $name = __('Re-add file-ext', 'wp-photo-album-plus');
7976
+ $desc = __('Revert the <b>Remove file-ext</b> action.', 'wp-photo-album-plus');
7977
+ $help = '';
7978
+ $slug2 = 'wppa_readd_file_extensions';
7979
+ $html1 = '';
7980
+ $html2 = wppa_maintenance_button( $slug2 );
7981
+ $html3 = wppa_status_field( $slug2 );
7982
+ $html4 = wppa_togo_field( $slug2 );
7983
+ $html = array($html1, $html2, $html3, $html4);
7984
+ wppa_setting_new(false, '33', $name, $desc, $html, $help);
7985
 
7986
+ $name = __('All to lower', 'wp-photo-album-plus');
7987
+ $desc = __('Convert all file-extensions to lowercase.', 'wp-photo-album-plus');
7988
+ $help = __('Affects display files, thumbnail files, and saved extensions in database table. Leaves sourcefiles untouched', 'wp-photo-album-plus');
7989
+ $help .= '<br />'.__('If both upper and lowercase files exist, the file with the uppercase extension will be removed.', 'wp-photo-album-plus');
7990
+ $slug2 = 'wppa_all_ext_to_lower';
7991
+ $html1 = '';
7992
+ $html2 = wppa_maintenance_button( $slug2 );
7993
+ $html3 = wppa_status_field( $slug2 );
7994
+ $html4 = wppa_togo_field( $slug2 );
7995
+ $html = array($html1, $html2, $html3, $html4);
7996
+ wppa_setting_new(false, '34', $name, $desc, $html, $help);
7997
 
7998
+ $name = __('Watermark all', 'wp-photo-album-plus');
7999
+ $desc = __('Apply watermark according to current settings to all photos.', 'wp-photo-album-plus');
8000
+ $help = __('See Tab Watermark for the current watermark settings', 'wp-photo-album-plus');
8001
+ $slug2 = 'wppa_watermark_all';
8002
+ $html1 = '';
8003
+ $html2 = wppa_maintenance_button( $slug2 );
8004
+ $html3 = wppa_status_field( $slug2 );
8005
+ $html4 = wppa_togo_field( $slug2 );
8006
+ $html = array($html1, $html2, $html3, $html4);
8007
+ wppa_setting_new(false, '35', $name, $desc, $html, $help, wppa_switch( 'watermark_on' ));
 
 
 
 
 
 
 
 
 
 
 
 
 
8008
 
8009
+ $name = __('Create all autopages', 'wp-photo-album-plus');
8010
+ $desc = __('Create all the pages to display slides individually.', 'wp-photo-album-plus');
8011
+ $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
8012
+ $help .= '<br />'.__('Make sure you have a custom menu and the "Automatically add new top-level pages to this menu" box UNticked!!', 'wp-photo-album-plus');
8013
+ $slug2 = 'wppa_create_all_autopages';
8014
+ $html1 = '';
8015
+ $html2 = wppa_maintenance_button( $slug2 );
8016
+ $html3 = wppa_status_field( $slug2 );
8017
+ $html4 = wppa_togo_field( $slug2 );
8018
+ $html = array($html1, $html2, $html3, $html4);
8019
+ wppa_setting_new(false, '36', $name, $desc, $html, $help);
8020
 
8021
+ $name = __('Delete all autopages', 'wp-photo-album-plus');
8022
+ $desc = __('Delete all the pages to display slides individually.', 'wp-photo-album-plus');
8023
+ $help = __('See also Table IV-A10.', 'wp-photo-album-plus');
8024
+ $help .= '';
8025
+ $slug2 = 'wppa_delete_all_autopages';
8026
+ $html1 = '';
8027
+ $html2 = wppa_maintenance_button( $slug2 );
8028
+ $html3 = wppa_status_field( $slug2 );
8029
+ $html4 = wppa_togo_field( $slug2 );
8030
+ $html = array($html1, $html2, $html3, $html4);
8031
+ wppa_setting_new(false, '37', $name, $desc, $html, $help);
8032
+
8033
+ $name = __('Leading zeroes', 'wp-photo-album-plus');
8034
+ $desc = __('If photoname numeric, add leading zeros', 'wp-photo-album-plus');
8035
+ $help = __('You can extend the name with leading zeros, so alphabetic sort becomes equal to numeric sort order.', 'wp-photo-album-plus');
8036
+ $slug1 = 'wppa_zero_numbers';
8037
+ $slug2 = 'wppa_leading_zeros';
8038
+ $html1 = wppa_input( $slug1, '50px' ).__('Total chars', 'wp-photo-album-plus');
8039
+ $html2 = wppa_maintenance_button( $slug2 );
8040
+ $html3 = wppa_status_field( $slug2 );
8041
+ $html4 = wppa_togo_field( $slug2 );
8042
+ $html = array($html1, $html2, $html3, $html4);
8043
+ wppa_setting_new(false, '38', $name, $desc, $html, $help);
8044
 
8045
+ $name = __('Add GPX tag', 'wp-photo-album-plus');
8046
+ $desc = __('Make sure photos with gpx data have a Gpx tag', 'wp-photo-album-plus');
 
8047
  $help = '';
8048
+ $slug2 = 'wppa_add_gpx_tag';
8049
+ $html1 = wppa_cronjob_button( $slug2 );
8050
  $html2 = wppa_maintenance_button( $slug2 );
8051
  $html3 = wppa_status_field( $slug2 );
8052
  $html4 = wppa_togo_field( $slug2 );
8053
  $html = array($html1, $html2, $html3, $html4);
8054
+ wppa_setting_new(false, '39', $name, $desc, $html, $help);
 
8055
 
8056
+ $name = __('Add HD tag', 'wp-photo-album-plus');
8057
+ $desc = __('Make sure photos >= 1920 x 1080 have a HD tag', 'wp-photo-album-plus');
8058
+ $help = '';
8059
+ $slug2 = 'wppa_add_hd_tag';
8060
+ $html1 = wppa_cronjob_button( $slug2 );
8061
+ $html2 = wppa_maintenance_button( $slug2 );
8062
+ $html3 = wppa_status_field( $slug2 );
8063
+ $html4 = wppa_togo_field( $slug2 );
8064
+ $html = array($html1, $html2, $html3, $html4);
8065
+ wppa_setting_new(false, '40', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8066
 
8067
+ if ( function_exists( 'ewww_image_optimizer') ) {
8068
+ $name = __('Optimize files', 'wp-photo-album-plus');
8069
+ $desc = __('Optimize with EWWW image optimizer', 'wp-photo-album-plus');
8070
+ $help = '';
8071
+ $slug2 = 'wppa_optimize_ewww';
8072
+ $html1 = wppa_ajax_button(__('Skip one', 'wp-photo-album-plus'), 'optimize_ewww_skip_one', '0', true );
8073
+ $html2 = wppa_maintenance_button( $slug2 );
8074
+ $html3 = wppa_status_field( $slug2 );
8075
+ $html4 = wppa_togo_field( $slug2 );
8076
+ $html = array($html1, $html2, $html3, $html4);
8077
+ wppa_setting_new(false, '41', $name, $desc, $html, $help);
8078
+ }
8079
 
8080
+ $name = __('Edit tag', 'wp-photo-album-plus');
8081
+ $desc = __('Globally change a tagname.', 'wp-photo-album-plus');
8082
+ $help = '';
8083
+ $slug1 = 'wppa_tag_to_edit';
8084
+ $slug2 = 'wppa_new_tag_value';
8085
+ $slug3 = 'wppa_edit_tag';
8086
+ $tags = wppa_get_taglist();
8087
+ $opts = array(__('-select a tag-', 'wp-photo-album-plus'));
8088
+ $vals = array( '' );
8089
+ if ( $tags ) foreach( array_keys( $tags ) as $tag ) {
8090
+ $opts[] = $tag;
8091
+ $vals[] = $tag;
8092
+ }
8093
+ $html1 = '<div><small style="float:left;margin-right:5px;" >'.__('Tag:', 'wp-photo-album-plus').'</small>'.wppa_select( $slug1, $opts, $vals, '', '', false, '', '600').'</div>';
8094
+ $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>';
8095
+ $html3 = wppa_maintenance_button( $slug3 );
8096
+ $html4 = wppa_status_field( $slug3 );
8097
+ $html5 = wppa_togo_field( $slug3 );
8098
+ $html = array( $html1 . '<br />' . $html2, $html3, $html4, $html5 );
8099
+ wppa_setting_new( false, '42', $name, $desc, $html, $help);
8100
+
8101
+ $name = __('Synchronize Cloudinary', 'wp-photo-album-plus');
8102
+ $desc = __('Removes/adds images in the cloud.', 'wp-photo-album-plus');
8103
+ $help = __('Removes old images and verifies/adds new images to Cloudinary.', 'wp-photo-album-plus');
8104
+ $help .= '<br />'.__('See Table IX-K4.7 for the configured lifetime.', 'wp-photo-album-plus');
8105
+ $slug2 = 'wppa_sync_cloud';
8106
+ $html1 = '';
8107
+ $html2 = wppa_maintenance_button( $slug2 );
8108
+ $html3 = wppa_status_field( $slug2 );
8109
+ $html4 = wppa_togo_field( $slug2 );
8110
+ $html = array($html1, $html2, $html3, $html4);
8111
+ wppa_setting_new(false, '43', $name, $desc, $html, $help);
8112
 
8113
+ $name = __('Fix tags', 'wp-photo-album-plus');
8114
+ $desc = __('Make sure photo tags format is uptodate', 'wp-photo-album-plus');
8115
+ $help = __('Fixes tags to be conform current database rules.', 'wp-photo-album-plus');
8116
+ $slug2 = 'wppa_sanitize_tags';
8117
+ $html1 = '';
8118
+ $html2 = wppa_maintenance_button( $slug2 );
8119
+ $html3 = wppa_status_field( $slug2 );
8120
+ $html4 = wppa_togo_field( $slug2 );
8121
+ $html = array($html1, $html2, $html3, $html4);
8122
+ wppa_setting_new(false, '44', $name, $desc, $html, $help);
8123
 
8124
+ $name = __('Fix cats', 'wp-photo-album-plus');
8125
+ $desc = __('Make sure album cats format is uptodate', 'wp-photo-album-plus');
8126
+ $help = __('Fixes cats to be conform current database rules.', 'wp-photo-album-plus');
8127
+ $slug2 = 'wppa_sanitize_cats';
8128
+ $html1 = '';
8129
+ $html2 = wppa_maintenance_button( $slug2 );
8130
+ $html3 = wppa_status_field( $slug2 );
8131
+ $html4 = wppa_togo_field( $slug2 );
8132
+ $html = array($html1, $html2, $html3, $html4);
8133
+ wppa_setting_new(false, '45', $name, $desc, $html, $help);
8134
 
8135
+ $name = __('Set owner to name', 'wp-photo-album-plus');
8136
+ $desc = __('If photoname equals user display name, set him owner.', 'wp-photo-album-plus');
8137
  $help = '';
8138
+ $slug2 = 'wppa_owner_to_name_proc';
8139
+ $html1 = '';
8140
+ $html2 = wppa_maintenance_button( $slug2 );
8141
+ $html3 = wppa_status_field( $slug2 );
8142
+ $html4 = wppa_togo_field( $slug2 );
8143
+ $html = array($html1, $html2, $html3, $html4);
8144
+ wppa_setting_new(false, '46', $name, $desc, $html, $help);
8145
 
8146
+ $name = __('Move all photos', 'wp-photo-album-plus');
8147
+ $desc = __('Move all photos from one album to another album.', 'wp-photo-album-plus');
8148
  $help = '';
8149
+ $slug2 = 'wppa_move_all_photos';
8150
+ $html1 = '';
8151
+ $html2 = wppa_maintenance_button( $slug2 );
8152
+ $html3 = wppa_status_field( $slug2 );
8153
+ $html4 = wppa_togo_field( $slug2 );
8154
+ $html = array($html1, $html2, $html3, $html4);
8155
+ wppa_setting_new(false, '47', $name, $desc, $html, $help);
8156
 
8157
+ if ( wppa_get_total_album_count() > 200 ) { // Many albums: input id
 
8158
 
8159
+ $name = __('From', 'wp-photo-album-plus');
8160
+ $desc = __('Move from album number', 'wp-photo-album-plus');
8161
+ $help = '';
8162
+ $slug = 'wppa_move_all_photos_from';
8163
+ $html = wppa_input($slug, '100px' );
8164
+ $html = array($html, '', '', '');
8165
+ wppa_setting_new(false, '48', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8166
 
8167
+ $name = __('To', 'wp-photo-album-plus');
8168
+ $desc = __('Move to album number', 'wp-photo-album-plus');
8169
+ $help = '';
8170
+ $slug = 'wppa_move_all_photos_to';
8171
+ $html = wppa_input($slug, '100px' );
8172
+ $html = array($html, '', '', '');
8173
+ wppa_setting_new(false, '49', $name, $desc, $html, $help);
 
 
 
8174
 
8175
+ }
8176
+ else { // Few albums: selectionbox
 
 
 
 
 
 
 
 
8177
 
8178
+ $name = __('From', 'wp-photo-album-plus');
8179
+ $desc = __('Move from album', 'wp-photo-album-plus');
8180
+ $help = '';
8181
+ $slug = 'wppa_move_all_photos_from';
8182
+ $html = '<select' .
8183
+ ' id=""' .
8184
+ ' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_from\',this)"' .
8185
+ ' name="move_all_photos_to"' .
8186
+ ' style="float:left;max-width:220px;"' .
8187
+ ' >'.
8188
+ wppa_album_select_a(array( 'addpleaseselect'=>true,
8189
+ 'path'=>true,
8190
+ 'selected'=>wppa_get_option('wppa_move_all_photos_from')
8191
+ )).
8192
+ '</select>' .
8193
+ '<img' .
8194
+ ' id="img_move_all_photos_from"' .
8195
+ ' class=""' .
8196
+ ' src="'.wppa_get_imgdir().'star.ico"' .
8197
+ ' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
8198
+ ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8199
+ ' />';
8200
+ $html = array($html, '', '', '');
8201
+ wppa_setting_new(false, '50', $name, $desc, $html, $help);
8202
+
8203
+ $name = __('To', 'wp-photo-album-plus');
8204
+ $desc = __('Move to album', 'wp-photo-album-plus');
8205
+ $help = '';
8206
+ $slug = 'wppa_move_all_photos_to';
8207
+ $html = '<select' .
8208
+ ' id=""' .
8209
+ ' onchange="wppaAjaxUpdateOptionValue(\'move_all_photos_to\',this)"' .
8210
+ ' name="move_all_photos_to"' .
8211
+ ' style="float:left;max-width:220px;"' .
8212
+ ' >'.
8213
+ wppa_album_select_a(array( 'addpleaseselect'=>true,
8214
+ 'path'=>true,
8215
+ 'selected'=>wppa_get_option('wppa_move_all_photos_to')
8216
+ )).
8217
+ '</select>' .
8218
+ '<img' .
8219
+ ' id="img_move_all_photos_to"' .
8220
+ ' class=""' .
8221
+ ' src="'.wppa_get_imgdir().'star.ico"' .
8222
+ ' title="'.__('Setting unmodified', 'wp-photo-album-plus').'"' .
8223
+ ' style="padding-left:4px; float:left; height:16px; width:16px;"' .
8224
+ ' />';
8225
+ $html = array($html, '', '', '');
8226
+ wppa_setting_new(false, '51', $name, $desc, $html, $help);
8227
+ }
8228
 
8229
+ $name = __('Remove hypens from photonames', 'wp-photo-album-plus');
8230
+ $desc = __('Remove all hyphens from all photo names and replace them by spaces', 'wp-photo-album-plus');
8231
+ $help = '';
8232
+ $slug2 = 'wppa_photos_hyphens_to_spaces';
8233
+ $html1 = wppa_cronjob_button( $slug2 );
 
 
 
 
 
 
 
 
 
 
 
 
8234
  $html2 = wppa_maintenance_button( $slug2 );
8235
  $html3 = wppa_status_field( $slug2 );
8236
  $html4 = wppa_togo_field( $slug2 );
8237
  $html = array($html1, $html2, $html3, $html4);
8238
+ wppa_setting_new(false, '52', $name, $desc, $html, $help);
8239
 
8240
+ $name = __('PNG to JPG', 'wp-photo-album-plus');
8241
+ $desc = __('Convert all .png files to .jpg files', 'wp-photo-album-plus');
8242
+ $help = '';
8243
+ $slug2 = 'wppa_png_to_jpg';
8244
+ $html1 = '';
8245
  $html2 = wppa_maintenance_button( $slug2 );
8246
  $html3 = wppa_status_field( $slug2 );
8247
  $html4 = wppa_togo_field( $slug2 );
8248
  $html = array($html1, $html2, $html3, $html4);
8249
+ wppa_setting_new(false, '53', $name, $desc, $html, $help);
 
8250
 
8251
+ $name = __('Fix mp4 meta data', 'wp-photo-album-plus');
8252
+ $desc = __('Import framesize, creationdate and duration from mp4 video files', 'wp-photo-album-plus');
8253
+ $help = '';
8254
+ $slug2 = 'wppa_fix_mp4_meta';
8255
+ $html1 = '';
8256
+ $html2 = wppa_maintenance_button( $slug2 );
8257
+ $html3 = wppa_status_field( $slug2 );
8258
+ $html4 = wppa_togo_field( $slug2 );
8259
+ $html = array($html1, $html2, $html3, $html4);
8260
+ wppa_setting_new(false, '54', $name, $desc, $html, $help);
 
 
8261
 
8262
+ $name = __('Fix user ids', 'wp-photo-album-plus');
8263
+ $desc = __('Fill in missing user ids to ratings and comments', 'wp-photo-album-plus');
8264
+ $help = __('Only used to update ratings and comments entered before version 7.3 to meet the new standards', 'wp-photo-album-plus');
8265
+ $slug2 = 'wppa_fix_userids';
8266
+ $html1 = wppa_cronjob_button( $slug2 );
8267
+ $html2 = wppa_maintenance_button( $slug2 );
8268
+ $html3 = wppa_status_field( $slug2 );
8269
+ $html4 = wppa_togo_field( $slug2 );
8270
+ $html = array($html1, $html2, $html3, $html4);
8271
+ wppa_setting_new(false, '55', $name, $desc, $html, $help);
 
8272
 
8273
+ $name = __('Re-init custom and tags', 'wp-photo-album-plus');
8274
+ $desc = __('Re-initialize custom photo fields and default tags', 'wp-photo-album-plus');
8275
+ $help = '';
8276
+ $slug2 = 'wppa_fix_custom_tags';
8277
+ $html1 = '';
8278
+ $html2 = wppa_maintenance_button( $slug2 );
8279
+ $html3 = wppa_status_field( $slug2 );
8280
+ $html4 = wppa_togo_field( $slug2 );
8281
+ $html = array($html1, $html2, $html3, $html4);
8282
+ wppa_setting_new(false, '56', $name, $desc, $html, $help);
8283
+
8284
+ if ( current_user_can( 'administrator' ) ) {
8285
+ $name = __('Custom album proc', 'wp-photo-album-plus');
8286
+ $desc = __('The php code to execute on all albums', 'wp-photo-album-plus');
8287
+ $help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
8288
+ $slug2 = 'wppa_custom_album_proc';
8289
+ $html1 = wppa_textarea( $slug2 );
8290
+ $html2 = wppa_maintenance_button( $slug2 );
8291
+ $html3 = wppa_status_field( $slug2 );
8292
+ $html4 = wppa_togo_field( $slug2 );
8293
+ $html = array($html1, $html2, $html3, $html4);
8294
+ wppa_setting_new(false, '57', $name, $desc, $html, $help);
8295
+
8296
+ $name = __('Custom photo proc', 'wp-photo-album-plus');
8297
+ $desc = __('The php code to execute on all photos', 'wp-photo-album-plus');
8298
+ $help = __('Only run this if you know what you are doing!', 'wp-photo-album-plus');
8299
+ $slug2 = 'wppa_custom_photo_proc';
8300
+ $html1 = wppa_textarea( $slug2 );
8301
+ $html2 = wppa_maintenance_button( $slug2 );
8302
+ $html3 = wppa_status_field( $slug2 );
8303
+ $html4 = wppa_togo_field( $slug2 );
8304
+ $html = array($html1, $html2, $html3, $html4);
8305
+ wppa_setting_new(false, '57', $name, $desc, $html, $help);
8306
+ }
8307
 
8308
+ $name = __('List Logfile', 'wp-photo-album-plus');
8309
+ $desc = __('Show the content of wppa+ (error) log.', 'wp-photo-album-plus');
8310
+ $help = '';
8311
+ $slug1 = 'wppa_errorlog_purge';
8312
+ $slug2 = 'wppa_list_errorlog';
8313
+ $slug4 = 'wppa_logfile_on_menu';
8314
+ $html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
8315
+ $html2 = wppa_popup_button( $slug2 );
8316
+ $html3 = __('On menu', 'wp-photo-album-plus');
8317
+ $html4 = wppa_checkbox($slug4);
8318
+ $html = array($html1, $html2, $html3, $html4);
8319
+ wppa_setting_new(false, '58', $name, $desc, $html, $help);
8320
 
8321
+ $name = __('List Ratings', 'wp-photo-album-plus');
8322
+ $desc = __('Show the most recent ratings.', 'wp-photo-album-plus');
8323
+ $help = '';
8324
+ $slug1 = '';
8325
+ $slug2 = 'wppa_list_rating';
8326
+ $html1 = '';
8327
+ $html2 = wppa_popup_button( $slug2 );
8328
+ $html3 = '';
8329
+ $html4 = '';
8330
+ $html = array($html1, $html2, $html3, $html4);
8331
+ wppa_setting_new(false, '59', $name, $desc, $html, $help);
 
 
8332
 
8333
+ $name = __('List Index', 'wp-photo-album-plus');
8334
+ $desc = __('Show the content of the index table.', 'wp-photo-album-plus');
8335
+ $help = '';
8336
+ $slug1 = 'wppa_list_index_display_start';
8337
+ $slug2 = 'wppa_list_index';
8338
+ $html1 = '<small style="float:left;">'.__('Start at text:', 'wp-photo-album-plus').'</small>'.wppa_input( $slug1, '150px' );
8339
+ $html2 = wppa_popup_button( $slug2 );
8340
+ $html3 = '';
8341
+ $html4 = '';
8342
+ $clas = '';
8343
+ $html = array($html1, $html2, $html3, $html4);
8344
+ wppa_setting_new(false, '60', $name, $desc, $html, $help);
8345
+
8346
+ $name = __('List active sessions', 'wp-photo-album-plus');
8347
+ $desc = __('Show the content of the sessions table.', 'wp-photo-album-plus');
8348
+ $help = '';
8349
+ $slug1 = '';
8350
+ $slug2 = 'wppa_list_session';
8351
+ $html1 = '';
8352
+ $html2 = wppa_popup_button( $slug2 );
8353
+ $html3 = '';
8354
+ $html4 = '';
8355
+ $html = array($html1, $html2, $html3, $html4);
8356
+ wppa_setting_new(false, '61', $name, $desc, $html, $help);
8357
+
8358
+ $name = __('List comments', 'wp-photo-album-plus');
8359
+ $desc = __('Show the content of the comments table.', 'wp-photo-album-plus');
8360
+ $help = '';
8361
+ $slug1 = 'wppa_list_comments_by';
8362
+ $slug2 = 'wppa_list_comments';
8363
+ $opts = array( 'Email', 'Name', 'Timestamp' );
8364
+ $vals = array( 'email', 'name', 'timestamp' );
8365
+ $html1 = '<small style="float:left;">'.__('Order by:', 'wp-photo-album-plus').'</small>'.wppa_select($slug1, $opts, $vals);
8366
+ $html2 = wppa_popup_button( $slug2 );
8367
+ $html3 = '';
8368
+ $html4 = '';
8369
+ $html = array($html1, $html2, $html3, $html4);
8370
+ wppa_setting_new(false, '62', $name, $desc, $html, $help);
8371
+
8372
+ wppa_setting_box_footer_new();
8373
  }
8374
  }
8375
  break;
8376
 
8377
  case 'exif': {
8378
+ // EXIF tags and their labels as found in the uploaded photos
 
8379
  {
8380
+ $desc = $wppa_subtab_names[$tab]['1'];
8381
+ wppa_setting_tab_description($desc);
8382
 
8383
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8384
+ __('Tag', 'wp-photo-album-plus') => 'auto;',
8385
+ __('Brand', 'wp-photo-album-plus') => 'auto;',
8386
+ __('Description', 'wp-photo-album-plus') => 'auto;',
8387
+ __('Status', 'wp-photo-album-plus') => 'auto;',
8388
+ __('Help', 'wp-photo-album-plus') => '24px;',
8389
+ );
8390
+ wppa_setting_box_header_new($tab, $coldef);
8391
 
8392
+ $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
8393
+ WHERE photo = '0'
8394
+ ORDER BY tag", ARRAY_A );
8395
 
8396
+ if ( is_array( $labels ) ) {
8397
+ $i = '1';
8398
+ foreach ( $labels as $label ) {
8399
+ $name = htmlspecialchars( $label['tag'] );
8400
 
8401
+ $desc = '';
8402
+ foreach ( $wppa_supported_camara_brands as $brand ) {
8403
+ $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
8404
+ if ( $lbl ) {
8405
+ $desc .= '<br />' . $brand;
8406
+ }
8407
  }
 
8408
 
8409
+ $help = '';
8410
+ $slug1 = 'wppa_exif_label_'.$name;
8411
+ $slug2 = 'wppa_exif_status_'.$name;
8412
+
8413
+ $html1 = wppa_edit( $slug1, htmlspecialchars( $label['description'] ) );
8414
+ foreach ( $wppa_supported_camara_brands as $brand ) {
8415
+ $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
8416
+ if ( $lbl ) {
8417
+ $html1 .= '<br /><span style="clear:left;float:left;" >' . $lbl . ':</span>';
8418
+ }
8419
  }
 
8420
 
8421
+ $opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
8422
+ $vals = array('display', 'hide', 'option');
8423
+ $html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $opts, $vals);
8424
+ $html = array($html1, $html2);
8425
+ wppa_setting_new(false, $i, $name, $desc, $html, $help);
8426
+ $i++;
8427
+ }
8428
  }
 
8429
 
8430
+ wppa_setting_box_footer_new();
8431
  }
8432
  }
8433
  break;
8434
 
8435
  case 'iptc': {
8436
+ // IPTC tags and their labels as found in the uploaded photos
 
8437
  {
8438
+ $desc = $wppa_subtab_names[$tab]['1'];
8439
+ wppa_setting_tab_description($desc);
 
 
 
 
 
 
 
8440
 
8441
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8442
+ __('Tag', 'wp-photo-album-plus') => 'auto;',
8443
+ __('Description', 'wp-photo-album-plus') => 'auto;',
8444
+ __('Status', 'wp-photo-album-plus') => 'auto;',
8445
+ __('Help', 'wp-photo-album-plus') => '24px;',
8446
+ );
8447
+ wppa_setting_box_header_new($tab, $coldef);
8448
 
8449
+ $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_iptc
8450
+ WHERE photo = '0'
8451
+ ORDER BY tag", ARRAY_A );
8452
+
8453
+ if ( is_array( $labels ) ) {
8454
+ $i = '1';
8455
+ foreach ( $labels as $label ) {
8456
+ $name = htmlspecialchars( $label['tag'] );
8457
+ $desc = '';
8458
+ $help = '';
8459
+ $slug1 = 'wppa_iptc_label_'.$name;
8460
+ $slug2 = 'wppa_iptc_status_'.$name;
8461
+ $html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
8462
+ $opts = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
8463
+ $vals = array('display', 'hide', 'option');
8464
+ $html2 = wppa_select_e($slug2, $label['status'], $opts, $vals);
8465
+ wppa_setting_new(false, $i, $name, $html1, $html2, $help);
8466
+ $i++;
8467
+ }
8468
  }
 
8469
 
8470
+ wppa_setting_box_footer_new();
8471
  }
8472
  }
8473
  break;
8474
 
8475
  case 'gpx': {
8476
+ // GPX configuration
 
8477
  {
8478
+ $desc = $wppa_subtab_names[$tab]['1'];
8479
+ wppa_setting_tab_description($desc);
8480
+ wppa_setting_box_header_new($tab);
8481
 
8482
+ $name = __('GPX Implementation', 'wp-photo-album-plus');
8483
+ $desc = __('The way the maps are produced.', 'wp-photo-album-plus');
8484
+ $help = __('Select the way the maps are produced.', 'wp-photo-album-plus');
8485
+ $slug = 'wppa_gpx_implementation';
8486
+ $opts = array( __('WPPA+ Embedded code', 'wp-photo-album-plus'), __('External plugin', 'wp-photo-album-plus') );
8487
+ $vals = array( 'wppa-plus-embedded', 'external-plugin' );
8488
+ $onch = 'wppaRefreshAfter()';
8489
+ $html = wppa_select($slug, $opts, $vals, $onch);
8490
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
8491
 
8492
+ $name = __('Map height', 'wp-photo-album-plus');
8493
+ $desc = __('The height of the map display.', 'wp-photo-album-plus');
8494
+ $help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
8495
+ $slug = 'wppa_map_height';
8496
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
8497
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8498
 
8499
+ $name = __('Google maps API key', 'wp-photo-album-plus');
8500
+ $desc = __('Enter your Google maps api key here if you have one.', 'wp-photo-album-plus');
8501
+ $help = '';
8502
+ $slug = 'wppa_map_apikey';
8503
+ $html = wppa_input($slug, '300px', '');
8504
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
8505
+
8506
+ $name = __('GPX Shortcode', 'wp-photo-album-plus');
8507
+ $desc = __('The shortcode to be used for the gpx feature.', 'wp-photo-album-plus');
8508
+ $help = __('Enter / modify the shortcode to be generated for the gpx plugin. It must contain w#lat and w#lon as placeholders for the latitude and longitude.', 'wp-photo-album-plus');
8509
+ $help .= '<br />' . __('This item is required for using an external Google maps viewer plugin only', 'wp-photo-album-plus');
8510
+ $slug = 'wppa_gpx_shortcode';
8511
+ $html = wppa_input($slug, '500px');
8512
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'external-plugin' );
8513
+
8514
+ $name = __('Zoom level', 'wp-photo-album-plus');
8515
+ $desc = __('The zoomlevel for GPX maps', 'wp-photo-album-plus');
8516
+ $help = __('This setting is for embedded implementation only.', 'wp-photo-album-plus');
8517
+ $slug = 'wppa_geo_zoom';
8518
+ $opts = array('1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25',);
8519
+ $vals = $opts;
8520
+ $html = wppa_select($slug, $opts, $vals);
8521
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_opt( 'gpx_implementation' ) == 'wppa-plus-embedded' );
8522
+
8523
+ wppa_setting_box_footer_new();
8524
  }
8525
  }
8526
  break;
8527
 
8528
  case 'custom': {
8529
+ // Album custom data fields configuration
 
8530
  {
8531
+ $desc = $wppa_subtab_names[$tab]['1'];
8532
  if ( wppa_switch( 'album_custom_fields' ) ) {
8533
  $coldef = array( '#' => '24px;',
8534
  __('Name', 'wp-photo-album-plus') => 'auto;',
8561
  wppa_setting_box_footer_new();
8562
  }
8563
  }
8564
+ // Photo custom data fields configuration
 
8565
  {
8566
+ $desc = $wppa_subtab_names[$tab]['2'];
8567
  if ( wppa_switch( 'custom_fields' ) ) {
8568
  $coldef = array( '#' => '24px;',
8569
  __('Name', 'wp-photo-album-plus') => 'auto;',
8667
  break;
8668
 
8669
  case 'watermark': {
8670
+ // Watermark related settings
 
8671
  {
8672
+ $desc = $wppa_subtab_names[$tab]['1'];
8673
  wppa_setting_tab_description($desc);
8674
  wppa_setting_box_header_new($tab);
8675
 
8846
  break;
8847
 
8848
  case 'constants': {
8849
+ // System constants (read only)
 
8850
  {
8851
+ $desc = $wppa_subtab_names[$tab]['1'];
8852
  wppa_setting_tab_description($desc);
8853
 
8854
  $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
8863
  $name = 'WPPA_ALBUMS';
8864
  $desc = __('Albums db table name.', 'wp-photo-album-plus');
8865
  $help = '';
8866
+ $html1 = WPPA_ALBUMS . wppa_see_also( 'miscadv', '1', '12' );
8867
  $html2 = '<a onclick="wppaExportDbTable(\'' . WPPA_ALBUMS . '\')" >' .
8868
  __('Download', 'wp-photo-album-plus') . ' ' . WPPA_ALBUMS . '.csv' .
8869
  '</a> ' .
9080
  break;
9081
 
9082
  case 'misc': {
9083
+ // Miscellaneous settings
 
9084
  {
9085
+ $desc = $wppa_subtab_names[$tab]['1'];
9086
+ wppa_setting_tab_description($desc);
9087
+ wppa_setting_box_header_new($tab);
9088
 
9089
+ $name = __('Album sequence default', 'wp-photo-album-plus');
9090
+ $desc = __('Album ordering sequence method.', 'wp-photo-album-plus');
9091
+ $help = __('Specify the way the albums should be ordered.', 'wp-photo-album-plus');
9092
+ $slug = 'wppa_list_albums_by';
9093
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
9094
+ __('Order #', 'wp-photo-album-plus'),
9095
+ __('Name', 'wp-photo-album-plus'),
9096
+ __('Random', 'wp-photo-album-plus'),
9097
+ __('Timestamp', 'wp-photo-album-plus'),
9098
+ __('Order # desc', 'wp-photo-album-plus'),
9099
+ __('Name desc', 'wp-photo-album-plus'),
9100
+ __('Timestamp desc', 'wp-photo-album-plus'),
9101
+ );
9102
+ $vals = array( '0',
9103
+ '1',
9104
+ '2',
9105
+ '3',
9106
+ '5',
9107
+ '-1',
9108
+ '-2',
9109
+ '-5'
9110
+ );
9111
+ $html = wppa_select($slug, $opts, $vals);
9112
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
9113
 
9114
+ $name = __('Photo sequence default', 'wp-photo-album-plus');
9115
+ $desc = __('Photo ordering sequence method.', 'wp-photo-album-plus');
9116
+ $help = __('Specify the way the photos should be ordered. This is the default setting. You can overrule the default sorting order on a per album basis.', 'wp-photo-album-plus');
9117
+ $slug = 'wppa_list_photos_by';
9118
+ $opts = array( __('--- none ---', 'wp-photo-album-plus'),
9119
+ __('Order #', 'wp-photo-album-plus'),
9120
+ __('Name', 'wp-photo-album-plus'),
9121
+ __('Random', 'wp-photo-album-plus'),
9122
+ __('Rating mean value', 'wp-photo-album-plus'),
9123
+ __('Number of votes', 'wp-photo-album-plus'),
9124
+ __('Timestamp', 'wp-photo-album-plus'),
9125
+ __('EXIF Date', 'wp-photo-album-plus'),
9126
+ __('Order # desc', 'wp-photo-album-plus'),
9127
+ __('Name desc', 'wp-photo-album-plus'),
9128
+ __('Rating mean value desc', 'wp-photo-album-plus'),
9129
+ __('Number of votes desc', 'wp-photo-album-plus'),
9130
+ __('Timestamp desc', 'wp-photo-album-plus'),
9131
+ __('EXIF Date desc', 'wp-photo-album-plus')
9132
+ );
9133
+ $vals = array( '0',
9134
+ '1',
9135
+ '2',
9136
+ '3',
9137
+ '4',
9138
+ '6',
9139
+ '5',
9140
+ '7',
9141
+ '-1',
9142
+ '-2',
9143
+ '-4',
9144
+ '-6',
9145
+ '-5',
9146
+ '-7'
9147
+ );
9148
+ $html = wppa_select($slug, $opts, $vals);
9149
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
9150
 
9151
+ $name = __('Default coverphoto selection', 'wp-photo-album-plus');
9152
+ $desc = __('Default select cover photo method.', 'wp-photo-album-plus');
9153
+ $help = __('The coverphoto slection method can be overruled on the edit album page.', 'wp-photo-album-plus');
9154
+ $help .= '<br />' . __('Alternatively an individual photo can be selected on the edit album page.', 'wp-photo-album-plus');
9155
+ $opts = array( __('--- random ---', 'wp-photo-album-plus'),
9156
+ __('--- random featured ---', 'wp-photo-album-plus'),
9157
+ __('--- most recent added ---', 'wp-photo-album-plus'),
9158
+ __('--- random from (grand)children ---', 'wp-photo-album-plus'),
9159
+ __('--- most recent from (grand)children ---', 'wp-photo-album-plus'),
9160
+ __('--- according to albums photo sequence ---', 'wp-photo-album-plus'),
9161
+ );
9162
+ $vals = array('-9', '-1', '-2', '-3', '-4', '-5');
9163
+ $slug = 'wppa_main_photo';
9164
+ $html = wppa_select($slug, $opts, $vals);
9165
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
9166
 
9167
+ $name = __('Related count', 'wp-photo-album-plus');
9168
+ $desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
9169
+ $help = __('When using shortcodes like [wppa type="album" album="#related,desc,23"], the maximum number is 23. Omitting the number gives the maximum of this setting.', 'wp-photo-album-plus');
9170
+ $slug = 'wppa_related_count';
9171
+ $html = wppa_input($slug, '40px', '', __('photos', 'wp-photo-album-plus'));
9172
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
9173
 
9174
+ $name = __('Max file name length', 'wp-photo-album-plus');
9175
+ $desc = __('The max length of a photo file name excluding the extension.', 'wp-photo-album-plus');
9176
+ $help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
9177
+ $slug = 'wppa_max_filename_length';
9178
+ $html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
9179
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
9180
 
9181
+ $name = __('Max photo name length', 'wp-photo-album-plus');
9182
+ $desc = __('The max length of a photo name.', 'wp-photo-album-plus');
9183
+ $help = __('A setting of 0 means: unlimited.', 'wp-photo-album-plus');
9184
+ $slug = 'wppa_max_photoname_length';
9185
+ $html = wppa_input($slug, '40px', '', __('chars', 'wp-photo-album-plus'));
9186
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
9187
 
9188
+ $name = __('Default Video width', 'wp-photo-album-plus');
9189
+ $desc = __('The width of most videos', 'wp-photo-album-plus');
9190
+ $help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
9191
+ $slug = 'wppa_video_width';
9192
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
9193
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help, wppa_switch('enable_video'));
9194
 
9195
+ $name = __('Default Video height', 'wp-photo-album-plus');
9196
+ $desc = __('The height of most videos', 'wp-photo-album-plus');
9197
+ $help = __('This setting can be overruled for individual videos on the photo admin pages.', 'wp-photo-album-plus');
9198
+ $slug = 'wppa_video_height';
9199
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
9200
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help, wppa_switch('enable_video'));
9201
 
9202
+ wppa_setting_box_footer_new();
9203
  }
9204
+ // Panorma related settings
 
9205
  {
9206
+ $desc = $wppa_subtab_names[$tab]['2'];
9207
  if ( wppa_switch( 'enable_panorama' ) ) {
9208
 
9209
  wppa_setting_tab_description($desc);
9305
  break;
9306
 
9307
  case 'miscadv': {
9308
+ // Advanced miscellaneous settings
 
9309
  {
9310
+ $desc = $wppa_subtab_names[$tab]['1'];
9311
  wppa_setting_tab_description($desc);
9312
  wppa_setting_box_header_new($tab);
9313
 
9409
 
9410
  wppa_setting_box_footer_new();
9411
  }
9412
+ // Logging
 
9413
  {
9414
+ $desc = $wppa_subtab_names[$tab]['2'];
9415
  wppa_setting_tab_description($desc);
9416
  wppa_setting_box_header_new($tab);
9417
 
9466
 
9467
  wppa_setting_box_footer_new();
9468
  }
9469
+ // External services related settings and actions
 
9470
  {
9471
+ $desc = $wppa_subtab_names[$tab]['3'];
9472
  wppa_setting_tab_description($desc);
9473
  wppa_setting_box_header_new($tab);
9474
 
9690
 
9691
  wppa_setting_box_footer_new();
9692
  }
9693
+ // Other plugins related settings
 
9694
  {
9695
+ $desc = $wppa_subtab_names[$tab]['4'];
9696
  wppa_setting_tab_description($desc);
9697
  wppa_setting_box_header_new($tab);
9698
 
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.0.00.009
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.0.00.009'; // 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.0.00.010
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.0.00.010'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30