WP Photo Album Plus - Version 8.0.00.007

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.007
Comparing to
See all releases

Code changes from version 8.0.00.006 to 8.0.00.007

changelog.txt CHANGED
@@ -5,9 +5,10 @@ WP Photo Album Plus Changelog
5
  * Ajax method changed. No longer possible to choose between admin or non admin ajax.
6
  Ajax is always activated, because there can no longer be conflicts due to inaccessibility of both ajax files from the frontend by http request.
7
  * Photo count treshold has been removed because one can select a childrens image as cover image of any album.
8
- * Nice scroller is no longer loaded on mobile devives.
9
  * Removed WPPA+ Text widget. You can now use the WP Custom HTML widget instead.
10
- * Restructured and greatly simplified settings page.
 
11
 
12
  = 7.7.07 =
13
 
5
  * Ajax method changed. No longer possible to choose between admin or non admin ajax.
6
  Ajax is always activated, because there can no longer be conflicts due to inaccessibility of both ajax files from the frontend by http request.
7
  * Photo count treshold has been removed because one can select a childrens image as cover image of any album.
8
+ * Nice scroller is no longer loaded on mobile devives. Scrollbars on mobile are nice enough by themselves and this improves performance.
9
  * Removed WPPA+ Text widget. You can now use the WP Custom HTML widget instead.
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
 
13
  = 7.7.07 =
14
 
js/wppa-all.js CHANGED
@@ -1,7 +1,7 @@
1
  // wppa-utils
2
- var wppaDebug;wppaJsUtilsVersion="8.0.00.006";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,a,t,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(a),i&&setTimeout(i,10)):jQuery(e).stop().animate(a,t,p,i)}function wppaFadeIn(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),t&&setTimeout(t,10)):jQuery(e).stop().fadeIn(a,t)}function wppaFadeOut(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),t&&setTimeout(t,10)):jQuery(e).stop().fadeOut(a,t)}function wppaFadeTo(e,a,t,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:t}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(a,t,p)}function wppaTrim(e,a){e=wppaTrimLeft(e,a);return e=wppaTrimRight(e,a)}function wppaTrimLeft(e,a){var t,p,i,n,r,o,s;switch(typeof a){case"string":for(p=(t=e).length,i=a.length;i<=p&&t.substr(0,i)==a;)p=(t=t.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<a.length;)s=wppaTrimLeft(s,a[n]),n++;r=o==s}t=s;break;default:return e.replace(/^\s\s*/,"")}return t}function wppaTrimRight(e,a){var t,p,i,n,r,o,s;switch(typeof a){case"string":for(p=(t=e).length,i=a.length;i<=p&&t.substr(p-i)==a;)p=(t=t.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<a.length;)s=wppaTrimRight(s,a[n]),n++;r=o==s}t=s;break;default:return e.replace(/\s\s*$/,"")}return t}function wppa_setCookie(e,a,t){var p=new Date;p.setDate(p.getDate()+t);p=escape(a)+(null==t?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var a,t,p=document.cookie.split(";"),i=0;i<p.length;i++)if(a=p[i].substr(0,p[i].indexOf("=")),t=p[i].substr(p[i].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(t);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,a){var t,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=a||(t=(new Date).getTime()%864e5,t-=60*(p=Math.floor(t/36e5))*60*1e3,t-=60*(i=Math.floor(t/6e4))*1e3,a=Math.floor(t/1e3),console.log("At: "+p+":"+i+":"+a+"."+(t-=1e3*a)+" message: "+e))}function wppaSvgHtml(e,a,t,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}a=a||"32px",t="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):t?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==t&&(t="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(a?"height:"+a+";":"")+"fill:"+s+";background-color:"+t+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var a,t=new Date,p=t.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){a=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",a),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(t=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var a=jQuery(e);a[0]&&"BODY"!=a[0].nodeName;){if("none"==jQuery(a[0]).css("display"))return!1;a=jQuery(a[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,a,t){t=t?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==t?a:(wppaIsMini[e]?t/2:t)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var a=e.parentNode.clientWidth;jQuery(e).css({maxWidth:a})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,a,t=jQuery;wppaOvlOpen&&(a=wppaIsFs()?(t(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(t(".wppa-pctl-div-lb").css({position:"initial"}),t("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(a-=20),a<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(a/12-4))&&(t(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),t(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,t(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),t(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?t(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):t(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),t(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,a,t){},error:function(e,a,t){wppaConsoleLog("wppaServerLog failed. Error = "+t+", status = "+a,"force")}})}function wppaTimNow(){return(new Date).getTime()}
3
  // wppa
4
- wppaWppaVer="8.0.00.006";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+wppaExtendedResizeDelay?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,wppaExtendedResizeDelay):(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)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.00.006";function wppaStoreSlideInfo(p,a,e,t,i,w,r,o,n,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){n=wppaRepairScriptTags(n),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]=wppaRepairBrTags(r),_wppaNames[p][a]=o,_wppaDsc[p][a]=n,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(o=_wppaRealId[p],_wppaLat[p][o[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][o[_wppaNxtIdx[p]]],_wppaLon[p][o[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,o=_wppaNxtIdx[p],n=(wppaNumbarMax-1)/2;o<n?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-n<o?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=o+n+.5-1,(i=o-n+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(n=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",n,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",n,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,o="#theimg"+e+"-"+p,n="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(o,wppaAnimationSpeed),setTimeout(wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:-l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":wppaFadeIn(n,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(o,wppaAnimationSpeed),wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),o=e.naturalWidth;void 0===o&&(o=parseInt(e.style.maxWidth));var n=e.naturalHeight;void 0===n&&(n=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*n/o))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=o||f-d<=n?l<(n+d)/(o+d)?(c=f-d,j=parseInt(c*o/n)):(j=x-d,c=parseInt(j*n/o)):(j=o,c=n),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var o,n,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaNames[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),n=".pdf"==(o=_wppaHiresUrl[p][e]).substr(o.length-4,o.length),s+='<a href="'+i+'" onclick="wppaStopAudio();wppaStopShow('+p+');" style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'">'+(n?"<iframe "+l+' src="'+o+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if(document.getElementById("wppa-filmstrip-"+p)){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var o=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(o))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):(o=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(o<i?2:i<o-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w+"px"}):(i<o-1.5*w||o+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0)),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var n=0;n<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][n]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+n+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==n?(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]))),n++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?jQuery("#wppa-next-pagelink-"+p).trigger("click"):0<e.length&&jQuery(e).trigger("click")):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).trigger("click"):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t,i="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(i).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(i).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":if(wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a){if(!wppaSlideWrap[p])return void wppaPrev(p);(t=_wppaCurIdx[p]-1)<0&&(t=_wppaSlides[p].length-1)}if("r"==a){if(!wppaSlideWrap[p])return void wppaNext(p);(t=_wppaCurIdx[p]+1)==_wppaSlides[p].length&&(t=0)}wppaGotoKeepState(p,t);break;default:alert("Unimplemented instruction: "+e+" on: "+i)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden"))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
1
  // wppa-utils
2
+ var wppaDebug;wppaJsUtilsVersion="8.0.00.007";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){t=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(a=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;t=jQuery(t[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}
3
  // wppa
4
+ wppaWppaVer="8.0.00.007";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,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)}),!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)});
5
  // wppa-slideshow
6
  var wppaJsSlideshowVersion="8.0.00.006";function wppaStoreSlideInfo(p,a,e,t,i,w,r,o,n,l,s,d,u,_,m,c,y,h,S,g,x,f,I,j,Q,b,v,N,T,C,k,R,F){n=wppaRepairScriptTags(n),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,"random"==S?_wppaTimeOut[p]="random":0<parseInt(S)?_wppaTimeOut[p]=parseInt(S):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[p]=[],_wppaRealId[p]=[],_wppaAvg[p]=[],_wppaDisc[p]=[],_wppaMyr[p]=[],_wppaVRU[p]=[],_wppaLinkUrl[p]=[],_wppaLinkTitle[p]=[],_wppaLinkTarget[p]=[],_wppaCommentHtml[p]=[],_wppaIptcHtml[p]=[],_wppaExifHtml[p]=[],_wppaUrl[p]=[],_wppaSkipRated[p]=!1,_wppaLbTitle[p]=[],_wppaDidGoto[p]=!1,wppaSlidePause[p]=!1,_wppaShareUrl[p]=[],_wppaShareHtml[p]=[],_wppaFilmNoMove[p]=!1,_wppaHiresUrl[p]=[],_wppaIsVideo[p]=[],_wppaVideoHtml[p]=[],_wppaAudioHtml[p]=[],_wppaVideoNatWidth[p]=[],_wppaVideoNatHeight[p]=[],wppaVideoPlaying[p]=!1,wppaAudioPlaying[p]=!1,_wppaWaitTexts[p]=[],_wppaImageAlt[p]=[],_wppaFilename[p]=[]),S="default",""!=c?S="pointer":""!=wppaLightBox[p]&&(S="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=N,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+k+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),0<R.length&&(_wppaSlides[p][a]+=' poster="'+R+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+k+'" class="theimg theimg-'+p+' big stereo" ',wppaSlideSwipe&&(_wppaSlides[p][a]+=' ontouchstart="wppaTouchStart( event, this.id, '+p+' );" ontouchend="wppaTouchEnd( event );" ontouchmove="wppaTouchMove( event );" ontouchcancel="wppaTouchCancel( event );" '),wppaAutoColumnWidth[p]||(_wppaSlides[p][a]+='width="'+i+'" height="'+w+'" '),_wppaIsVideo[p][a]?(R="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none;" '+R+">"+N+"</video>"):_wppaSlides[p][a]+='style="'+t+"; cursor:"+S+'; display:none; vertical-align:middle;">',_wppaFullNames[p][a]=wppaRepairBrTags(r),_wppaNames[p][a]=o,_wppaDsc[p][a]=n,_wppaOgDsc[p][a]=b,_wppaId[p][a]=l,_wppaRealId[p][a]=s,_wppaAvg[p][a]=d,_wppaDisc[p][a]=u,_wppaMyr[p][a]=_,_wppaVRU[p][a]=m,_wppaLinkUrl[p][a]=c,_wppaLinkTitle[p][a]=y,""!=h?_wppaLinkTarget[p][a]=h:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=g,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(I),_wppaShareUrl[p][a]=j,_wppaShareHtml[p][a]=wppaRepairScriptTags(Q),_wppaHiresUrl[p][a]=v,_wppaVideoHtml[p][a]=N,_wppaAudioHtml[p][a]=T,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=C,_wppaImageAlt[p][a]=k,_wppaFilename[p][a]=F}function wppaSpeed(p,a){_wppaSSRuns[p]&&_wppaSpeed(p,a)}function wppaStopShow(p){_wppaSSRuns[p]&&_wppaStop(p)}function wppaStartStop(p,a){_wppaIsBusy[p]?_wppaTP[p]=a:(_wppaSSRuns[p]?(_wppaStop(p),jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button",wppaIconSize(p,"48px",!0),!1,!0,"0","10","50","50"))),wppaIsMobile&&(jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(10,1).fadeTo(3e3,0),jQuery(".ubb-"+p).stop().fadeTo(10,1).fadeTo(3e3,0)))}function wppaBbb(p,a,e){_wppaSSRuns[p]||_wppaBbb(p,a,e)}function wppaUbb(p,a,e){_wppaUbb(p,a,e)}function wppaRateIt(p,a){_wppaRateIt(p,a)}function wppaOvlRateIt(p,a,e,t){_wppaOvlRateIt(p,a,e,t)}function wppaPrev(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrev(p)}function wppaPrevN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaPrevN(p,a)}function wppaFirst(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,0)}function wppaNext(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNext(p)}function wppaNextN(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaNextN(p,a)}function wppaLast(p){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,_wppaSlides[p].length-1)}function wppaFollowMe(p,a){_wppaSSRuns[p]||_wppaFollowMe(p,a)}function wppaLeaveMe(p,a){_wppaSSRuns[p]||_wppaLeaveMe(p,a)}function wppaGoto(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||_wppaGoto(p,a)}function wppaGotoFilmNoMove(p,a){_wppaDidGoto[p]=!0,_wppaSSRuns[p]||(_wppaFilmNoMove[p]=!0,_wppaGoto(p,a))}function wppaGotoKeepState(p,a){_wppaNxtIdx[p]!=a&&(_wppaDidGoto[p]=!0,_wppaGotoKeepState(p,a))}function _wppaGotoKeepState(p,a){(_wppaSSRuns[p]?_wppaGotoRunning:_wppaGoto)(p,a)}function wppaGotoRunning(p,a){_wppaDidGoto[p]=!0,_wppaGotoRunning(p,a)}function wppaValidateComment(p){return _wppaValidateComment(p)}function _wppaNextSlide(p,a){var e=!document.getElementById("slide_frame-"+p);if(_wppaStopping[p])_wppaStopping[p]=0;else{if(!e&&!wppaIsSlidshowVisible(p))return wppaFilmInit[p]=!1,void setTimeout(function(){_wppaNextSlide(p,a)},400);if(_wppaLastIdx[p]=_wppaCurIdx[p],!document.getElementById("slide_frame-"+p)&&document.getElementById("filmwindow-"+p)&&wppaFilmonlyContinuous)return _wppaSSRuns[p]?(_wppaCurIdx[p]++,_wppaCurIdx[p]==_wppaSlides[p].length&&(_wppaCurIdx[p]=0),_wppaAdjustFilmstrip(p,"linear"),_wppaNxtIdx[p]=_wppaCurIdx[p],void setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",wppaAnimationSpeed)):(_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFilmInit[p]=!1,void _wppaAdjustFilmstrip(p,"linear"));if(document.getElementById("slide_frame-"+p)||document.getElementById("filmwindow-"+p)){var t=_wppaFg[p],e=1-t;if((wppaVideoPlaying[p]||wppaAudioPlaying[p])&&_wppaSSRuns[p])setTimeout("_wppaNextSlide( "+p+", '"+a+"' )",500);else{if(wppaStopVideo(p),wppaStopAudio(p),"auto"==a){if(wppaSlidePause[p])return jQuery("#theimg"+t+"-"+p).attr("title",wppaSlidePause[p]),jQuery("#slide_frame-"+p).attr("title",wppaSlidePause[p]),void setTimeout("_wppaNextSlide( "+p+', "auto" )',250)}else jQuery("#slide_frame-"+p).removeAttr("title");if((_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(!(_wppaSlides[p].length<2)||_wppaFirst[p])){if(_wppaSSRuns[p]||"reset"!=a||(_wppaSSRuns[p]=!0,__wppaOverruleRun=!1),_wppaVoteInProgress=!1,_wppaIsBusy[p]=!0,_wppaSSRuns[p]&&_wppaShowMetaData(p,"hide"),_wppaSSRuns[p]&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0)),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaCurIdx[p]]).css({display:"none"}),jQuery("#geodiv-"+p+"-"+_wppaId[p][_wppaNxtIdx[p]]).css({display:""}),"undefined"!=typeof _wppaLat&&_wppaLat[p]?(o=_wppaRealId[p],_wppaLat[p][o[_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][o[_wppaNxtIdx[p]]],_wppaLon[p][o[_wppaNxtIdx[p]]])):jQuery("#map-canvas-"+p).css("display","none")):jQuery("#map-canvas-"+p).css("display","none"),jQuery("[id^=wppa-numbar-"+p+"-]").css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar}),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive}),_wppaSlides[p].length>wppaNumbarMax){var i,w,r=_wppaSlides[p].length-1,o=_wppaNxtIdx[p],n=(wppaNumbarMax-1)/2;o<n?(i=0,w=wppaNumbarMax-1-1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-n<o?(i=(w=r)-wppaNumbarMax+1+1,jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(w=o+n+.5-1,(i=o-n+1)<2?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"none"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})):r-1<w?(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"none"})):(jQuery("#wppa-nbar-"+p+"-lodots").css({display:"block"}),jQuery("#wppa-nbar-"+p+"-hidots").css({display:"block"})));for(var l=0;l<_wppaSlides[p].length;)0!=l&&l!=r&&(l<i||w<l)?jQuery("#wppa-numbar-"+p+"-"+l).css({display:"none"}):jQuery("#wppa-numbar-"+p+"-"+l).css({display:"block"}),l++}_wppaFirst[p]?(-1!=_wppaCurIdx[p]&&wppaMakeTheSlideHtml(p,"0",_wppaCurIdx[p]),wppaMakeTheSlideHtml(p,"1",_wppaNxtIdx[p]),jQuery("#imagedesc-"+p).html(_wppaDsc[p][_wppaCurIdx[p]]),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),"icons"==wppaSlideshowNavigationType?(n=wppaIconSize(p,"1.5em",!1),jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button",n,!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button",n,!1,!0))):wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPrevP),jQuery("#next-arrow-"+p).html(wppaNextP+"&nbsp;&raquo;")):(jQuery("#prev-arrow-"+p).html("&laquo;&nbsp;"+wppaPreviousPhoto),jQuery("#next-arrow-"+p).html(wppaNextPhoto+"&nbsp;&raquo;")),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRat),jQuery("#wppa-my-rat-"+p).html(wppaMyRat)):(jQuery("#wppa-avg-rat-"+p).html(wppaAvgRating),jQuery("#wppa-my-rat-"+p).html(wppaMyRating))):wppaMakeTheSlideHtml(p,e,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)}}}}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);!t||1!=t.nodeType||"IMG"!=t.nodeName||t.complete?(wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],_wppaFg[p],setTimeout("_wppaNextSlide_3( "+p+" )",10)):setTimeout("_wppaNextSlide_2( "+p+" )",200)}function _wppaNextSlide_3(p){var a=_wppaFg[p],e=1-a,t=_wppaCurIdx[p],i=_wppaNxtIdx[p],w="#theslide"+e+"-"+p,r="#theslide"+a+"-"+p,o="#theimg"+e+"-"+p,n="#theimg"+a+"-"+p,l=parseInt(jQuery(w).css("width")),s=t==i+1?"right":t==i-1?"left":t==i?"none":"nil";switch(t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap[p]&&(s="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap[p]&&(s="right"),"nil"==s&&(s=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeafter":wppaFadeOut(o,wppaAnimationSpeed),setTimeout(wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p)),wppaAnimationSpeed);break;case"swipe":switch(s){case"left":wppaAnimate(w,{marginLeft:-l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":wppaAnimate(w,{marginLeft:l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:-l+"px"}),wppaFadeIn(n,10),wppaAnimate(r,{marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":wppaFadeIn(n,10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:wppaFadeOut(o,wppaAnimationSpeed),wppaFadeIn(n,wppaAnimationSpeed,_wppaNextSlide_4(p))}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+a+"-"+p;jQuery("#theslide"+(1-a)+"-"+p).css({zIndex:80}),jQuery(e).css({zIndex:81}),_wppaCurIdx[p]=_wppaNxtIdx[p],wppaFormatSlide(p),wppaIsMini[p]||wppaGetContainerWidth(p)<wppaMiniTreshold?jQuery("#counter-"+p).html(_wppaCurIdx[p]+1+" / "+_wppaSlides[p].length):jQuery("#counter-"+p).html(wppaPhoto+" "+(_wppaCurIdx[p]+1)+" "+wppaOf+" "+_wppaSlides[p].length),jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]]),_wppaAdjustFilmstrip(p),_wppaSetRatingDisplay(p),setTimeout("_wppaNextSlide_5( "+p+" )",_wppaTextDelay)}function _wppaNextSlide_5(p){var a,e,t;if(_wppaToTheSame||(a=_wppaDsc[p][_wppaCurIdx[p]],jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty&&(""==(a=_wppaDsc[p][_wppaCurIdx[p]])||"&nbsp;"==a?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")),jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),"void"==_wppaCommentHtml[p][_wppaCurIdx[p]]?(jQuery("#wppa-comments-"+p).hide(),jQuery("#wppa-comments-"+p).html("")):(jQuery("#wppa-comments-"+p).show(),jQuery("#wppa-comments-"+p).html(_wppaCommentHtml[p][_wppaCurIdx[p]])),jQuery("#iptc-"+p).html(_wppaIptcHtml[p][_wppaCurIdx[p]]),jQuery("#exif-"+p).html(_wppaExifHtml[p][_wppaCurIdx[p]]),jQuery("#wppa-share-"+p).html(_wppaShareHtml[p][_wppaCurIdx[p]])),_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap[p]&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var i=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p,"next_5"),void wppaStartStop(p,i)}wppaUpdateLightboxes(),wppaIsMini[p]||(i=_wppaShareUrl[p][_wppaCurIdx[p]],"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),1<_wppaSlides[p].length&&wppaPushStateSlide(p,_wppaCurIdx[p],i)),_wppaSSRuns[p]?_wppaCurIdx[p]+1==_wppaSlides[p].length?(t=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<t.length&&"hidden"!=jQuery(t).css("visibility")?setTimeout(function(){jQuery("#wppa-next-pagelink-"+p).trigger("click")},wppaGetSlideshowTimeout(p)):0<e.length?setTimeout(function(){jQuery(e).trigger("click")},wppaGetSlideshowTimeout(p)):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p))):setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)):_wppaStopping[p]=!1,jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),wppaStopAudio(p),!wppaSlideAudioStart||0<(t=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p)).length&&((t=t[t.length-1])&&(wppaAudioPlaying[p]||t.play())),wppaProtect()}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e=document.getElementById(a);if(e){var t="theslide"+_wppaFg[p]+"-"+p,i="slide_frame-"+p,w=jQuery("#wppa-container-"+p).width();wppaColWidth[p]=w;var r=jQuery(".wppa-audio-"+p),o=e.naturalWidth;void 0===o&&(o=parseInt(e.style.maxWidth));var n=e.naturalHeight;void 0===n&&(n=parseInt(e.style.maxHeight));var l=wppaAspectRatio[p],s=wppaFullSize[p],d=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,g,x,f,e=wppaStretch;if(u)j=w-d,h=y=0,x=S=w,f=g=(c=parseInt(j*n/o))+d,jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c});else{if(s<(x=w)&&(x=s),S=x,g=f=parseInt(x*l),e||x-d<=o||f-d<=n?l<(n+d)/(o+d)?(c=f-d,j=parseInt(c*o/n)):(j=x-d,c=parseInt(j*n/o)):(j=o,c=n),"default"!=_&&"none"!=_){switch(_){case"top":h=0;break;case"center":h=parseInt((f-(c+d))/2);break;case"bottom":h=f-(c+d);break;case"fit":h=0,g=f=c+d}jQuery("#"+a).css({marginTop:h,marginBottom:0})}if(jQuery("#"+i).css({width:x,height:f}),jQuery("#"+t).css({width:S,height:g}),jQuery("#"+a).css({width:j,height:c}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":y=0;break;case"center":y=parseInt((w-x)/2);break;case"right":y=w-x}y<0&&(y=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+i).css({marginLeft:y})}var i=jQuery(r).height(),I=(x-j)/2;i&&0<i&&(wppaAudioHeight=i,jQuery(r).css({height:wppaAudioHeight,width:j,left:I}))}var j=parseInt(x/3),I=2*j,r=0<r.length?f-wppaAudioHeight-wppaSlideBorderWidth-h:f;jQuery("#bbb-"+p+"-l").css({height:r,width:j,left:0}),jQuery("#bbb-"+p+"-r").css({height:r,width:j,left:I})}}function wppaMakeNameHtml(p){var a,e,t="";if(_wppaCurIdx[p]<0)return"";if("void"==_wppaFullNames[p][_wppaCurIdx[p]])return jQuery("#namebox-"+p).hide(),"";if(jQuery("#namebox-"+p).show(),wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])t=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":t=wppaArtMonkeyButton?_wppaFullNames[p][_wppaCurIdx[p]]?(a=-1!=_wppaFullNames[p][_wppaCurIdx[p]].indexOf("plus.png"),e=_wppaFullNames[p][_wppaCurIdx[p]].replace(/(<([^>]+)>)/gi,""),e=a?e.replace(" )"," +)"):e.replace(" )",")"),'<input type="button" title="Download" style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(p)-24)+'px;" class="wppa-download-button" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+'\' );" value="'+wppaDownLoad+": "+e+'" />'):"":wppaArtmonkeyFileNotSource?'<a href="'+_wppaUrl[p][_wppaCurIdx[p]]+'" title="Download" style="cursor:pointer;" download="'+_wppaFilename[p][_wppaCurIdx[p]]+'" >'+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>":'<a title="Download" style="cursor:pointer;" onclick="'+(wppaIsSafari&&"file"==wppaArtMonkyLink?"wppaWindowReference = window.open();":"")+"wppaAjaxMakeOrigName( "+p+", '"+_wppaId[p][_wppaCurIdx[p]]+"' );\" >"+wppaDownLoad+": "+_wppaFullNames[p][_wppaCurIdx[p]]+"</a>";break;case"none":case"new":t=_wppaFullNames[p][_wppaCurIdx[p]];break;default:t=""}return wppaRepairBrTags(t)}function wppaMakeTheSlideHtml(p,a,e){var t,i,w=_wppaIsVideo[p][e]?"video":"img",r="title";"wppa"==wppaLightBox[p]&&(r="data-lbtitle");var o,n,l=""==wppaLightBox[p]?' onpause="wppaVideoPlaying['+p+'] = false;" onplay="wppaVideoPlaying['+p+'] = true;"':"";if(""!=_wppaLinkUrl[p][e])t=wppaSlideToFullpopup?'<a onclick="wppaStopAudio();wppaStopShow('+p+");"+_wppaLinkUrl[p][e]+'" target="'+_wppaLinkTarget[p][e]+'" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>":"<a onclick=\"_bumpClickCount('"+_wppaId[p][e]+"');wppaStopAudio();wppaStopShow("+p+");window.open('"+_wppaLinkUrl[p][e]+"', '"+_wppaLinkTarget[p][e]+'\');" title="'+_wppaLinkTitle[p][e]+'"><'+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+w+l+' title="'+_wppaNames[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var s="",d=0,u=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";d<e;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;for(i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]),n=".pdf"==(o=_wppaHiresUrl[p][e]).substr(o.length-4,o.length),s+='<a href="'+i+'" onclick="wppaStopAudio();wppaStopShow('+p+');" style="cursor:pointer;" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+r+'="'+_wppaLbTitle[p][e]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'">'+(n?"<iframe "+l+' src="'+o+'" title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" style="width:100%;height:100%;" ></iframe>':"<"+w+l+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e])+"</a>",d=e+1;d<_wppaUrl[p].length;)i=wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][d]:wppaMakeFullsizeUrl(_wppaUrl[p][d]),n=".pdf"==(o=_wppaHiresUrl[p][d]).substr(o.length-4,o.length),s+='<a href="'+i+'"'+(_wppaIsVideo[p][d]?' data-videonatwidth="'+_wppaVideoNatWidth[p][d]+'" data-videonatheight="'+_wppaVideoNatHeight[p][d]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][d])+'"':"")+(n?" data-pdfhtml=\"src='"+o+"'\"":"")+(""!=_wppaAudioHtml[p][d]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][d])+'"':"")+" "+r+'="'+_wppaLbTitle[p][d]+'" '+wppaRel+'="'+wppaLightBox[p]+u+'"></a>',d++;t=s}""!=_wppaAudioHtml[p][e]&&(t+='<audio controls id="wppa-audio-'+_wppaId[p][e]+"-"+p+'" class="wppa-audio-'+p+" wppa-audio-"+_wppaId[p][e]+"-"+p+'" data-from="wppa" onplay="wppaAudioPlaying['+p+'] = true;" onpause="wppaAudioPlaying['+p+'] = false" style="position:relative;top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+"px;z-index:10;width:"+_wppaVideoNatWidth[p][e]+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function wppaAdjustAllFilmstrips(p){jQuery(".wppa-filmstrip").each(function(){_wppaAdjustFilmstrip(jQuery(this).attr("id").substr(15),p)})}var wppaLastAnimFilmLoc=[];function _wppaAdjustFilmstrip(p,a){if(document.getElementById("wppa-filmstrip-"+p)){var e,t,i,w,r=!document.getElementById("slide_frame-"+p);if(wppaLastAnimFilmLoc[p]||(wppaLastAnimFilmLoc[p]=0),r){var o=jQuery("#wppa-filmstrip-"+p);if(!wppaIsElementInViewport(o))return}if(r||jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p]&&wppaFilmInit[p]?_wppaFilmNoMove[p]=!1:(e=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule[p])*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(e-=2*wppaFilmStripMargin[p]+2),i=e+wppaThumbnailPitch[p],w=e-wppaThumbnailPitch[p],t=wppaAnimationSpeed,wppaFilmInit[p]||(t=1),0==_wppaCurIdx[p]&&_wppaLastIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):0==_wppaLastIdx[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1?(jQuery("#wppa-filmstrip-"+p).css({marginLeft:w+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e)):(o=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),i=parseInt(e),w=wppaThumbnailPitch[p],_wppaSSRuns[p]?(o<i?2:i<o-2*w?1:0)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+w+"px"}):(i<o-1.5*w||o+1.5*w<i)&&jQuery("#wppa-filmstrip-"+p).css({marginLeft:i+"px"}),wppaLastAnimFilmLoc[p]!=e&&(wppaAnimate("#wppa-filmstrip-"+p,{marginLeft:e+"px"},t,a),wppaLastAnimFilmLoc[p]=e,wppaFilmInit[p]=!0)),_wppaLastIdx[p]=_wppaCurIdx[p]),wppaMakeLazyVisible("filmstripmocc="+p),!r&&-1!=_wppaCurIdx[p]){_wppaCurIdx[p];_wppaCurIdx[p]+10>_wppaSlides[p].length&&_wppaSlides[p].length;for(var n=0;n<_wppaSlides[p].length;)jQuery("#film_wppatnf_"+_wppaId[p][n]+"_"+p).html()&&(""!=jQuery("#wppa-film-"+n+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+n+"-"+p).attr("title",jQuery("#wppa-film-"+n+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==n?(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]),jQuery("#wppa-pre-"+n+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][n]))),n++}r||jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){var a,e;!wppaSlideWrap[p]&&_wppaCurIdx[p]==_wppaSlides[p].length-1||(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length?(a=jQuery("#wppa-next-pagelink-"+p),e=jQuery("#wppa-first-pagelink-"+p),0<a.length&&"hidden"!=jQuery(a).css("visibility")?jQuery("#wppa-next-pagelink-"+p).trigger("click"):0<e.length&&jQuery(e).trigger("click")):_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]>=_wppaSlides[p].length-a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]+a;_wppaNxtIdx[p]>=_wppaSlides[p].length;)_wppaNxtIdx[p]-=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaNextOnCallback(p){if(wppaSlideWrap[p]||_wppaCurIdx[p]!=_wppaSlides[p].length-1){if(_wppaSkipRated[p]){var a=_wppaCurIdx[p]+1;a==_wppaSlides[p].length&&(a=0);var e=a;if(0!=_wppaMyr[p][e]){for(++a==_wppaSlides[p].length&&(a=0);a!=e&&0!=_wppaMyr[p][a];)++a==_wppaSlides[p].length&&(a=0);e=a}_wppaNxtIdx[p]=e}else _wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0);_wppaNextSlide(p,0)}}function _wppaPrev(p){!wppaSlideWrap[p]&&0==_wppaCurIdx[p]||(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0?jQuery("#wppa-prev-page-last-item-"+p).trigger("click"):_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap[p]||!(_wppaCurIdx[p]<a)){for(_wppaNxtIdx[p]=_wppaCurIdx[p]-a;_wppaNxtIdx[p]<0;)_wppaNxtIdx[p]+=_wppaSlides[p].length;_wppaNextSlide(p,0)}}function _wppaGoto(p,a){_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,_wppaNextSlide(p,0)}function _wppaGotoRunning(p,a){_wppaIsBusy[p]?setTimeout("_wppaGotoRunning( "+p+","+a+" )",10):(_wppaSSRuns[p]=!1,_wppaToTheSame=_wppaNxtIdx[p]==a,_wppaNxtIdx[p]=a,__wppaOverruleRun=!0,_wppaNextSlide(p,"manual"),_wppaGotoContinue(p))}function _wppaGotoContinue(p){_wppaIsBusy[p]?setTimeout("_wppaGotoContinue( "+p+" )",10):setTimeout("_wppaNextSlide( "+p+', "reset" )',wppaGetSlideshowTimeout(p)+10)}function _wppaStart(p,a){if(_wppaStopping[p])return _wppaStopping[p]--,void setTimeout(function(){_wppaStart(p,a)},(wppaAnimationSpeed+wppaGetSlideshowTimeout(p))/10);_wppaSSRuns[p]||("icons"==wppaSlideshowNavigationType?_wppaStartIcons:_wppaStartText)(p,a)}function _wppaStartIcons(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}var t=wppaIconSize(p,"1.5em",!1);-1<a?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaSvgHtml("Pause-Button",t,!1,!0,"0","10","20","50")),jQuery("#speed0-"+p).show(),jQuery("#speed1-"+p).show(),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStartText(p,a){if(-2==a){var e=0;if(a=0,_wppaSkipRated[p]=!0,0!=_wppaMyr[p][e])for(;e<_wppaSlides[p].length;)0==a&&0==_wppaMyr[p][e]&&(a=e),e++}-1<a?(jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaNxtIdx[p]=a,_wppaCurIdx[p]=a,_wppaNextSlide(p,0),_wppaShowMetaData(p,"show")):(_wppaSSRuns[p]=!0,_wppaNextSlide(p,0),jQuery("#startstop-"+p).html(wppaStop),jQuery("#speed0-"+p).css("display","inline"),jQuery("#speed1-"+p).css("display","inline"),_wppaShowMetaData(p,"hide"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){_wppaStopping[p]=12,("icons"==wppaSlideshowNavigationType?_wppaStopIcons:_wppaStopText)(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button",wppaIconSize(p,"1.5em",!1),!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaStopText(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaStart+" "+wppaSlideShow),jQuery("#speed0-"+p).css("display","none"),jQuery("#speed1-"+p).css("display","none"),_wppaShowMetaData(p,"show"),(jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p):jQuery("#bc-pname-"+p)).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?500<_wppaTimeOut[p]&&(_wppaTimeOut[p]/=1.5):_wppaTimeOut[p]<6e4&&(_wppaTimeOut[p]*=1.5))}function _wppaLoadSpinner(p){}function _wppaUnloadSpinner(p){jQuery("#wppa-slide-spin-"+p).stop().fadeOut(),setTimeout(function(){jQuery("#wppa-slide-spin-"+p).stop().fadeOut()},1e3)}function _wppaCheckRewind(p){var a,e;document.getElementById("wppa-filmstrip-"+p)&&((e=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||(1+wppaFilmStripLength[p]/wppaThumbnailPitch[p])/2<=e&&(a=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(a+=2+2*wppaFilmStripMargin[p]),e=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?e-=a:e+=a,jQuery("#wppa-filmstrip-"+p).css("margin-left",e+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t=_wppaAvg[p][_wppaCurIdx[p]];if(void 0!==t){if("likes"==wppaRatingDisplayType){"void"==(e=_wppaMyr[p][_wppaCurIdx[p]])?(jQuery("#wppa-dislike-imgdiv-"+p).hide(),jQuery("#wppa-like-imgdiv-"+p).hide()):(jQuery("#wppa-dislike-imgdiv-"+p).show(),jQuery("#wppa-like-imgdiv-"+p).show());var w=t.split("|");return jQuery("#wppa-like-"+p).attr("title",w[0]),jQuery("#wppa-liketext-"+p).html(w[1]),void("1"==_wppaMyr[p][_wppaCurIdx[p]]?jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbdown.png"):jQuery("#wppa-like-"+p).attr("src",wppaImageDirectory+"thumbup.png"))}if(t=(a=t.split("|"))[0],w=a[1],a=_wppaDisc[p][_wppaCurIdx[p]],e=_wppaMyr[p][_wppaCurIdx[p]],"void"==a)jQuery("#wppa-rating-"+p).hide();else{if(jQuery("#wppa-rating-"+p).show(),"graphic"==wppaRatingDisplayType)_wppaSetRd(p,t,"#wppa-avg-"),_wppaSetRd(p,e,"#wppa-rate-"),0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),document.getElementById("wppa-dislike-"+p)&&jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).stop().fadeTo(100,wppaStarOpacity),jQuery("#wppa-filler-"+p).attr("title",a));else{if(jQuery("#wppa-numrate-avg-"+p).html(t+" ( "+w+" ) "),jQuery(".wppa-my-rat-"+p).show(),"void"==e)jQuery("#wppa-numrate-mine-"+p).html(""),jQuery(".wppa-my-rat-"+p).hide();else if(wppaRatingOnce&&0<e)jQuery("#wppa-numrate-mine-"+p).html(e);else if(e<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var r="";for(i=1;i<=wppaRatingMax;i++)e==i?r+='<span class="wppa-rating-numeric-mine" style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(e>i-1&&e<i&&(r+="&nbsp;( "+e+" )&nbsp;"),r+='<span class="wppa-rating-numeric" style="cursor:pointer;" onclick="_wppaRateIt( '+p+", "+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+"&nbsp;</span>");jQuery("#wppa-numrate-mine-"+p).html(r)}0==e?(jQuery("#wppa-dislike-"+p).css("display","inline"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","inline"),jQuery("#wppa-filler-"+p).css("display","none"),jQuery("#wppa-dislike-"+p).stop().fadeTo(100,wppaStarOpacity)):(jQuery("#wppa-dislike-"+p).css("display","none"),jQuery("#wppa-dislike-imgdiv-"+p).css("display","none"),jQuery("#wppa-filler-"+p).css("display","inline")),jQuery("#wppa-discount-"+p).html(a+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==e?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(w)}}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=wppaStarOpacity+(a-t)*(1-wppaStarOpacity),r=wppaRatingMax;if("void"==a)jQuery("#wppa-my-rat-"+p).hide(),jQuery(".wppa-my-rat-"+p).hide(),jQuery(".wppa-rate-"+p).hide(),jQuery(".wppa-ratingthumb").hide(),jQuery("#wppa-numrate-mine-"+p).hide();else for(jQuery("#wppa-my-rat-"+p).show(),jQuery(".wppa-my-rat-"+p).show(),jQuery(".wppa-rate-"+p).show(),jQuery(".wppa-ratingthumb").show(),jQuery("#wppa-numrate-mine-"+p).show(),idx=1;idx<=r;idx++)"#wppa-rate-"!=e&&".wppa-rate-"!=e||jQuery(e+p+"-"+idx).attr("src")!=wppaImageDirectory+"star.ico"&&jQuery(e+p+"-"+idx).attr("src",wppaImageDirectory+"star.ico"),idx<=t?jQuery(e+p+"-"+idx).stop().fadeTo(100,1):idx==i?jQuery(e+p+"-"+idx).stop().fadeTo(100,w):jQuery(e+p+"-"+idx).stop().fadeTo(100,wppaStarOpacity)}function _wppaFollowMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,a,"#wppa-rate-")}function wppaOvlFollowMe(p,a,e){e||_wppaSetRd(p,a,".wppa-rate-")}function _wppaLeaveMe(p,a){_wppaSSRuns[p]||0!=_wppaMyr[p][_wppaCurIdx[p]]&&wppaRatingOnce||_wppaMyr[p][_wppaCurIdx[p]]<0||_wppaVoteInProgress||_wppaSetRd(p,_wppaMyr[p][_wppaCurIdx[p]],"#wppa-rate-")}function wppaOvlLeaveMe(p,a,e){_wppaSetRd(p,e,".wppa-rate-")}function _wppaValidateComment(p,a){if(a=a||_wppaId[p][_wppaCurIdx[p]],jQuery("#wppa-comname-"+p).val().length<1)return alert(wppaPleaseName),!1;if("required"==wppaEmailRequired||"optional"==wppaEmailRequired){var e=jQuery("#wppa-comemail-"+p).val();if("optional"==wppaEmailRequired&&0==e.length)return!0;var t=e.indexOf("@"),a=e.lastIndexOf(".");if(t<1||a<t+2||a+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t,i="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(i).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(i).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),wppaIsMobile?jQuery(".ubb-"+p).stop().fadeTo(200,.1):jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":if(wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),"l"==a){if(!wppaSlideWrap[p])return void wppaPrev(p);(t=_wppaCurIdx[p]-1)<0&&(t=_wppaSlides[p].length-1)}if("r"==a){if(!wppaSlideWrap[p])return void wppaNext(p);(t=_wppaCurIdx[p]+1)==_wppaSlides[p].length&&(t=0)}wppaGotoKeepState(p,t);break;default:alert("Unimplemented instruction: "+e+" on: "+i)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_wppaSSRuns[p]||__wppaOverruleRun?"show"==a?wppaFotomotoHideWhenRunning||wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]]):wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display","none"):"show"==a?(wppaAutoOpenComments&&(jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none")),0!=_wppaCurIdx[p]&&jQuery(".wppa-first-"+p).show(),_wppaCurIdx[p]!=_wppaSlides[p].length-1&&jQuery(".wppa-last-"+p).show(),wppaShareHideWhenRunning&&jQuery("#wppa-share-"+p).css("display",""),wppaFotomotoToolbar(p,_wppaHiresUrl[p][_wppaCurIdx[p]])):(jQuery("#wppa-comtable-wrap-"+p).css("display","none"),jQuery("#wppa-comform-wrap-"+p).css("display","none"),jQuery("#wppa-comfooter-wrap-"+p).css("display","block"),wppaFotomotoHide(p)),"show"==a?(jQuery("#imagedesc-"+p).css("visibility","visible"),jQuery("#imagetitle-"+p).css("visibility","visible"),jQuery("#counter-"+p).css("visibility","visible"),jQuery("#iptccontent-"+p).css("visibility","visible"),jQuery("#exifcontent-"+p).css("visibility","visible")):(jQuery("#counter-"+p).css("visibility","hidden"),jQuery(".wppa-first-"+p).hide(),jQuery(".wppa-last-"+p).hide(),jQuery("#iptccontent-"+p).css("visibility","hidden"),jQuery("#exifcontent-"+p).css("visibility","hidden"))}function wppaGetSlideshowTimeout(p){var a,e;return"random"==_wppaTimeOut[p]?(a=2*wppaAnimationSpeed,e=7*wppaAnimationSpeed,Math.floor(Math.random()*(e-a+1))+a):_wppaTimeOut[p]}function wppaIsSlidshowVisible(p){for(var a,e=["slide_frame-"+p,"filmwindow-"+p],t=e.length,i=0;i<t;i++)if(a=document.getElementById(e[i]),a&&(a.getBoundingClientRect(),wppaIsElementInViewport(a)))return!0;return wppaFilmInit[p]=!1}
7
  // wppa-ajax-front
js/wppa-utils.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // conatins common vars and functions
4
  //
5
- wppaJsUtilsVersion = '8.0.00.006';
6
  var wppaDebug;
7
  var wppaDebugCounter = 0;
8
 
@@ -421,6 +421,9 @@ function wppaMakeLazyVisible(e) {
421
  setTimeout( function(){
422
  jQuery( "div" ).getNiceScroll().resize();
423
  },500);
 
 
 
424
  }
425
 
426
  // Fake a scroll
2
  //
3
  // conatins common vars and functions
4
  //
5
+ wppaJsUtilsVersion = '8.0.00.007';
6
  var wppaDebug;
7
  var wppaDebugCounter = 0;
8
 
421
  setTimeout( function(){
422
  jQuery( "div" ).getNiceScroll().resize();
423
  },500);
424
+ setTimeout( function(){
425
+ jQuery( "div" ).getNiceScroll().resize();
426
+ },1500);
427
  }
428
 
429
  // Fake a scroll
js/wppa-utils.min.js CHANGED
@@ -1 +1 @@
1
- var wppaDebug;wppaJsUtilsVersion="8.0.00.006";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,a,t,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(a),i&&setTimeout(i,10)):jQuery(e).stop().animate(a,t,p,i)}function wppaFadeIn(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),t&&setTimeout(t,10)):jQuery(e).stop().fadeIn(a,t)}function wppaFadeOut(e,a,t){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),t&&setTimeout(t,10)):jQuery(e).stop().fadeOut(a,t)}function wppaFadeTo(e,a,t,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:t}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(a,t,p)}function wppaTrim(e,a){e=wppaTrimLeft(e,a);return e=wppaTrimRight(e,a)}function wppaTrimLeft(e,a){var t,p,i,n,r,o,s;switch(typeof a){case"string":for(p=(t=e).length,i=a.length;i<=p&&t.substr(0,i)==a;)p=(t=t.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<a.length;)s=wppaTrimLeft(s,a[n]),n++;r=o==s}t=s;break;default:return e.replace(/^\s\s*/,"")}return t}function wppaTrimRight(e,a){var t,p,i,n,r,o,s;switch(typeof a){case"string":for(p=(t=e).length,i=a.length;i<=p&&t.substr(p-i)==a;)p=(t=t.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<a.length;)s=wppaTrimRight(s,a[n]),n++;r=o==s}t=s;break;default:return e.replace(/\s\s*$/,"")}return t}function wppa_setCookie(e,a,t){var p=new Date;p.setDate(p.getDate()+t);p=escape(a)+(null==t?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var a,t,p=document.cookie.split(";"),i=0;i<p.length;i++)if(a=p[i].substr(0,p[i].indexOf("=")),t=p[i].substr(p[i].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))==e)return unescape(t);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,a){var t,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=a||(t=(new Date).getTime()%864e5,t-=60*(p=Math.floor(t/36e5))*60*1e3,t-=60*(i=Math.floor(t/6e4))*1e3,a=Math.floor(t/1e3),console.log("At: "+p+":"+i+":"+a+"."+(t-=1e3*a)+" message: "+e))}function wppaSvgHtml(e,a,t,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}a=a||"32px",t="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):t?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==t&&(t="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(a?"height:"+a+";":"")+"fill:"+s+";background-color:"+t+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var a,t=new Date,p=t.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){a=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",a),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(t=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var a=jQuery(e);a[0]&&"BODY"!=a[0].nodeName;){if("none"==jQuery(a[0]).css("display"))return!1;a=jQuery(a[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,a,t){t=t?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==t?a:(wppaIsMini[e]?t/2:t)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var a=e.parentNode.clientWidth;jQuery(e).css({maxWidth:a})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,a,t=jQuery;wppaOvlOpen&&(a=wppaIsFs()?(t(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(t(".wppa-pctl-div-lb").css({position:"initial"}),t("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(a-=20),a<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(a/12-4))&&(t(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),t(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,t(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),t(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?t(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):t(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),t(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,a,t){},error:function(e,a,t){wppaConsoleLog("wppaServerLog failed. Error = "+t+", status = "+a,"force")}})}function wppaTimNow(){return(new Date).getTime()}
1
+ var wppaDebug;wppaJsUtilsVersion="8.0.00.007";var wppaMakeLazyVisibleScrollEndTimer,wppaDebugCounter=0;function wppaAnimate(e,t,a,p,i){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css(t),i&&setTimeout(i,10)):jQuery(e).stop().animate(t,a,p,i)}function wppaFadeIn(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:""}),a&&setTimeout(a,10)):jQuery(e).stop().fadeIn(t,a)}function wppaFadeOut(e,t,a){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"none"}),a&&setTimeout(a,10)):jQuery(e).stop().fadeOut(t,a)}function wppaFadeTo(e,t,a,p){wppaIsMobile&&wppaNoAnimateOnMobile?(jQuery(e).css({display:"",opacity:a}),p&&setTimeout(p,10)):jQuery(e).stop().fadeTo(t,a,p)}function wppaTrim(e,t){e=wppaTrimLeft(e,t);return e=wppaTrimRight(e,t)}function wppaTrimLeft(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(0,i)==t;)p=(a=a.substr(i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimLeft(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/^\s\s*/,"")}return a}function wppaTrimRight(e,t){var a,p,i,n,r,o,s;switch(typeof t){case"string":for(p=(a=e).length,i=t.length;i<=p&&a.substr(p-i)==t;)p=(a=a.substr(0,p-i)).length;break;case"object":for(r=!1,s=e;!r;){for(n=0,o=s;n<t.length;)s=wppaTrimRight(s,t[n]),n++;r=o==s}a=s;break;default:return e.replace(/\s\s*$/,"")}return a}function wppa_setCookie(e,t,a){var p=new Date;p.setDate(p.getDate()+a);p=escape(t)+(null==a?"":"; expires="+p.toUTCString());document.cookie=e+"="+p}function wppa_getCookie(e){for(var t,a,p=document.cookie.split(";"),i=0;i<p.length;i++)if(t=p[i].substr(0,p[i].indexOf("=")),a=p[i].substr(p[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==e)return unescape(a);return""}function wppaStereoTypeChange(e){wppa_setCookie("stereotype",e,365)}function wppaStereoGlassChange(e){wppa_setCookie("stereoglass",e,365)}function wppaConsoleLog(e,t){var a,p,i;"undefined"==typeof console||!wppaDebug&&"force"!=t||(a=(new Date).getTime()%864e5,a-=60*(p=Math.floor(a/36e5))*60*1e3,a-=60*(i=Math.floor(a/6e4))*1e3,t=Math.floor(a/1e3),console.log("At: "+p+":"+i+":"+t+"."+(a-=1e3*t)+" message: "+e))}function wppaSvgHtml(e,t,a,p,i,n,r,o){var s;switch(i=i||"0",n=n||"10",r=r||"20",o=o||"50",wppaSvgCornerStyle){case"gif":case"none":radius=i;break;case"light":radius=n;break;case"medium":radius=r;break;case"heavy":radius=o}t=t||"32px",a="Full-Screen"==e||"Exit-Full-Screen"==e?(s=wppaFsFillcolor,wppaFsBgcolor):a?(s=wppaOvlSvgFillcolor,wppaOvlSvgBgcolor):(s=wppaSvgFillcolor,wppaSvgBgcolor),""==s&&(s="transparent"),""==a&&(a="transparent");var l='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="'+(t?"height:"+t+";":"")+"fill:"+s+";background-color:"+a+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.3-0.2,0.5-0.5,0.5S19,20.8,19,20.5v-4.2l-8.3,4.6c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1c-0.2-0.1-0.2-0.3-0.2-0.4v-11c0-0.2,0.1-0.4,0.3-0.4c0.2-0.1,0.4-0.1,0.5,0l8.2,5.5V9.5C19,9.2,19.2,9,19.5,9S20,9.2,20,9.5V20.5z" />';break;case"Prev-Button":l+='<path d="M30,0H0V30H30V0z M20,20.5c0,0.2-0.1,0.4-0.3,0.4c-0.1,0-0.2,0.1-0.2,0.1c-0.1,0-0.2,0-0.3-0.1L11,15.4v5.1c0,0.3-0.2,0.5-0.5,0.5S10,20.8,10,20.5v-11C10,9.2,10.2,9,10.5,9S11,9.2,11,9.5v4.2l8.3-4.6c0.2-0.1,0.3-0.1,0.5,0S20,9.3,20,9.5V20.5z" />';break;case"Pause-Button":l+='<path d="M30,0H0V30H30V0z M14,20.5c0,0.3-0.2,0.5-0.5,0.5h-4C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h4C13.8,9,14,9.2,14,9.5V20.5z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-4c-0.3,0-0.5-0.2-0.5-0.5v-11C16,9.2,16.2,9,16.5,9h4C20.8,9,21,9.2,21,9.5V20.5z" />';break;case"Play-Button":l+='<path d="M30,0H0V30H30V0zM19.8,14.9l-8,5C11.7,20,11.6,20,11.5,20c-0.1,0-0.2,0-0.2-0.1c-0.2-0.1-0.3-0.3-0.3-0.4v-9c0-0.2,0.1-0.3,0.2-0.4c0.1-0.1,0.3-0.1,0.5,0l8,4c0.2,0.1,0.3,0.2,0.3,0.4C20,14.7,19.9,14.8,19.8,14.9z" />';break;case"Stop-Button":l+='<path d="M30,0H0V30H30V0z M21,20.5c0,0.3-0.2,0.5-0.5,0.5h-11C9.2,21,9,20.8,9,20.5v-11C9,9.2,9.2,9,9.5,9h11C20.8,9,21,9.2,21,9.5V20.5z"/>';break;case"Exit":l+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Exit-2":l+='<path d="M30,0H0V30H30V0z M9 4 L15 10 L21 4 L26 9 L20 15 L26 21 L21 26 L15 20 L9 26 L4 21 L10 15 L4 9Z" />';break;case"Full-Screen":l+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M4 4 L12 4 L10 6 L14 10 L10 14 L6 10 L4 12Z M18 4 L26 4 L26 12 L24 10 L20 14 L16 10 L20 6Z M26 26 L18 26 L20 24 L16 20 L20 16 L24 20 L26 18Z M4 26 L4 18 L6 20 L10 16 L14 20 L10 24 L12 26Z" />';break;case"Exit-Full-Screen":l+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;case"Exit-Full-Screen-2":l+='<path d="M30,0H0V30H30V0z M17 17 L25 17 L23 19 L27 23 L23 27 L19 23 L17 25Z M5 17 L13 17 L13 25 L11 23 L7 27 L3 23 L7 19Z M13 13 L5 13 L7 11 L3 7 L7 3 L11 7 L13 5Z M17 13 L17 5 L19 7 L23 3 L27 7 L23 11 L25 13Z" />';break;default:l+='<path d="M30,0H0V30H30V0z" />'}return l+="</g></svg>"}function wppaMakeLazyVisibleScrollEnd(){clearTimeout(wppaMakeLazyVisibleScrollEndTimer),wppaMakeLazyVisibleScrollEndTimer=setTimeout(function(){wppaMakeLazyVisible("scrollend")},wppaScrollEndDelay)}var wppaLastLazy=0,wppaLazyTimer=0,wppaLazyBusy=!1;function wppaMakeLazyVisible(e){if(wppaLazyLoad&&(wppaConsoleLog("Doing wppaMakeLazyVisible("+e+")","force"),!wppaLazyBusy)){wppaLazyBusy=!0;var t,a=new Date,p=a.getTime(),i=p-wppaLastLazy;if(p<wppaLastLazy+250)return clearTimeout(wppaLazyTimer),wppaLazyTimer=setTimeout(function(){wppaMakeLazyVisible("selftimer")},100),void(wppaLazyBusy=!1);wppaInitMasonryPlus(),wppaLastLazy=p,clearTimeout(wppaLazyTimer);var n=0,e=jQuery("*[data-src]");e.each(function(){t=jQuery(this).attr("data-src"),(wppaIsElementInViewport(this)||wppaIsMobile)&&(jQuery(this).attr("src",t),jQuery(this).removeAttr("data-src"),n++)}),0<n&&(wppaInitMasonryPlus(),jQuery("div").getNiceScroll&&(setTimeout(function(){jQuery("div").getNiceScroll().resize()},500),setTimeout(function(){jQuery("div").getNiceScroll().resize()},1500)),setTimeout(function(){jQuery(".wppa-box").trigger("scroll"),jQuery("body").trigger("scroll")},250)),wppaConsoleLog("MakeLazyVisible done after "+i+" ms in "+((p=(a=new Date).getTime())-wppaLastLazy)+" ms. Processed "+n+" out of "+e.length+" elements","force"),wppaLastLazy=p,wppaLazyBusy=!1}}function wppaIsElementInViewport(e){if(void 0===e)return!1;if(!e)return!1;if(0==e.length)return!1;if(window.closed)return!1;if(document.hidden)return!1;for(var t=jQuery(e);t[0]&&"BODY"!=t[0].nodeName;){if("none"==jQuery(t[0]).css("display"))return!1;t=jQuery(t[0]).parent()}"function"==typeof jQuery&&e instanceof jQuery&&(e=e[0]);e=e.getBoundingClientRect();return!e||0<e.bottom&&0<e.right&&e.left<wppaWindowWidth()&&e.top<wppaWindowHeight()}function wppaSizeArea(){0<wppaAreaMaxFrac&&wppaAreaMaxFrac<1&&(jQuery(".wppa-thumb-area").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac),jQuery(".albumlist").css("max-height",wppaWindowHeight()*wppaAreaMaxFrac))}function wppaIconSize(e,t,a){a=a?wppaIconSizeSlide:wppaIconSizeNormal;return"default"==a?t:(wppaIsMini[e]?a/2:a)+"px;"}function wppaEntityDecode(e){return e=(e=(e=(e=(e=e.split("&amp;").join("&")).split("&gt;").join(">")).split("&lt;").join("<")).split("&quot;").join('"')).split("&#39;").join("'")}function wppaSetMaxWidthToParentWidth(e){var t=e.parentNode.clientWidth;jQuery(e).css({maxWidth:t})}function wppaWindowHeight(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function wppaWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function wppaAdjustControlbar(){var e,t,a=jQuery;wppaOvlOpen&&(t=wppaIsFs()?(a(".wppa-pctl-div-lb").css({position:"fixed",left:0,right:0,bottom:0}),screen.width):(a(".wppa-pctl-div-lb").css({position:"initial"}),a("#wppa-ovl-pan-container").width()),wppaIsMobile&&wppaIsFs()&&(t-=20),t<12*(parseInt(wppaOvlIconSize)+4)?0<(e=parseInt(t/12-4))&&(a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})):(e=wppaOvlIconSize,a(".wppa-pctl-div-lb").find("svg").css({height:e,width:e}),a(".wppa-pctl-div-lb").find("span").css({height:e,width:e})),wppaOvlIsSingle?(jQuery("#wppa-ovl-start-btn").hide(),jQuery("#wppa-ovl-stop-btn").hide()):wppaOvlRunning?(jQuery("#wppa-ovl-stop-btn").show(),jQuery("#wppa-ovl-start-btn").hide()):(jQuery("#wppa-ovl-start-btn").show(),jQuery("#wppa-ovl-stop-btn").hide()),wppaIsMobile&&wppaIsFs()?a(".wppa-pctl-div-lb").css({paddingLeft:10,paddingRight:10}):a(".wppa-pctl-div-lb").css({paddingLeft:0,paddingRight:0}),a(".wppa-pctl-div-lb").css({visibility:"visible"}))}function wppaKillEvent(e){return e.preventDefault(),e.stopPropagation(),!1}function wppaServerLog(e){e&&jQuery.ajax({url:wppaAjaxUrl,data:"action=wppa&wppa-action=log&message="+e,async:!0,type:"GET",timeout:6e4,success:function(e,t,a){},error:function(e,t,a){wppaConsoleLog("wppaServerLog failed. Error = "+a+", status = "+t,"force")}})}function wppaTimNow(){return(new Date).getTime()}
js/wppa.js CHANGED
@@ -3,7 +3,7 @@
3
  // contains common vars and functions
4
  //
5
 
6
- wppaWppaVer = '8.0.00.006';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
@@ -168,8 +168,6 @@ var wppaIconSizeNormal = 'default';
168
  var wppaIconSizeSlide = 48;
169
  var wppaIconSizeStars = 24;
170
  var wppaResponseSpeed = 500;
171
- var wppaExtendedResizeCount = 0;
172
- var wppaExtendedResizeDelay = 200;
173
  var wppaThumbAspect = 3/4;
174
  var wppaFilmonlyContinuous = false;
175
  var wppaNoAnimateOnMobile = false;
@@ -490,9 +488,9 @@ var wppaLastAllAutocolsTimer = 0;
490
  function wppaDoAllAutocols(e) {
491
 
492
  // Too soon?
493
- if ( wppaTimNow() < ( wppaLastAllAutocols + wppaExtendedResizeDelay ) ) {
494
  if ( ! wppaLastAllAutocolsTimer ) {
495
- wppaLastAllAutocolsTimer = setTimeout( wppaDoAllAutocols, wppaExtendedResizeDelay );
496
  }
497
  return;
498
  }
@@ -503,7 +501,7 @@ function wppaDoAllAutocols(e) {
503
  // wppaConsoleLog('Doing wppaDoAllAutocols() from '+(e? e.target: 'unknown'), 'force');
504
 
505
  // Doit
506
- //setTimeout(function(){_wppaDoAllAutocols(-1)}, wppaExtendedResizeDelay);
507
  _wppaDoAllAutocols(0);
508
  }
509
 
@@ -521,11 +519,6 @@ function _wppaDoAllAutocols(i) {
521
  // Do lazy, just to be sure, for Ale
522
  // wppaMakeLazyVisible();
523
 
524
- // Do retries if configured (-1 is infinite)
525
- if ( i < wppaExtendedResizeCount || wppaExtendedResizeCount == -1 ) {
526
- setTimeout(function(){_wppaDoAllAutocols(i+1)}, wppaExtendedResizeDelay);
527
- }
528
-
529
  return true;
530
  }
531
 
3
  // contains common vars and functions
4
  //
5
 
6
+ wppaWppaVer = '8.0.00.007';
7
 
8
  var wppaIsChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
9
  var wppaIsSafari = false;
168
  var wppaIconSizeSlide = 48;
169
  var wppaIconSizeStars = 24;
170
  var wppaResponseSpeed = 500;
 
 
171
  var wppaThumbAspect = 3/4;
172
  var wppaFilmonlyContinuous = false;
173
  var wppaNoAnimateOnMobile = false;
488
  function wppaDoAllAutocols(e) {
489
 
490
  // Too soon?
491
+ if ( wppaTimNow() < ( wppaLastAllAutocols + 200 ) ) {
492
  if ( ! wppaLastAllAutocolsTimer ) {
493
+ wppaLastAllAutocolsTimer = setTimeout( wppaDoAllAutocols, 200 );
494
  }
495
  return;
496
  }
501
  // wppaConsoleLog('Doing wppaDoAllAutocols() from '+(e? e.target: 'unknown'), 'force');
502
 
503
  // Doit
504
+ //setTimeout(function(){_wppaDoAllAutocols(-1)}, 200);
505
  _wppaDoAllAutocols(0);
506
  }
507
 
519
  // Do lazy, just to be sure, for Ale
520
  // wppaMakeLazyVisible();
521
 
 
 
 
 
 
522
  return true;
523
  }
524
 
js/wppa.min.js CHANGED
@@ -1 +1 @@
1
- wppaWppaVer="8.0.00.006";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+wppaExtendedResizeDelay?wppaLastAllAutocolsTimer=wppaLastAllAutocolsTimer||setTimeout(wppaDoAllAutocols,wppaExtendedResizeDelay):(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.007";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,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)}),!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-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * gp admin functions
6
- * Version 8.0.00.003
7
  *
8
  */
9
 
@@ -499,9 +499,6 @@ global $wpdb;
499
  // Destroy the result
500
  @ imagedestroy( $rotate );
501
 
502
- // Optimized
503
- wppa_optimize_image_file( $file );
504
-
505
  // Clear stored dimensions
506
  wppa_update_photo( array( 'id' => $id,
507
  'thumbx' => '0',
3
  * Package: wp-photo-album-plus
4
  *
5
  * gp admin functions
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
499
  // Destroy the result
500
  @ imagedestroy( $rotate );
501
 
 
 
 
502
  // Clear stored dimensions
503
  wppa_update_photo( array( 'id' => $id,
504
  'thumbx' => '0',
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.0.00.005
6
  *
7
  */
8
 
@@ -451,7 +451,7 @@ global $wppa;
451
  // Description
452
  if ( isset( $_POST['upn-description'] ) ) {
453
  $desc = str_replace( array( '<br/>','<br>' ), '<br />', $_POST['upn-description'] );
454
- $desc = stripslashes( balanceTags( $desc, true ) );
455
  wppa_update_photo( array( 'id' => $photo, 'description' => $desc ) );
456
  }
457
 
@@ -1626,6 +1626,13 @@ global $wppa;
1626
  $value = $_REQUEST['value'];
1627
  $value = wppa_decode( $value );
1628
 
 
 
 
 
 
 
 
1629
  // Check validity
1630
  if ( ! wp_verify_nonce( $nonce, 'wppa_nonce_'.$album ) ) {
1631
  echo '||0||'.__( 'You do not have the rights to update album information' , 'wp-photo-album-plus').$nonce;
@@ -1742,13 +1749,7 @@ global $wppa;
1742
  break;
1743
  case 'description':
1744
  $itemname = __( 'Description' , 'wp-photo-album-plus');
1745
- if ( wppa_switch( 'check_balance' ) ) {
1746
- $value = str_replace( array( '<br/>','<br>' ), '<br />', $value );
1747
- if ( balanceTags( $value, true ) != $value ) {
1748
- echo '||3||'.__( 'Unbalanced tags in album description!' , 'wp-photo-album-plus');
1749
- wppa_exit();
1750
- }
1751
- }
1752
  $value = trim( $value );
1753
  wppa_update_album( array( 'id' => $album, 'description' => $value, 'modified' => time() ) );
1754
  break;
@@ -2040,6 +2041,13 @@ global $wppa;
2040
  $value = isset( $_REQUEST['value'] ) ? $_REQUEST['value'] : '';
2041
  $value = wppa_decode( $value );
2042
 
 
 
 
 
 
 
 
2043
  // Check validity
2044
  if ( ! wp_verify_nonce( $nonce, 'wppa_nonce_'.$photo ) ) {
2045
  $txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus');
@@ -2516,13 +2524,6 @@ global $wppa;
2516
  break;
2517
  case 'description':
2518
  $itemname = __( 'Description', 'wp-photo-album-plus');
2519
- if ( wppa_switch( 'check_balance' ) ) {
2520
- $value = str_replace( array( '<br/>','<br>' ), '<br />', $value );
2521
- if ( balanceTags( $value, true ) != $value ) {
2522
- echo '||3||'.__( 'Unbalanced tags in photo description!' , 'wp-photo-album-plus');
2523
- wppa_exit();
2524
- }
2525
- }
2526
  break;
2527
  case 'p_order':
2528
  $itemname = __( 'Photo order #' , 'wp-photo-album-plus');
@@ -3331,12 +3332,6 @@ global $wppa;
3331
  case 'wppa_star_opacity':
3332
  wppa_ajax_check_range( $value, false, '0', '50', __( 'Opacity.' , 'wp-photo-album-plus') );
3333
  break;
3334
- // case 'wppa_filter_priority':
3335
- // wppa_ajax_check_range( $value, false, wppa_opt( 'shortcode_priority' ), false, __( 'Filter priority' ,'wp-photo-album-plus' ) );
3336
- // break;
3337
- // case 'wppa_shortcode_priority':
3338
- // wppa_ajax_check_range( $value, false, '0', wppa_opt( 'filter_priority' ) - '1', __( 'Shortcode_priority', 'wp-photo-album-plus' ) );
3339
- // break;
3340
  case 'wppa_gravatar_size':
3341
  wppa_ajax_check_range( $value, false, '10', '256', __( 'Avatar size' , 'wp-photo-album-plus') );
3342
  break;
@@ -3364,10 +3359,6 @@ global $wppa;
3364
  case 'wppa_dislike_delete':
3365
  wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike delete' , 'wp-photo-album-plus') );
3366
  break;
3367
- case 'wppa_max_execution_time':
3368
- $ini = ini_get( 'max_execution_time' );
3369
- wppa_ajax_check_range( $value, false, '5', $ini - 5, __( 'Max execution time' , 'wp-photo-album-plus') );
3370
- break;
3371
  case 'wppa_cp_points_comment':
3372
  case 'wppa_cp_points_comment_appr':
3373
  case 'wppa_cp_points_rating':
@@ -3531,19 +3522,13 @@ global $wppa;
3531
  break;
3532
 
3533
  case 'wppa_newphoto_description':
3534
- if ( wppa_switch( 'check_balance' ) && balanceTags( $value, true ) != $value ) {
3535
- $alert = __( 'Unbalanced tags in photo description!' , 'wp-photo-album-plus');
3536
- wppa( 'error', '1' );
3537
- }
3538
- else {
3539
- if ( wppa_switch( 'wppa_compress_newdesc' ) ) {
3540
- $value = wppa_compress_html( $value );
3541
- }
3542
- wppa_update_option( $option, $value );
3543
- wppa( 'error', '0' );
3544
- $alert = '';
3545
- wppa_index_compute_skips();
3546
  }
 
 
 
 
3547
  break;
3548
 
3549
  case 'wppa_keep_source':
@@ -3889,10 +3874,6 @@ global $wppa;
3889
  $value = trim( wppa_sanitize_tags( $value ), ',' );
3890
  break;
3891
 
3892
- case 'wppa_wppa_set_shortcodes':
3893
- $value = str_replace( ' ', '', $value );
3894
- break;
3895
-
3896
  case 'wppa_use_encrypted_links':
3897
  if ( $value == 'yes' ) {
3898
  $ca = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE crypt = ''" );
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.0.00.007
6
  *
7
  */
8
 
451
  // Description
452
  if ( isset( $_POST['upn-description'] ) ) {
453
  $desc = str_replace( array( '<br/>','<br>' ), '<br />', $_POST['upn-description'] );
454
+ $desc = stripslashes( $desc );
455
  wppa_update_photo( array( 'id' => $photo, 'description' => $desc ) );
456
  }
457
 
1626
  $value = $_REQUEST['value'];
1627
  $value = wppa_decode( $value );
1628
 
1629
+ if ( ! current_user_can( 'unfiltered_html' ) ) {
1630
+ $value = strip_tags( $value );
1631
+ }
1632
+ else {
1633
+ $value = balanceTags( $value, true );
1634
+ }
1635
+
1636
  // Check validity
1637
  if ( ! wp_verify_nonce( $nonce, 'wppa_nonce_'.$album ) ) {
1638
  echo '||0||'.__( 'You do not have the rights to update album information' , 'wp-photo-album-plus').$nonce;
1749
  break;
1750
  case 'description':
1751
  $itemname = __( 'Description' , 'wp-photo-album-plus');
1752
+ $value = str_replace( array( '<br/>','<br>' ), '<br />', $value );
 
 
 
 
 
 
1753
  $value = trim( $value );
1754
  wppa_update_album( array( 'id' => $album, 'description' => $value, 'modified' => time() ) );
1755
  break;
2041
  $value = isset( $_REQUEST['value'] ) ? $_REQUEST['value'] : '';
2042
  $value = wppa_decode( $value );
2043
 
2044
+ if ( ! current_user_can( 'unfiltered_html' ) ) {
2045
+ $value = strip_tags( $value );
2046
+ }
2047
+ else {
2048
+ $value = balanceTags( $value );
2049
+ }
2050
+
2051
  // Check validity
2052
  if ( ! wp_verify_nonce( $nonce, 'wppa_nonce_'.$photo ) ) {
2053
  $txt = __( 'You do not have the rights to update photo information' , 'wp-photo-album-plus');
2524
  break;
2525
  case 'description':
2526
  $itemname = __( 'Description', 'wp-photo-album-plus');
 
 
 
 
 
 
 
2527
  break;
2528
  case 'p_order':
2529
  $itemname = __( 'Photo order #' , 'wp-photo-album-plus');
3332
  case 'wppa_star_opacity':
3333
  wppa_ajax_check_range( $value, false, '0', '50', __( 'Opacity.' , 'wp-photo-album-plus') );
3334
  break;
 
 
 
 
 
 
3335
  case 'wppa_gravatar_size':
3336
  wppa_ajax_check_range( $value, false, '10', '256', __( 'Avatar size' , 'wp-photo-album-plus') );
3337
  break;
3359
  case 'wppa_dislike_delete':
3360
  wppa_ajax_check_range( $value, false, '0', false, __( 'Dislike delete' , 'wp-photo-album-plus') );
3361
  break;
 
 
 
 
3362
  case 'wppa_cp_points_comment':
3363
  case 'wppa_cp_points_comment_appr':
3364
  case 'wppa_cp_points_rating':
3522
  break;
3523
 
3524
  case 'wppa_newphoto_description':
3525
+ if ( wppa_switch( 'wppa_compress_newdesc' ) ) {
3526
+ $value = wppa_compress_html( $value );
 
 
 
 
 
 
 
 
 
 
3527
  }
3528
+ wppa_update_option( $option, $value );
3529
+ wppa( 'error', '0' );
3530
+ $alert = '';
3531
+ wppa_index_compute_skips();
3532
  break;
3533
 
3534
  case 'wppa_keep_source':
3874
  $value = trim( wppa_sanitize_tags( $value ), ',' );
3875
  break;
3876
 
 
 
 
 
3877
  case 'wppa_use_encrypted_links':
3878
  if ( $value == 'yes' ) {
3879
  $ca = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE crypt = ''" );
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.0.00.003
7
  *
8
  */
9
 
@@ -659,7 +659,7 @@ global $wppa_revno;
659
  'addnone' => true,
660
  'addseparate' => true,
661
  'disableancestors' => true,
662
- 'path' => wppa_switch( 'hier_albsel' ),
663
  'sort' => true,
664
  'tagopen' => '<select' .
665
  ' id="wppa-parsel"' .
@@ -680,14 +680,14 @@ global $wppa_revno;
680
  style="max-width:300px;"
681
  onchange="wppaAjaxUpdateAlbum( '. $id . ', \'a_parent\', this )"
682
  >' .
683
- wppa_album_select_a( array( 'checkaccess' => true,
684
- 'exclude' => $id,
685
- 'selected' => $a_parent,
686
- 'addnone' => wppa_can_create_top_album(),
687
- 'addselected' => true,
688
- 'disableancestors' => true,
689
- 'path' => wppa_switch( 'hier_albsel' ),
690
- 'sort' => true,
691
  )
692
  ) .
693
  '</select>';
@@ -1382,12 +1382,8 @@ global $wppa_revno;
1382
  // Create subalbum
1383
  if ( wppa_can_create_album() ) {
1384
  $url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id=' . $albuminfo['id'] . '&amp;wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) );
1385
- if ( wppa_switch( 'confirm_create' ) ) {
1386
- $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
1387
- }
1388
- else {
1389
- $onc = 'document.location=\''.$url.'\';';
1390
- }
1391
  echo
1392
  '<input' .
1393
  ' type="button"' .
@@ -1407,12 +1403,8 @@ global $wppa_revno;
1407
  '&amp;parent_id=' . $albuminfo['a_parent'] .
1408
  '&amp;is_sibling_of=' . $albuminfo['id'] .
1409
  '&amp;wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) );
1410
- if ( wppa_switch( 'confirm_create' ) ) {
1411
- $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
1412
- }
1413
- else {
1414
- $onc = 'document.location=\''.$url.'\';';
1415
- }
1416
  echo
1417
  '<input' .
1418
  ' type="button"' .
@@ -1608,12 +1600,12 @@ global $wppa_revno;
1608
  <input type="radio" name="wppa-del-photos" value="delete" checked="checked" /> <?php _e('Delete', 'wp-photo-album-plus'); ?><br />
1609
  <input type="radio" name="wppa-del-photos" value="move" /> <?php _e('Move to:', 'wp-photo-album-plus'); ?>
1610
  <select name="wppa-move-album">
1611
- <?php echo wppa_album_select_a( array( 'checkaccess' => true,
1612
- 'path' => wppa_switch( 'hier_albsel'),
1613
- 'selected' => '0',
1614
- 'exclude' => strval( intval( $_REQUEST['edit_id'] ) ),
1615
- 'addpleaseselect' => true,
1616
- 'sort' => true,
1617
  ) )
1618
  ?>
1619
  </select>
@@ -1686,7 +1678,7 @@ global $wppa_revno;
1686
  echo '<form method="post" action="'.get_admin_url().'admin.php?page=wppa_admin_menu&wppa_nonce='.wp_create_nonce('wppa_nonce').'" style="float:left; margin-right:12px;" >';
1687
  echo '<input type="hidden" name="tab" value="edit" />';
1688
  echo '<input type="hidden" name="edit_id" value="new" />';
1689
- $onc = wppa_switch( 'confirm_create' ) ? 'onclick="return confirm(\''.$vfy.'\');"' : '';
1690
  echo '<input type="submit" class="button-primary" '.$onc.' value="'.__('Create New Empty Album', 'wp-photo-album-plus').'" style="height:28px;" />';
1691
  echo '</form>';
1692
  }
@@ -2109,13 +2101,8 @@ global $wpdb;
2109
  <td><a href="<?php echo($url) ?>" class="wppadelete"><?php _e('Delete', 'wp-photo-album-plus'); ?></a></td>
2110
  <?php if ( wppa_can_create_album() ) {
2111
  $url = wppa_dbg_url(get_admin_url().'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id='.$album['id'].'&amp;wppa_nonce='.wp_create_nonce('wppa_nonce'));
2112
- if ( wppa_switch( 'confirm_create' ) ) {
2113
- $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
2114
- echo '<td><a onclick="'.$onc.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
2115
- }
2116
- else {
2117
- echo '<td><a href="'.$url.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
2118
- }
2119
  }
2120
 
2121
  ?>
@@ -2994,13 +2981,8 @@ global $wpdb;
2994
  </td>
2995
  <?php if ( wppa_can_create_album() ) {
2996
  $url = wppa_dbg_url(get_admin_url().'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id='.$id.'&amp;wppa_nonce='.wp_create_nonce('wppa_nonce'));
2997
- if ( wppa_switch( 'confirm_create' ) ) {
2998
- $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
2999
- echo '<td><a onclick="'.$onc.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
3000
- }
3001
- else {
3002
- echo '<td><a href="'.$url.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
3003
- }
3004
  }
3005
  }
3006
  else {
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
659
  'addnone' => true,
660
  'addseparate' => true,
661
  'disableancestors' => true,
662
+ 'path' => true,
663
  'sort' => true,
664
  'tagopen' => '<select' .
665
  ' id="wppa-parsel"' .
680
  style="max-width:300px;"
681
  onchange="wppaAjaxUpdateAlbum( '. $id . ', \'a_parent\', this )"
682
  >' .
683
+ wppa_album_select_a( array( 'checkaccess' => true,
684
+ 'exclude' => $id,
685
+ 'selected' => $a_parent,
686
+ 'addnone' => wppa_can_create_top_album(),
687
+ 'addselected' => true,
688
+ 'disableancestors' => true,
689
+ 'path' => true,
690
+ 'sort' => true,
691
  )
692
  ) .
693
  '</select>';
1382
  // Create subalbum
1383
  if ( wppa_can_create_album() ) {
1384
  $url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id=' . $albuminfo['id'] . '&amp;wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) );
1385
+ $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
1386
+
 
 
 
 
1387
  echo
1388
  '<input' .
1389
  ' type="button"' .
1403
  '&amp;parent_id=' . $albuminfo['a_parent'] .
1404
  '&amp;is_sibling_of=' . $albuminfo['id'] .
1405
  '&amp;wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) );
1406
+ $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
1407
+
 
 
 
 
1408
  echo
1409
  '<input' .
1410
  ' type="button"' .
1600
  <input type="radio" name="wppa-del-photos" value="delete" checked="checked" /> <?php _e('Delete', 'wp-photo-album-plus'); ?><br />
1601
  <input type="radio" name="wppa-del-photos" value="move" /> <?php _e('Move to:', 'wp-photo-album-plus'); ?>
1602
  <select name="wppa-move-album">
1603
+ <?php echo wppa_album_select_a( array( 'checkaccess' => true,
1604
+ 'path' => true,
1605
+ 'selected' => '0',
1606
+ 'exclude' => strval( intval( $_REQUEST['edit_id'] ) ),
1607
+ 'addpleaseselect' => true,
1608
+ 'sort' => true,
1609
  ) )
1610
  ?>
1611
  </select>
1678
  echo '<form method="post" action="'.get_admin_url().'admin.php?page=wppa_admin_menu&wppa_nonce='.wp_create_nonce('wppa_nonce').'" style="float:left; margin-right:12px;" >';
1679
  echo '<input type="hidden" name="tab" value="edit" />';
1680
  echo '<input type="hidden" name="edit_id" value="new" />';
1681
+ $onc = 'onclick="return confirm(\''.$vfy.'\');"';
1682
  echo '<input type="submit" class="button-primary" '.$onc.' value="'.__('Create New Empty Album', 'wp-photo-album-plus').'" style="height:28px;" />';
1683
  echo '</form>';
1684
  }
2101
  <td><a href="<?php echo($url) ?>" class="wppadelete"><?php _e('Delete', 'wp-photo-album-plus'); ?></a></td>
2102
  <?php if ( wppa_can_create_album() ) {
2103
  $url = wppa_dbg_url(get_admin_url().'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id='.$album['id'].'&amp;wppa_nonce='.wp_create_nonce('wppa_nonce'));
2104
+ $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
2105
+ echo '<td><a onclick="'.$onc.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
 
 
 
 
 
2106
  }
2107
 
2108
  ?>
2981
  </td>
2982
  <?php if ( wppa_can_create_album() ) {
2983
  $url = wppa_dbg_url(get_admin_url().'admin.php?page=wppa_admin_menu&amp;tab=edit&amp;edit_id=new&amp;parent_id='.$id.'&amp;wppa_nonce='.wp_create_nonce('wppa_nonce'));
2984
+ $onc = 'if (confirm(\''.__('Are you sure you want to create a subalbum?', 'wp-photo-album-plus').'\')) document.location=\''.$url.'\';';
2985
+ echo '<td><a onclick="'.$onc.'" class="wppacreate">'.__('Create', 'wp-photo-album-plus').'</a></td>';
 
 
 
 
 
2986
  }
2987
  }
2988
  else {
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.0.00.004
7
  *
8
  */
9
 
@@ -2669,7 +2669,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2669
  'checkupload' => false,
2670
  'addmultiple' => false,
2671
  'addnumbers' => false,
2672
- 'path' => wppa_switch( 'hier_albsel' ),
2673
  'root' => false,
2674
  'content' => false,
2675
  'sort' => true,
@@ -2928,15 +2928,12 @@ static $albums_granted;
2928
  $a = '';
2929
  }
2930
  $allow_me = wppa_allow_user_uploads( $a );
2931
-
2932
  if ( ! $allow_me ) {
2933
- if ( wppa_switch( 'show_album_full' ) ) {
2934
- $result .=
2935
- '<h6 style="color:red">' .
2936
- __( 'Max uploads reached', 'wp-photo-album-plus' ) .
2937
- wppa_time_to_wait_html( '0', true ) .
2938
- '</h6>';
2939
- }
2940
  return $result;
2941
  }
2942
 
@@ -2944,13 +2941,11 @@ static $albums_granted;
2944
  if ( wppa_is_int( $alb ) ) {
2945
  $allow_alb = wppa_allow_uploads( $alb );
2946
  if ( ! $allow_alb ) {
2947
- if ( wppa_switch( 'show_album_full' ) ) {
2948
- $result .=
2949
- '<h6 style="color:red">' .
2950
- __( 'Max uploads reached', 'wp-photo-album-plus' ) .
2951
- wppa_time_to_wait_html( $alb ) .
2952
- '</h6>';
2953
- }
2954
  return $result;
2955
  }
2956
  }
@@ -3083,7 +3078,7 @@ static $albums_granted;
3083
  wppa_album_select_a( array ( 'addpleaseselect' => true,
3084
  'checkowner' => true,
3085
  'checkupload' => true,
3086
- 'path' => wppa_switch( 'hier_albsel' ),
3087
  'checkarray' => count( $alb ) > 1,
3088
  'array' => $alb,
3089
  'sort' => true,
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
2669
  'checkupload' => false,
2670
  'addmultiple' => false,
2671
  'addnumbers' => false,
2672
+ 'path' => true,
2673
  'root' => false,
2674
  'content' => false,
2675
  'sort' => true,
2928
  $a = '';
2929
  }
2930
  $allow_me = wppa_allow_user_uploads( $a );
 
2931
  if ( ! $allow_me ) {
2932
+ $result .=
2933
+ '<h6 style="color:red">' .
2934
+ __( 'Max uploads reached', 'wp-photo-album-plus' ) .
2935
+ wppa_time_to_wait_html( '0', true ) .
2936
+ '</h6>';
 
 
2937
  return $result;
2938
  }
2939
 
2941
  if ( wppa_is_int( $alb ) ) {
2942
  $allow_alb = wppa_allow_uploads( $alb );
2943
  if ( ! $allow_alb ) {
2944
+ $result .=
2945
+ '<h6 style="color:red">' .
2946
+ __( 'Max uploads reached', 'wp-photo-album-plus' ) .
2947
+ wppa_time_to_wait_html( $alb ) .
2948
+ '</h6>';
 
 
2949
  return $result;
2950
  }
2951
  }
3078
  wppa_album_select_a( array ( 'addpleaseselect' => true,
3079
  'checkowner' => true,
3080
  'checkupload' => true,
3081
+ 'path' => true,
3082
  'checkarray' => count( $alb ) > 1,
3083
  'array' => $alb,
3084
  'sort' => true,
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.0.00.005
7
  *
8
  */
9
 
@@ -615,8 +615,6 @@ horizrailenabled:false,";
615
  'wppa_commentapproved' => 'no',
616
  'wppa_email_from_site' => str_replace('&#039;', '', get_bloginfo('name') ),
617
  'wppa_email_from_email' => 'noreply@' . $site,
618
- 'wppa_commentapproved_text' => '',
619
- 'wppa_commentapproved_subj' => '',
620
  'wppa_commentnotify_added' => 'yes',
621
  'wppa_comten_alt_display' => 'no',
622
  'wppa_comten_alt_thumbsize' => '75',
@@ -827,7 +825,6 @@ horizrailenabled:false,";
827
  'wppa_upload_delete' => 'no',
828
  'wppa_upload_delete_period' => '0',
829
  'wppa_owner_moderate_comment' => 'no',
830
- 'wppa_upload_backend_notify' => 'no',
831
  'wppa_upload_one_only' => 'no',
832
  'wppa_memcheck' => 'yes',
833
  'wppa_memcheck_copy' => 'yes',
@@ -949,15 +946,8 @@ horizrailenabled:false,";
949
 
950
  // Table IX: Miscellaneous
951
  // A System
952
- 'wppa_html' => 'yes', // 1
953
- 'wppa_allow_html_custom' => 'no',
954
- 'wppa_check_balance' => 'no', // 2
955
  'wppa_allow_debug' => 'no', // 3
956
 
957
- 'wppa_filter_priority' => '1001', // 5
958
- 'wppa_shortcode_priority' => '11',
959
- 'wppa_shortcode_at_priority' => 'no',
960
- 'wppa_shortcode_at_priority_widget' => 'no',
961
  'wppa_lightbox_name' => 'wppa', // 6
962
  'wppa_allow_foreign_shortcodes_general' => 'no',
963
  'wppa_allow_foreign_shortcodes' => 'no', // 7
@@ -965,8 +955,6 @@ horizrailenabled:false,";
965
  'wppa_meta_page' => 'yes', // 9
966
  'wppa_meta_all' => 'yes', // 10
967
  'wppa_use_wp_editor' => 'no',
968
- 'wppa_hier_albsel' => 'yes',
969
- 'wppa_hier_pagesel' => 'no',
970
  'wppa_alt_type' => 'fullname',
971
  'wppa_album_admin_pagesize' => '100',
972
  'wppa_photo_admin_pagesize' => '20',
@@ -974,13 +962,9 @@ horizrailenabled:false,";
974
  'wppa_comment_admin_pagesize' => '10',
975
  'wppa_jpeg_quality' => '95',
976
  'wppa_geo_edit' => 'no',
977
- 'wppa_auto_continue' => 'yes',
978
- 'wppa_max_execution_time' => '25',
979
  'wppa_adminbarmenu_admin' => 'yes',
980
  'wppa_adminbarmenu_frontend' => 'yes',
981
- 'wppa_feed_use_thumb' => 'no',
982
  'wppa_enable_shortcode_wppa_set' => 'no',
983
- 'wppa_set_shortcodes' => 'wppa_thumbtype,wppa_tn_margin,wppa_thumbsize',
984
 
985
  'wppa_og_tags_on' => 'yes',
986
  'wppa_add_shortcode_to_post' => 'no',
@@ -990,7 +974,6 @@ horizrailenabled:false,";
990
  'wppa_audiostub_upload' => '',
991
  'wppa_documentstub_upload' => '',
992
  'wppa_audiostub' => '',
993
- 'wppa_confirm_create' => 'yes',
994
  'wppa_import_root' => ABSPATH . 'wp-content',
995
  'wppa_allow_import_source' => 'no',
996
  'wppa_enable_generator' => 'yes',
@@ -1010,11 +993,7 @@ horizrailenabled:false,";
1010
  'wppa_login_url' => site_url( 'wp-login.php', 'login' ), // A
1011
  'wppa_cache_root' => 'cache',
1012
  'wppa_direct_comment' => 'no',
1013
- 'wppa_extended_resize_count' => '1',
1014
- 'wppa_extended_resize_delay' => '200',
1015
  'wppa_load_nicescroller' => 'no',
1016
- 'wppa_translate' => 'no',
1017
- 'wppa_add_locale' => 'no',
1018
  'wppa_csv_sep' => ',',
1019
 
1020
  // IX D New
@@ -1037,7 +1016,6 @@ horizrailenabled:false,";
1037
  'wppa_newphoto_owner' => '', // IX-D5.1
1038
  'wppa_upload_limit_count' => '0', // IX-D6a
1039
  'wppa_upload_limit_time' => '0', // IX-D6b
1040
- 'wppa_show_album_full' => 'yes',
1041
  'wppa_grant_an_album' => 'no',
1042
  'wppa_grant_name' => 'display',
1043
  'wppa_grant_parent_sel_method' => 'selectionbox',
@@ -1066,7 +1044,6 @@ horizrailenabled:false,";
1066
  'wppa_copy_owner' => 'no',
1067
  'wppa_copy_custom' => 'no',
1068
  'wppa_frontend_album_public' => 'no',
1069
- 'wppa_optimize_new' => 'no',
1070
  'wppa_default_album_linktype' => 'content',
1071
  'wppa_sanitize_import' => 'no',
1072
  'wppa_remove_accents' => 'yes',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
615
  'wppa_commentapproved' => 'no',
616
  'wppa_email_from_site' => str_replace('&#039;', '', get_bloginfo('name') ),
617
  'wppa_email_from_email' => 'noreply@' . $site,
 
 
618
  'wppa_commentnotify_added' => 'yes',
619
  'wppa_comten_alt_display' => 'no',
620
  'wppa_comten_alt_thumbsize' => '75',
825
  'wppa_upload_delete' => 'no',
826
  'wppa_upload_delete_period' => '0',
827
  'wppa_owner_moderate_comment' => 'no',
 
828
  'wppa_upload_one_only' => 'no',
829
  'wppa_memcheck' => 'yes',
830
  'wppa_memcheck_copy' => 'yes',
946
 
947
  // Table IX: Miscellaneous
948
  // A System
 
 
 
949
  'wppa_allow_debug' => 'no', // 3
950
 
 
 
 
 
951
  'wppa_lightbox_name' => 'wppa', // 6
952
  'wppa_allow_foreign_shortcodes_general' => 'no',
953
  'wppa_allow_foreign_shortcodes' => 'no', // 7
955
  'wppa_meta_page' => 'yes', // 9
956
  'wppa_meta_all' => 'yes', // 10
957
  'wppa_use_wp_editor' => 'no',
 
 
958
  'wppa_alt_type' => 'fullname',
959
  'wppa_album_admin_pagesize' => '100',
960
  'wppa_photo_admin_pagesize' => '20',
962
  'wppa_comment_admin_pagesize' => '10',
963
  'wppa_jpeg_quality' => '95',
964
  'wppa_geo_edit' => 'no',
 
 
965
  'wppa_adminbarmenu_admin' => 'yes',
966
  'wppa_adminbarmenu_frontend' => 'yes',
 
967
  'wppa_enable_shortcode_wppa_set' => 'no',
 
968
 
969
  'wppa_og_tags_on' => 'yes',
970
  'wppa_add_shortcode_to_post' => 'no',
974
  'wppa_audiostub_upload' => '',
975
  'wppa_documentstub_upload' => '',
976
  'wppa_audiostub' => '',
 
977
  'wppa_import_root' => ABSPATH . 'wp-content',
978
  'wppa_allow_import_source' => 'no',
979
  'wppa_enable_generator' => 'yes',
993
  'wppa_login_url' => site_url( 'wp-login.php', 'login' ), // A
994
  'wppa_cache_root' => 'cache',
995
  'wppa_direct_comment' => 'no',
 
 
996
  'wppa_load_nicescroller' => 'no',
 
 
997
  'wppa_csv_sep' => ',',
998
 
999
  // IX D New
1016
  'wppa_newphoto_owner' => '', // IX-D5.1
1017
  'wppa_upload_limit_count' => '0', // IX-D6a
1018
  'wppa_upload_limit_time' => '0', // IX-D6b
 
1019
  'wppa_grant_an_album' => 'no',
1020
  'wppa_grant_name' => 'display',
1021
  'wppa_grant_parent_sel_method' => 'selectionbox',
1044
  'wppa_copy_owner' => 'no',
1045
  'wppa_copy_custom' => 'no',
1046
  'wppa_frontend_album_public' => 'no',
 
1047
  'wppa_default_album_linktype' => 'content',
1048
  'wppa_sanitize_import' => 'no',
1049
  'wppa_remove_accents' => 'yes',
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.005
7
  *
8
  */
9
 
@@ -579,86 +579,14 @@ global $wppa_current_shortcode_atts;
579
  // Relative urls?
580
  $result = wppa_make_relative( $result );
581
 
582
- // In widget
583
- if ( wppa_in_widget() ) {
584
- if ( ! wppa_switch( 'shortcode_at_priority_widget' ) ) {
585
- return $result;
586
- }
587
- }
588
-
589
- // In Post / Page
590
- else {
591
- if ( ! wppa_switch( 'shortcode_at_priority' ) ) {
592
- return $result;
593
- }
594
- }
595
-
596
- // Url always immediately
597
- if ( $wppa['is_url'] ) {
598
- return $result;
599
- }
600
-
601
- // On admin page (especially for preview in Gutenberg)
602
- if ( is_admin() ) {
603
- return $result;
604
- }
605
-
606
- // New method to prevent damage of the result by content filters that run on higher priorities than do_shortcode.
607
- // Previous methods, e.g. increasing the do_shortcode priority sometimes fail due to requirements of other plugins/shortcodes.
608
- // To prevent this, i first asked an enhancement to add a priority argument to add_shortcode(), but the wp boys simply say
609
- // 'this is not possible'. Everything is possible, they should say that they are not smart enough to implement it.
610
- // Since there are plans to set the do_shortcode() priority ( currently 11 ) lower than wpautop() ( 10 ), and there are many serious
611
- // bugs in wpautop() it is now urgent to create a monkey-proof solution to the problem that others destructify the so preciously created
612
- // shortcode process output.
613
- //
614
- // What we do is:
615
- // 1. Save the result in memory and return a placeholder for the result.
616
- // 2. Run a contentfilter on the highest possible priority that replaced the placeholder by the original result.
617
- //
618
- // It sounds simple, but it took me a few sleepless nights to figure out.
619
- // Here it goes:
620
-
621
- // Define storage for the results
622
- global $wppa_shortcode_results;
623
-
624
- // Create a key to identify the result.
625
- // Any unique key will do, as long as it is not tampered by any content filter.
626
- // Hopefully everything keeps an unadded shortcode untouched,
627
- // therefor we wrap the random key in square brackets
628
- $key = '[' . wppa_get_unique_crypt() . ']';
629
-
630
- // Store
631
- $wppa_shortcode_results[$key] = $result;
632
-
633
- // Return the placeholder ( = the key ) instead of $result
634
- return $key;
635
 
636
  }
637
 
638
  // Declare the shortcode handler
639
  add_shortcode( 'wppa', 'wppa_shortcodes' );
640
 
641
- // The filter proc to insert the shortcodeoutput into the page content.
642
- function wppa_insert_shortcode_output( $content ) {
643
- global $wppa_shortcode_results;
644
-
645
- if ( is_array( $wppa_shortcode_results ) ) foreach( array_keys( $wppa_shortcode_results ) as $key ) {
646
- $content = str_replace( $key, $wppa_shortcode_results[$key], $content );
647
- }
648
-
649
- return $content;
650
- }
651
-
652
- // Declare the filter to replace the placeholders by the shortcode process output
653
- // These filters must run after shortcode processing, so normally at a priority > 11
654
- add_action( 'init', 'wppa_add_filters' );
655
-
656
- function wppa_add_filters() {
657
- add_filter( 'the_content', 'wppa_insert_shortcode_output', wppa_opt( 'filter_priority' ) );
658
- add_filter( 'widget_content', 'wppa_insert_shortcode_output', wppa_opt( 'filter_priority' ) );
659
- add_filter( 'widget_text', 'wppa_insert_shortcode_output', wppa_opt( 'filter_priority' ) );
660
- }
661
-
662
  // The runtime modifiable settings are processed by the wppa_set shortcode
663
  function wppa_set_shortcodes( $xatts, $content = '' ) {
664
  global $wppa;
@@ -674,15 +602,8 @@ global $wppa_runtime_settings;
674
  'value' => ''
675
  ), $xatts );
676
 
677
- $allowed = explode( ',', wppa_opt( 'set_shortcodes' ) );
678
-
679
- // Valid item?
680
- if ( $atts['name'] && ! in_array( $atts['name'], $allowed ) && wppa_opt( 'set_shortcodes' ) != 'all' ) {
681
- wppa_dbg_msg( $atts['name'] . ' is not a runtime settable configuration entity.', 'red', 'force' );
682
- }
683
-
684
  // Reset?
685
- elseif ( ! $atts['name'] ) {
686
  $wppa_opt = false;
687
  wppa_initialize_runtime();
688
  wppa_reset_occurrance();
@@ -860,7 +781,7 @@ global $wppa_current_shortcode_atts;
860
  return wppa_albums();
861
  }
862
 
863
- // Yu can not cache/delay a type xxx shortocde
864
  function wppa_you_can_not( $xaction, $xtype, $useless = true ) {
865
  $action = __( $xaction, 'wp-photo-album-plus' );
866
  $type = __( $xtype, 'wp-photo-album-plus' );
@@ -868,4 +789,10 @@ function wppa_you_can_not( $xaction, $xtype, $useless = true ) {
868
  ( $useless ? ' ' . __( 'It is useless anyway.', 'wp-photo-album-plus' ) : '' );
869
  wppa_log( 'dbg', $result );
870
  return $result;
871
- }
 
 
 
 
 
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
579
  // Relative urls?
580
  $result = wppa_make_relative( $result );
581
 
582
+ // Done
583
+ return $result;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
 
585
  }
586
 
587
  // Declare the shortcode handler
588
  add_shortcode( 'wppa', 'wppa_shortcodes' );
589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
590
  // The runtime modifiable settings are processed by the wppa_set shortcode
591
  function wppa_set_shortcodes( $xatts, $content = '' ) {
592
  global $wppa;
602
  'value' => ''
603
  ), $xatts );
604
 
 
 
 
 
 
 
 
605
  // Reset?
606
+ if ( ! $atts['name'] ) {
607
  $wppa_opt = false;
608
  wppa_initialize_runtime();
609
  wppa_reset_occurrance();
781
  return wppa_albums();
782
  }
783
 
784
+ // Yuo can not cache/delay a type xxx shortocde
785
  function wppa_you_can_not( $xaction, $xtype, $useless = true ) {
786
  $action = __( $xaction, 'wp-photo-album-plus' );
787
  $type = __( $xtype, 'wp-photo-album-plus' );
789
  ( $useless ? ' ' . __( 'It is useless anyway.', 'wp-photo-album-plus' ) : '' );
790
  wppa_log( 'dbg', $result );
791
  return $result;
792
+ }
793
+
794
+ // This function is no longer needed in 8.0
795
+ function wppa_insert_shortcode_output( $result ) {
796
+ wppa_log( 'err', 'wppa_insert_shortcode_output() is deprecated and no longer needed' );
797
+ return $result;
798
+ }
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.0.00.006
7
  *
8
  */
9
 
@@ -2958,7 +2958,12 @@ global $wppa_done;
2958
  $comment = isset( $_REQUEST['comment'] ) ? $_REQUEST['comment'] : '';
2959
  $comment = trim( $comment );
2960
  $comment = wppa_decode( $comment );
2961
- $comment = strip_tags( $comment );
 
 
 
 
 
2962
  $save_comment = str_replace( "\n", '<br />', $comment ); // Resque newline chars
2963
  $save_comment = stripslashes( $save_comment );
2964
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
2958
  $comment = isset( $_REQUEST['comment'] ) ? $_REQUEST['comment'] : '';
2959
  $comment = trim( $comment );
2960
  $comment = wppa_decode( $comment );
2961
+ if ( ! current_user_can( 'unfiltered_html' ) ) {
2962
+ $comment = strip_tags( $comment );
2963
+ }
2964
+ else {
2965
+ $comment = balanceTags( $comment );
2966
+ }
2967
  $save_comment = str_replace( "\n", '<br />', $comment ); // Resque newline chars
2968
  $save_comment = stripslashes( $save_comment );
2969
 
wppa-gutenberg-wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-gutenberg-wppa.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.5.10
6
  */
7
 
8
  function wppa_gutenberg_wppa_block() {
@@ -46,10 +46,8 @@ global $wpdb;
46
  }
47
  else {
48
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY timestamp DESC", ARRAY_A );
49
- if ( wppa_switch( 'hier_albsel' ) ) {
50
- $albums = wppa_add_paths( $albums );
51
- $albums = wppa_array_sort( $albums, 'name' );
52
- }
53
  }
54
 
55
  // Prepare photoinfo
@@ -69,14 +67,9 @@ global $wpdb;
69
 
70
  if ( $pages ) {
71
 
72
- // Add parents optionally OR translate only
73
- if ( wppa_switch( 'hier_pagesel' ) ) $pages = wppa_add_parents( $pages );
74
-
75
- // Just translate
76
- else {
77
- foreach ( array_keys( $pages ) as $index ) {
78
- $pages[$index]['post_title'] = __( stripslashes($pages[$index]['post_title'] ) );
79
- }
80
  }
81
 
82
  // Sort alpahbetically
2
  /* wppa-gutenberg-wppa.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.0.00.007
6
  */
7
 
8
  function wppa_gutenberg_wppa_block() {
46
  }
47
  else {
48
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums ORDER BY timestamp DESC", ARRAY_A );
49
+ $albums = wppa_add_paths( $albums );
50
+ $albums = wppa_array_sort( $albums, 'name' );
 
 
51
  }
52
 
53
  // Prepare photoinfo
67
 
68
  if ( $pages ) {
69
 
70
+ // Translate page titles
71
+ foreach ( array_keys( $pages ) as $index ) {
72
+ $pages[$index]['post_title'] = __( stripslashes($pages[$index]['post_title'] ) );
 
 
 
 
 
73
  }
74
 
75
  // Sort alpahbetically
wppa-import.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
- * Version 8.0.00.003
7
  *
8
  */
9
 
@@ -620,7 +620,7 @@ global $wppa_session;
620
  echo
621
  '<p class="hideifupdate" >' .
622
  __( 'Default album for import:', 'wp-photo-album-plus') .
623
- wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ),
624
  'selected' => wppa_get_option( 'wppa-photo-album-import-'.wppa_get_user(), '0' ),
625
  'addpleaseselect' => true,
626
  'checkowner' => true,
@@ -918,7 +918,7 @@ global $wppa_session;
918
  echo
919
  '<p class="hideifupdate" >' .
920
  __( 'Album to import to:', 'wp-photo-album-plus') .
921
- wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ),
922
  'selected' => wppa_get_option( 'wppa-video-album-import-'.wppa_get_user(), '0' ),
923
  'addpleaseselect' => true,
924
  'checkowner' => true,
@@ -1033,7 +1033,7 @@ global $wppa_session;
1033
  echo
1034
  '<p class="hideifupdate" >' .
1035
  __( 'Album to import to:', 'wp-photo-album-plus') .
1036
- wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ),
1037
  'selected' => wppa_get_option( 'wppa-audio-album-import-'.wppa_get_user(), '0' ),
1038
  'addpleaseselect' => true,
1039
  'checkowner' => true,
@@ -1224,7 +1224,7 @@ global $wppa_session;
1224
  echo
1225
  '<p class="hideifupdate" >' .
1226
  __( 'Album to import to:', 'wp-photo-album-plus') .
1227
- wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ),
1228
  'selected' => wppa_get_option( 'wppa-document-album-import-'.wppa_get_user(), '0' ),
1229
  'addpleaseselect' => true,
1230
  'checkowner' => true,
@@ -1803,28 +1803,7 @@ global $wppa_session;
1803
  // Send emails after backend upload
1804
  function wppa_backend_upload_mail( $id, $alb, $name ) {
1805
  return;
1806
- $owner = wppa_get_user();
1807
- if ( $owner == 'admin' ) return; // Admin does not send mails to himself
1808
-
1809
- if ( wppa_switch( 'upload_backend_notify' ) ) {
1810
- $to = get_bloginfo( 'admin_email' );
1811
- $subj = sprintf( __( 'New photo uploaded: %s', 'wp-photo-album-plus'), wppa_sanitize_file_name( $name ) );
1812
- $cont['0'] = sprintf( __( 'User %1$s uploaded photo %2$s into album %3$s', 'wp-photo-album-plus'), $owner, $id, wppa_get_album_name( $alb ) );
1813
- if ( wppa_switch( 'upload_moderate' ) && !current_user_can( 'wppa_admin' ) ) {
1814
- $cont['1'] = __( 'This upload requires moderation', 'wp-photo-album-plus' );
1815
- $cont['2'] = '<a href="'.get_admin_url().'admin.php?page=wppa_admin_menu&tab=pmod&photo='.$id.'" >'.__( 'Moderate manage photo', 'wp-photo-album-plus').'</a>';
1816
- }
1817
- else {
1818
- $cont['1'] = __( 'Details:', 'wp-photo-album-plus' );
1819
- $cont['1'] .= ' <a href="'.get_admin_url().'admin.php?page=wppa_admin_menu&tab=pmod&photo='.$id.'" >'.__( 'Manage photo', 'wp-photo-album-plus').'</a>';
1820
- }
1821
- wppa_send_mail( array( 'to' => $to,
1822
- 'subj' => $subj,
1823
- 'cont' => $cont,
1824
- 'photo' => $id,
1825
- 'listtype' => 'importbackend',
1826
- ));
1827
- }
1828
  }
1829
 
1830
  // Do the import photos
@@ -2225,7 +2204,7 @@ global $wppa_session;
2225
  if ( basename( $file ) != '.' && basename( $file ) != '..' && ( isset( $_POST['file-'.$idx] ) || isset( $_GET['continue'] ) ) ) {
2226
  if ( wppa_is_dir( $file ) ) {
2227
  $iret = wppa_import_dir_to_album( $file, '0' );
2228
- if ( wppa_is_time_up() && wppa_switch( 'auto_continue' ) ) {
2229
  wppa( 'continue', 'continue' );
2230
  }
2231
  $dircount++;
@@ -2558,7 +2537,7 @@ global $wppa_session;
2558
  }
2559
 
2560
  // Time up?
2561
- if ( wppa_is_time_up() && wppa_switch( 'auto_continue' ) ) {
2562
  wppa( 'continue', 'continue' );
2563
 
2564
  // Copy rest of file back to original
@@ -2805,7 +2784,7 @@ global $wppa_session;
2805
 
2806
 
2807
  // Time up?
2808
- if ( wppa_is_time_up() && wppa_switch( 'auto_continue' ) ) {
2809
  wppa( 'continue', 'continue' );
2810
 
2811
  // Copy rest of file back to original
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
620
  echo
621
  '<p class="hideifupdate" >' .
622
  __( 'Default album for import:', 'wp-photo-album-plus') .
623
+ wppa_album_select_a( array( 'path' => true,
624
  'selected' => wppa_get_option( 'wppa-photo-album-import-'.wppa_get_user(), '0' ),
625
  'addpleaseselect' => true,
626
  'checkowner' => true,
918
  echo
919
  '<p class="hideifupdate" >' .
920
  __( 'Album to import to:', 'wp-photo-album-plus') .
921
+ wppa_album_select_a( array( 'path' => true,
922
  'selected' => wppa_get_option( 'wppa-video-album-import-'.wppa_get_user(), '0' ),
923
  'addpleaseselect' => true,
924
  'checkowner' => true,
1033
  echo
1034
  '<p class="hideifupdate" >' .
1035
  __( 'Album to import to:', 'wp-photo-album-plus') .
1036
+ wppa_album_select_a( array( 'path' => true,
1037
  'selected' => wppa_get_option( 'wppa-audio-album-import-'.wppa_get_user(), '0' ),
1038
  'addpleaseselect' => true,
1039
  'checkowner' => true,
1224
  echo
1225
  '<p class="hideifupdate" >' .
1226
  __( 'Album to import to:', 'wp-photo-album-plus') .
1227
+ wppa_album_select_a( array( 'path' => true,
1228
  'selected' => wppa_get_option( 'wppa-document-album-import-'.wppa_get_user(), '0' ),
1229
  'addpleaseselect' => true,
1230
  'checkowner' => true,
1803
  // Send emails after backend upload
1804
  function wppa_backend_upload_mail( $id, $alb, $name ) {
1805
  return;
1806
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1807
  }
1808
 
1809
  // Do the import photos
2204
  if ( basename( $file ) != '.' && basename( $file ) != '..' && ( isset( $_POST['file-'.$idx] ) || isset( $_GET['continue'] ) ) ) {
2205
  if ( wppa_is_dir( $file ) ) {
2206
  $iret = wppa_import_dir_to_album( $file, '0' );
2207
+ if ( wppa_is_time_up() ) {
2208
  wppa( 'continue', 'continue' );
2209
  }
2210
  $dircount++;
2537
  }
2538
 
2539
  // Time up?
2540
+ if ( wppa_is_time_up() ) {
2541
  wppa( 'continue', 'continue' );
2542
 
2543
  // Copy rest of file back to original
2784
 
2785
 
2786
  // Time up?
2787
+ if ( wppa_is_time_up() ) {
2788
  wppa( 'continue', 'continue' );
2789
 
2790
  // Copy rest of file back to original
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.004
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
@@ -469,12 +469,10 @@ global $thegallery;
469
  $thealbum = __( 'the album', 'wp-photo-album-plus' );
470
  $thegallery = __( 'the gallery', 'wp-photo-album-plus' );
471
 
 
 
 
472
 
473
- if ( class_exists( 'WPGlobus_Core' ) || get_option( 'wppa_translate', 'no' ) == 'yes' ) {
474
- add_filter( 'gettext', 'wppa_translate' );
475
- add_filter( 'widget_title', 'wppa_translate', 1 );
476
- add_filter( 'translate_text', 'wppa_translate', 1 );
477
- }
478
  if ( get_option( 'wppa_album_use_gallery', 'no' ) == 'yes' ) {
479
  add_filter( 'gettext', 'wppa_album_to_gallery', 100 );
480
  }
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 */
469
  $thealbum = __( 'the album', 'wp-photo-album-plus' );
470
  $thegallery = __( 'the gallery', 'wp-photo-album-plus' );
471
 
472
+ add_filter( 'gettext', 'wppa_translate' );
473
+ add_filter( 'widget_title', 'wppa_translate', 1 );
474
+ add_filter( 'translate_text', 'wppa_translate', 1 );
475
 
 
 
 
 
 
476
  if ( get_option( 'wppa_album_use_gallery', 'no' ) == 'yes' ) {
477
  add_filter( 'gettext', 'wppa_album_to_gallery', 100 );
478
  }
wppa-lasten-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the last uploaded photos
6
- * Version 7.3.12
7
  */
8
 
9
  class LasTenWidget extends WP_Widget {
@@ -100,43 +100,43 @@ class LasTenWidget extends WP_Widget {
100
 
101
  // Non private
102
  $non_private = is_user_logged_in() ? "" : "AND status <> 'private' ";
103
-
104
  // If you want only 'New' photos in the selection, the period must be <> 0;
105
  if ( wppa_switch( 'lasten_limit_new' ) && wppa_opt( 'max_photo_newtime' ) ) {
106
  $newtime = " " . $order_by . " >= ".( time() - wppa_opt( 'max_photo_newtime' ) );
107
  if ( $album ) {
108
- $q = "SELECT * FROM $wpdb->wppa_photos
109
- WHERE (".$newtime.")
110
- AND album IN ( ".$album." )
111
- AND status <> 'pending'
112
- AND status <> 'scheduled'
113
  $non_private
114
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
115
  }
116
  else {
117
- $q = "SELECT * FROM $wpdb->wppa_photos
118
- WHERE (".$newtime.")
119
- AND album > 0
120
- AND status <> 'pending'
121
- AND status <> 'scheduled'
122
  $non_private
123
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
124
  }
125
  }
126
  else {
127
  if ( $album ) {
128
- $q = "SELECT * FROM $wpdb->wppa_photos
129
- WHERE album IN ( ".$album." )
130
- AND status <> 'pending'
131
- AND status <> 'scheduled'
132
  $non_private
133
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
134
  }
135
  else {
136
- $q = "SELECT * FROM $wpdb->wppa_photos
137
- WHERE album > 0
138
- AND status <> 'pending'
139
- AND status <> 'scheduled'
140
  $non_private
141
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
142
  }
@@ -248,7 +248,7 @@ class LasTenWidget extends WP_Widget {
248
  'addall' => true,
249
  'addmultiple' => true,
250
  'addnumbers' => true,
251
- 'path' => wppa_switch( 'hier_albsel' ),
252
  ) );
253
  echo
254
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the last uploaded photos
6
+ * Version 8.0.00.007
7
  */
8
 
9
  class LasTenWidget extends WP_Widget {
100
 
101
  // Non private
102
  $non_private = is_user_logged_in() ? "" : "AND status <> 'private' ";
103
+
104
  // If you want only 'New' photos in the selection, the period must be <> 0;
105
  if ( wppa_switch( 'lasten_limit_new' ) && wppa_opt( 'max_photo_newtime' ) ) {
106
  $newtime = " " . $order_by . " >= ".( time() - wppa_opt( 'max_photo_newtime' ) );
107
  if ( $album ) {
108
+ $q = "SELECT * FROM $wpdb->wppa_photos
109
+ WHERE (".$newtime.")
110
+ AND album IN ( ".$album." )
111
+ AND status <> 'pending'
112
+ AND status <> 'scheduled'
113
  $non_private
114
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
115
  }
116
  else {
117
+ $q = "SELECT * FROM $wpdb->wppa_photos
118
+ WHERE (".$newtime.")
119
+ AND album > 0
120
+ AND status <> 'pending'
121
+ AND status <> 'scheduled'
122
  $non_private
123
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
124
  }
125
  }
126
  else {
127
  if ( $album ) {
128
+ $q = "SELECT * FROM $wpdb->wppa_photos
129
+ WHERE album IN ( ".$album." )
130
+ AND status <> 'pending'
131
+ AND status <> 'scheduled'
132
  $non_private
133
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
134
  }
135
  else {
136
+ $q = "SELECT * FROM $wpdb->wppa_photos
137
+ WHERE album > 0
138
+ AND status <> 'pending'
139
+ AND status <> 'scheduled'
140
  $non_private
141
  ORDER BY " . $order_by . " DESC LIMIT " . $max;
142
  }
248
  'addall' => true,
249
  'addmultiple' => true,
250
  'addnumbers' => true,
251
+ 'path' => true,
252
  ) );
253
  echo
254
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 8.0.00.005
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -100,11 +100,6 @@ global $wppa_locale;
100
  else $pl .= 'debug='.wppa( 'debug' ).'&amp;';
101
  }
102
 
103
- if ( wppa_switch( 'add_locale' ) ) {
104
- if ( $key == 'js' ) $pl .= 'wppalocale=' . $wppa_locale . '&';
105
- else $pl .= 'wppalocale=' . $wppa_locale . '&amp;';
106
- }
107
-
108
  return $pl;
109
  }
110
 
@@ -170,11 +165,6 @@ global $wppa_runtime_settings;
170
  $al .= '&amp;debug=' . wppa( 'debug' );
171
  }
172
 
173
- if ( wppa_switch( 'add_locale' ) ) {
174
- if ( $key == 'js' ) $al .= '&wppalocale=' . $wppa_locale;
175
- else $al .= '&amp;wppalocale=' . $wppa_locale;
176
- }
177
-
178
  if ( is_array( $wppa_runtime_settings ) ) {
179
  foreach( array_keys( $wppa_runtime_settings ) as $key ) {
180
  $value = $wppa_runtime_settings[$key];
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 8.0.00.007
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
100
  else $pl .= 'debug='.wppa( 'debug' ).'&amp;';
101
  }
102
 
 
 
 
 
 
103
  return $pl;
104
  }
105
 
165
  $al .= '&amp;debug=' . wppa( 'debug' );
166
  }
167
 
 
 
 
 
 
168
  if ( is_array( $wppa_runtime_settings ) ) {
169
  foreach( array_keys( $wppa_runtime_settings ) as $key ) {
170
  $value = $wppa_runtime_settings[$key];
wppa-local-cdn.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains routines for local cdn implementation
6
- * Version 7.6.01
7
  *
8
  */
9
 
@@ -83,7 +83,6 @@ function wppa_cdn_make( $id, $x, $y ) {
83
  }
84
  else {
85
  $err = wppa_image_magick( 'convert ' . $fmpath . ' ' . $quality . ' -resize ' . $x . 'x' . $y . ' ' . $topath );
86
- wppa_optimize_image_file( $topath );
87
  }
88
 
89
  // Log what we did
@@ -174,11 +173,6 @@ function wppa_cdn_make( $id, $x, $y ) {
174
  if ( $dst ) imagedestroy( $dst );
175
  if ( $tmp ) imagedestroy( $tmp );
176
 
177
- // Optimize
178
- if ( wppa_is_file( $topath ) ) {
179
- wppa_optimize_image_file( $topath );
180
- }
181
-
182
  // Log what we did
183
  if ( $bret ) {
184
  wppa_log( 'fso', 'GD Created ' . $tpshort );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains routines for local cdn implementation
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
83
  }
84
  else {
85
  $err = wppa_image_magick( 'convert ' . $fmpath . ' ' . $quality . ' -resize ' . $x . 'x' . $y . ' ' . $topath );
 
86
  }
87
 
88
  // Log what we did
173
  if ( $dst ) imagedestroy( $dst );
174
  if ( $tmp ) imagedestroy( $tmp );
175
 
 
 
 
 
 
176
  // Log what we did
177
  if ( $bret ) {
178
  wppa_log( 'fso', 'GD Created ' . $tpshort );
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 8.0.00.005
7
  *
8
  */
9
 
@@ -961,8 +961,6 @@ wppaAreaMaxFrac = ' . ( wppa_opt( 'area_size' ) < 1 ? wppa_opt( 'area_size' ) :
961
  wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '";
962
  wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '";
963
  wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ';
964
- wppaExtendedResizeCount = ' . wppa_opt( 'extended_resize_count' ) . ';
965
- wppaExtendedResizeDelay = ' . wppa_opt( 'extended_resize_delay' ) . ';
966
  wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ';
967
  wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ';
968
  wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ';
@@ -1007,21 +1005,6 @@ wppaThumbAspect = ' . $aspect . ';';
1007
  }
1008
  }
1009
 
1010
- add_action( 'init', 'wppa_set_shortcode_priority', 100 );
1011
-
1012
- function wppa_set_shortcode_priority() {
1013
-
1014
- $newpri = wppa_opt( 'shortcode_priority' );
1015
- if ( $newpri == '11' ) return; // Default, do not change
1016
-
1017
- $oldpri = has_filter( 'the_content', 'do_shortcode' );
1018
- if ( $oldpri ) {
1019
- remove_filter( 'the_content', 'do_shortcode', $oldpri );
1020
- add_filter( 'the_content', 'do_shortcode', $newpri );
1021
- }
1022
- }
1023
-
1024
-
1025
  /* We use bbPress */
1026
  // editor bbpress in tinymce mode
1027
  function wppa_enable_visual_editor_in_bbpress( $args = array() ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
961
  wppaIconSizeNormal = "' . wppa_opt( 'nav_icon_size' ) . '";
962
  wppaIconSizeSlide = "' . wppa_opt( 'nav_icon_size_slide' ) . '";
963
  wppaResponseSpeed = ' . wppa_opt( 'response_speed' ) . ';
 
 
964
  wppaCoverSpacing = ' . wppa_opt( 'cover_spacing' ) . ';
965
  wppaFilmonlyContinuous = ' . ( wppa_switch( 'filmonly_continuous' ) ? 'true' : 'false' ) . ';
966
  wppaNoAnimateOnMobile = ' . ( wppa_switch( 'no_animate_on_mobile' ) ? 'true' : 'false' ) . ';
1005
  }
1006
  }
1007
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1008
  /* We use bbPress */
1009
  // editor bbpress in tinymce mode
1010
  function wppa_enable_visual_editor_in_bbpress( $args = array() ) {
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 7.7.06.002
7
  *
8
  */
9
 
@@ -1435,7 +1435,7 @@ function wppaToggleExif( id, count ) {
1435
  // If not done yet, get the album options html with the current album excluded
1436
  if ( ! isset( $album_select[$album] ) ) {
1437
  $album_select[$album] = wppa_album_select_a( array( 'checkaccess' => true,
1438
- 'path' => wppa_switch( 'hier_albsel' ),
1439
  'exclude' => $album,
1440
  'selected' => '0',
1441
  'addpleaseselect' => true,
@@ -2854,7 +2854,7 @@ function wppaSetConfirmMove( id ) {
2854
  <?php
2855
  // <select name="wppa-bulk-album" id="wppa-bulk-album" style="display:none;" onchange="wppa_setCookie( 'wppa_bulk_album',this.value,365 );" >
2856
  echo wppa_album_select_a( array( 'checkaccess' => true,
2857
- 'path' => wppa_switch( 'hier_albsel' ),
2858
  'exclude' => $album,
2859
  'selected' => '0',
2860
  'addpleaseselect' => true,
@@ -3081,7 +3081,7 @@ function wppaSetConfirmMove( id ) {
3081
  // If not done yet, get the album options html with the current album excluded
3082
  if ( ! isset( $album_select[$album] ) ) {
3083
  $album_select[$album] = wppa_album_select_a( array( 'checkaccess' => true,
3084
- 'path' => wppa_switch( 'hier_albsel' ),
3085
  'exclude' => $album,
3086
  'selected' => '0',
3087
  'addpleaseselect' => true,
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
1435
  // If not done yet, get the album options html with the current album excluded
1436
  if ( ! isset( $album_select[$album] ) ) {
1437
  $album_select[$album] = wppa_album_select_a( array( 'checkaccess' => true,
1438
+ 'path' => true,
1439
  'exclude' => $album,
1440
  'selected' => '0',
1441
  'addpleaseselect' => true,
2854
  <?php
2855
  // <select name="wppa-bulk-album" id="wppa-bulk-album" style="display:none;" onchange="wppa_setCookie( 'wppa_bulk_album',this.value,365 );" >
2856
  echo wppa_album_select_a( array( 'checkaccess' => true,
2857
+ 'path' => true,
2858
  'exclude' => $album,
2859
  'selected' => '0',
2860
  'addpleaseselect' => true,
3081
  // If not done yet, get the album options html with the current album excluded
3082
  if ( ! isset( $album_select[$album] ) ) {
3083
  $album_select[$album] = wppa_album_select_a( array( 'checkaccess' => true,
3084
+ 'path' => true,
3085
  'exclude' => $album,
3086
  'selected' => '0',
3087
  'addpleaseselect' => true,
wppa-photo-files.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-photo-files.php
3
  *
4
  * Functions used to create/manipulate photofiles
5
- * Version 8.0.00.003
6
  *
7
  */
8
 
@@ -132,9 +132,6 @@ function wppa_orientate_image_file( $file, $ori ) {
132
  // Output
133
  wppa_imagejpeg( $orientate, $file, wppa_opt( 'jpeg_quality' ) );
134
 
135
- // Optimized
136
- wppa_optimize_image_file( $file );
137
-
138
  // Free the memory
139
  imagedestroy( $source );
140
  @ imagedestroy( $orientate );
@@ -404,23 +401,11 @@ wppa_log('obs','method = '.wppa_opt( 'newphoto_name_method' ).', filename = '.$t
404
  // wppa_log('dbg', 'Max memory used: ' . sprintf( '%6.2f MB', memory_get_peak_usage( true ) / ( 1024 * 1024 ) ) );
405
  }
406
 
407
- // No resize on upload checked
408
  else {
409
  wppa_copy( $file, $newimage );
410
  }
411
 
412
- // File successfully created ?
413
- if ( is_file ( $newimage ) ) {
414
-
415
- // Optimize file
416
- wppa_optimize_image_file( $newimage );
417
- }
418
- else {
419
- if ( is_admin() ) wppa_error_message( __( 'ERROR: Resized or copied image could not be created.' , 'wp-photo-album-plus') );
420
- else wppa_alert( __( 'ERROR: Resized or copied image could not be created.', 'wp-photo-album-plus') );
421
- return false;
422
- }
423
-
424
  // These things do not exist in pdfs
425
  if ( ! wppa_is_pdf( $id ) ) {
426
 
@@ -789,9 +774,6 @@ function wppa_create_thumbnail( $id, $use_source = true ) {
789
  wppa_copy( $file, $thumbpath );
790
  }
791
 
792
- // Optimize
793
- wppa_optimize_image_file( $thumbpath );
794
-
795
  // Compute and save sizes
796
  wppa_get_thumbx( $id, 'force' ); // forces recalc x and y
797
 
2
  /* wppa-photo-files.php
3
  *
4
  * Functions used to create/manipulate photofiles
5
+ * Version 8.0.00.007
6
  *
7
  */
8
 
132
  // Output
133
  wppa_imagejpeg( $orientate, $file, wppa_opt( 'jpeg_quality' ) );
134
 
 
 
 
135
  // Free the memory
136
  imagedestroy( $source );
137
  @ imagedestroy( $orientate );
401
  // wppa_log('dbg', 'Max memory used: ' . sprintf( '%6.2f MB', memory_get_peak_usage( true ) / ( 1024 * 1024 ) ) );
402
  }
403
 
404
+ // No resize on upload checked or too big
405
  else {
406
  wppa_copy( $file, $newimage );
407
  }
408
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  // These things do not exist in pdfs
410
  if ( ! wppa_is_pdf( $id ) ) {
411
 
774
  wppa_copy( $file, $thumbpath );
775
  }
776
 
 
 
 
777
  // Compute and save sizes
778
  wppa_get_thumbx( $id, 'force' ); // forces recalc x and y
779
 
wppa-search-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
- * Version 7.3.03
7
  *
8
  */
9
 
@@ -188,14 +188,9 @@ class SearchPhotos extends WP_Widget {
188
 
189
  if ( $pages ) {
190
 
191
- // Add parents optionally OR translate only
192
- if ( wppa_switch( 'hier_pagesel' ) ) $pages = wppa_add_parents( $pages );
193
-
194
- // Just translate qTranslate-x
195
- else {
196
- foreach ( array_keys( $pages ) as $index ) {
197
- $pages[$index]['post_title'] = __( stripslashes( $pages[$index]['post_title'] ) );
198
- }
199
  }
200
 
201
  // Sort alpahbetically
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
188
 
189
  if ( $pages ) {
190
 
191
+ // Translate qTranslate-x
192
+ foreach ( array_keys( $pages ) as $index ) {
193
+ $pages[$index]['post_title'] = __( stripslashes( $pages[$index]['post_title'] ) );
 
 
 
 
 
194
  }
195
 
196
  // Sort alpahbetically
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.005
7
  *
8
  */
9
 
@@ -22,7 +22,7 @@ global $wppa_table;
22
  global $wppa_subtable;
23
  global $wppa_revno;
24
  global $no_default;
25
- global $wppa_tags;
26
  global $wp_version;
27
  global $wppa_supported_camara_brands;
28
 
@@ -57,7 +57,7 @@ global $wppa_supported_camara_brands;
57
  if ( ! wp_verify_nonce( $_REQUEST['wppa-nonce'], 'wppa-nonce' ) ) {
58
  wp_die( 'Security chekc failuere' );
59
  }
60
- // check_admin_referer( 'wppa-nonce', 'wppa-nonce' );
61
  $key = $_REQUEST['wppa-key'];
62
  $sub = isset( $_REQUEST['wppa-sub'] ) ? $_REQUEST['wppa-sub'] : '';
63
 
@@ -440,10 +440,6 @@ global $wppa_supported_camara_brands;
440
  $msg = __( 'Table I-C2 (Thumbnail Aspect) may not be set to "--- same as fullsize ---", or tick Table IV-D9: Use thumb on cover', 'wp-photo-album-plus' );
441
  wppa_warning_message( $stdmsg . $msg );
442
  }
443
- if ( wppa_opt( 'extended_resize_count' ) < '1' ) {
444
- $msg = __( 'Table IX-A15.1 (Extended resize count) should be set to 1 or larger', 'wp-photo-album-plus' );
445
- wppa_warning_message( $stdmsg . $msg );
446
- }
447
  }
448
 
449
  // Check for ImageMagick
@@ -483,27 +479,708 @@ global $wppa_supported_camara_brands;
483
  if ( ! function_exists( 'imagettfbbox' ) ) {
484
  wppa_error_message( __('Your PHP version does not support TrueType fonts. This means that you can not apply textual watermarks', 'wp-photo-album-plus' ) );
485
  }
 
 
 
 
486
  ?>
487
- <!--<br /><a href="javascript:window.print();"><?php //_e('Print settings') ?></a><br />-->
488
- <a style="cursor:pointer;" id="wppa-legon" onclick="jQuery('#wppa-legenda').css('display', ''); jQuery('#wppa-legon').css('display', 'none'); return false;" ><?php _e('Show legenda', 'wp-photo-album-plus') ?></a>
489
- <div id="wppa-legenda" class="updated" style="line-height:20px; display:none" >
490
- <div style="float:left"><?php _e('Legenda:', 'wp-photo-album-plus') ?></div><br />
491
- <?php echo wppa_doit_button(__('Button', 'wp-photo-album-plus')) ?><div style="float:left">&nbsp;:&nbsp;<?php _e('action that causes page reload.', 'wp-photo-album-plus') ?></div>
492
- <br />
493
- <input type="button" onclick="if ( confirm('<?php _e('Are you sure?', 'wp-photo-album-plus') ?>') ) return true; else return false;" class="button-secundary" style="float:left; border-radius:3px; font-size: 12px; height: 18px; margin: 0 4px; padding: 0px;" value="<?php _e('Button', 'wp-photo-album-plus') ?>" />
494
- <div style="float:left">&nbsp;:&nbsp;<?php _e('action that does not cause page reload.', 'wp-photo-album-plus') ?></div>
495
- <br />
496
- <img src="<?php echo wppa_get_imgdir() ?>star.ico" title="<?php _e('Setting unmodified', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Setting unmodified', 'wp-photo-album-plus') ?></div>
497
- <br />
498
- <img src="<?php echo wppa_get_imgdir() ?>spinner.gif" title="<?php _e('Update in progress', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Update in progress', 'wp-photo-album-plus') ?></div>
499
- <br />
500
- <img src="<?php echo wppa_get_imgdir() ?>tick.png" title="<?php _e('Setting updated', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Setting updated', 'wp-photo-album-plus') ?></div>
501
- <br />
502
- <img src="<?php echo wppa_get_imgdir() ?>cross.png" title="<?php _e('Update failed', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Update failed', 'wp-photo-album-plus') ?></div>
503
- <br />
504
- &nbsp;<a style="cursor:pointer;" onclick="jQuery('#wppa-legenda').css('display', 'none'); jQuery('#wppa-legon').css('display', ''); return false;" ><?php _e('Hide this', 'wp-photo-album-plus') ?></a>
505
- </div>
506
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  // Quick open selections
508
  $wppa_tags = array(
509
  '-' => '',
@@ -637,12 +1314,12 @@ global $wppa_supported_camara_brands;
637
  AND post_status = 'publish'
638
  ORDER BY post_title", ARRAY_A );
639
  if ( $pages ) {
640
- if ( wppa_switch( 'hier_pagesel') ) $pages = wppa_add_parents($pages);
641
- else { // Just translate
642
- foreach ( array_keys($pages) as $index ) {
643
- $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
644
- }
645
  }
 
646
  $pages = wppa_array_sort($pages, 'post_title');
647
  foreach ($pages as $page) {
648
  if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
@@ -680,7 +1357,7 @@ global $wppa_supported_camara_brands;
680
  <table class="widefat wppa-table wppa-setting-table">
681
  <thead style="font-weight: bold; " class="wppa_table_1">
682
  <tr>
683
- <td><?php _e('#', 'wp-photo-album-plus') ?></td>
684
  <td><?php _e('Name', 'wp-photo-album-plus') ?></td>
685
  <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
686
  <td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
@@ -815,83 +1492,6 @@ global $wppa_supported_camara_brands;
815
  wppa_setting_subheader( 'A', '1', __( 'WPPA+ global system related size settings' , 'wp-photo-album-plus') );
816
  {
817
 
818
- $name = __('Initial Width', 'wp-photo-album-plus');
819
- $desc = __('The most often displayed colun width in responsive theme', 'wp-photo-album-plus');
820
- $help = (__('Change this value only if your responsive theme shows initially a wrong column width.', 'wp-photo-album-plus'));
821
- $slug = 'wppa_initial_colwidth';
822
- $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
823
- $clas = 'wppa_init_resp_width';
824
- $tags = 'size,system';
825
- wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
826
-
827
- $name = __('Resize to', 'wp-photo-album-plus');
828
- $desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus');
829
- $help = (__('Specify the screensize for the unscaled photos.', 'wp-photo-album-plus'));
830
- $help .= '<br />'.(__('The use of a non-default value is particularly usefull when you make use of lightbox functionality.', 'wp-photo-album-plus'));
831
- $slug = 'wppa_resize_to';
832
- $px = __('pixels', 'wp-photo-album-plus');
833
- $options = array( __('Do not resize', 'wp-photo-album-plus'),
834
- __('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
835
- '640 x 480 '.$px,
836
- '800 x 600 '.$px,
837
- '1024 x 768 '.$px,
838
- '1200 x 900 '.$px,
839
- '1280 x 960 '.$px,
840
- '1366 x 768 '.$px,
841
- '1920 x 1080 '.$px,
842
- '2400 x 1200 '.$px,
843
- '3600 x 1800 '.$px,
844
- '4800 x 2400 '.$px,
845
- '6000 x 3000 '.$px,
846
- );
847
- $values = array( '-1',
848
- '0',
849
- '640x480',
850
- '800x600',
851
- '1024x768',
852
- '1200x900',
853
- '1280x960',
854
- '1366x768',
855
- '1920x1080',
856
- '2400x1200',
857
- '3600x1800',
858
- '4800x2400',
859
- '6000x3000',
860
- );
861
- $html = wppa_select($slug, $options, $values);
862
- $clas = 're_up';
863
- $tags = 'size,upload';
864
- wppa_setting('', '3', $name, $desc, $html, $help, $clas, $tags);
865
-
866
- $name = __('Border thickness', 'wp-photo-album-plus');
867
- $desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
868
- $help = (__('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus'));
869
- $help .= '<br />'.(__('WPPA+ boxes are: the navigation bars and the filmstrip.', 'wp-photo-album-plus'));
870
- $slug = 'wppa_bwidth';
871
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
872
- $clas = '';
873
- $tags = 'size,layout';
874
- wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
875
-
876
- $name = __('Border radius', 'wp-photo-album-plus');
877
- $desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
878
- $help = (__('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus'));
879
- $help .= '<br />'.(__('WPPA+ boxes are: the navigation bars and the filmstrip.', 'wp-photo-album-plus'));
880
- $help .= '<br />'.(__('Note that rounded corners are only supported by modern browsers.', 'wp-photo-album-plus'));
881
- $slug = 'wppa_bradius';
882
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
883
- $clas = '';
884
- $tags = 'size,layout';
885
- wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
886
-
887
- $name = __('Box spacing', 'wp-photo-album-plus');
888
- $desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
889
- $help = '';
890
- $slug = 'wppa_box_spacing';
891
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
892
- $clas = '';
893
- $tags = 'size,layout';
894
- wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
895
 
896
  $name = __('Related count', 'wp-photo-album-plus');
897
  $desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
@@ -1350,45 +1950,6 @@ global $wppa_supported_camara_brands;
1350
  }
1351
  wppa_setting_subheader( 'E', '1', __( 'Rating and comment related size settings' , 'wp-photo-album-plus') );
1352
  {
1353
- $name = __('Rating size', 'wp-photo-album-plus');
1354
- $desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
1355
- $help = '';
1356
- $slug = 'wppa_rating_max';
1357
- $options = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
1358
- $values = array('5', '10', '1');
1359
- $html = wppa_select($slug, $options, $values);
1360
- $clas = 'wppa_rating_';
1361
- $tags = 'count,rating,layout';
1362
- wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
1363
-
1364
- $name = __('Display precision', 'wp-photo-album-plus');
1365
- $desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
1366
- $help = '';
1367
- $slug = 'wppa_rating_prec';
1368
- $options = array('1 '.__('decimal places', 'wp-photo-album-plus'), '2 '.__('decimal places', 'wp-photo-album-plus'), '3 '.__('decimal places', 'wp-photo-album-plus'), '4 '.__('decimal places', 'wp-photo-album-plus'));
1369
- $values = array('1', '2', '3', '4');
1370
- $html = wppa_select($slug, $options, $values);
1371
- $clas = 'wppa_rating_';
1372
- $tags = 'rating,layout';
1373
- wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
1374
-
1375
- $name = __('Avatar size', 'wp-photo-album-plus');
1376
- $desc = __('Size of Avatar images.', 'wp-photo-album-plus');
1377
- $help = (__('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus'));
1378
- $slug = 'wppa_gravatar_size';
1379
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
1380
- $clas = '';
1381
- $tags = 'comment,size,layout';
1382
- wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
1383
-
1384
- $name = __('Rating space', 'wp-photo-album-plus');
1385
- $desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
1386
- $help = '';
1387
- $slug = 'wppa_ratspacing';
1388
- $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
1389
- $clas = '';
1390
- $tags = 'rating,layout,size';
1391
- wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
1392
  }
1393
  wppa_setting_subheader( 'F', '1', __( 'Widget related size settings' , 'wp-photo-album-plus') );
1394
  {
@@ -2084,26 +2645,6 @@ global $wppa_supported_camara_brands;
2084
  $tags = 'slide,meta,layout';
2085
  wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
2086
 
2087
- $name = __('Rating system', 'wp-photo-album-plus');
2088
- $desc = __('Enable the rating system.', 'wp-photo-album-plus');
2089
- $help = (__('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus'));
2090
- $slug = 'wppa_rating_on';
2091
- $onchange = 'wppaCheckRating()';
2092
- $html = wppa_checkbox($slug, $onchange);
2093
- $clas = '';
2094
- $tags = 'slide,rating';
2095
- wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
2096
-
2097
- $name = __('Comments system', 'wp-photo-album-plus');
2098
- $desc = __('Enable the comments system.', 'wp-photo-album-plus');
2099
- $help = (__('Display the comments box under the fullsize images and let users enter their comments on individual photos.', 'wp-photo-album-plus'));
2100
- $slug = 'wppa_show_comments';
2101
- $onchange = 'wppaCheckComments()';
2102
- $html = wppa_checkbox($slug, $onchange);
2103
- $clas = '';
2104
- $tags = 'slide,comment';
2105
- wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
2106
-
2107
  $name = __('Comment Avatar default', 'wp-photo-album-plus');
2108
  $desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
2109
  $help = '';
@@ -2472,15 +3013,6 @@ global $wppa_supported_camara_brands;
2472
  $tags = 'thumb,meta,layout';
2473
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
2474
 
2475
- $name = __('Thumbnail rating', 'wp-photo-album-plus');
2476
- $desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
2477
- $help = (__('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus'));
2478
- $slug = 'wppa_thumb_text_rating';
2479
- $html = '<span class="wppa_rating">'.wppa_checkbox($slug).'</span>';
2480
- $clas = 'wppa_rating_ tt_normal';
2481
- $tags = 'thumb,layout,rating';
2482
- wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
2483
-
2484
  $name = __('Thumbnail comcount', 'wp-photo-album-plus');
2485
  $desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus');
2486
  $help = (__('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus'));
@@ -2580,15 +3112,6 @@ global $wppa_supported_camara_brands;
2580
  $tags = 'thumb,comment,layout';
2581
  wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
2582
 
2583
- $name = __('Show rating count', 'wp-photo-album-plus');
2584
- $desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
2585
- $help = (__('If checked, the number of votes is displayed along with average rating displays on thumbnail and popup displays.', 'wp-photo-album-plus'));
2586
- $slug = 'wppa_show_rating_count';
2587
- $html = wppa_checkbox($slug);
2588
- $clas = 'wppa_rating_ tt_normal tt_masonry';
2589
- $tags = 'thumb,rating,layout';
2590
- wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
2591
-
2592
  $name = __('Show name on thumb area', 'wp-photo-album-plus');
2593
  $desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus');
2594
  $help = '';
@@ -2947,15 +3470,6 @@ global $wppa_supported_camara_brands;
2947
  $tags = 'lightbox,layout';
2948
  wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
2949
 
2950
- $name = __('Show rating', 'wp-photo-album-plus');
2951
- $desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
2952
- $help = (__('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus'));
2953
- $slug = 'wppa_ovl_rating';
2954
- $html = wppa_checkbox($slug);
2955
- $clas = '';
2956
- $tags = 'lightbox,layout,rating';
2957
- wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
2958
-
2959
  $name = __('Overlay show counter', 'wp-photo-album-plus');
2960
  $desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
2961
  $help = '';
@@ -2977,66 +3491,6 @@ global $wppa_supported_camara_brands;
2977
  }
2978
  wppa_setting_subheader( 'H', '1', __( 'Frontend upload configuration settings' , 'wp-photo-album-plus') );
2979
  {
2980
- $name = __('User upload Photos', 'wp-photo-album-plus');
2981
- $desc = __('Enable frontend upload.', 'wp-photo-album-plus');
2982
- $help = (__('If you check this item, frontend upload will be enabled according to the rules set in the following items of this table.', 'wp-photo-album-plus'));
2983
- $slug = 'wppa_user_upload_on';
2984
- $onchange = 'wppaFollow(\'user_upload_on\',\'wppa_feup\');';
2985
- $html = wppa_checkbox($slug, $onchange);
2986
- $clas = '';
2987
- $tags = 'access,upload';
2988
- wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
2989
-
2990
- $name = __('User upload Video', 'wp-photo-album-plus');
2991
- $desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
2992
- $help = (__('Requires Table II-H1 to be ticked.', 'wp-photo-album-plus'));
2993
- $slug = 'wppa_user_upload_video_on';
2994
- $onchange = '';
2995
- $html = wppa_checkbox($slug, $onchange);
2996
- $clas = '';
2997
- $tags = 'access,upload,video';
2998
- wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
2999
-
3000
- $name = __('User upload Audio', 'wp-photo-album-plus');
3001
- $desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
3002
- $help = (__('Requires Table II-H1 to be ticked.', 'wp-photo-album-plus'));
3003
- $slug = 'wppa_user_upload_audio_on';
3004
- $onchange = '';
3005
- $html = wppa_checkbox($slug, $onchange);
3006
- $clas = '';
3007
- $tags = 'access,upload,audio';
3008
- wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
3009
-
3010
- $name = __('User upload Photos login', 'wp-photo-album-plus');
3011
- $desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
3012
- $help = (__('If you uncheck this box, make sure you check the item Owners only in Table VII-D1.', 'wp-photo-album-plus'));
3013
- $help .= '<br />'.(__('Also: set the owner to ---public--- of the albums that are allowed to be uploaded to.', 'wp-photo-album-plus'));
3014
- $slug = 'wppa_user_upload_login';
3015
- $html = wppa_checkbox($slug);
3016
- $clas = 'wppa_feup';
3017
- $tags = 'access,upload';
3018
- wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
3019
-
3020
- $name = __('User upload roles', 'wp-photo-album-plus');
3021
- $desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
3022
- $help = (__('This selection only applies when the previous item is ticked', 'wp-photo-album-plus'));
3023
- $slug = 'wppa_user_opload_roles';
3024
- $roles = $wp_roles->roles;
3025
- $opts = array();
3026
- $vals = array();
3027
- $opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
3028
- $vals[] = '';
3029
- foreach (array_keys($roles) as $key) {
3030
- $role = $roles[$key];
3031
- $rolename = translate_user_role( $role['name'] );
3032
- $opts[] = $rolename;
3033
- $vals[] = $key;
3034
- }
3035
- $onch = '';
3036
- $html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
3037
- $clas = 'wppa_feup';
3038
- $tags = 'access,upload';
3039
- wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
3040
 
3041
  $name = __('User upload Ajax', 'wp-photo-album-plus');
3042
  $desc = __('Shows the upload progression bar.', 'wp-photo-album-plus');
@@ -3610,18 +4064,6 @@ global $wppa_supported_camara_brands;
3610
 
3611
  wppa_setting_subheader( 'A', '4', __('General backgrounds' , 'wp-photo-album-plus') );
3612
  {
3613
- $name = __('WPPA box', 'wp-photo-album-plus');
3614
- $desc = __('WPPA display boxes.', 'wp-photo-album-plus');
3615
- $help = __('Enter valid CSS colors for backgrounds and borders.', 'wp-photo-album-plus');
3616
- $slug1 = 'wppa_bgcolor';
3617
- $slug2 = 'wppa_bcolor';
3618
- $slug = array($slug1, $slug2);
3619
- $html1 = wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . '</td><td>' . wppa_color_box($slug1);
3620
- $html2 = wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . '</td><td>' . wppa_color_box($slug2);
3621
- $html = array($html1, $html2);
3622
- $clas = '';
3623
- $tags = 'layout';
3624
- wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
3625
 
3626
  $name = __('SlideImg', 'wp-photo-album-plus');
3627
  $desc = __('Fullsize Slideshow Photos.', 'wp-photo-album-plus');
@@ -4100,44 +4542,6 @@ global $wppa_supported_camara_brands;
4100
  $tags = 'system';
4101
  wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
4102
 
4103
- $name = __('Enable Video', 'wp-photo-album-plus');
4104
- $desc = __('Enables video support.', 'wp-photo-album-plus');
4105
- $help = '';
4106
- $slug = 'wppa_enable_video';
4107
- $onchange = 'wppaCheckCheck( \''.$slug.'\', \'wppa-video\' )';
4108
- $html = wppa_checkbox($slug, $onchange);
4109
- $clas = '';
4110
- $tags = 'system,video';
4111
- wppa_setting($slug, '22', $name, $desc, $html, $help, $clas, $tags);
4112
-
4113
- $name = __('Enable Audio', 'wp-photo-album-plus');
4114
- $desc = __('Enables audio support.', 'wp-photo-album-plus');
4115
- $help = '';
4116
- $slug = 'wppa_enable_audio';
4117
- $html = wppa_checkbox($slug);
4118
- $clas = '';
4119
- $tags = 'system,audio';
4120
- wppa_setting($slug, '23', $name, $desc, $html, $help, $clas, $tags);
4121
-
4122
- $name = __('Enable 3D Stereo', 'wp-photo-album-plus');
4123
- $desc = __('Enables 3D stereo photo support.', 'wp-photo-album-plus');
4124
- $help = '';
4125
- $slug = 'wppa_enable_stereo';
4126
- $html = wppa_checkbox($slug);
4127
- $clas = '';
4128
- $tags = 'system';
4129
- wppa_setting($slug, '24.1', $name, $desc, $html, $help, $clas, $tags);
4130
-
4131
- $name = __('Enable Panorama', 'wp-photo-album-plus');
4132
- $desc = __('Enable panorama photo support.', 'wp-photo-album-plus');
4133
- $help = '';
4134
- $slug = 'wppa_enable_panorama';
4135
- $onch = 'alert(\''.__('The page will be reloaded after the action has taken place.', 'wp-photo-album-plus').'\');wppaRefreshAfter();';
4136
- $html = wppa_checkbox($slug, $onch);
4137
- $clas = '';
4138
- $tags = 'system';
4139
- wppa_setting($slug, '24.2', $name, $desc, $html, $help, $clas, $tags);
4140
-
4141
  $name = __('Relative urls', 'wp-photo-album-plus');
4142
  $desc = __('Use relative urls only.', 'wp-photo-album-plus');
4143
  $help = '';
@@ -4208,15 +4612,6 @@ global $wppa_supported_camara_brands;
4208
  $tags = 'system';
4209
  wppa_setting($slug, '28', $name, $desc, $html, $help, $clas, $tags);
4210
 
4211
- $name = __('Enable pdf', 'wp-photo-album-plus');
4212
- $desc = __('Enable the support of pdf files', 'wp-photo-album-plus');
4213
- $help = '';
4214
- $slug = 'wppa_enable_pdf';
4215
- $html = wppa_checkbox($slug);
4216
- $clas = '';
4217
- $tags = 'system,document';
4218
- wppa_setting($slug, '30', $name, $desc, $html, $help, $clas, $tags);
4219
-
4220
  $name = __('No rightclick', 'wp-photo-album-plus');
4221
  $desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
4222
  $help = '';
@@ -4982,18 +5377,6 @@ global $wppa_supported_camara_brands;
4982
  $tags = 'rating,layout';
4983
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
4984
 
4985
- $name = __('Rating display type', 'wp-photo-album-plus');
4986
- $desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
4987
- $help = (__('If you select "Likes" you must also select "One button vote" in Table I-E1', 'wp-photo-album-plus'));
4988
- $slug = 'wppa_rating_display_type';
4989
- $opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
4990
- $vals = array('graphic', 'numeric', 'likes');
4991
- $postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
4992
- $html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
4993
- $clas = 'wppa_rating_';
4994
- $tags = 'rating,layout';
4995
- wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
4996
-
4997
  $name = __('Show average rating', 'wp-photo-album-plus');
4998
  $desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
4999
  $help = (__('If checked, the average rating as well as the current users rating is displayed in max 5 or 10 stars.', 'wp-photo-album-plus'));
@@ -6992,90 +7375,7 @@ global $wppa_supported_camara_brands;
6992
  ); ?>
6993
 
6994
  <div id="wppa_table_7" style="display:none" >
6995
- <table class="widefat wppa-table wppa-setting-table" style="padding-bottom:0; margin-bottom:0;" >
6996
-
6997
- <tbody class="wppa_table_7">
6998
- <?php
6999
- $wppa_table = 'VII';
7000
 
7001
- wppa_setting_subheader('A', '7', __('Admin settings per user role. These settings define the display of the Photo Albums sub-menu items.', 'wp-photo-album-plus'), '', false );
7002
- ?>
7003
-
7004
- <tr style="font-weight: bold; " class="wppa-VII-A">
7005
- <?php
7006
- $wppacaps = array( 'wppa_admin',
7007
- 'wppa_upload',
7008
- 'wppa_import',
7009
- 'wppa_moderate',
7010
- 'wppa_export',
7011
- 'wppa_settings',
7012
- 'wppa_potd',
7013
- 'wppa_comments',
7014
- 'wppa_help',
7015
- 'wppa_medal',
7016
- );
7017
- $wppanames = array( __('Album Admin', 'wp-photo-album-plus' ),
7018
- __('Upload', 'wp-photo-album-plus' ),
7019
- __('Import', 'wp-photo-album-plus' ),
7020
- __('Moderate', 'wp-photo-album-plus' ),
7021
- __('Export', 'wp-photo-album-plus' ),
7022
- __('Settings', 'wp-photo-album-plus' ),
7023
- __('Photo of the day', 'wp-photo-album-plus' ),
7024
- __('Comments', 'wp-photo-album-plus' ),
7025
- __('Documentation', 'wp-photo-album-plus' ),
7026
- __('Membership', 'wp-photo-album-plus'),
7027
- );
7028
- $titles = array( __('User can add/edit his own or all albums, depending on VII-D1.1. The administrator and wppa superuser can do anything', 'wp-photo-album-plus'),
7029
- __('Enables the Upload Photos admin screen', 'wp-photo-album-plus'),
7030
- __('Enables the Import Photos amin screen', 'wp-photo-album-plus'),
7031
- __('Enables the capability to change status and edit new photos and approve comments', 'wp-photo-album-plus'),
7032
- __('Enables the Export Photos admin screen', 'wp-photo-album-plus'),
7033
- __('Enables this settings screen', 'wp-photo-album-plus'),
7034
- __('Enables the photo of the day settings screen', 'wp-photo-album-plus'),
7035
- __('Enables the Comment admin screen', 'wp-photo-album-plus'),
7036
- __('Enables the Documentation screen', 'wp-photo-album-plus'),
7037
- __('Indicates type of premium membership', 'wp-photo-album-plus'),
7038
- );
7039
- echo '<td>'.__('Role', 'wp-photo-album-plus').'</td>';
7040
- for ($i = 0; $i < count($wppacaps); $i++) echo '<td style="width:11%;cursor:pointer;" title="'.($titles[$i]).'" >'.$wppanames[$i].'</td>';
7041
- ?>
7042
- </tr>
7043
-
7044
- <?php
7045
- $tags = 'access,system';
7046
- $roles = $wp_roles->roles;
7047
- $opts = array( '',
7048
- __('bronze', 'wp-photo-album-plus'),
7049
- __('silver', 'wp-photo-album-plus'),
7050
- __('gold', 'wp-photo-album-plus'),
7051
- __('plus', 'wp-photo-album-plus'),
7052
- __('basic', 'wp-photo-album-plus'),
7053
- );
7054
- $vals = array( 'none', 'bronze', 'silver', 'gold', 'plus', 'basic' );
7055
-
7056
- foreach (array_keys($roles) as $key) {
7057
- $role = $roles[$key];
7058
-
7059
- $rolename = translate_user_role( $role['name'] );
7060
-
7061
- echo '<tr class="wppa-VII-A wppa-none '.wppa_tags_to_clas($tags).'" ><td>'.$rolename.'</td>';
7062
- $caps = $role['capabilities'];
7063
- for ($i = 0; $i < count($wppacaps) - 1; $i++) {
7064
- if (isset($caps[$wppacaps[$i]])) {
7065
- $yn = $caps[$wppacaps[$i]] ? true : false;
7066
- }
7067
- else $yn = false;
7068
- $enabled = ( $key != 'administrator' );
7069
- echo '<td>'.wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled).'</td>';
7070
- };
7071
-
7072
- echo '<td>'.wppa_select($wppacaps[count($wppacaps) - 1].'-'.$key, $opts, $vals).'</td>';
7073
-
7074
- echo '</tr>';
7075
- }
7076
- ?>
7077
- </tbody>
7078
- </table>
7079
  <table class="widefat wppa-table wppa-setting-table" style="margin-top:-2px;padding-top:0;" >
7080
  <tbody class="wppa_table_7">
7081
  <?php
@@ -8790,90 +9090,26 @@ global $wppa_supported_camara_brands;
8790
 
8791
  wppa_setting_subheader( 'A', '1', __( 'Internal engine related settings' , 'wp-photo-album-plus') );
8792
  {
8793
- $name = __('WPPA+ Filter priority', 'wp-photo-album-plus');
8794
- $desc = __('Sets the priority of the wppa+ content filter.', 'wp-photo-album-plus');
8795
- $help = (__('If you encounter conflicts with the theme or other plugins, increasing this value sometimes helps. Use with great care!', 'wp-photo-album-plus'));
8796
- $slug = 'wppa_filter_priority';
 
 
8797
  $html = wppa_input($slug, '50px');
8798
  $clas = '';
8799
  $tags = 'system';
8800
- wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
8801
 
8802
- $name = __('Do_shortcode priority', 'wp-photo-album-plus');
8803
- $desc = __('Sets the priority of the do_shortcode() content filter.', 'wp-photo-album-plus');
8804
- $help = (__('If you encounter conflicts with the theme or other plugins, increasing this value sometimes helps. Use with great care!', 'wp-photo-album-plus'));
8805
- $slug = 'wppa_shortcode_priority';
8806
- $html = wppa_input($slug, '50px');
8807
- $clas = '';
8808
- $tags = 'system';
8809
- wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
8810
-
8811
- $name = __('WPPA shortcode at Filter priority', 'wp-photo-album-plus');
8812
- $desc = __('Execute shortcode expansion on filter priority in posts and pages.', 'wp-photo-album-plus');
8813
- $help = (__('Use to fix certain layout problems', 'wp-photo-album-plus'));
8814
- $slug = 'wppa_shortcode_at_priority';
8815
- $html = wppa_checkbox($slug);
8816
- $clas = '';
8817
- $tags = 'system';
8818
- wppa_setting($slug, '1.3', $name, $desc, $html, $help, $clas, $tags);
8819
-
8820
- $name = __('WPPA shortcode at Filter priority widget', 'wp-photo-album-plus');
8821
- $desc = __('Execute shortcode expansion on filter priority in widgets.', 'wp-photo-album-plus');
8822
- $help = (__('Use to fix certain layout problems', 'wp-photo-album-plus'));
8823
- $slug = 'wppa_shortcode_at_priority_widget';
8824
- $html = wppa_checkbox($slug);
8825
- $clas = '';
8826
- $tags = 'system';
8827
- wppa_setting($slug, '1.4', $name, $desc, $html, $help, $clas, $tags);
8828
-
8829
- $name = __('JPG image quality', 'wp-photo-album-plus');
8830
- $desc = __('The jpg quality when photos are downsized', 'wp-photo-album-plus');
8831
- $help = (__('The higher the number the better the quality but the larger the file', 'wp-photo-album-plus'));
8832
- $help .= '<br />'.(__('Possible values 20..100', 'wp-photo-album-plus'));
8833
- $slug = 'wppa_jpeg_quality';
8834
- $html = wppa_input($slug, '50px');
8835
- $clas = '';
8836
- $tags = 'system';
8837
- wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
8838
-
8839
- $name = __('Allow WPPA+ Debugging', 'wp-photo-album-plus');
8840
- $desc = __('Allow the use of &amp;debug=.. in urls to this site.', 'wp-photo-album-plus');
8841
- $help = (__('If checked: appending (?)(&)debug or (?)(&)debug=<int> to an url to this site will generate the display of special WPPA+ diagnostics, as well as php warnings', 'wp-photo-album-plus'));
8842
- $slug = 'wppa_allow_debug';
8843
- $html = wppa_checkbox($slug);
8844
  $clas = '';
8845
  $tags = 'system';
8846
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
8847
 
8848
- $name = __('Auto continue', 'wp-photo-album-plus');
8849
- $desc = __('Continue automatic after time out', 'wp-photo-album-plus');
8850
- $help = (__('If checked, an attempt will be made to restart an admin process when the time is out.', 'wp-photo-album-plus'));
8851
- $slug = 'wppa_auto_continue';
8852
- $html = wppa_checkbox($slug);
8853
- $clas = '';
8854
- $tags = 'system';
8855
- wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
8856
-
8857
- $name = __('Max execution time', 'wp-photo-album-plus');
8858
- $desc = __('Set max execution time here.', 'wp-photo-album-plus');
8859
- $help = (__('If your php config does not properly set the max execution time, you can set it here. Seconds.', 'wp-photo-album-plus'));
8860
- $help .= '<br />'.(__('A safe value is 45 in most cases', 'wp-photo-album-plus'));
8861
- $help .= '<br />'.(sprintf(__('The PHP setting max_execution_time is set to %s.', 'wp-photo-album-plus'), ini_get('max_execution_time')));
8862
- $slug = 'wppa_max_execution_time';
8863
- $html = wppa_input($slug, '50px', '', 'seconds');
8864
- $clas = '';
8865
- $tags = 'system';
8866
- wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
8867
-
8868
- $name = __('Feed use thumb', 'wp-photo-album-plus');
8869
- $desc = __('Feeds use thumbnail pictures always.', 'wp-photo-album-plus');
8870
- $help = '';
8871
- $slug = 'wppa_feed_use_thumb';
8872
- $html = wppa_checkbox($slug);
8873
- $clas = '';
8874
- $tags = 'system';
8875
- wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
8876
-
8877
  $name = __('Enable <i>in-line</i> settings', 'wp-photo-album-plus');
8878
  $desc = __('Activates shortcode [wppa_set].', 'wp-photo-album-plus');
8879
  $help = (__('Syntax: [wppa_set name="any wppa setting" value="new value"]', 'wp-photo-album-plus'));
@@ -8886,15 +9122,6 @@ global $wppa_supported_camara_brands;
8886
  $tags = 'system';
8887
  wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
8888
 
8889
- $name = __('Runtime modifyable settings', 'wp-photo-album-plus');
8890
- $desc = __('The setting slugs that may be altered using [wppa_set] shortcode.', 'wp-photo-album-plus');
8891
- $help = '';
8892
- $slug = 'wppa_set_shortcodes';
8893
- $html = wppa_input($slug, '90%');
8894
- $clas = '';
8895
- $tags = 'system';
8896
- wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
8897
-
8898
  $name = __('Log Cron', 'wp-photo-album-plus');
8899
  $desc = __('Keep track of cron activity in the wppa logfile.', 'wp-photo-album-plus');
8900
  $help = '';
@@ -9005,28 +9232,6 @@ global $wppa_supported_camara_brands;
9005
  $tags = 'system,comment,rating';
9006
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
9007
 
9008
- $name = __('Extended resize count', 'wp-photo-album-plus');
9009
- $desc = __('Number of extra resize handler actions', 'wp-photo-album-plus');
9010
- $help = '';
9011
- $slug = 'wppa_extended_resize_count';
9012
- $opts = array('0','1','2','3','4','5','6','10','15','20',__( 'infinite', 'wp-photo-album-plus' ) );
9013
- $vals = array('0','1','2','3','4','5','6','10','15','20','-1');
9014
- $html = wppa_select($slug, $opts, $vals).' '.__('times', 'wp-photo-album-plus');
9015
- $clas = '';
9016
- $tags = 'system';
9017
- wppa_setting($slug, '15.1', $name, $desc, $html, $help, $clas, $tags);
9018
-
9019
- $name = __('Extended resize delay', 'wp-photo-album-plus');
9020
- $desc = __('Delay time of extra resize handler actions', 'wp-photo-album-plus');
9021
- $help = '';
9022
- $slug = 'wppa_extended_resize_delay';
9023
- $opts = array('5','10','20','50','100','150','200','300','500','700','1000');
9024
- $vals = $opts;
9025
- $html = wppa_select($slug, $opts, $vals).' ms.';
9026
- $clas = '';
9027
- $tags = 'system';
9028
- wppa_setting($slug, '15.2', $name, $desc, $html, $help, $clas, $tags);
9029
-
9030
  $name = __('Load nicescroller always', 'wp-photo-album-plus');
9031
  $desc = __('Loads nicescroller js on all pages', 'wp-photo-album-plus');
9032
  $help = __('Tick this if you use nicescroller anywhere and it is not being loaded', 'wp-photo-album-plus');
@@ -9036,24 +9241,6 @@ global $wppa_supported_camara_brands;
9036
  $tags = 'system';
9037
  wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
9038
 
9039
- $name = __('Translate', 'wp-photo-album-plus');
9040
- $desc = __('Translate names, descriptions and other text using qTranslate rules', 'wp-photo-album-plus');
9041
- $help = __('Only the shortcode-like type is supported e.g. [:de]Deutsch[:nl]Nederlands[:fr]Francais[:en]English[:]', 'wp-photo-album-plus');
9042
- $slug = 'wppa_translate';
9043
- $html = wppa_checkbox($slug);
9044
- $clas = '';
9045
- $tags = 'system';
9046
- wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
9047
-
9048
- $name = __('Add locale', 'wp-photo-album-plus');
9049
- $desc = __('Always add locale to links', 'wp-photo-album-plus');
9050
- $help = __('You may need this setting if you use a multilanguage plugin not being qTranslate', 'wp-photo-album-plus');
9051
- $slug = 'wppa_add_locale';
9052
- $html = wppa_checkbox($slug);
9053
- $clas = '';
9054
- $tags = 'system';
9055
- wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
9056
-
9057
  $name = __('CSV file separator', 'wp-photo-album-plus');
9058
  $desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
9059
  $help = __('This separator is used both during import and export', 'wp-photo-album-plus');
@@ -9068,32 +9255,6 @@ global $wppa_supported_camara_brands;
9068
  }
9069
  wppa_setting_subheader( 'B', '1', __( 'WPPA+ Admin related miscellaneous settings' , 'wp-photo-album-plus') );
9070
  {
9071
- $name = __('Allow HTML', 'wp-photo-album-plus');
9072
- $desc = __('Allow HTML in album and photo descriptions.', 'wp-photo-album-plus');
9073
- $help = (__('If checked: html is allowed. WARNING: No checks on syntax, it is your own responsibility to close tags properly!', 'wp-photo-album-plus'));
9074
- $slug = 'wppa_html';
9075
- $html = wppa_checkbox($slug);
9076
- $clas = '';
9077
- $tags = 'system';
9078
- wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
9079
-
9080
- $name = __('Allow HTML custom', 'wp-photo-album-plus');
9081
- $desc = __('Allow HTML in custom photo datafields.', 'wp-photo-album-plus');
9082
- $help = (__('If checked: html is allowed. WARNING: No checks on syntax, it is your own responsibility to close tags properly!', 'wp-photo-album-plus'));
9083
- $slug = 'wppa_allow_html_custom';
9084
- $html = wppa_checkbox($slug);
9085
- $clas = '';
9086
- $tags = 'system';
9087
- wppa_setting($slug, '1.1', $name, $desc, $html, $help, $clas, $tags);
9088
-
9089
- $name = __('Check tag balance', 'wp-photo-album-plus');
9090
- $desc = __('Check if the HTML tags are properly closed: "balanced".', 'wp-photo-album-plus');
9091
- $help = (__('If the HTML tags in an album or a photo description are not in balance, the description is not updated, an errormessage is displayed', 'wp-photo-album-plus'));
9092
- $slug = 'wppa_check_balance';
9093
- $html = wppa_checkbox($slug);
9094
- $clas = '';
9095
- $tags = 'system';
9096
- wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
9097
 
9098
  $name = __('Use WP editor', 'wp-photo-album-plus');
9099
  $desc = __('Use the wp editor for multiline text fields.', 'wp-photo-album-plus');
@@ -9104,25 +9265,6 @@ global $wppa_supported_camara_brands;
9104
  $tags = 'system';
9105
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
9106
 
9107
- $name = __('Album sel hierarchic', 'wp-photo-album-plus');
9108
- $desc = __('Show albums with (grand)parents in selection lists.', 'wp-photo-album-plus');
9109
- $help = '';
9110
- $slug = 'wppa_hier_albsel';
9111
- $html = wppa_checkbox($slug);
9112
- $clas = '';
9113
- $tags = 'system,album';
9114
- wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
9115
-
9116
- $name = __('Page sel hierarchic', 'wp-photo-album-plus');
9117
- $desc = __('Show pages with (grand)parents in selection lists.', 'wp-photo-album-plus');
9118
- $help = '';
9119
- $slug = 'wppa_hier_pagesel';
9120
- $warn = 'This setting will be effective after reload of the page';
9121
- $html = wppa_checkbox_warn($slug, '', '', $warn);
9122
- $clas = '';
9123
- $tags = 'system,page';
9124
- wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
9125
-
9126
  $name = __('Album admin page size', 'wp-photo-album-plus');
9127
  $desc = __('The number of albums per page on the Edit Album admin page.', 'wp-photo-album-plus');
9128
  $help = '';
@@ -9262,15 +9404,6 @@ global $wppa_supported_camara_brands;
9262
  $tags = 'document,upload';
9263
  wppa_setting(false, '15.2', $name, $desc, $html, $help, $clas, $tags);
9264
 
9265
- $name = __('Confirm create', 'wp-photo-album-plus');
9266
- $desc = __('Display confirmation dialog before creating album.', 'wp-photo-album-plus');
9267
- $help = '';
9268
- $slug = 'wppa_confirm_create';
9269
- $html = wppa_checkbox($slug);
9270
- $clas = '';
9271
- $tags = 'system';
9272
- wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
9273
-
9274
  $name = __('Import source root', 'wp-photo-album-plus');
9275
  $desc = __('Specify the highest level in the filesystem where to import from', 'wp-photo-album-plus');
9276
  $help = '';
@@ -9608,15 +9741,6 @@ global $wppa_supported_camara_brands;
9608
  $tags = 'system,album';
9609
  wppa_setting($slug, '7.2', $name, $desc, $html, $help, $clas, $tags);
9610
 
9611
- $name = __('Show album full', 'wp-photo-album-plus');
9612
- $desc = __('Show the Upload limit reached message if appropriate.', 'wp-photo-album-plus');
9613
- $help = '';
9614
- $slug = 'wppa_show_album_full';
9615
- $html = wppa_checkbox($slug);
9616
- $clas = '';
9617
- $tags = 'system,album';
9618
- wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
9619
-
9620
  $name = __('Grant an album', 'wp-photo-album-plus');
9621
  $desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
9622
  $help = '';
@@ -9825,15 +9949,6 @@ global $wppa_supported_camara_brands;
9825
  $tags = 'system,access,album';
9826
  wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
9827
 
9828
- $name = __('Optimize files', 'wp-photo-album-plus');
9829
- $desc = __('Optimize image files right after upload/import', 'wp-photo-album-plus');
9830
- $help = (__('This option requires the plugin EWWW Image Optimizer to be activated', 'wp-photo-album-plus'));
9831
- $slug = 'wppa_optimize_new';
9832
- $html = wppa_checkbox($slug);
9833
- $clas = '';
9834
- $tags = 'system';
9835
- wppa_setting($slug, '17', $name, $desc, $html, $help, $clas, $tags);
9836
-
9837
  $name = __('Default album linktype', 'wp-photo-album-plus');
9838
  $desc = __('The album linktype for new albums', 'wp-photo-album-plus');
9839
  $help = '';
@@ -9911,11 +10026,10 @@ global $wppa_supported_camara_brands;
9911
  $options[] = __('--- Please select a page ---', 'wp-photo-album-plus');
9912
  $values[] = '0';
9913
  if ($pages) {
9914
- if ( wppa_switch( 'hier_pagesel') ) $pages = wppa_add_parents($pages);
9915
- else { // Just translate
9916
- foreach ( array_keys($pages) as $index ) {
9917
- $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
9918
- }
9919
  }
9920
  $pages = wppa_array_sort($pages, 'post_title');
9921
  foreach ($pages as $page) {
@@ -10598,23 +10712,6 @@ global $wppa_supported_camara_brands;
10598
  $tags = 'system';
10599
  wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
10600
 
10601
- $name = __('Save IPTC data', 'wp-photo-album-plus');
10602
- $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
10603
- $help = (__('You will need this if you enabled the display of iptc data in Table II-B17 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
10604
- $slug = 'wppa_save_iptc';
10605
- $html = wppa_checkbox($slug);
10606
- $clas = '';
10607
- $tags = 'system,meta';
10608
- wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
10609
-
10610
- $name = __('Save EXIF data', 'wp-photo-album-plus');
10611
- $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
10612
- $help = (__('You will need this if you enabled the display of exif data in Table II-B18 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
10613
- $slug = 'wppa_save_exif';
10614
- $html = wppa_checkbox($slug);
10615
- $clas = '';
10616
- $tags = 'system,meta';
10617
- wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
10618
 
10619
  $name = __('Import Create page', 'wp-photo-album-plus');
10620
  $desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus');
@@ -11287,189 +11384,7 @@ global $wppa_supported_camara_brands;
11287
  wppa_setting_subheader( 'M', '1', __( 'Email notification related settings' , 'wp-photo-album-plus' ) .
11288
  ' <small><i>' . __( 'Use the WPPA+ Notify Me widget', 'wp-photo-album-plus' ) . '</i></small>' );
11289
  {
11290
- $name = __('Mail on new album', 'wp-photo-album-plus');
11291
- $desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
11292
- $help = '';
11293
- $slug = 'wppa_newalbumnotify';
11294
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
11295
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11296
- $clas = '';
11297
- $tags = 'mail,album';
11298
- wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
11299
-
11300
- $name = __('Mail on upload', 'wp-photo-album-plus');
11301
- $desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
11302
- $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
11303
- $slug = 'wppa_feuploadnotify';
11304
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
11305
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11306
- $clas = '';
11307
- $tags = 'upload,mail';
11308
- wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
11309
- /*
11310
- $name = __('Mail on upload backend', 'wp-photo-album-plus');
11311
- $desc = __('Notify admin at backend upload.', 'wp-photo-album-plus');
11312
- $help = (__('If checked, admin will receive a notification by email.', 'wp-photo-album-plus'));
11313
- $slug = 'wppa_upload_backend_notify';
11314
- $html1 = wppa_checkbox($slug);
11315
- $html2 = '';
11316
- $html = array( $html1, $html2 );
11317
- $clas = '';
11318
- $tags = 'upload,mail';
11319
- wppa_setting($slug, '2.1', $name, $desc, $html, $help, $clas, $tags);
11320
- */
11321
- $name = __('Mail on comment', 'wp-photo-album-plus');
11322
- $desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
11323
- $help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
11324
- $help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
11325
- $slug1 = 'wppa_commentnotify';
11326
- $slug2 = 'wppa_commentnotify_limit';
11327
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
11328
- $html = wppa_checkbox($slug1) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
11329
- wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
11330
- $clas = '';
11331
- $tags = 'comment,mail';
11332
- wppa_setting($slug1, '3', $name, $desc, $html, $help, $clas, $tags);
11333
-
11334
- /*
11335
- $name = __('Mail on comment: Subject', 'wp-photo-album-plus');
11336
- $desc = __('The subject of the email.', 'wp-photo-album-plus');
11337
- $help = '';
11338
- $slug = 'wppa_commentapproved_subj';
11339
- $html = wppa_input($slug, '300px;');
11340
- $clas = '';
11341
- $tags = 'comment,mail';
11342
- wppa_setting($slug, '3.1', $name, $desc, $html, $help, $clas, $tags);
11343
-
11344
- $name = __('Mail on comment: Content', 'wp-photo-album-plus');
11345
- $desc = __('The content of the email.', 'wp-photo-album-plus');
11346
- $help = (__('If you leave this blank, the default content will be used', 'wp-photo-album-plus'));
11347
- $help .= '<br />'.(__('The content may contain html.', 'wp-photo-album-plus'));
11348
- $help .= '<br />'.(__('You may use the following keywords: w#comment for the comment content, w#user for the commenters name and the standard photo description keywords w#name, w#filename, w#owner, w#id, w#tags, w#timestamp, w#modified, w#views, w#amx, w#amy, w#amfs, w#url, w#hrurl, w#tnurl, w#cc0..w#cc9, w#cd0..w#cd9.', 'wp-photo-album-plus'));
11349
- $slug = 'wppa_commentapproved_text';
11350
- $html = wppa_textarea($slug, $name);
11351
- $clas = '';
11352
- $tags = 'comment,mail';
11353
- wppa_setting($slug, '3.2', $name, $desc, $html, $help, $clas, $tags);
11354
- *//*
11355
- $name = __('Mail on comment: Show commenter email', 'wp-photo-album-plus');
11356
- $desc = __('Show the commenter\'s email in the notify emails.', 'wp-photo-album-plus');
11357
- $help = (__('Shows the email address of the commenter in all notify emails.', 'wp-photo-album-plus'));
11358
- $help .= '<br />'.(__('If switched off, admin will still receive the senders email in the notification mail', 'wp-photo-album-plus'));
11359
- $slug = 'wppa_mail_upl_email';
11360
- $html = wppa_checkbox($slug);
11361
- $clas = '';
11362
- $tags = 'comment,layout,mail';
11363
- wppa_setting($slug, '3.3', $name, $desc, $html, $help, $clas, $tags);
11364
- */
11365
- $name = __('Mail on previous comment', 'wp-photo-album-plus');
11366
- $desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
11367
- $help = '';
11368
- $slug = 'wppa_commentprevious';
11369
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
11370
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11371
- $clas = '';
11372
- $tags = 'comment,mail';
11373
- wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
11374
-
11375
- $name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
11376
- $desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
11377
- $help = '';
11378
- $slug = 'wppa_moderatephoto';
11379
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
11380
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11381
- $clas = '';
11382
- $tags = 'upload,mail';
11383
- wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
11384
-
11385
- $name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
11386
- $desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
11387
- $help = '';
11388
- $slug = 'wppa_moderatecomment';
11389
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
11390
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11391
- $clas = '';
11392
- $tags = 'upload,mail';
11393
- wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
11394
-
11395
- $name = __('Mail on approve photo', 'wp-photo-album-plus');
11396
- $desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
11397
- $help = '';
11398
- $slug = 'wppa_photoapproved';
11399
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
11400
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11401
- $clas = '';
11402
- $tags = 'upload,mail';
11403
- wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
11404
 
11405
- $name = __('Mail on approve comment', 'wp-photo-album-plus');
11406
- $desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
11407
- $help = '';
11408
- $slug = 'wppa_commentapproved';
11409
- $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
11410
- $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
11411
- $clas = 'wppa_comment_';
11412
- $tags = 'comment,mail';
11413
- wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
11414
-
11415
- $name = __('From site', 'wp-photo-album-plus');
11416
- $desc = __('Enter the subject header', 'wp-photo-album-plus');
11417
- $help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace('&#039;', '', get_bloginfo('name') ).']');
11418
- $slug = 'wppa_email_from_site';
11419
- $html = wppa_input($slug,'90%');
11420
- $clas = '';
11421
- $tags = 'mail';
11422
- wppa_setting($slug, '20', $name, $desc, $html, $help, $clas, $tags);
11423
-
11424
- $name = __('From email', 'wp-photo-album-plus');
11425
- $desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
11426
- $help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
11427
- __('Make sure this email address exists.', 'wp-photo-album-plus');
11428
- $slug = 'wppa_email_from_email';
11429
- $html = wppa_input($slug,'90%');
11430
- $clas = '';
11431
- $tags = 'mail';
11432
- wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
11433
-
11434
- $name = __( 'No admin email', 'wp-photo-album-plus' );
11435
- $desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
11436
- $help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
11437
- $slug = 'wppa_void_admin_email';
11438
- $html = wppa_checkbox( $slug );
11439
- $clas = '';
11440
- $tags = 'mail';
11441
- wppa_setting($slug, '97', $name, $desc, $html, $help, $clas, $tags);
11442
-
11443
- $name = __( 'Email policy', 'wp-photo-album-plus' );
11444
- $desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
11445
- $help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
11446
- $slug = 'wppa_mailinglist_policy';
11447
- $opts = array( 'opt-in', 'opt-out' );
11448
- $vals = array( 'opt-in', 'opt-out' );
11449
- $html = wppa_select( $slug, $opts, $vals );
11450
- $clas = '';
11451
- $tags = 'mail';
11452
- wppa_setting($slug, '98', $name, $desc, $html, $help, $clas, $tags);
11453
-
11454
- $name = __( 'Email callback url', 'wp-photo-album-plus' );
11455
- $desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
11456
- $help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
11457
- __( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
11458
- '<b>[wppa type="landing"]</b>. ';
11459
- $slug = 'wppa_mailinglist_callback_url';
11460
- $html = wppa_input($slug, '90%');
11461
- $clas = '';
11462
- $tags = 'mail';
11463
- wppa_setting($slug, '99', $name, $desc, $html, $help, $clas, $tags);
11464
-
11465
- $name = __('Retry failed mails', 'wp-photo-album-plus');
11466
- $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
11467
- $help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
11468
- $slug = 'wppa_retry_mails';
11469
- $html = wppa_number($slug, '1', '24');
11470
- $clas = '';
11471
- $tags = 'mail';
11472
- wppa_setting($slug, '100', $name, $desc, $html, $help, $clas, $tags);
11473
 
11474
  $mails = wppa_get_option( 'wppa_failed_mails', array() );
11475
  if ( count( $mails ) ) {
@@ -11505,14 +11420,10 @@ global $wppa_supported_camara_brands;
11505
  }
11506
  }
11507
 
11508
- }
11509
-
11510
-
11511
 
11512
  ?>
11513
 
11514
-
11515
-
11516
  </tbody>
11517
  <tfoot style="font-weight: bold;" class="wppa_table_9">
11518
  <tr>
@@ -11526,156 +11437,6 @@ global $wppa_supported_camara_brands;
11526
  </table>
11527
  </div>
11528
 
11529
- <?php // Table 10: IPTC Configuration ?>
11530
- <?php wppa_settings_box_header(
11531
- '10',
11532
- __('Table X:', 'wp-photo-album-plus').' '.__('IPTC Configuration:', 'wp-photo-album-plus').' '.
11533
- __('This table defines the IPTC configuration', 'wp-photo-album-plus')
11534
- ); ?>
11535
-
11536
- <div id="wppa_table_10" style="display:none" >
11537
- <table class="widefat wppa-table wppa-setting-table">
11538
- <thead style="font-weight: bold; " class="wppa_table_10">
11539
- <tr>
11540
- <td><?php _e('#', 'wp-photo-album-plus') ?></td>
11541
- <td><?php _e('Tag', 'wp-photo-album-plus') ?></td>
11542
- <td></td>
11543
- <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
11544
- <td><?php _e('Status', 'wp-photo-album-plus') ?></td>
11545
- <td><?php _e('Help', 'wp-photo-album-plus') ?></td>
11546
- </tr>
11547
- </thead>
11548
- <tbody class="wppa_table_10">
11549
- <?php
11550
- $wppa_table = 'X';
11551
-
11552
- $wppa_subtable = 'Z';
11553
-
11554
- $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_iptc
11555
- WHERE photo = '0'
11556
- ORDER BY tag", ARRAY_A );
11557
- if ( is_array( $labels ) ) {
11558
- $i = '1';
11559
- foreach ( $labels as $label ) {
11560
- $name = htmlspecialchars( $label['tag'] );
11561
- $desc = '';
11562
- $help = '';
11563
- $slug1 = 'wppa_iptc_label_'.$name;
11564
- $slug2 = 'wppa_iptc_status_'.$name;
11565
- /**/ $html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
11566
- $options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
11567
- $values = array('display', 'hide', 'option');
11568
- /**/ $html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $options, $values);
11569
- $html = array($html1, $html2);
11570
- $clas = '';
11571
- $tags = 'meta';
11572
- wppa_setting(false, $i, $name, $desc, $html, $help, $clas, $tags);
11573
- $i++;
11574
-
11575
- }
11576
- }
11577
-
11578
- ?>
11579
- </tbody>
11580
- <tfoot style="font-weight: bold;" class="wppa_table_10">
11581
- <tr>
11582
- <td><?php _e('#', 'wp-photo-album-plus') ?></td>
11583
- <td><?php _e('Tag', 'wp-photo-album-plus') ?></td>
11584
- <td></td>
11585
- <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
11586
- <td><?php _e('Status', 'wp-photo-album-plus') ?></td>
11587
- <td><?php _e('Help', 'wp-photo-album-plus') ?></td>
11588
- </tr>
11589
- </tfoot>
11590
- </table>
11591
- </div>
11592
-
11593
- <?php // Table 11: EXIF Configuration ?>
11594
- <?php wppa_settings_box_header(
11595
- '11',
11596
- __('Table XI:', 'wp-photo-album-plus').' '.__('EXIF Configuration:', 'wp-photo-album-plus').' '.
11597
- __('This table defines the EXIF configuration', 'wp-photo-album-plus')
11598
- ); ?>
11599
-
11600
- <div id="wppa_table_11" style="display:none" >
11601
- <table class="widefat wppa-table wppa-setting-table">
11602
- <thead style="font-weight: bold; " class="wppa_table_11">
11603
- <tr>
11604
- <td><?php _e('#', 'wp-photo-album-plus') ?></td>
11605
- <td><?php _e('Tag', 'wp-photo-album-plus') ?></td>
11606
- <td><?php _e('Brand', 'wp-photo-album-plus') ?></td>
11607
- <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
11608
- <td><?php _e('Status', 'wp-photo-album-plus') ?></td>
11609
- <td><?php _e('Help', 'wp-photo-album-plus') ?></td>
11610
- </tr>
11611
- </thead>
11612
- <tbody class="wppa_table_11">
11613
- <?php
11614
- $wppa_table = 'XI';
11615
-
11616
- $wppa_subtable = 'Z';
11617
-
11618
- if ( ! function_exists('exif_read_data') ) {
11619
- wppa_setting_subheader('', '1', '</b><span style="color:red;">'.
11620
- __('Function exif_read_data() does not exist. This means that <b>EXIF</b> is not enabled. If you want to use <b>EXIF</b> data, ask your hosting provider to add <b>\'--enable-exif\'</b> to the php <b>Configure Command</b>.', 'wp-photo-album-plus').
11621
- '<b></span>');
11622
- }
11623
-
11624
- $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
11625
- WHERE photo = '0'
11626
- ORDER BY tag", ARRAY_A );
11627
- if ( is_array( $labels ) ) {
11628
- $i = '1';
11629
- foreach ( $labels as $label ) {
11630
- $name = htmlspecialchars( $label['tag'] );
11631
-
11632
- $desc = '';
11633
- foreach ( $wppa_supported_camara_brands as $brand ) {
11634
- $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
11635
- if ( $lbl ) {
11636
- $desc .= '<br />' . $brand;
11637
- }
11638
- }
11639
-
11640
- $help = '';
11641
- $slug1 = 'wppa_exif_label_'.$name;
11642
- $slug2 = 'wppa_exif_status_'.$name;
11643
-
11644
- $html1 = wppa_edit( $slug1, htmlspecialchars( $label['description'] ) );
11645
- foreach ( $wppa_supported_camara_brands as $brand ) {
11646
- $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
11647
- if ( $lbl ) {
11648
- $html1 .= '<br /><span style="clear:left;float:left;" >' . $lbl . ':</span>';
11649
- }
11650
- }
11651
-
11652
- $options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
11653
- $values = array('display', 'hide', 'option');
11654
- $html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $options, $values);
11655
- $html = array($html1, $html2);
11656
- $clas = '';
11657
- $tags = 'meta';
11658
- wppa_setting(false, $i, $name, $desc, $html, $help, $clas, $tags);
11659
- $i++;
11660
-
11661
- }
11662
- }
11663
-
11664
- ?>
11665
- </tbody>
11666
- <tfoot style="font-weight: bold;" class="wppa_table_11">
11667
- <tr>
11668
- <td><?php _e('#', 'wp-photo-album-plus') ?></td>
11669
- <td><?php _e('Tag', 'wp-photo-album-plus') ?></td>
11670
- <td></td>
11671
- <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
11672
- <td><?php _e('Status', 'wp-photo-album-plus') ?></td>
11673
- <td><?php _e('Help', 'wp-photo-album-plus') ?></td>
11674
- </tr>
11675
- </tfoot>
11676
- </table>
11677
- </div>
11678
-
11679
  <?php // Table 12: Configuration ?>
11680
  <?php wppa_settings_box_header(
11681
  '12',
@@ -11917,6 +11678,7 @@ global $wppa_supported_camara_brands;
11917
  </div>
11918
 
11919
  <?php
 
11920
  wppa_initialize_runtime( true );
11921
  }
11922
 
@@ -12541,7 +12303,13 @@ function wppa_color_box( $xslug ) {
12541
 
12542
  $slug = substr( $xslug, 5 );
12543
 
12544
- return '<div id="colorbox-' . $slug . '" style="width:100px; height:16px; float:left; background-color:' . wppa_opt( $slug ) . '; border:1px solid #dfdfdf;" ></div>';
 
 
 
 
 
 
12545
 
12546
  }
12547
 
@@ -12746,4 +12514,212 @@ function wppa_search_magick( $root = '' ) {
12746
  }
12747
  }
12748
  return $result;
12749
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
22
  global $wppa_subtable;
23
  global $wppa_revno;
24
  global $no_default;
25
+ global $wppa_tags; $wppa_tags = array();
26
  global $wp_version;
27
  global $wppa_supported_camara_brands;
28
 
57
  if ( ! wp_verify_nonce( $_REQUEST['wppa-nonce'], 'wppa-nonce' ) ) {
58
  wp_die( 'Security chekc failuere' );
59
  }
60
+
61
  $key = $_REQUEST['wppa-key'];
62
  $sub = isset( $_REQUEST['wppa-sub'] ) ? $_REQUEST['wppa-sub'] : '';
63
 
440
  $msg = __( 'Table I-C2 (Thumbnail Aspect) may not be set to "--- same as fullsize ---", or tick Table IV-D9: Use thumb on cover', 'wp-photo-album-plus' );
441
  wppa_warning_message( $stdmsg . $msg );
442
  }
 
 
 
 
443
  }
444
 
445
  // Check for ImageMagick
479
  if ( ! function_exists( 'imagettfbbox' ) ) {
480
  wppa_error_message( __('Your PHP version does not support TrueType fonts. This means that you can not apply textual watermarks', 'wp-photo-album-plus' ) );
481
  }
482
+
483
+ $is_old_style = isset($_GET['oldstyle']);
484
+
485
+ if ( $is_old_style ) {
486
  ?>
487
+
488
+ <a style="cursor:pointer;" id="wppa-legon" onclick="jQuery('#wppa-legenda').css('display', ''); jQuery('#wppa-legon').css('display', 'none'); return false;" ><?php _e('Show legenda', 'wp-photo-album-plus') ?></a>
489
+ <div id="wppa-legenda" class="updated" style="line-height:20px; display:none" >
490
+ <div style="float:left"><?php _e('Legenda:', 'wp-photo-album-plus') ?></div><br />
491
+ <?php echo wppa_doit_button(__('Button', 'wp-photo-album-plus')) ?><div style="float:left">&nbsp;:&nbsp;<?php _e('action that causes page reload.', 'wp-photo-album-plus') ?></div>
492
+ <br />
493
+ <input type="button" onclick="if ( confirm('<?php _e('Are you sure?', 'wp-photo-album-plus') ?>') ) return true; else return false;" class="button-secundary" style="float:left; border-radius:3px; font-size: 12px; height: 18px; margin: 0 4px; padding: 0px;" value="<?php _e('Button', 'wp-photo-album-plus') ?>" />
494
+ <div style="float:left">&nbsp;:&nbsp;<?php _e('action that does not cause page reload.', 'wp-photo-album-plus') ?></div>
495
+ <br />
496
+ <img src="<?php echo wppa_get_imgdir() ?>star.ico" title="<?php _e('Setting unmodified', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Setting unmodified', 'wp-photo-album-plus') ?></div>
497
+ <br />
498
+ <img src="<?php echo wppa_get_imgdir() ?>spinner.gif" title="<?php _e('Update in progress', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Update in progress', 'wp-photo-album-plus') ?></div>
499
+ <br />
500
+ <img src="<?php echo wppa_get_imgdir() ?>tick.png" title="<?php _e('Setting updated', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Setting updated', 'wp-photo-album-plus') ?></div>
501
+ <br />
502
+ <img src="<?php echo wppa_get_imgdir() ?>cross.png" title="<?php _e('Update failed', 'wp-photo-album-plus') ?>" style="padding-left:4px; float:left; height:16px; width:16px;" /><div style="float:left">&nbsp;:&nbsp;<?php _e('Update failed', 'wp-photo-album-plus') ?></div>
503
+ <br />
504
+ &nbsp;<a style="cursor:pointer;" onclick="jQuery('#wppa-legenda').css('display', 'none'); jQuery('#wppa-legon').css('display', ''); return false;" ><?php _e('Hide this', 'wp-photo-album-plus') ?></a>
505
+ </div>
506
  <?php
507
+
508
+ }
509
+
510
+
511
+ /* Start new style header */
512
+ if ( ! $is_old_style ) {
513
+ wp_nonce_field( 'wppa-nonce', 'wppa-nonce' );
514
+
515
+ // The css
516
+ {
517
+ echo '
518
+ <style>
519
+ .wppa-setting-tabs {
520
+ position:relative;
521
+ top:24px;
522
+ }
523
+ .wppa-setting-tabs li {
524
+ border-color: darkgrey;
525
+ border-width: 1px;
526
+ float: left;
527
+ background-color: white;
528
+ padding: 8px 10px;
529
+ font-size: 22px;
530
+ color: darkgrey;
531
+ border-style: solid;
532
+ text-align: center;
533
+ margin-right: 4px;
534
+ border-top-left-radius: 8px;
535
+ border-top-right-radius: 8px;
536
+ cursor: pointer;
537
+ }
538
+ #wppa-setting-tab-99 {
539
+ float: right;
540
+ }
541
+ .wppa-setting-tabs .active {
542
+ color: black;
543
+ border-bottom-color: white;
544
+ }
545
+ #wppa-setting-content {
546
+ clear:both;
547
+ background-color: white;
548
+ border-left:1px solid black;
549
+ border-right:1px solid black;
550
+ border-bottom:1px solid black;
551
+ position:relative;
552
+ top:18px;
553
+ border-color:darkgrey;
554
+ }
555
+ .wppa-colorbox {
556
+ height: 28px !important;
557
+ }
558
+ </style>';
559
+ }
560
+
561
+ // The header tabs
562
+ echo '
563
+ <ul class="widefat wppa-setting-tabs" > ' .
564
+ wppa_setting_tab( 'general', __( 'General', 'wp-photo-album-plus' ), true ) .
565
+ wppa_setting_tab( 'layout', __( 'Layout', 'wp-photo-album-plus' ) ) .
566
+ wppa_setting_tab( 'comments', __( 'Comments', 'wp-photo-album-plus' ), false, wppa_switch( 'show_comments' ) ) .
567
+ wppa_setting_tab( 'rating', __( 'Rating', 'wp-photo-album-plus' ), false, wppa_switch( 'rating_on' ) ) .
568
+ wppa_setting_tab( 'users', __( 'Users', 'wp-photo-album-plus' ), false, wppa_switch( 'user_upload_on' ) ) .
569
+ wppa_setting_tab( 'email', __( 'Email', 'wp-photo-album-plus' ), false, wppa_switch( 'user_upload_on' ) ) .
570
+ wppa_setting_tab( 'admin', __( 'Admin', 'wp-photo-album-plus' ) ) .
571
+ wppa_setting_tab( 'advanced', __( 'Advanced', 'wp-photo-album-plus' ) ) .
572
+ wppa_setting_tab( 'exif', 'EXIF', false, wppa_switch( 'save_exif' ) && function_exists('exif_read_data') ) .
573
+ wppa_setting_tab( 'iptc', 'IPTC', false, wppa_switch( 'save_iptc' ) && function_exists('exif_read_data') ) .
574
+ wppa_setting_tab( '99', __( 'Old style', 'wp-photo-album-plus' ) ) . '
575
+ </ul>';
576
+
577
+ // The js
578
+ echo '
579
+ <script>
580
+ function wppaSettingTab(tab) {
581
+ jQuery(".wppa-setting-tabs li").removeClass("active");
582
+ jQuery("#wppa-setting-tab-"+tab).addClass("active");
583
+ if ( tab == 99 ) {
584
+ jQuery( "#wppa-admin-spinner" ).show();
585
+ document.location.href = document.location.href + "&oldstyle";
586
+ }
587
+ else {
588
+ jQuery(".wppa-setting-content").hide();
589
+ jQuery("#wppa-setting-content-"+tab).show();
590
+ }
591
+ }
592
+ function wppaSlave(elm,clas) {
593
+ if ( jQuery( elm ).prop( "checked" ) ) {
594
+ jQuery( "."+clas ).show();
595
+ }
596
+ else {
597
+ jQuery( "."+clas ).hide();
598
+ }
599
+ }
600
+ </script>';
601
+
602
+ // Open the content area
603
+ echo '
604
+ <div id="wppa-setting-content" >';
605
+
606
+ wppa_setting_box_header_new('general');
607
+ {
608
+ $name = __('Enable Photo', 'wp-photo-album-plus');
609
+ $desc = __('Enables photo support', 'wp-photo-album-plus');
610
+ $help = __('This item can not be unchecked, this is the core feature of the plugin', 'wp-photo-album-plus');
611
+ $slug = '';
612
+ $html = '<input type="checkbox" checked disabled >';
613
+ wppa_setting_new($slug, '0', $name, $desc, $html, $help);
614
+
615
+ $name = __('Enable 3D Stereo', 'wp-photo-album-plus');
616
+ $desc = __('Enables 3D stereo photo support.', 'wp-photo-album-plus');
617
+ $help = __('Check this box to enable the upload and display of 3D stereo image files', 'wp-photo-album-plus');
618
+ $slug = 'wppa_enable_stereo';
619
+ $html = wppa_checkbox($slug);
620
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
621
+
622
+ $name = __('Enable Panorama', 'wp-photo-album-plus');
623
+ $desc = __('Enable panorama photo support.', 'wp-photo-album-plus');
624
+ $help = __('Check this box to enable the upload and display of flat and 360&deg; spheric panorama image files', 'wp-photo-album-plus');
625
+ $slug = 'wppa_enable_panorama';
626
+ $html = wppa_checkbox($slug);
627
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
628
+
629
+ $name = __('Enable Video', 'wp-photo-album-plus');
630
+ $desc = __('Enables video support.', 'wp-photo-album-plus');
631
+ $help = __('Check this box to enable the upload and display of video files', 'wp-photo-album-plus');
632
+ $slug = 'wppa_enable_video';
633
+ $onch = 'wppaSlave( this, "wppa_user_upload_video_on" )';
634
+ $html = wppa_checkbox($slug, $onch);
635
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
636
+
637
+ $name = __('Enable pdf', 'wp-photo-album-plus');
638
+ $desc = __('Enable the support of pdf files', 'wp-photo-album-plus');
639
+ $help = __('Check this box to enable the upload and display of pdf document files', 'wp-photo-album-plus');
640
+ $slug = 'wppa_enable_pdf';
641
+ $html = wppa_checkbox($slug);
642
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
643
+
644
+ $name = __('Enable Audio', 'wp-photo-album-plus');
645
+ $desc = __('Enables audio support.', 'wp-photo-album-plus');
646
+ $help = __('Check this box to enable the upload and display of audio files', 'wp-photo-album-plus');
647
+ $slug = 'wppa_enable_audio';
648
+ $onch = 'wppaSlave(this,"wppa_user_upload_audio_on")';
649
+ $html = wppa_checkbox($slug, $onch);
650
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
651
+
652
+ $name = __('Comments system', 'wp-photo-album-plus');
653
+ $desc = __('Enable the comments system.', 'wp-photo-album-plus');
654
+ $help = __('Display the comments box under the fullsize images and let users enter their comments on individual photos.', 'wp-photo-album-plus');
655
+ $slug = 'wppa_show_comments';
656
+ $onch = 'wppaSlave(this,"comments")';
657
+ $html = wppa_checkbox($slug, $onch);
658
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
659
+
660
+ $name = __('Rating system', 'wp-photo-album-plus');
661
+ $desc = __('Enable the rating system.', 'wp-photo-album-plus');
662
+ $help = __('If checked, the photo rating system will be enabled.', 'wp-photo-album-plus');
663
+ $slug = 'wppa_rating_on';
664
+ $onch = 'wppaSlave(this,"rating")';
665
+ $html = wppa_checkbox($slug, $onch);
666
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
667
+
668
+ $name = __('User uploads', 'wp-photo-album-plus');
669
+ $desc = __('Enable frontend upload.', 'wp-photo-album-plus');
670
+ $help = __('If you check this item, frontend upload will be enabled.', 'wp-photo-album-plus');
671
+ $slug = 'wppa_user_upload_on';
672
+ $onch = 'wppaSlave(this,"users");wppaSlave(this,"email");';
673
+ $html = wppa_checkbox($slug, $onch);
674
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
675
+ }
676
+ wppa_setting_box_footer_new();
677
+
678
+ wppa_setting_box_header_new('layout');
679
+ {
680
+ $name = __('WPPA display boxes', 'wp-photo-album-plus');
681
+ $desc = __('Background and border colors.', 'wp-photo-album-plus');
682
+ $help = __('Enter valid CSS colors for backgrounds and borders. E.g. #cccccc, gray, lightblue, transparent', 'wp-photo-album-plus');
683
+ $slug1 = 'wppa_bgcolor';
684
+ $slug2 = 'wppa_bcolor';
685
+ $slug = array($slug1, $slug2);
686
+ $html = '<span style="float:left;padding-top:5px;" >' . __('Background:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug1, '100px', '', '', "checkColor('".$slug1."')") . wppa_color_box($slug1);
687
+ $html .= '<span style="float:left;padding-top:5px;padding-left:12px;" >' . __('Border:', 'wp-photo-album-plus') . '&nbsp;</span>' . wppa_input($slug2, '100px', '', '', "checkColor('".$slug2."')") . wppa_color_box($slug2);
688
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
689
+
690
+ $name = __('Border thickness', 'wp-photo-album-plus');
691
+ $desc = __('Thickness of wppa+ box borders.', 'wp-photo-album-plus');
692
+ $help = __('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wp-photo-album-plus');
693
+ $slug = 'wppa_bwidth';
694
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
695
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
696
+
697
+ $name = __('Border radius', 'wp-photo-album-plus');
698
+ $desc = __('Radius of wppa+ box borders.', 'wp-photo-album-plus');
699
+ $help = __('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wp-photo-album-plus');
700
+ $slug = 'wppa_bradius';
701
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
702
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
703
+
704
+ $name = __('Box spacing', 'wp-photo-album-plus');
705
+ $desc = __('Distance between wppa+ boxes.', 'wp-photo-album-plus');
706
+ $help = '';
707
+ $slug = 'wppa_box_spacing';
708
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
709
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
710
+
711
+ $name = __('Initial Width', 'wp-photo-album-plus');
712
+ $desc = __('The starting width of the wppa display boxes', 'wp-photo-album-plus');
713
+ $help = '';
714
+ $slug = 'wppa_initial_colwidth';
715
+ $html = wppa_input($slug, '40px', '', __('pixels wide', 'wp-photo-album-plus'));
716
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
717
+
718
+ $name = __('Resize to', 'wp-photo-album-plus');
719
+ $desc = __('Resize photos to fit within a given area.', 'wp-photo-album-plus');
720
+ $help = '';
721
+ $slug = 'wppa_resize_to';
722
+ $px = __('pixels', 'wp-photo-album-plus');
723
+ $options = array( __('Do not resize', 'wp-photo-album-plus'),
724
+ __('Fit within rectangle as set in Table I-B1,2', 'wp-photo-album-plus'),
725
+ '640 x 480 '.$px,
726
+ '800 x 600 '.$px,
727
+ '1024 x 768 '.$px,
728
+ '1200 x 900 '.$px,
729
+ '1280 x 960 '.$px,
730
+ '1366 x 768 '.$px,
731
+ '1920 x 1080 '.$px,
732
+ '2400 x 1200 '.$px,
733
+ '3600 x 1800 '.$px,
734
+ '4800 x 2400 '.$px,
735
+ '6000 x 3000 '.$px,
736
+ );
737
+ $values = array( '-1',
738
+ '0',
739
+ '640x480',
740
+ '800x600',
741
+ '1024x768',
742
+ '1200x900',
743
+ '1280x960',
744
+ '1366x768',
745
+ '1920x1080',
746
+ '2400x1200',
747
+ '3600x1800',
748
+ '4800x2400',
749
+ '6000x3000',
750
+ );
751
+ $html = wppa_select($slug, $options, $values);
752
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
753
+ }
754
+ wppa_setting_box_footer_new();
755
+
756
+ wppa_setting_box_header_new('comments');
757
+ {
758
+ $name = __('Avatar size', 'wp-photo-album-plus');
759
+ $desc = __('Size of Avatar images.', 'wp-photo-album-plus');
760
+ $help = __('The size of the square avatar; must be > 0 and < 256', 'wp-photo-album-plus');
761
+ $slug = 'wppa_gravatar_size';
762
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
763
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
764
+ }
765
+ wppa_setting_box_footer_new();
766
+
767
+ wppa_setting_box_header_new('rating');
768
+ {
769
+ $name = __('Slideshow rating', 'wp-photo-album-plus');
770
+ $desc = __('Display Slideshow Rating.', 'wp-photo-album-plus');
771
+ $help = __('Display the rating of the photo under the slideshow image.', 'wp-photo-album-plus');
772
+ $slug = '';
773
+ $html = '<input type="checkbox" checked disabled >';
774
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
775
+
776
+ $name = __('Thumbnail rating', 'wp-photo-album-plus');
777
+ $desc = __('Display Thumbnail Rating.', 'wp-photo-album-plus');
778
+ $help = __('Display the rating of the photo under the thumbnail image.', 'wp-photo-album-plus');
779
+ $slug = 'wppa_thumb_text_rating';
780
+ $html = wppa_checkbox($slug);
781
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
782
+
783
+ $name = __('Lightbox rating', 'wp-photo-album-plus');
784
+ $desc = __('Shows and enables rating on lightbox.', 'wp-photo-album-plus');
785
+ $help = __('This works for 5 and 10 stars only, not for single votes or numerical display', 'wp-photo-album-plus');
786
+ $slug = 'wppa_ovl_rating';
787
+ $html = wppa_checkbox($slug);
788
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
789
+
790
+ $name = __('Rating display type', 'wp-photo-album-plus');
791
+ $desc = __('Specify the type of the rating display.', 'wp-photo-album-plus');
792
+ $help = __('If you select "Likes" you must also select "One button vote"', 'wp-photo-album-plus');
793
+ $slug = 'wppa_rating_display_type';
794
+ $opts = array(__('Graphic', 'wp-photo-album-plus'), __('Numeric', 'wp-photo-album-plus'), __('Likes', 'wp-photo-album-plus'));
795
+ $vals = array('graphic', 'numeric', 'likes');
796
+ $postaction = 'setTimeout(\'document.location.reload(true)\', 2000)';
797
+ $html = wppa_select($slug, $opts, $vals, '', '', false, $postaction);
798
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
799
+
800
+ $name = __('Rating size', 'wp-photo-album-plus');
801
+ $desc = __('Select the number of voting stars.', 'wp-photo-album-plus');
802
+ $help = '';
803
+ $slug = 'wppa_rating_max';
804
+ $options = array(__('Standard: 5 stars', 'wp-photo-album-plus'), __('Extended: 10 stars', 'wp-photo-album-plus'), __('One button vote', 'wp-photo-album-plus'));
805
+ $values = array('5', '10', '1');
806
+ $html = wppa_select($slug, $options, $values);
807
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
808
+
809
+ $name = __('Display precision', 'wp-photo-album-plus');
810
+ $desc = __('Select the desired rating display precision.', 'wp-photo-album-plus');
811
+ $help = '';
812
+ $slug = 'wppa_rating_prec';
813
+ $options = array('1 '.__('decimal places', 'wp-photo-album-plus'), '2 '.__('decimal places', 'wp-photo-album-plus'), '3 '.__('decimal places', 'wp-photo-album-plus'), '4 '.__('decimal places', 'wp-photo-album-plus'));
814
+ $values = array('1', '2', '3', '4');
815
+ $html = wppa_select($slug, $options, $values);
816
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
817
+
818
+ $name = __('Rating space', 'wp-photo-album-plus');
819
+ $desc = __('Space between avg and my rating stars', 'wp-photo-album-plus');
820
+ $help = '';
821
+ $slug = 'wppa_ratspacing';
822
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
823
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
824
+
825
+ $name = __('Show rating count', 'wp-photo-album-plus');
826
+ $desc = __('Display the number of votes along with average ratings.', 'wp-photo-album-plus');
827
+ $help = __('If checked, the number of votes is displayed along with average rating displays.', 'wp-photo-album-plus');
828
+ $slug = 'wppa_show_rating_count';
829
+ $html = wppa_checkbox($slug);
830
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
831
+ }
832
+ wppa_setting_box_footer_new();
833
+
834
+ wppa_setting_box_header_new('users');
835
+ {
836
+ $name = __('User upload Photos', 'wp-photo-album-plus');
837
+ $desc = __('Enable frontend upload.', 'wp-photo-album-plus');
838
+ $help = '';
839
+ $slug = '';
840
+ $html = '<input type="checkbox" checked disabled >';
841
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
842
+
843
+ $name = __('User upload Video', 'wp-photo-album-plus');
844
+ $desc = __('Enable frontend upload of video.', 'wp-photo-album-plus');
845
+ $help = '';
846
+ $slug = 'wppa_user_upload_video_on';
847
+ $html = wppa_checkbox($slug);
848
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help, wppa_switch( 'enable_video' ));
849
+
850
+ $name = __('User upload Audio', 'wp-photo-album-plus');
851
+ $desc = __('Enable frontend upload of audio.', 'wp-photo-album-plus');
852
+ $help = '';
853
+ $slug = 'wppa_user_upload_audio_on';
854
+ $html = wppa_checkbox($slug);
855
+ $clas = '';
856
+ $tags = 'access,upload,audio';
857
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help, wppa_switch( 'enable_audio' ));
858
+
859
+ $name = __('User upload login', 'wp-photo-album-plus');
860
+ $desc = __('Frontend upload requires the user is logged in.', 'wp-photo-album-plus');
861
+ $help = '';
862
+ $slug = 'wppa_user_upload_login';
863
+ $onch = 'wppaSlave(this,"wppa_user_opload_roles")';
864
+ $html = wppa_checkbox($slug, $onch);
865
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
866
+
867
+ $name = __('User upload roles', 'wp-photo-album-plus');
868
+ $desc = __('Optionally limit access to selected userroles', 'wp-photo-album-plus');
869
+ $help = '';
870
+ $slug = 'wppa_user_opload_roles';
871
+ $roles = $wp_roles->roles;
872
+ $opts = array();
873
+ $vals = array();
874
+ $opts[] = '-- '.__('Not limited', 'wp-photo-album-plus').' --';
875
+ $vals[] = '';
876
+ foreach (array_keys($roles) as $key) {
877
+ $role = $roles[$key];
878
+ $rolename = translate_user_role( $role['name'] );
879
+ $opts[] = $rolename;
880
+ $vals[] = $key;
881
+ }
882
+ $onch = '';
883
+ $html = wppa_select_m($slug, $opts, $vals, $onch, '', false, '', '220' );
884
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help, wppa_switch( 'user_upload_login' ) );
885
+ }
886
+ wppa_setting_box_footer_new();
887
+
888
+ wppa_setting_box_header_new('email');
889
+ {
890
+ $name = __('Mail on new album', 'wp-photo-album-plus');
891
+ $desc = __('Enable mailing users when a new album is created', 'wp-photo-album-plus');
892
+ $help = '';
893
+ $slug = 'wppa_newalbumnotify';
894
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_newalbumnotify', '' ) ) );
895
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
896
+ wppa_setting_new($slug, '1', $name, $desc, $html, $help);
897
+
898
+ $name = __('Mail on upload', 'wp-photo-album-plus');
899
+ $desc = __('Enable mailing users when a frontend upload has been done', 'wp-photo-album-plus');
900
+ $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
901
+ $slug = 'wppa_feuploadnotify';
902
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
903
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
904
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
905
+
906
+ $name = __('Mail on comment', 'wp-photo-album-plus');
907
+ $desc = __('Enable mailing users when a new comment has been added', 'wp-photo-album-plus');
908
+ $help = __('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus');
909
+ $help .= '<br />' . __('All subscribers will get the email, unless you tick the \'to owner and admin only\' box', 'wp-photo-album-plus');
910
+ $slug1 = 'wppa_commentnotify';
911
+ $slug2 = 'wppa_commentnotify_limit';
912
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentnotify', '' ) ) );
913
+ $html = wppa_checkbox($slug1) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
914
+ wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'to owner and admin only', 'wp-photo-album-plus' ) . '</span>';
915
+ wppa_setting_new($slug1, '3', $name, $desc, $html, $help);
916
+
917
+ $name = __('Mail on previous comment', 'wp-photo-album-plus');
918
+ $desc = __('Notify users who have commented this photo earlier', 'wp-photo-album-plus');
919
+ $help = '';
920
+ $slug = 'wppa_commentprevious';
921
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentprevious', '' ) ) );
922
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
923
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
924
+
925
+ $name = __('Mail on photo needs moderation', 'wp-photo-album-plus' );
926
+ $desc = __('Notify moderators when a photo needs moderation', 'wp-photo-album-plus');
927
+ $help = '';
928
+ $slug = 'wppa_moderatephoto';
929
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatephoto', '' ) ) );
930
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
931
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
932
+
933
+ $name = __('Mail on comment needs moderation', 'wp-photo-album-plus' );
934
+ $desc = __('Notify moderators when a comment needs moderation', 'wp-photo-album-plus');
935
+ $help = '';
936
+ $slug = 'wppa_moderatecomment';
937
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_moderatecomment', '' ) ) );
938
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
939
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
940
+
941
+ $name = __('Mail on approve photo', 'wp-photo-album-plus');
942
+ $desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
943
+ $help = '';
944
+ $slug = 'wppa_photoapproved';
945
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_photoapproved', '' ) ) );
946
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
947
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
948
+
949
+ $name = __('Mail on approve comment', 'wp-photo-album-plus');
950
+ $desc = __('Notify photo owner and commenter of approved comment', 'wp-photo-album-plus');
951
+ $help = '';
952
+ $slug = 'wppa_commentapproved';
953
+ $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_commentapproved', '' ) ) );
954
+ $html = wppa_checkbox($slug) . '&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs );
955
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
956
+
957
+ $name = __('From site', 'wp-photo-album-plus');
958
+ $desc = __('Enter the subject header', 'wp-photo-album-plus');
959
+ $help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace('&#039;', '', get_bloginfo('name') ).']');
960
+ $slug = 'wppa_email_from_site';
961
+ $html = wppa_input($slug,'90%');
962
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
963
+
964
+ $name = __('From email', 'wp-photo-album-plus');
965
+ $desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
966
+ $help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
967
+ __('Make sure this email address exists.', 'wp-photo-album-plus');
968
+ $slug = 'wppa_email_from_email';
969
+ $html = wppa_input($slug,'90%');
970
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
971
+
972
+ $name = __( 'No admin email', 'wp-photo-album-plus' );
973
+ $desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
974
+ $help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
975
+ $slug = 'wppa_void_admin_email';
976
+ $html = wppa_checkbox( $slug );
977
+ wppa_setting_new($slug, '97', $name, $desc, $html, $help);
978
+
979
+ $name = __( 'Email policy', 'wp-photo-album-plus' );
980
+ $desc = __( 'Select either "opt-in" or "opt-out"', 'wp-photo-album-plus' );
981
+ $help = __( 'If you select "opt-in", use the "Notify Me" widget to enable the users to subscribe to emails', 'wp-photo-album-plus' );
982
+ $slug = 'wppa_mailinglist_policy';
983
+ $opts = array( 'opt-in', 'opt-out' );
984
+ $vals = array( 'opt-in', 'opt-out' );
985
+ $html = wppa_select( $slug, $opts, $vals );
986
+ wppa_setting_new($slug, '98', $name, $desc, $html, $help);
987
+
988
+ $name = __( 'Email callback url', 'wp-photo-album-plus' );
989
+ $desc = __( 'The link in emails will point to', 'wp-photo-album-plus' );
990
+ $help = __( 'Recommendation', 'wp-photo-album-plus' ) . ': ' .
991
+ __( 'Create a page with shortcode', 'wp-photo-album-plus' ) .
992
+ '<b>[wppa type="landing"]</b>. ';
993
+ $slug = 'wppa_mailinglist_callback_url';
994
+ $html = wppa_input($slug, '90%');
995
+ wppa_setting_new($slug, '99', $name, $desc, $html, $help);
996
+
997
+ $name = __('Retry failed mails', 'wp-photo-album-plus');
998
+ $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
999
+ $help = (__('Retries occur at the background every hour', 'wp-photo-album-plus'));
1000
+ $slug = 'wppa_retry_mails';
1001
+ $html = wppa_number($slug, '1', '24');
1002
+ wppa_setting_new($slug, '100', $name, $desc, $html, $help);
1003
+
1004
+ }
1005
+ wppa_setting_box_footer_new();
1006
+
1007
+ $coldef = array( __('Role', 'wp-photo-album-plus') => 'auto;',
1008
+ __('Album Admin', 'wp-photo-album-plus') => 'auto;',
1009
+ __('Upload', 'wp-photo-album-plus') => 'auto;',
1010
+ __('Import', 'wp-photo-album-plus') => 'auto;',
1011
+ __('Moderate', 'wp-photo-album-plus') => 'auto;',
1012
+ __('Export', 'wp-photo-album-plus') => 'auto;',
1013
+ __('Settings', 'wp-photo-album-plus') => 'auto;',
1014
+ __('Photo of the day', 'wp-photo-album-plus') => 'auto;',
1015
+ __('Comments', 'wp-photo-album-plus') => 'auto;',
1016
+ __('Documentation', 'wp-photo-album-plus') => 'auto;',
1017
+ __('Membership', 'wp-photo-album-plus') => 'auto;',
1018
+ );
1019
+
1020
+
1021
+ wppa_setting_box_header_new('admin', $coldef);
1022
+ {
1023
+ $wppacaps = array( 'wppa_admin',
1024
+ 'wppa_upload',
1025
+ 'wppa_import',
1026
+ 'wppa_moderate',
1027
+ 'wppa_export',
1028
+ 'wppa_settings',
1029
+ 'wppa_potd',
1030
+ 'wppa_comments',
1031
+ 'wppa_help',
1032
+ 'wppa_medal',
1033
+ );
1034
+ $opts = array( '',
1035
+ __('bronze', 'wp-photo-album-plus'),
1036
+ __('silver', 'wp-photo-album-plus'),
1037
+ __('gold', 'wp-photo-album-plus'),
1038
+ __('plus', 'wp-photo-album-plus'),
1039
+ __('basic', 'wp-photo-album-plus'),
1040
+ );
1041
+ $vals = array( 'none',
1042
+ 'bronze',
1043
+ 'silver',
1044
+ 'gold',
1045
+ 'plus',
1046
+ 'basic'
1047
+ );
1048
+
1049
+ foreach (array_keys($roles) as $key) {
1050
+ $role = $roles[$key];
1051
+ $rolename = translate_user_role( $role['name'] );
1052
+
1053
+ echo '
1054
+ <tr class="wppa-setting-new" >
1055
+ <td>' . $rolename . '</td>';
1056
+ $caps = $role['capabilities'];
1057
+
1058
+ for ($i = 0; $i < count($wppacaps) - 1; $i++) {
1059
+ if (isset($caps[$wppacaps[$i]])) {
1060
+ $yn = $caps[$wppacaps[$i]] ? true : false;
1061
+ }
1062
+ else $yn = false;
1063
+ $enabled = ( $key != 'administrator' );
1064
+ echo '
1065
+ <td>' . wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled) . '</td>';
1066
+ };
1067
+
1068
+ echo '<td>' . wppa_select($wppacaps[count($wppacaps) - 1].'-'.$key, $opts, $vals) . '</td>';
1069
+
1070
+ echo '</tr>';
1071
+ }
1072
+ }
1073
+ wppa_setting_box_footer_new();
1074
+
1075
+ wppa_setting_box_header_new('advanced');
1076
+ {
1077
+ $name = __('Save EXIF data', 'wp-photo-album-plus');
1078
+ $desc = __('Store the exif data from the photo into the exif db table', 'wp-photo-album-plus');
1079
+ $help = (__('You will need this if you enabled the display of exif data in Table II-B18 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
1080
+ $slug = 'wppa_save_exif';
1081
+ $onch = 'wppaSlave(this,"exif")';
1082
+ $html = wppa_checkbox($slug, $onch);
1083
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help, function_exists('exif_read_data') );
1084
+
1085
+ $name = __('Save IPTC data', 'wp-photo-album-plus');
1086
+ $desc = __('Store the iptc data from the photo into the iptc db table', 'wp-photo-album-plus');
1087
+ $help = (__('You will need this if you enabled the display of iptc data in Table II-B17 or if you use it in the photo descriptions.', 'wp-photo-album-plus'));
1088
+ $slug = 'wppa_save_iptc';
1089
+ $onch = 'wppaSlave(this,"iptc")';
1090
+ $html = wppa_checkbox($slug, $onch);
1091
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help, function_exists('exif_read_data') );
1092
+
1093
+ }
1094
+ wppa_setting_box_footer_new();
1095
+
1096
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
1097
+ __('Tag', 'wp-photo-album-plus') => 'auto;',
1098
+ __('Brand', 'wp-photo-album-plus') => 'auto;',
1099
+ __('Description', 'wp-photo-album-plus') => 'auto;',
1100
+ __('Status', 'wp-photo-album-plus') => 'auto;',
1101
+ __('Help', 'wp-photo-album-plus') => '24px;',
1102
+ ) ;
1103
+ wppa_setting_box_header_new( 'exif', $coldef );
1104
+ {
1105
+ $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_exif
1106
+ WHERE photo = '0'
1107
+ ORDER BY tag", ARRAY_A );
1108
+
1109
+ if ( is_array( $labels ) ) {
1110
+ $i = '1';
1111
+ foreach ( $labels as $label ) {
1112
+ $name = htmlspecialchars( $label['tag'] );
1113
+
1114
+ $desc = '';
1115
+ foreach ( $wppa_supported_camara_brands as $brand ) {
1116
+ $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
1117
+ if ( $lbl ) {
1118
+ $desc .= '<br />' . $brand;
1119
+ }
1120
+ }
1121
+
1122
+ $help = '';
1123
+ $slug1 = 'wppa_exif_label_'.$name;
1124
+ $slug2 = 'wppa_exif_status_'.$name;
1125
+
1126
+ $html1 = wppa_edit( $slug1, htmlspecialchars( $label['description'] ) );
1127
+ foreach ( $wppa_supported_camara_brands as $brand ) {
1128
+ $lbl = wppa_exif_tagname( $label['tag'], $brand, 'brandonly' );
1129
+ if ( $lbl ) {
1130
+ $html1 .= '<br /><span style="clear:left;float:left;" >' . $lbl . ':</span>';
1131
+ }
1132
+ }
1133
+
1134
+ $options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
1135
+ $values = array('display', 'hide', 'option');
1136
+ $html2 = wppa_select_e($slug2, htmlspecialchars( $label['status'] ), $options, $values);
1137
+ $html = array($html1, $html2);
1138
+ wppa_setting_new(false, $i, $name, $desc, $html, $help);
1139
+ $i++;
1140
+ }
1141
+ }
1142
+ }
1143
+ wppa_setting_box_footer_new();
1144
+
1145
+ $coldef = array( __('#', 'wp-photo-album-plus') => '24px;',
1146
+ __('Tag', 'wp-photo-album-plus') => 'auto;',
1147
+ __('Description', 'wp-photo-album-plus') => 'auto;',
1148
+ __('Status', 'wp-photo-album-plus') => 'auto;',
1149
+ __('Help', 'wp-photo-album-plus') => '24px;',
1150
+ );
1151
+ wppa_setting_box_header_new('iptc', $coldef);
1152
+ {
1153
+ $labels = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_iptc
1154
+ WHERE photo = '0'
1155
+ ORDER BY tag", ARRAY_A );
1156
+
1157
+ if ( is_array( $labels ) ) {
1158
+ $i = '1';
1159
+ foreach ( $labels as $label ) {
1160
+ $name = htmlspecialchars( $label['tag'] );
1161
+ $desc = '';
1162
+ $help = '';
1163
+ $slug1 = 'wppa_iptc_label_'.$name;
1164
+ $slug2 = 'wppa_iptc_status_'.$name;
1165
+ $html1 = wppa_edit($slug1, htmlspecialchars( $label['description'] ));
1166
+ $options = array(__('Display', 'wp-photo-album-plus'), __('Hide', 'wp-photo-album-plus'), __('Optional', 'wp-photo-album-plus'));
1167
+ $values = array('display', 'hide', 'option');
1168
+ $html2 = wppa_select_e($slug2, $label['status'], $options, $values);
1169
+ wppa_setting_new(false, $i, $name, $html1, $html2, $help);
1170
+ $i++;
1171
+ }
1172
+ }
1173
+ }
1174
+ wppa_setting_box_footer_new();
1175
+
1176
+ // Close the content area
1177
+ echo '</div>';
1178
+
1179
+ }
1180
+
1181
+
1182
+ else { // Old style settings page
1183
+
1184
  // Quick open selections
1185
  $wppa_tags = array(
1186
  '-' => '',
1314
  AND post_status = 'publish'
1315
  ORDER BY post_title", ARRAY_A );
1316
  if ( $pages ) {
1317
+
1318
+ // Translate
1319
+ foreach ( array_keys($pages) as $index ) {
1320
+ $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
 
1321
  }
1322
+
1323
  $pages = wppa_array_sort($pages, 'post_title');
1324
  foreach ($pages as $page) {
1325
  if (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {
1357
  <table class="widefat wppa-table wppa-setting-table">
1358
  <thead style="font-weight: bold; " class="wppa_table_1">
1359
  <tr>
1360
+ __('#', 'wp-photo-album-plus') ?></td>
1361
  <td><?php _e('Name', 'wp-photo-album-plus') ?></td>
1362
  <td><?php _e('Description', 'wp-photo-album-plus') ?></td>
1363
  <td><?php _e('Setting', 'wp-photo-album-plus') ?></td>
1492
  wppa_setting_subheader( 'A', '1', __( 'WPPA+ global system related size settings' , 'wp-photo-album-plus') );
1493
  {
1494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1495
 
1496
  $name = __('Related count', 'wp-photo-album-plus');
1497
  $desc = __('The default maximum number of related photos to find.', 'wp-photo-album-plus');
1950
  }
1951
  wppa_setting_subheader( 'E', '1', __( 'Rating and comment related size settings' , 'wp-photo-album-plus') );
1952
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1953
  }
1954
  wppa_setting_subheader( 'F', '1', __( 'Widget related size settings' , 'wp-photo-album-plus') );
1955
  {
2645
  $tags = 'slide,meta,layout';
2646
  wppa_setting($slug, '6.1', $name, $desc, $html, $help, $clas, $tags);
2647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2648
  $name = __('Comment Avatar default', 'wp-photo-album-plus');
2649
  $desc = __('Show Avatars with the comments if not --- none ---', 'wp-photo-album-plus');
2650
  $help = '';
3013
  $tags = 'thumb,meta,layout';
3014
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
3015
 
 
 
 
 
 
 
 
 
 
3016
  $name = __('Thumbnail comcount', 'wp-photo-album-plus');
3017
  $desc = __('Display Thumbnail Comment count.', 'wp-photo-album-plus');
3018
  $help = (__('Display the number of comments to the photo under the thumbnail image.', 'wp-photo-album-plus'));
3112
  $tags = 'thumb,comment,layout';
3113
  wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
3114
 
 
 
 
 
 
 
 
 
 
3115
  $name = __('Show name on thumb area', 'wp-photo-album-plus');
3116
  $desc = __('Select if and where to display the album name on the thumbnail display.', 'wp-photo-album-plus');
3117
  $help = '';
3470
  $tags = 'lightbox,layout';
3471
  wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
3472
 
 
 
 
 
 
 
 
 
 
3473
  $name = __('Overlay show counter', 'wp-photo-album-plus');
3474
  $desc = __('Show the x/y counter below the image.', 'wp-photo-album-plus');
3475
  $help = '';
3491
  }
3492
  wppa_setting_subheader( 'H', '1', __( 'Frontend upload configuration settings' , 'wp-photo-album-plus') );
3493
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3494
 
3495
  $name = __('User upload Ajax', 'wp-photo-album-plus');
3496
  $desc = __('Shows the upload progression bar.', 'wp-photo-album-plus');
4064
 
4065
  wppa_setting_subheader( 'A', '4', __('General backgrounds' , 'wp-photo-album-plus') );
4066
  {
 
 
 
 
 
 
 
 
 
 
 
 
4067
 
4068
  $name = __('SlideImg', 'wp-photo-album-plus');
4069
  $desc = __('Fullsize Slideshow Photos.', 'wp-photo-album-plus');
4542
  $tags = 'system';
4543
  wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
4544
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4545
  $name = __('Relative urls', 'wp-photo-album-plus');
4546
  $desc = __('Use relative urls only.', 'wp-photo-album-plus');
4547
  $help = '';
4612
  $tags = 'system';
4613
  wppa_setting($slug, '28', $name, $desc, $html, $help, $clas, $tags);
4614
 
 
 
 
 
 
 
 
 
 
4615
  $name = __('No rightclick', 'wp-photo-album-plus');
4616
  $desc = __('Disable right mouseclick on all images', 'wp-photo-album-plus');
4617
  $help = '';
5377
  $tags = 'rating,layout';
5378
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
5379
 
 
 
 
 
 
 
 
 
 
 
 
 
5380
  $name = __('Show average rating', 'wp-photo-album-plus');
5381
  $desc = __('Display the avarage rating and/or vote count on the rating bar', 'wp-photo-album-plus');
5382
  $help = (__('If checked, the average rating as well as the current users rating is displayed in max 5 or 10 stars.', 'wp-photo-album-plus'));
7375
  ); ?>
7376
 
7377
  <div id="wppa_table_7" style="display:none" >
 
 
 
 
 
7378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7379
  <table class="widefat wppa-table wppa-setting-table" style="margin-top:-2px;padding-top:0;" >
7380
  <tbody class="wppa_table_7">
7381
  <?php
9090
 
9091
  wppa_setting_subheader( 'A', '1', __( 'Internal engine related settings' , 'wp-photo-album-plus') );
9092
  {
9093
+
9094
+ $name = __('JPG image quality', 'wp-photo-album-plus');
9095
+ $desc = __('The jpg quality when photos are downsized', 'wp-photo-album-plus');
9096
+ $help = (__('The higher the number the better the quality but the larger the file', 'wp-photo-album-plus'));
9097
+ $help .= '<br />'.(__('Possible values 20..100', 'wp-photo-album-plus'));
9098
+ $slug = 'wppa_jpeg_quality';
9099
  $html = wppa_input($slug, '50px');
9100
  $clas = '';
9101
  $tags = 'system';
9102
+ wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
9103
 
9104
+ $name = __('Allow WPPA+ Debugging', 'wp-photo-album-plus');
9105
+ $desc = __('Allow the use of &amp;debug=.. in urls to this site.', 'wp-photo-album-plus');
9106
+ $help = (__('If checked: appending (?)(&)debug or (?)(&)debug=<int> to an url to this site will generate the display of special WPPA+ diagnostics, as well as php warnings', 'wp-photo-album-plus'));
9107
+ $slug = 'wppa_allow_debug';
9108
+ $html = wppa_checkbox($slug);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9109
  $clas = '';
9110
  $tags = 'system';
9111
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
9112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9113
  $name = __('Enable <i>in-line</i> settings', 'wp-photo-album-plus');
9114
  $desc = __('Activates shortcode [wppa_set].', 'wp-photo-album-plus');
9115
  $help = (__('Syntax: [wppa_set name="any wppa setting" value="new value"]', 'wp-photo-album-plus'));
9122
  $tags = 'system';
9123
  wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
9124
 
 
 
 
 
 
 
 
 
 
9125
  $name = __('Log Cron', 'wp-photo-album-plus');
9126
  $desc = __('Keep track of cron activity in the wppa logfile.', 'wp-photo-album-plus');
9127
  $help = '';
9232
  $tags = 'system,comment,rating';
9233
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
9234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9235
  $name = __('Load nicescroller always', 'wp-photo-album-plus');
9236
  $desc = __('Loads nicescroller js on all pages', 'wp-photo-album-plus');
9237
  $help = __('Tick this if you use nicescroller anywhere and it is not being loaded', 'wp-photo-album-plus');
9241
  $tags = 'system';
9242
  wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
9243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9244
  $name = __('CSV file separator', 'wp-photo-album-plus');
9245
  $desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
9246
  $help = __('This separator is used both during import and export', 'wp-photo-album-plus');
9255
  }
9256
  wppa_setting_subheader( 'B', '1', __( 'WPPA+ Admin related miscellaneous settings' , 'wp-photo-album-plus') );
9257
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9258
 
9259
  $name = __('Use WP editor', 'wp-photo-album-plus');
9260
  $desc = __('Use the wp editor for multiline text fields.', 'wp-photo-album-plus');
9265
  $tags = 'system';
9266
  wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
9267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9268
  $name = __('Album admin page size', 'wp-photo-album-plus');
9269
  $desc = __('The number of albums per page on the Edit Album admin page.', 'wp-photo-album-plus');
9270
  $help = '';
9404
  $tags = 'document,upload';
9405
  wppa_setting(false, '15.2', $name, $desc, $html, $help, $clas, $tags);
9406
 
 
 
 
 
 
 
 
 
 
9407
  $name = __('Import source root', 'wp-photo-album-plus');
9408
  $desc = __('Specify the highest level in the filesystem where to import from', 'wp-photo-album-plus');
9409
  $help = '';
9741
  $tags = 'system,album';
9742
  wppa_setting($slug, '7.2', $name, $desc, $html, $help, $clas, $tags);
9743
 
 
 
 
 
 
 
 
 
 
9744
  $name = __('Grant an album', 'wp-photo-album-plus');
9745
  $desc = __('Create an album for each user logging in.', 'wp-photo-album-plus');
9746
  $help = '';
9949
  $tags = 'system,access,album';
9950
  wppa_setting($slug, '16', $name, $desc, $html, $help, $clas, $tags);
9951
 
 
 
 
 
 
 
 
 
 
9952
  $name = __('Default album linktype', 'wp-photo-album-plus');
9953
  $desc = __('The album linktype for new albums', 'wp-photo-album-plus');
9954
  $help = '';
10026
  $options[] = __('--- Please select a page ---', 'wp-photo-album-plus');
10027
  $values[] = '0';
10028
  if ($pages) {
10029
+
10030
+ // Translate
10031
+ foreach ( array_keys($pages) as $index ) {
10032
+ $pages[$index]['post_title'] = __(stripslashes($pages[$index]['post_title']), 'wp-photo-album-plus');
 
10033
  }
10034
  $pages = wppa_array_sort($pages, 'post_title');
10035
  foreach ($pages as $page) {
10712
  $tags = 'system';
10713
  wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
10714
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10715
 
10716
  $name = __('Import Create page', 'wp-photo-album-plus');
10717
  $desc = __('Create wp page that shows the album when a directory to album is imported.', 'wp-photo-album-plus');
11384
  wppa_setting_subheader( 'M', '1', __( 'Email notification related settings' , 'wp-photo-album-plus' ) .
11385
  ' <small><i>' . __( 'Use the WPPA+ Notify Me widget', 'wp-photo-album-plus' ) . '</i></small>' );
11386
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11388
 
11389
  $mails = wppa_get_option( 'wppa_failed_mails', array() );
11390
  if ( count( $mails ) ) {
11420
  }
11421
  }
11422
 
11423
+ }
 
 
11424
 
11425
  ?>
11426
 
 
 
11427
  </tbody>
11428
  <tfoot style="font-weight: bold;" class="wppa_table_9">
11429
  <tr>
11437
  </table>
11438
  </div>
11439
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11440
  <?php // Table 12: Configuration ?>
11441
  <?php wppa_settings_box_header(
11442
  '12',
11678
  </div>
11679
 
11680
  <?php
11681
+ }
11682
  wppa_initialize_runtime( true );
11683
  }
11684
 
12303
 
12304
  $slug = substr( $xslug, 5 );
12305
 
12306
+ return '
12307
+ <div
12308
+ id="colorbox-' . $slug . '"
12309
+ class="wppa-colorbox"
12310
+ style="width:100px; height:16px; float:left; background-color:' . wppa_opt( $slug ) . '; border:1px solid #dfdfdf;"
12311
+ >
12312
+ </div>';
12313
 
12314
  }
12315
 
12514
  }
12515
  }
12516
  return $result;
12517
+ }
12518
+
12519
+ // New style settings page selection tab html
12520
+ function wppa_setting_tab( $slug, $caption, $active = false, $show = true ) {
12521
+
12522
+ $result = '
12523
+ <li
12524
+ id="wppa-setting-tab-' . $slug . '"
12525
+ class="' . ( $active ? 'active ' : '' ) . 'tabli ' . $slug . '"
12526
+ onclick="wppaSettingTab(\'' . $slug . '\');"
12527
+ style="' . ( $show ? '' : 'display:none;' ) . '"
12528
+ >
12529
+ ' . $caption . '
12530
+ </li>';
12531
+
12532
+ return $result;
12533
+ }
12534
+
12535
+ // New setting
12536
+ function wppa_setting_new( $slug, $xnum, $name, $desc, $html, $help, $show = true ) {
12537
+ global $wppa_status;
12538
+ global $wppa_defaults;
12539
+ global $wppa_table;
12540
+ global $wppa_subtable;
12541
+ global $no_default;
12542
+ global $wppa_opt;
12543
+ global $wppa_totcols;
12544
+
12545
+ if ( ! $help ) {
12546
+ $help = __('No helptext available', 'wp-photo-album-plus');
12547
+ }
12548
+
12549
+ $num = str_replace( array( ',', '.' ), '_', $xnum );
12550
+
12551
+ if ( is_array( $slug ) ) $slugs = $slug;
12552
+ else {
12553
+ $slugs = false;
12554
+ if ( $slug ) $slugs[] = $slug;
12555
+ else $slugs[0] = '';
12556
+ }
12557
+
12558
+ if ( is_array( $html ) ) $htmls = $html;
12559
+ else {
12560
+ $htmls = false;
12561
+ if ( $html ) $htmls[] = $html;
12562
+ }
12563
+
12564
+ if ( strpos( $xnum, ',' ) !== false ) {
12565
+ $nums = explode( ',', $xnum );
12566
+ $nums[0] = substr( $nums[0], 1 );
12567
+ }
12568
+ else {
12569
+ $nums = false;
12570
+ if ( $xnum ) $nums[] = $xnum;
12571
+ }
12572
+
12573
+ // Make the helptext
12574
+ if ( $help ) {
12575
+ $is_dflt = true;
12576
+ $help = nl2br( $help );
12577
+ $helptext = wp_kses( $help, array( 'a' => array( 'href' => array(), 'title' => array() ),
12578
+ 'br' => array(),
12579
+ 'em' => array(),
12580
+ 'b' => array(),
12581
+ 'i' => array(),
12582
+ ) );
12583
+ if ( ! $no_default ) {
12584
+ if ( $slugs && wppa_dflt($slugs[0]) ) {
12585
+ $helptext .= '<br />' . __( 'The default for this setting is:', 'wp-photo-album-plus' );
12586
+ if ( count($slugs) == 1) {
12587
+ if ( $slugs[0] != '' ) {
12588
+ $helptext .= ' '.htmlspecialchars(wppa_dflt($slugs[0]));
12589
+ if ( $wppa_opt[$slugs[0]] != $wppa_defaults[$slugs[0]] ) {
12590
+ $is_dflt = false;
12591
+ }
12592
+ }
12593
+ }
12594
+ else foreach ( array_keys($slugs) as $slugidx ) {
12595
+ if ( $slugs[$slugidx] != '' && isset($nums[$slugidx]) ) $helptext .= ' '.$nums[$slugidx].'. '.wppa_dflt($slugs[$slugidx]);
12596
+ if ( $slugs[$slugidx] != '' && isset($wppa_opt[$slugs[$slugidx]]) && $wppa_opt[$slugs[$slugidx]] != $wppa_defaults[$slugs[$slugidx]] ) {
12597
+ $is_dflt = false;
12598
+ }
12599
+ }
12600
+ }
12601
+ }
12602
+ }
12603
+ else {
12604
+ $helptext = '';
12605
+ }
12606
+
12607
+ // Start the item
12608
+ echo
12609
+ '<tr
12610
+ id="wppa-setting-item-' . $num . '"
12611
+ class="wppa-setting-new ' . $slugs[0] . '" style="color:#333;' . ( $show ? '' : 'display:none;' ) . '"
12612
+ >';
12613
+
12614
+ // The item number
12615
+ echo '
12616
+ <td>' . $xnum . '</td>';
12617
+
12618
+ // The Item name
12619
+ echo '
12620
+ <td>' . $name . '</td>';
12621
+
12622
+ // The item description
12623
+ echo '
12624
+ <td><small>' . $desc . '</small></td>';
12625
+
12626
+ // The html
12627
+ if ( $htmls ) foreach ( $htmls as $html ) {
12628
+ echo '<td>' . $html . '</td>';
12629
+ }
12630
+ else {
12631
+ echo '<td></td>';
12632
+ }
12633
+
12634
+ // The helpbutton
12635
+ echo '
12636
+ <td>
12637
+ <input
12638
+ type="button"
12639
+ style="font-size: 11px; height:20px; padding:0; cursor: pointer;"
12640
+ class=""
12641
+ title="' . esc_attr( __( 'Click for help', 'wp-photo-album-plus' ) ) . '"
12642
+ onclick="
12643
+ if ( jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\') == \'none\' ) {
12644
+ jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\',\'\');
12645
+ }
12646
+ else {
12647
+ jQuery( \'#help-' . $slugs[0] . '\' ).css(\'display\',\'none\');
12648
+ }"
12649
+ value="&nbsp;?&nbsp;"
12650
+ />
12651
+ </td>';
12652
+
12653
+ // Close item
12654
+ echo '
12655
+ </tr>';
12656
+
12657
+ // The Helptext
12658
+ if ( $help ) {
12659
+ echo '
12660
+ <tr
12661
+ id="help-' . $slugs[0] . '"
12662
+ class="wppa-setting-new"
12663
+ style="display:none;"
12664
+ >
12665
+ <td></td>
12666
+ <td></td>
12667
+ <td
12668
+ style="color:#000077;"
12669
+ >
12670
+ <small>
12671
+ <i>' .
12672
+ $helptext . '
12673
+ </i>
12674
+ </small>
12675
+ </td>
12676
+ <td></td>
12677
+ <td></td>
12678
+ </tr>';
12679
+ }
12680
+ }
12681
+
12682
+ // Open the new style setting box
12683
+ function wppa_setting_box_header_new( $key, $cols = false ) {
12684
+
12685
+ if ( ! $cols ) {
12686
+ $cols = array(
12687
+ __( '#', 'wp-photo-album-plus' ) => '24px;',
12688
+ __( 'Name', 'wp-photo-album-plus') => '15%;',
12689
+ __( 'Description', 'wp-photo-album-plus' ) => '30%;',
12690
+ __( 'Setting', 'wp-photo-album-plus' ) => 'auto;',
12691
+ __( 'Help', 'wp-photo-album-plus' ) => '24px;',
12692
+ );
12693
+ }
12694
+
12695
+ echo '
12696
+ <div
12697
+ id="wppa-setting-content-' . $key . '"
12698
+ class="wppa-setting-content"
12699
+ style="display:' . ( $key == 'general' ? 'inline' : 'none' ) . '" >
12700
+ <table class="widefat wppa-table wppa-setting-table">
12701
+
12702
+ <colgroup>';
12703
+ foreach( $cols as $size ) {
12704
+ echo '<col style="width: ' . $size . '" >';
12705
+ }
12706
+ echo '
12707
+ </colgroup>
12708
+
12709
+ <thead style="font-weight: bold;" >
12710
+ <tr>';
12711
+ foreach( array_keys( $cols ) as $caption ) {
12712
+ echo '<td>' . $caption . '</td>';
12713
+ }
12714
+ echo '
12715
+ </tr>
12716
+ </thead>
12717
+
12718
+ <tbody class="wppa_table_' . $key . '" >';
12719
+
12720
+ }
12721
+
12722
+ function wppa_setting_box_footer_new() {
12723
+ echo '</tbody></table></div>';
12724
+ }
12725
+
wppa-slideshow-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a slideshow in the sidebar
6
- * Version 7.3.03
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -187,7 +187,7 @@ class SlideshowWidget extends WP_Widget {
187
  '<option value="-2"' . ( $instance['album'] == '-2' ? ' selected="selected"' : '' ) . ' >' . __( '--- all ---', 'wp-photo-album-plus' ) . '</option>' .
188
  wppa_album_select_a( array (
189
  'selected' => $instance['album'],
190
- 'path' => wppa_switch( 'hier_albsel' ),
191
  'sort' => true,
192
  ) );
193
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a slideshow in the sidebar
6
+ * Version 8.0.00.007
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
187
  '<option value="-2"' . ( $instance['album'] == '-2' ? ' selected="selected"' : '' ) . ' >' . __( '--- all ---', 'wp-photo-album-plus' ) . '</option>' .
188
  wppa_album_select_a( array (
189
  'selected' => $instance['album'],
190
+ 'path' => true,
191
  'sort' => true,
192
  ) );
193
 
wppa-slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
- * Version 8.0.00.003
7
  *
8
  */
9
 
@@ -779,8 +779,6 @@ function wppa_slide_custom( $opt = '' ) {
779
  $content = str_replace( 'w#fotomoto', '', $content );
780
  }
781
 
782
- // $content = wppa_html( $content ); // removed 6.5.07 because this is nonsense
783
-
784
  wppa_out( '<div' .
785
  ' id="wppa-custom-'.wppa( 'mocc' ).'"' .
786
  ' class="wppa-box wppa-custom"' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
779
  $content = str_replace( 'w#fotomoto', '', $content );
780
  }
781
 
 
 
782
  wppa_out( '<div' .
783
  ' id="wppa-custom-'.wppa( 'mocc' ).'"' .
784
  ' class="wppa-box wppa-custom"' .
wppa-stereo.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the stereo stuff
6
- * Version 7.1.02
7
  *
8
  */
9
 
@@ -291,9 +291,6 @@ static $f114;
291
  break;
292
  }
293
 
294
- // Optimized
295
- wppa_optimize_image_file( $tofile );
296
-
297
  // Bump version
298
  wppa_bump_photo_rev();
299
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the stereo stuff
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
291
  break;
292
  }
293
 
 
 
 
294
  // Bump version
295
  wppa_bump_photo_rev();
296
  }
wppa-thumbnail-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail photos
6
- * Version 7.3.03
7
  */
8
 
9
  class ThumbnailWidget extends WP_Widget {
@@ -207,7 +207,7 @@ class ThumbnailWidget extends WP_Widget {
207
  wppa_widget_input( $this, 'linktitle', $instance['linktitle'], __( 'Link Title ( tooltip )', 'wp-photo-album-plus' ) );
208
 
209
  // Album
210
- $body = wppa_album_select_a( array( 'selected' => $instance['album'], 'addseparate' => true, 'addall' => true, 'path' => wppa_switch( 'hier_albsel' ) ) );
211
  echo
212
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
213
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * display thumbnail photos
6
+ * Version 8.0.00.007
7
  */
8
 
9
  class ThumbnailWidget extends WP_Widget {
207
  wppa_widget_input( $this, 'linktitle', $instance['linktitle'], __( 'Link Title ( tooltip )', 'wp-photo-album-plus' ) );
208
 
209
  // Album
210
+ $body = wppa_album_select_a( array( 'selected' => $instance['album'], 'addseparate' => true, 'addall' => true, 'path' => true ) );
211
  echo
212
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
213
 
wppa-tinymce-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
- * Version 7.5.10
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
@@ -78,10 +78,8 @@ global $wpdb;
78
  else {
79
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums
80
  ORDER BY timestamp DESC", ARRAY_A );
81
- if ( wppa_switch( 'hier_albsel' ) ) {
82
- $albums = wppa_add_paths( $albums );
83
- $albums = wppa_array_sort( $albums, 'name' );
84
- }
85
  }
86
 
87
  // Prepare photoinfo
@@ -102,14 +100,9 @@ global $wpdb;
102
 
103
  if ( $pages ) {
104
 
105
- // Add parents optionally OR translate only
106
- if ( wppa_switch( 'hier_pagesel' ) ) $pages = wppa_add_parents( $pages );
107
-
108
- // Just translate
109
- else {
110
- foreach ( array_keys( $pages ) as $index ) {
111
- $pages[$index]['post_title'] = __( stripslashes($pages[$index]['post_title'] ) );
112
- }
113
  }
114
 
115
  // Sort alpahbetically
2
  /* wppa-tinymce-shortcodes.php
3
  * Pachkage: wp-photo-album-plus
4
  *
5
+ * Version 8.0.00.007
6
  */
7
 
8
  if ( ! defined( 'ABSPATH' ) )
78
  else {
79
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums
80
  ORDER BY timestamp DESC", ARRAY_A );
81
+ $albums = wppa_add_paths( $albums );
82
+ $albums = wppa_array_sort( $albums, 'name' );
 
 
83
  }
84
 
85
  // Prepare photoinfo
100
 
101
  if ( $pages ) {
102
 
103
+ // Translate
104
+ foreach ( array_keys( $pages ) as $index ) {
105
+ $pages[$index]['post_title'] = __( stripslashes($pages[$index]['post_title'] ) );
 
 
 
 
 
106
  }
107
 
108
  // Sort alpahbetically
wppa-upldr-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a list of users linking to their photos
6
- * Version 7.3.03
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -270,12 +270,7 @@ class UpldrWidget extends WP_Widget {
270
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums", ARRAY_A );
271
  }
272
  if ( ! empty( $albums ) ) {
273
- if ( wppa_switch( 'hier_albsel' ) ) {
274
- $albums = wppa_add_paths( $albums );
275
- }
276
- else {
277
- foreach ( array_keys( $albums ) as $index ) $albums[$index]['name'] = __( stripslashes( $albums[$index]['name'] ) );
278
- }
279
  $albums = wppa_array_sort( $albums, 'name' );
280
  }
281
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * display a list of users linking to their photos
6
+ * Version 8.0.00.007
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
270
  $albums = $wpdb->get_results( "SELECT id, name FROM $wpdb->wppa_albums", ARRAY_A );
271
  }
272
  if ( ! empty( $albums ) ) {
273
+ $albums = wppa_add_paths( $albums );
 
 
 
 
 
274
  $albums = wppa_array_sort( $albums, 'name' );
275
  }
276
 
wppa-upload-widget.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * A wppa widget to upload photos
6
  *
7
- * Version 8.0.00.003
8
  */
9
 
10
  class WppaUploadWidget extends WP_Widget {
@@ -138,7 +138,7 @@ class WppaUploadWidget extends WP_Widget {
138
  wppa_widget_input( $this, 'title', $instance['title'], __( 'Title', 'wp-photo-album-plus' ) );
139
 
140
  // Album selection
141
- $body = wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ), 'selected' => $instance['album'], 'addselbox' => true ) );
142
  echo
143
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
144
 
4
  *
5
  * A wppa widget to upload photos
6
  *
7
+ * Version 8.0.00.007
8
  */
9
 
10
  class WppaUploadWidget extends WP_Widget {
138
  wppa_widget_input( $this, 'title', $instance['title'], __( 'Title', 'wp-photo-album-plus' ) );
139
 
140
  // Album selection
141
+ $body = wppa_album_select_a( array( 'path' => true, 'selected' => $instance['album'], 'addselbox' => true ) );
142
  echo
143
  wppa_widget_selection_frame( $this, 'album', $body, __( 'Album', 'wp-photo-album-plus' ) );
144
 
wppa-upload.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
- * Version 7.5.08
7
  *
8
  */
9
 
@@ -274,11 +274,11 @@ global $upload_album;
274
  '</script>' .
275
  '<p>' .
276
  '<label for="wppa-album">' . __( 'Album:' , 'wp-photo-album-plus' ) . '</label>' .
277
- wppa_album_select_a( array( 'path' => wppa_switch( 'hier_albsel' ),
278
- 'addpleaseselect' => true,
279
- 'checkowner' => true,
280
- 'checkupload' => true,
281
- 'sort' => true,
282
  'tagopen' => '<select name="wppa-album" id="wppa-album-s" style="max-width:100%;" >',
283
  'tagid' => 'wppa-album-s',
284
  'tagname' => 'wppa-album',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
274
  '</script>' .
275
  '<p>' .
276
  '<label for="wppa-album">' . __( 'Album:' , 'wp-photo-album-plus' ) . '</label>' .
277
+ wppa_album_select_a( array( 'path' => true,
278
+ 'addpleaseselect' => true,
279
+ 'checkowner' => true,
280
+ 'checkupload' => true,
281
+ 'sort' => true,
282
  'tagopen' => '<select name="wppa-album" id="wppa-album-s" style="max-width:100%;" >',
283
  'tagid' => 'wppa-album-s',
284
  'tagname' => 'wppa-album',
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 8.0.00.003
7
  *
8
  */
9
 
@@ -151,8 +151,10 @@ global $wppa_supported_stereo_types;
151
  // Must re-get cached thumb
152
  $thumb = wppa_cache_thumb( $id );
153
 
154
-
155
- if ( is_feed() && wppa_switch( 'feed_use_thumb') ) return wppa_get_thumb_url($id, true, $system);
 
 
156
 
157
  // If in the cloud...
158
  $for_sm = wppa( 'for_sm' ); // Social media do not accept cloud images
@@ -366,14 +368,11 @@ static $prev_album_id;
366
  return $album['a_parent'];
367
  }
368
 
369
- function wppa_html($str) {
370
  // It is assumed that the raw data contains html.
371
- // If html not allowed, filter specialchars
372
- // To prevent duplicate filtering, first entity_decode
373
- $result = html_entity_decode($str);
374
- if ( ! wppa_switch( 'html') && ! current_user_can('wppa_moderate') ) {
375
- $result = htmlspecialchars($str);
376
- }
377
  return $result;
378
  }
379
 
@@ -606,45 +605,6 @@ function wppa_add_paths( $albums ) {
606
  return $albums;
607
  }
608
 
609
- function wppa_add_parents( $pages ) {
610
- global $wpdb;
611
- static $parents;
612
- static $titles;
613
-
614
- // Pre-fill $parents
615
- if ( empty( $parents ) ) {
616
- $temp = $wpdb->get_results( "SELECT ID, post_parent FROM " . $wpdb->posts . "", ARRAY_A );
617
- if ( ! empty( $temp ) ) {
618
- foreach( $temp as $item ) {
619
- $parents[$item['ID']] = $item['post_parent'];
620
- }
621
- }
622
- }
623
-
624
- if ( is_array($pages) ) foreach ( array_keys($pages) as $index ) {
625
- $tempid = $pages[$index]['ID'];
626
- $pages[$index]['post_title'] = __( stripslashes( $pages[$index]['post_title'] ) );
627
- while ( $tempid > '0') {
628
- if ( isset( $parents[$tempid] ) ) {
629
- $tempid = $parents[$tempid];
630
- }
631
- else {
632
- $t = $wpdb->get_var( $wpdb->prepare( "SELECT post_parent FROM " . $wpdb->posts . " WHERE ID = %s", $tempid ) );
633
- $parents[$tempid] = $t;
634
- $tempid = $t;
635
- }
636
- if ( $tempid > '0' ) {
637
- if ( ! isset( $titles[$tempid] ) ) {
638
- $titles[$tempid] = __( stripslashes( $wpdb->get_var( $wpdb->prepare( "SELECT post_title FROM " . $wpdb->posts . " WHERE ID = %s", $tempid ) ) ) );
639
- }
640
- $pages[$index]['post_title'] = $titles[$tempid].' > '.$pages[$index]['post_title'];
641
- }
642
- else $tempid = '0';
643
- }
644
- }
645
- return $pages;
646
- }
647
-
648
  // Sort an array on a column, keeping the indexes
649
  function wppa_array_sort( $array, $on, $order = SORT_ASC ) {
650
 
@@ -1038,7 +998,7 @@ global $wppa_endtime;
1038
 
1039
  if ( ! $wppa_endtime ) {
1040
  wppa_log( 'err', 'Zero endtime, set to 25 secs after now' );
1041
- $wppa_endtime = time() + 25;
1042
  }
1043
 
1044
  // Time up?
@@ -1054,12 +1014,7 @@ global $wppa_endtime;
1054
  // Not cron, leave a message optionally and retrun true
1055
  if ( $count ) {
1056
  if ( is_admin() ) {
1057
- if ( wppa_switch( 'auto_continue' ) ) {
1058
- wppa_warning_message( sprintf( __( 'Time out after processing %s items.', 'wp-photo-album-plus' ), $count ) );
1059
- }
1060
- else {
1061
- wppa_error_message( sprintf( __( 'Time out after processing %s items. Please restart this operation', 'wp-photo-album-plus' ), $count ) );
1062
- }
1063
  }
1064
  else {
1065
  wppa_alert( sprintf( __( 'Time out after processing %s items. Please restart this operation', 'wp-photo-album-plus' ), $count ) );
@@ -2887,17 +2842,6 @@ static $wppa_void_keywords;
2887
  return $result;
2888
  }
2889
 
2890
- function wppa_optimize_image_file( $file ) {
2891
- if ( ! wppa_switch( 'optimize_new' ) ) return;
2892
- if ( function_exists( 'ewww_image_optimizer' ) ) {
2893
- ewww_image_optimizer( $file, 4, false, false, false );
2894
- wppa_log( 'fso', 'Optimized: ' . $file );
2895
- }
2896
- else {
2897
- wppa_log( 'err', 'function ewww_image_optimizer() does not exist' );
2898
- }
2899
- }
2900
-
2901
  function wppa_is_orig ( $path ) {
2902
  $file = basename( $path );
2903
  $file = wppa_strip_ext( $file );
@@ -3449,11 +3393,11 @@ function wppa_exit() {
3449
 
3450
  function wppa_sanitize_custom_field( $txt ) {
3451
 
3452
- if ( wppa_switch( 'allow_html_custom' ) ) {
3453
- $result = wppa_strip_tags( $txt, 'script&style' );
3454
  }
3455
  else {
3456
- $result = strip_tags( $txt );
3457
  }
3458
  return $result;
3459
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 8.0.00.007
7
  *
8
  */
9
 
151
  // Must re-get cached thumb
152
  $thumb = wppa_cache_thumb( $id );
153
 
154
+ // Feed returns thumb
155
+ if ( is_feed() ) {
156
+ return wppa_get_thumb_url( $id, true, $system );
157
+ }
158
 
159
  // If in the cloud...
160
  $for_sm = wppa( 'for_sm' ); // Social media do not accept cloud images
368
  return $album['a_parent'];
369
  }
370
 
371
+ function wppa_html( $str ) {
372
  // It is assumed that the raw data contains html.
373
+ // Make sure it is decoded
374
+
375
+ $result = html_entity_decode( $str );
 
 
 
376
  return $result;
377
  }
378
 
605
  return $albums;
606
  }
607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
608
  // Sort an array on a column, keeping the indexes
609
  function wppa_array_sort( $array, $on, $order = SORT_ASC ) {
610
 
998
 
999
  if ( ! $wppa_endtime ) {
1000
  wppa_log( 'err', 'Zero endtime, set to 25 secs after now' );
1001
+ $wppa_endtime = time() + 55;
1002
  }
1003
 
1004
  // Time up?
1014
  // Not cron, leave a message optionally and retrun true
1015
  if ( $count ) {
1016
  if ( is_admin() ) {
1017
+ wppa_warning_message( sprintf( __( 'Time out after processing %s items.', 'wp-photo-album-plus' ), $count ) );
 
 
 
 
 
1018
  }
1019
  else {
1020
  wppa_alert( sprintf( __( 'Time out after processing %s items. Please restart this operation', 'wp-photo-album-plus' ), $count ) );
2842
  return $result;
2843
  }
2844
 
 
 
 
 
 
 
 
 
 
 
 
2845
  function wppa_is_orig ( $path ) {
2846
  $file = basename( $path );
2847
  $file = wppa_strip_ext( $file );
3393
 
3394
  function wppa_sanitize_custom_field( $txt ) {
3395
 
3396
+ if ( ! current_user_can( 'unfiltered_html' ) ) {
3397
+ $result = strip_tags( $result );
3398
  }
3399
  else {
3400
+ $result = balanceTags( $txt );
3401
  }
3402
  return $result;
3403
  }
wppa-watermark.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-watermark.php
3
  *
4
  * Functions used for the application of watermarks
5
- * Version 7.7.03.006
6
  *
7
  */
8
 
@@ -553,11 +553,6 @@ function wppa_add_watermark( $id ) {
553
  break;
554
  }
555
 
556
- // Optimized
557
- if ( wppa_is_file( $file ) ) {
558
- wppa_optimize_image_file( $file );
559
- }
560
-
561
  // Cleanup
562
  imagedestroy( $photoimage );
563
  imagedestroy( $waterimage );
2
  /* wppa-watermark.php
3
  *
4
  * Functions used for the application of watermarks
5
+ * Version 8.0.00.007
6
  *
7
  */
8
 
553
  break;
554
  }
555
 
 
 
 
 
 
556
  // Cleanup
557
  imagedestroy( $photoimage );
558
  imagedestroy( $waterimage );
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.006
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.006'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
@@ -35,13 +35,18 @@ global $wppa_js_page_data; $wppa_js_page_data = '';
35
  add_action( 'plugins_loaded', 'wppa_init_timer', '1' );
36
  function wppa_init_timer() {
37
  global $wppa_endtime;
38
- if ( wppa_is_cron() || wppa( 'ajax' ) ) {
39
- $wppa_endtime = time() + '25';
 
 
40
  }
41
  else {
42
- $met = max( wppa_get_option( 'wppa_max_execution_time', '25' ), '25' );
43
- $wppa_endtime = time() + $met;
44
  }
 
 
 
 
45
  }
46
 
47
  /* Set defaults */
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.007
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.007'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
35
  add_action( 'plugins_loaded', 'wppa_init_timer', '1' );
36
  function wppa_init_timer() {
37
  global $wppa_endtime;
38
+
39
+ $met = ini_get( 'max_execution_time' );
40
+ if ( $met > 55 && ! wppa_is_cron() ) {
41
+ $met = 55;
42
  }
43
  else {
44
+ $met -= 5;
 
45
  }
46
+ if ( $met <= 0 ) {
47
+ $met = 25;
48
+ }
49
+ $wppa_endtime = time() + $met;
50
  }
51
 
52
  /* Set defaults */