WP Photo Album Plus - Version 6.6.29

Version Description

Download this release

Release Info

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

Code changes from version 6.6.28 to 6.6.29

js/wppa-slideshow.js CHANGED
@@ -3,7 +3,7 @@
3
  // Contains slideshow modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaJsSlideshowVersion = '6.6.28';
7
 
8
  // This is an entrypoint to load the slide data
9
  function wppaStoreSlideInfo(
@@ -337,7 +337,7 @@ function _wppaNextSlide( mocc, mode ) {
337
  var fg = _wppaFg[mocc];
338
  var bg = 1 - fg;
339
 
340
- // If a video is playing, delay a running slideshow
341
  if ( ( wppaVideoPlaying[mocc] || wppaAudioPlaying[mocc] ) && _wppaSSRuns[mocc] ) {
342
  setTimeout( '_wppaNextSlide( '+mocc+', \''+mode+'\' )', 500 ); // Retry after 500 ms
343
  return;
@@ -963,19 +963,28 @@ function wppaFormatSlide( mocc ) {
963
  }
964
 
965
  // Size audio
966
- if ( audios.length > 0 ) {
967
- var i = 0;
968
- jQuery( audios[i] ).css( { width:imgw, left:( contw - imgw ) / 2 } );
969
- i++;
970
  }
971
  }
972
 
973
- // Size Big Browse Buttons
974
- var bbbwidth = parseInt( framew/3 );
975
- var leftmarg = bbbwidth*2;
 
 
 
 
 
 
 
 
 
976
 
977
- jQuery( '#bbb-'+mocc+'-l' ).css( {height:frameh, width:bbbwidth, left:0});
978
- jQuery( '#bbb-'+mocc+'-r' ).css( {height:frameh, width:bbbwidth, left:leftmarg});
979
  }
980
 
981
 
@@ -1153,7 +1162,7 @@ function wppaMakeTheSlideHtml( mocc, bgfg, idx ) {
1153
  'z-index:10;' +
1154
  'width:'+_wppaVideoNatWidth[mocc][idx]+'px;' +
1155
  'left:'+( Math.max( 0, ( wppaGetContainerWidth( mocc ) - _wppaVideoNatWidth[mocc][idx] ) / 2 ) )+'px;' +
1156
- 'padding:0 '+wppaSlideBorderWidth+'px;' +
1157
  'box-sizing:border-box;' +
1158
  '"' +
1159
  ' >' +
3
  // Contains slideshow modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaJsSlideshowVersion = '6.6.29';
7
 
8
  // This is an entrypoint to load the slide data
9
  function wppaStoreSlideInfo(
337
  var fg = _wppaFg[mocc];
338
  var bg = 1 - fg;
339
 
340
+ // If audio video is playing, delay a running slideshow
341
  if ( ( wppaVideoPlaying[mocc] || wppaAudioPlaying[mocc] ) && _wppaSSRuns[mocc] ) {
342
  setTimeout( '_wppaNextSlide( '+mocc+', \''+mode+'\' )', 500 ); // Retry after 500 ms
343
  return;
963
  }
964
 
965
  // Size audio
966
+ var h = jQuery( audios ).height();
967
+ if ( h && h > 0 ) {
968
+ wppaAudioHeight = h;
969
+ jQuery( audios ).css({height:wppaAudioHeight,width:imgw,left:((contw - imgw ) / 2)});
970
  }
971
  }
972
 
973
+ // Size Big Browse Buttons.
974
+ var bbbwidth = parseInt( framew / 3 );
975
+ var leftmarg = bbbwidth*2;
976
+ var bbbheight;
977
+
978
+ // Make sure they do not cover the audio controlbar.
979
+ if ( audios.length > 0 ) {
980
+ bbbheight = frameh - wppaAudioHeight - wppaSlideBorderWidth - margt;
981
+ }
982
+ else {
983
+ bbbheight = frameh;
984
+ }
985
 
986
+ jQuery( '#bbb-'+mocc+'-l' ).css( {height:bbbheight, width:bbbwidth, left:0});
987
+ jQuery( '#bbb-'+mocc+'-r' ).css( {height:bbbheight, width:bbbwidth, left:leftmarg});
988
  }
989
 
990
 
1162
  'z-index:10;' +
1163
  'width:'+_wppaVideoNatWidth[mocc][idx]+'px;' +
1164
  'left:'+( Math.max( 0, ( wppaGetContainerWidth( mocc ) - _wppaVideoNatWidth[mocc][idx] ) / 2 ) )+'px;' +
1165
+ 'padding:0;' +
1166
  'box-sizing:border-box;' +
1167
  '"' +
1168
  ' >' +
js/wppa-slideshow.min.js CHANGED
@@ -1,228 +1 @@
1
- // wppa-slideshow.js
2
- //
3
- // Contains slideshow modules
4
- // Dependancies: wppa.js and default wp jQuery library
5
- //
6
-
7
- var wppaJsSlideshowVersion='6.6.28';function wppaStoreSlideInfo(mocc,id,url,size,width,height,fullname,name,desc,photoid,avgrat,discount,myrat,rateurl,linkurl,linktitle,linktarget,iwtimeout,commenthtml,iptchtml,exifhtml,lbtitle,shareurl,smhtml,ogdsc,hiresurl,videohtml,audiohtml,waittext,imagealt,posterurl){var cursor;desc=wppaRepairScriptTags(desc);if(!_wppaSlides[mocc]||'0'==id){_wppaSlides[mocc]=[];_wppaNames[mocc]=[];_wppaFullNames[mocc]=[];_wppaDsc[mocc]=[];_wppaOgDsc[mocc]=[];_wppaCurIdx[mocc]=-1;_wppaNxtIdx[mocc]=0;if(parseInt(iwtimeout)>0)_wppaTimeOut[mocc]=parseInt(iwtimeout);else _wppaTimeOut[mocc]=wppaSlideShowTimeOut;_wppaSSRuns[mocc]=false;_wppaTP[mocc]=-2;_wppaFg[mocc]=0;_wppaIsBusy[mocc]=false;_wppaFirst[mocc]=true;_wppaId[mocc]=[];_wppaAvg[mocc]=[];_wppaDisc[mocc]=[];_wppaMyr[mocc]=[];_wppaVRU[mocc]=[];_wppaLinkUrl[mocc]=[];_wppaLinkTitle[mocc]=[];_wppaLinkTarget[mocc]=[];_wppaCommentHtml[mocc]=[];_wppaIptcHtml[mocc]=[];_wppaExifHtml[mocc]=[];_wppaUrl[mocc]=[];_wppaSkipRated[mocc]=false;_wppaLbTitle[mocc]=[];_wppaDidGoto[mocc]=false;wppaSlidePause[mocc]=false;_wppaShareUrl[mocc]=[];_wppaShareHtml[mocc]=[];_wppaFilmNoMove[mocc]=false;_wppaHiresUrl[mocc]=[];_wppaIsVideo[mocc]=[];_wppaVideoHtml[mocc]=[];_wppaAudioHtml[mocc]=[];_wppaVideoNatWidth[mocc]=[];_wppaVideoNatHeight[mocc]=[];wppaVideoPlaying[mocc]=false;wppaAudioPlaying[mocc]=false;_wppaWaitTexts[mocc]=[];_wppaImageAlt[mocc]=[];}
8
- cursor='default';if(linkurl!=''){cursor='pointer';}
9
- else if(wppaLightBox[mocc]!=''){cursor='url( '+wppaImageDirectory+wppaMagnifierCursor+' ),pointer';}
10
- _wppaIsVideo[mocc][id]=(''!=videohtml);if(_wppaIsVideo[mocc][id]){_wppaSlides[mocc][id]=' alt="'+imagealt+'" class="theimg theimg-'+mocc+' big" ';if(wppaSlideVideoStart&&wppaLightBox[mocc]==''){_wppaSlides[mocc][id]+=' autoplay ';}
11
- if(posterurl.length>0){_wppaSlides[mocc][id]+=' poster="'+posterurl+'" ';}}
12
- else{_wppaSlides[mocc][id]=' src="'+url+'" alt="'+imagealt+'" class="theimg theimg-'+mocc+' big stereo" ';}
13
- if(wppaSlideSwipe){_wppaSlides[mocc][id]+=' ontouchstart="wppaTouchStart( event, this.id, '+mocc+' );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );" ';}
14
- if(!wppaAutoColumnWidth[mocc])_wppaSlides[mocc][id]+='width="'+width+'" height="'+height+'" ';if(_wppaIsVideo[mocc][id]){var controls;controls='wppa'==wppaLightBox[mocc]?'':'controls';_wppaSlides[mocc][id]+='style="'+size+'; cursor:'+cursor+'; display:none;" '+controls+'>'+videohtml+'</video>';}
15
- else{_wppaSlides[mocc][id]+='style="'+size+'; cursor:'+cursor+'; display:none; vertical-align:middle;">';}
16
- _wppaFullNames[mocc][id]=fullname;_wppaNames[mocc][id]=name;_wppaDsc[mocc][id]=desc;_wppaOgDsc[mocc][id]=ogdsc;_wppaId[mocc][id]=photoid;_wppaAvg[mocc][id]=avgrat;_wppaDisc[mocc][id]=discount;_wppaMyr[mocc][id]=myrat;_wppaVRU[mocc][id]=rateurl;_wppaLinkUrl[mocc][id]=linkurl;_wppaLinkTitle[mocc][id]=linktitle;if(linktarget!=''){_wppaLinkTarget[mocc][id]=linktarget;}
17
- else if(wppaSlideBlank[mocc]){_wppaLinkTarget[mocc][id]='_blank';}
18
- else{_wppaLinkTarget[mocc][id]='_self';}
19
- _wppaCommentHtml[mocc][id]=commenthtml;_wppaIptcHtml[mocc][id]=iptchtml;_wppaExifHtml[mocc][id]=exifhtml;_wppaUrl[mocc][id]=url;_wppaLbTitle[mocc][id]=wppaRepairScriptTags(lbtitle);_wppaShareUrl[mocc][id]=shareurl;_wppaShareHtml[mocc][id]=wppaRepairScriptTags(smhtml);_wppaHiresUrl[mocc][id]=hiresurl;_wppaVideoHtml[mocc][id]=videohtml;_wppaAudioHtml[mocc][id]=audiohtml;_wppaVideoNatWidth[mocc][id]=width;_wppaVideoNatHeight[mocc][id]=height;_wppaWaitTexts[mocc][id]=waittext;_wppaImageAlt[mocc][id]=imagealt;}
20
- function wppaSpeed(mocc,faster){if(_wppaSSRuns[mocc]){_wppaSpeed(mocc,faster);}}
21
- function wppaStopShow(mocc){if(_wppaSSRuns[mocc]){_wppaStop(mocc);}}
22
- function wppaStartStop(mocc,index){if(_wppaIsBusy[mocc]){_wppaTP[mocc]=index;}
23
- else{if(_wppaSSRuns[mocc]){_wppaStop(mocc);jQuery('#wppa-startstop-icon-'+mocc).html(wppaSvgHtml('Play-Button','48px',false,true,'0','10','50','50'));}
24
- else{_wppaStart(mocc,index);if(index==-1){jQuery('#wppa-startstop-icon-'+mocc).html(wppaSvgHtml('Pause-Button','48px',false,true,'0','10','50','50'));}}
25
- if(wppaIsMobile){jQuery('#wppa-startstop-icon-'+mocc).stop().fadeTo(10,1).fadeTo(3000,0);jQuery('.ubb-'+mocc).stop().fadeTo(10,1).fadeTo(3000,0);}}}
26
- function wppaBbb(mocc,where,act){if(!_wppaSSRuns[mocc]){_wppaBbb(mocc,where,act);}}
27
- function wppaUbb(mocc,where,act){_wppaUbb(mocc,where,act);}
28
- function wppaRateIt(mocc,value){_wppaRateIt(mocc,value);}
29
- function wppaOvlRateIt(id,value,mocc,reloadAfter){_wppaOvlRateIt(id,value,mocc,reloadAfter);}
30
- function wppaPrev(mocc){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaPrev(mocc);}}
31
- function wppaPrevN(mocc,n){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaPrevN(mocc,n);}}
32
- function wppaFirst(mocc){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaGoto(mocc,0);}}
33
- function wppaNext(mocc){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaNext(mocc);}}
34
- function wppaNextN(mocc,n){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaNextN(mocc,n);}}
35
- function wppaLast(mocc){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaGoto(mocc,_wppaSlides[mocc].length-1);}}
36
- function wppaFollowMe(mocc,idx){if(!_wppaSSRuns[mocc]){_wppaFollowMe(mocc,idx);}}
37
- function wppaLeaveMe(mocc,idx){if(!_wppaSSRuns[mocc]){_wppaLeaveMe(mocc,idx);}}
38
- function wppaGoto(mocc,idx){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaGoto(mocc,idx);}}
39
- function wppaGotoFilmNoMove(mocc,idx){_wppaDidGoto[mocc]=true;if(!_wppaSSRuns[mocc]){_wppaFilmNoMove[mocc]=true;_wppaGoto(mocc,idx);}}
40
- function wppaGotoKeepState(mocc,idx){if(_wppaNxtIdx[mocc]==idx)return;_wppaDidGoto[mocc]=true;_wppaGotoKeepState(mocc,idx);}
41
- function _wppaGotoKeepState(mocc,idx){if(_wppaSSRuns[mocc]){_wppaGotoRunning(mocc,idx);}
42
- else{_wppaGoto(mocc,idx);}}
43
- function wppaGotoRunning(mocc,idx){_wppaDidGoto[mocc]=true;_wppaGotoRunning(mocc,idx);}
44
- function wppaValidateComment(mocc){return _wppaValidateComment(mocc);}
45
- function _wppaNextSlide(mocc,mode){var fg=_wppaFg[mocc];var bg=1-fg;if((wppaVideoPlaying[mocc]||wppaAudioPlaying[mocc])&&_wppaSSRuns[mocc]){setTimeout('_wppaNextSlide( '+mocc+', \''+mode+'\' )',500);return;}
46
- wppaStopVideo(mocc);wppaStopAudio(mocc);if('auto'==mode){if(wppaSlidePause[mocc]){jQuery('#theimg'+fg+'-'+mocc).attr("title",wppaSlidePause[mocc]);jQuery('#slide_frame-'+mocc).attr("title",wppaSlidePause[mocc]);setTimeout('_wppaNextSlide( '+mocc+', "auto" )',250);return;}}
47
- else{jQuery('#slide_frame-'+mocc).removeAttr("title");}
48
- if(!_wppaSSRuns[mocc]&&'auto'==mode)return;if(!_wppaSlides[mocc])return;if(_wppaSlides[mocc].length<2&&!_wppaFirst[mocc])return;if(!_wppaSSRuns[mocc]&&'reset'==mode){_wppaSSRuns[mocc]=true;__wppaOverruleRun=false;}
49
- _wppaVoteInProgress=false;_wppaIsBusy[mocc]=true;if(_wppaSSRuns[mocc])_wppaShowMetaData(mocc,'hide');if(_wppaSSRuns[mocc]){_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]+1;if(_wppaNxtIdx[mocc]==_wppaSlides[mocc].length)_wppaNxtIdx[mocc]=0;}
50
- jQuery('#geodiv-'+mocc+'-'+_wppaId[mocc][_wppaCurIdx[mocc]]).css({display:'none'});jQuery('#geodiv-'+mocc+'-'+_wppaId[mocc][_wppaNxtIdx[mocc]]).css({display:''});if(typeof(_wppaLat)!='undefined'){if(_wppaLat[mocc]){if(_wppaLat[mocc][_wppaId[mocc][_wppaNxtIdx[mocc]]]){jQuery('#map-canvas-'+mocc).css('display','');wppaGeoInit(mocc,_wppaLat[mocc][_wppaId[mocc][_wppaNxtIdx[mocc]]],_wppaLon[mocc][_wppaId[mocc][_wppaNxtIdx[mocc]]]);}
51
- else jQuery('#map-canvas-'+mocc).css('display','none');}
52
- else jQuery('#map-canvas-'+mocc).css('display','none');}
53
- else jQuery('#map-canvas-'+mocc).css('display','none');jQuery('[id^=wppa-numbar-'+mocc+'-]').css({backgroundColor:wppaBGcolorNumbar,borderColor:wppaBcolorNumbar,fontFamily:wppaFontFamilyNumbar,fontSize:wppaFontSizeNumbar,color:wppaFontColorNumbar,fontWeight:wppaFontWeightNumbar});jQuery("#wppa-numbar-"+mocc+"-"+_wppaNxtIdx[mocc]).css({backgroundColor:wppaBGcolorNumbarActive,borderColor:wppaBcolorNumbarActive,fontFamily:wppaFontFamilyNumbarActive,fontSize:wppaFontSizeNumbarActive,color:wppaFontColorNumbarActive,fontWeight:wppaFontWeightNumbarActive});if(_wppaSlides[mocc].length>wppaNumbarMax){jQuery('[id^=wppa-numbar-'+mocc+'-]').html(' . ');jQuery("#wppa-numbar-"+mocc+"-"+_wppaNxtIdx[mocc]).html(' '+(_wppaNxtIdx[mocc]+1)+' ');}
54
- if(_wppaFirst[mocc]){if(_wppaCurIdx[mocc]!=-1){wppaMakeTheSlideHtml(mocc,'0',_wppaCurIdx[mocc]);}
55
- wppaMakeTheSlideHtml(mocc,'1',_wppaNxtIdx[mocc]);jQuery("#imagedesc-"+mocc).html(_wppaDsc[mocc][_wppaCurIdx[mocc]]);jQuery("#imagetitle-"+mocc).html(wppaMakeNameHtml(mocc));jQuery("#wppa-comments-"+mocc).html(_wppaCommentHtml[mocc][_wppaCurIdx[mocc]]);jQuery("#iptc-"+mocc).html(_wppaIptcHtml[mocc][_wppaCurIdx[mocc]]);jQuery("#exif-"+mocc).html(_wppaExifHtml[mocc][_wppaCurIdx[mocc]]);if(wppaSlideshowNavigationType=='icons'){jQuery('#prev-arrow-'+mocc).html(wppaSvgHtml('Prev-Button','1.5em',false,true));jQuery('#next-arrow-'+mocc).html(wppaSvgHtml('Next-Button','1.5em',false,true));}
56
- else{if(wppaIsMini[mocc]||wppaGetContainerWidth(mocc)<wppaMiniTreshold){jQuery('#prev-arrow-'+mocc).html('&laquo;&nbsp;'+wppaPrevP);jQuery('#next-arrow-'+mocc).html(wppaNextP+'&nbsp;&raquo;');}
57
- else{jQuery('#prev-arrow-'+mocc).html('&laquo;&nbsp;'+wppaPreviousPhoto);jQuery('#next-arrow-'+mocc).html(wppaNextPhoto+'&nbsp;&raquo;');}}
58
- if(wppaIsMini[mocc]||wppaGetContainerWidth(mocc)<wppaMiniTreshold){jQuery('#wppa-avg-rat-'+mocc).html(wppaAvgRat);jQuery('#wppa-my-rat-'+mocc).html(wppaMyRat);}
59
- else{jQuery('#wppa-avg-rat-'+mocc).html(wppaAvgRating);jQuery('#wppa-my-rat-'+mocc).html(wppaMyRating);}}
60
- else{wppaMakeTheSlideHtml(mocc,bg,_wppaNxtIdx[mocc]);}
61
- _wppaLoadSpinner(mocc);_wppaFirst[mocc]=false;_wppaCheckRewind(mocc);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);setTimeout('_wppaNextSlide_2( '+mocc+' )',10);}
62
- function _wppaNextSlide_2(mocc){var fg=_wppaFg[mocc];var bg=1-fg;var elm=document.getElementById('theimg'+bg+"-"+mocc);if(elm){if(1==elm.nodeType){if('IMG'==elm.nodeName){if(!elm.complete){setTimeout('_wppaNextSlide_2( '+mocc+' )',200);wppaConsoleLog('Retry next2');return;}}}}
63
- wppaUpdateLightboxes();_wppaUnloadSpinner(mocc);if(_wppaSSRuns[mocc]!=-1){if(!_wppaToTheSame){_wppaShowMetaData(mocc,'hide');}}
64
- _wppaFg[mocc]=1-_wppaFg[mocc];fg=_wppaFg[mocc];bg=1-fg;setTimeout('_wppaNextSlide_3( '+mocc+' )',10);}
65
- function _wppaNextSlide_3(mocc){var nw=_wppaFg[mocc];var ol=1-nw;var olIdx=_wppaCurIdx[mocc];var nwIdx=_wppaNxtIdx[mocc];var olSli="#theslide"+ol+"-"+mocc;var nwSli="#theslide"+nw+"-"+mocc;var olImg="#theimg"+ol+"-"+mocc;var nwImg="#theimg"+nw+"-"+mocc;var w=parseInt(jQuery(olSli).css('width'));var dir='nil';if(olIdx==nwIdx)dir='none';if(olIdx==nwIdx-1)dir='left';if(olIdx==nwIdx+1)dir='right';if(olIdx==_wppaSlides[mocc].length-1&&0==nwIdx&&wppaSlideWrap)dir='left';if(0==olIdx&&nwIdx==_wppaSlides[mocc].length-1&&wppaSlideWrap)dir='right';if('nil'==dir){if(olIdx<nwIdx)dir='left';else dir='right';}
66
- jQuery(olSli).css({marginLeft:0,width:w});jQuery(nwSli).css({marginLeft:0,width:w});wppaFormatSlide(mocc);switch(wppaAnimationType){case'fadeover':jQuery(olImg).fadeOut(wppaAnimationSpeed);jQuery(nwImg).fadeIn(wppaAnimationSpeed,_wppaNextSlide_4(mocc));break;case'fadeafter':jQuery(olImg).fadeOut(wppaAnimationSpeed);jQuery(nwImg).delay(wppaAnimationSpeed).fadeIn(wppaAnimationSpeed,_wppaNextSlide_4(mocc));break;case'swipe':switch(dir){case'left':jQuery(olSli).animate({marginLeft:-w+"px"},wppaAnimationSpeed,"swing");jQuery(nwSli).css({marginLeft:w+"px"});jQuery(nwImg).fadeIn(10);jQuery(nwSli).animate({marginLeft:0+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));break;case'right':jQuery(olSli).animate({marginLeft:w+"px"},wppaAnimationSpeed,"swing");jQuery(nwSli).css({marginLeft:-w+"px"});jQuery(nwImg).fadeIn(10);jQuery(nwSli).animate({marginLeft:0+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));break;case'none':jQuery(nwImg).fadeIn(10);setTimeout('_wppaNextSlide_4( '+mocc+' )',10);break;}
67
- break;case'stackon':switch(dir){case'left':jQuery(olSli).css({zIndex:80});jQuery(nwSli).css({marginLeft:w+"px",zIndex:81});jQuery(nwImg).fadeIn(10);jQuery(olImg).delay(wppaAnimationSpeed).fadeOut(10);jQuery(nwSli).animate({marginLeft:0+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));break;case'right':jQuery(olSli).css({zIndex:80});jQuery(nwSli).css({marginLeft:-w+"px",zIndex:81});jQuery(nwImg).fadeIn(10);jQuery(olImg).delay(wppaAnimationSpeed).fadeOut(10);jQuery(nwSli).animate({marginLeft:0+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));break;case'none':jQuery(nwImg).fadeIn(10);setTimeout('_wppaNextSlide_4( '+mocc+' )',10);break;}
68
- break;case'stackoff':switch(dir){case'left':jQuery(olSli).css({marginLeft:0,zIndex:81});jQuery(olSli).animate({marginLeft:-w+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));jQuery(nwSli).css({marginLeft:0,zIndex:80});jQuery(nwImg).fadeIn(10);jQuery(olImg).delay(wppaAnimationSpeed).fadeOut(10);break;case'right':jQuery(olSli).css({marginLeft:0,zIndex:81});jQuery(olSli).animate({marginLeft:w+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));jQuery(nwSli).css({marginLeft:0,zIndex:80});jQuery(nwImg).fadeIn(10);jQuery(olImg).delay(wppaAnimationSpeed).fadeOut(10);break;case'none':jQuery(nwImg).fadeIn(10);setTimeout('_wppaNextSlide_4( '+mocc+' )',10);break;}
69
- break;case'turnover':switch(dir){case'left':case'right':var nwImgWid=parseInt(jQuery(nwSli).css('width'));var nwMarLft=parseInt(jQuery(nwImg).css('marginLeft'));jQuery(olSli).css({zIndex:80});jQuery(nwSli).css({zIndex:81,width:0});jQuery(nwImg).css({maxWidth:0,marginLeft:0});jQuery(nwImg).fadeIn(10);jQuery(nwSli).animate({width:w},wppaAnimationSpeed,"swing");jQuery(nwImg).animate({maxWidth:nwImgWid,marginLeft:nwMarLft},wppaAnimationSpeed,"swing",_wppaNextSlide_4(mocc));jQuery(olImg).delay(wppaAnimationSpeed).fadeOut(10);break;case'none':jQuery(nwImg).fadeIn(10);setTimeout('_wppaNextSlide_4( '+mocc+' )',10);break;}
70
- break;default:alert('Animation type '+wppaAnimationType+' is not supported in this version');}}
71
- function _wppaNextSlide_4(mocc){var nw=_wppaFg[mocc];var ol=1-nw;var olSli="#theslide"+ol+"-"+mocc;var nwSli="#theslide"+nw+"-"+mocc;jQuery(olSli).css({zIndex:80});jQuery(nwSli).css({zIndex:81});_wppaCurIdx[mocc]=_wppaNxtIdx[mocc];wppaFormatSlide(mocc);if(wppaIsMini[mocc]||wppaGetContainerWidth(mocc)<wppaMiniTreshold){jQuery('#counter-'+mocc).html((_wppaCurIdx[mocc]+1)+' / '+_wppaSlides[mocc].length);}
72
- else{jQuery('#counter-'+mocc).html(wppaPhoto+' '+(_wppaCurIdx[mocc]+1)+' '+wppaOf+' '+_wppaSlides[mocc].length);}
73
- jQuery('#bc-pname-modal-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);jQuery('#bc-pname-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);_wppaAdjustFilmstrip(mocc);_wppaSetRatingDisplay(mocc);setTimeout('_wppaNextSlide_5( '+mocc+' )',_wppaTextDelay);}
74
- function _wppaNextSlide_5(mocc){if(!_wppaToTheSame){var imageDescHtml=_wppaDsc[mocc][_wppaCurIdx[mocc]];jQuery('#imagedesc-'+mocc).html(imageDescHtml);if(wppaHideWhenEmpty){var desc=_wppaDsc[mocc][_wppaCurIdx[mocc]];if(''==desc||'&nbsp;'==desc){jQuery('#descbox-'+mocc).css('display','none');}
75
- else{jQuery('#descbox-'+mocc).css('display','');}}
76
- jQuery("#imagetitle-"+mocc).html(wppaMakeNameHtml(mocc));jQuery("#wppa-comments-"+mocc).html(_wppaCommentHtml[mocc][_wppaCurIdx[mocc]]);jQuery("#iptc-"+mocc).html(_wppaIptcHtml[mocc][_wppaCurIdx[mocc]]);jQuery("#exif-"+mocc).html(_wppaExifHtml[mocc][_wppaCurIdx[mocc]]);jQuery("#wppa-share-"+mocc).html(_wppaShareHtml[mocc][_wppaCurIdx[mocc]]);}
77
- _wppaToTheSame=false;if(_wppaSSRuns[mocc]&&!wppaSlideWrap&&((_wppaCurIdx[mocc]+1)==_wppaSlides[mocc].length)){_wppaIsBusy[mocc]=false;_wppaStop(mocc);return;}
78
- _wppaShowMetaData(mocc,'show');if(_wppaTP[mocc]!=-2){var index=_wppaTP[mocc];_wppaTP[mocc]=-2;_wppaDidGoto[mocc]=false;_wppaIsBusy[mocc]=false;if(!wppaIsMini[mocc]){_bumpViewCount(_wppaId[mocc][_wppaCurIdx[mocc]]);}
79
- _wppaDoAutocol(mocc);wppaStartStop(mocc,index);return;}
80
- else{wppaUpdateLightboxes();if(!wppaIsMini[mocc]){var visurl=wppaGetCurrentFullUrl(mocc,_wppaCurIdx[mocc]);if(''==visurl){visurl=_wppaShareUrl[mocc][_wppaCurIdx[mocc]];}
81
- if(typeof(wppaQRUpdate)!='undefined'){wppaQRUpdate(_wppaShareUrl[mocc][_wppaCurIdx[mocc]]);}
82
- if(_wppaSlides[mocc].length>1){wppaPushStateSlide(mocc,_wppaCurIdx[mocc],visurl);}}
83
- if(_wppaSSRuns[mocc]){setTimeout('_wppaNextSlide( '+mocc+', "auto" )',wppaGetSlideshowTimeout(mocc));}}
84
- jQuery(document).trigger('glossaryTooltipReady');_wppaDidGoto[mocc]=false;_wppaIsBusy[mocc]=false;if(!wppaIsMini[mocc]){_bumpViewCount(_wppaId[mocc][_wppaCurIdx[mocc]]);}
85
- _wppaDoAutocol(mocc);wppaStopAudio(mocc);if(wppaSlideAudioStart){var elms=jQuery('.wppa-audio-'+_wppaId[mocc][_wppaCurIdx[mocc]]+'-'+mocc);if(elms.length>0){var audio=elms[elms.length-1];if(audio){if(!wppaAudioPlaying[mocc]){audio.play();}}}}
86
- jQuery(window).trigger('resize');}
87
- function wppaFormatSlide(mocc){var imgid='theimg'+_wppaFg[mocc]+'-'+mocc;var slideid='theslide'+_wppaFg[mocc]+'-'+mocc;var frameid='slide_frame-'+mocc;var contw=wppaColWidth[mocc];var elm=document.getElementById(imgid);var audios=jQuery('.wppa-audio-'+mocc);if(!elm)return;if(typeof(contw)=='undefined'||contw==0){contw=wppaGetContainerWidth(mocc);wppaColWidth[mocc]=contw;}
88
- var natwidth=elm.naturalWidth;if(typeof(natwidth)=='undefined')natwidth=parseInt(elm.style.maxWidth);var natheight=elm.naturalHeight;if(typeof(natheight)=='undefined')natheight=parseInt(elm.style.maxHeight);var aspect=wppaAspectRatio[mocc];var fullsize=wppaFullSize[mocc];var delta=wppaFullFrameDelta[mocc];var ponly=wppaPortraitOnly[mocc];var valign=wppaFullValign[mocc];if(typeof(valign)=='undefined')valign='none';var halign=wppaFullHalign[mocc];if(typeof(halign)=='undefined')halign='none';var stretch=wppaStretch;var imgw,imgh;var margl,margt;var slidew,slideh;var framew,frameh;if(ponly){imgw=contw-delta;imgh=parseInt(imgw*natheight/natwidth);margl=0;margt=0;slidew=contw;slideh=imgh+delta;framew=contw;frameh=slideh;jQuery('#'+frameid).css({width:framew,height:frameh});jQuery('#'+slideid).css({width:slidew,height:slideh});jQuery('#'+imgid).css({width:imgw,height:imgh});}
89
- else{framew=contw;if(fullsize<contw){framew=fullsize;}
90
- frameh=parseInt(framew*aspect);slidew=framew;slideh=frameh;if(stretch||natwidth>=(framew-delta)||natheight>=(frameh-delta)){if(((natheight+delta)/(natwidth+delta))>aspect){imgh=frameh-delta;imgw=parseInt(imgh*natwidth/natheight);}
91
- else{imgw=framew-delta;imgh=parseInt(imgw*natheight/natwidth);}}
92
- else{imgw=natwidth;imgh=natheight;}
93
- if(valign!='default'&&valign!='none'){switch(valign){case'top':margt=0;break;case'center':margt=parseInt((frameh-(imgh+delta))/2);break;case'bottom':margt=frameh-(imgh+delta);break;case'fit':margt=0;frameh=imgh+delta;slideh=imgh+delta;break;default:}
94
- jQuery('#'+imgid).css({marginTop:margt,marginBottom:0});}
95
- jQuery('#'+frameid).css({width:framew,height:frameh});jQuery('#'+slideid).css({width:slidew,height:slideh});jQuery('#'+imgid).css({width:imgw,height:imgh});if(valign!='default'&&valign!='none'&&halign!='none'&&halign!='default'){switch(halign){case'left':margl=0;break;case'center':margl=parseInt((contw-framew)/2);break;case'right':margl=contw-framew;break;default:}
96
- if(margl<0)margl=0;jQuery('#'+imgid).css({marginLeft:'auto',marginRight:'auto'});jQuery('#'+frameid).css({marginLeft:margl});}
97
- if(audios.length>0){var i=0;jQuery(audios[i]).css({width:imgw,left:(contw-imgw)/2});i++;}}
98
- var bbbwidth=parseInt(framew/3);var leftmarg=bbbwidth*2;jQuery('#bbb-'+mocc+'-l').css({height:frameh,width:bbbwidth,left:0});jQuery('#bbb-'+mocc+'-r').css({height:frameh,width:bbbwidth,left:leftmarg});}
99
- function wppaMakeNameHtml(mocc){var result='';if(_wppaCurIdx[mocc]<0)return'';if(wppaIsMini[mocc]||_wppaIsVideo[mocc][_wppaCurIdx[mocc]]){result=_wppaFullNames[mocc][_wppaCurIdx[mocc]];}
100
- else switch(wppaArtMonkyLink){case'file':case'zip':if(wppaArtMonkeyButton){if(_wppaFullNames[mocc][_wppaCurIdx[mocc]]){var label=_wppaFullNames[mocc][_wppaCurIdx[mocc]].split('<img');result='<input'+' type="button"'+' title="Download"'+' style="cursor:pointer;margin-bottom:0px;max-width:'+(wppaGetContainerWidth(mocc)-24)+'px;"'+' class="wppa-download-button"'+' onclick="'+(wppaIsSafari&&wppaArtMonkyLink=='file'?'wppaWindowReference = window.open();':'')+'wppaAjaxMakeOrigName( '+mocc+', \''+_wppaId[mocc][_wppaCurIdx[mocc]]+'\' );"'+' value="'+wppaDownLoad+': '+label[0]+'"'+' />';if(label[1])result+='<img'+label[1];}
101
- else{result='';}}
102
- else{result='<a'+' title="Download"'+' style="cursor:pointer;"'+' onclick="'+(wppaIsSafari&&wppaArtMonkyLink=='file'?'wppaWindowReference = window.open();':'')+'wppaAjaxMakeOrigName( '+mocc+', \''+_wppaId[mocc][_wppaCurIdx[mocc]]+'\' );"'+' >'+
103
- wppaDownLoad+': '+_wppaFullNames[mocc][_wppaCurIdx[mocc]]+'</a>';}
104
- break;case'none':result=_wppaFullNames[mocc][_wppaCurIdx[mocc]];break;default:result='';}
105
- return wppaRepairBrTags(result);}
106
- function wppaMakeTheSlideHtml(mocc,bgfg,idx){var imgVideo=(_wppaIsVideo[mocc][idx])?'video':'img';var theHtml;var url;var theTitle='title';if(wppaLightBox[mocc]=='wppa')theTitle='data-lbtitle';var mmEvents=wppaLightBox[mocc]==''?' onpause="wppaVideoPlaying['+mocc+'] = false;" onplay="wppaVideoPlaying['+mocc+'] = true;"':'';if(_wppaLinkUrl[mocc][idx]!=''){if(wppaSlideToFullpopup){theHtml='<a onclick="wppaStopAudio();wppaStopShow('+mocc+');'+_wppaLinkUrl[mocc][idx]+'" target="'+_wppaLinkTarget[mocc][idx]+'" title="'+_wppaLinkTitle[mocc][idx]+'">'+'<'+imgVideo+mmEvents+' title="'+_wppaLinkTitle[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx]+'</a>';}
107
- else{theHtml='<a onclick="_bumpClickCount(\''+_wppaId[mocc][idx]+'\');wppaStopAudio();wppaStopShow('+mocc+');window.open(\''+_wppaLinkUrl[mocc][idx]+'\', \''+_wppaLinkTarget[mocc][idx]+'\');" title="'+_wppaLinkTitle[mocc][idx]+'">'+'<'+imgVideo+mmEvents+' title="'+_wppaLinkTitle[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx]+'</a>';}}
108
- else{if(wppaLightBox[mocc]==''){theHtml='<'+imgVideo+mmEvents+' title="'+_wppaNames[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx];}
109
- else{var html='';var i=0;var set=wppaLightboxSingle[mocc]?'':'[slide-'+mocc+'-'+bgfg+']';while(i<idx){if(wppaOvlHires||(wppaLightBox[mocc]!='wppa')){url=_wppaHiresUrl[mocc][i];}
110
- else{url=wppaMakeFullsizeUrl(_wppaUrl[mocc][i]);}
111
- html+='<a href="'+url+'"'+
112
- ((_wppaIsVideo[mocc][i])?' data-videonatwidth="'+_wppaVideoNatWidth[mocc][i]+'"'+' data-videonatheight="'+_wppaVideoNatHeight[mocc][i]+'"'+' data-videohtml="'+encodeURI(_wppaVideoHtml[mocc][i])+'"':'')+
113
- ((_wppaAudioHtml[mocc][i]!='')?' data-audiohtml="'+encodeURI(_wppaAudioHtml[mocc][i])+'"':'')+' '+theTitle+'="'+_wppaLbTitle[mocc][i]+'"'+' '+wppaRel+'="'+wppaLightBox[mocc]+set+'"></a>';i++;}
114
- if(wppaOvlHires||(wppaLightBox[mocc]!='wppa')){url=_wppaHiresUrl[mocc][idx];}
115
- else{url=wppaMakeFullsizeUrl(_wppaUrl[mocc][idx]);}
116
- html+='<a href="'+url+'"'+' onclick="wppaStopAudio();wppaStopShow('+mocc+');"'+' target="'+_wppaLinkTarget[mocc][idx]+'"'+
117
- ((_wppaIsVideo[mocc][i])?' data-videonatwidth="'+_wppaVideoNatWidth[mocc][idx]+'"'+' data-videonatheight="'+_wppaVideoNatHeight[mocc][idx]+'"'+' data-videohtml="'+encodeURI(_wppaVideoHtml[mocc][idx])+'"':'')+
118
- ((_wppaAudioHtml[mocc][i]!='')?' data-audiohtml="'+encodeURI(_wppaAudioHtml[mocc][idx])+'"':'')+' '+theTitle+'="'+_wppaLbTitle[mocc][idx]+'"'+' '+wppaRel+'="'+wppaLightBox[mocc]+set+'">'+'<'+imgVideo+mmEvents+' title="'+_wppaLinkTitle[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx]+'</a>';i=idx+1;while(i<_wppaUrl[mocc].length){if(wppaOvlHires||(wppaLightBox[mocc]!='wppa')){url=_wppaHiresUrl[mocc][i];}
119
- else{url=wppaMakeFullsizeUrl(_wppaUrl[mocc][i]);}
120
- html+='<a href="'+url+'"'+
121
- ((_wppaIsVideo[mocc][i])?' data-videonatwidth="'+_wppaVideoNatWidth[mocc][i]+'"'+' data-videonatheight="'+_wppaVideoNatHeight[mocc][i]+'"'+' data-videohtml="'+encodeURI(_wppaVideoHtml[mocc][i])+'"':'')+
122
- ((_wppaAudioHtml[mocc][i]!='')?' data-audiohtml="'+encodeURI(_wppaAudioHtml[mocc][i])+'"':'')+' '+theTitle+'="'+_wppaLbTitle[mocc][i]+'"'+' '+wppaRel+'="'+wppaLightBox[mocc]+set+'"></a>';i++;}
123
- theHtml=html;}}
124
- if(_wppaAudioHtml[mocc][idx]!=''){theHtml+='<audio'+' controls'+' id="wppa-audio-'+_wppaId[mocc][idx]+'-'+mocc+'"'+' class="wppa-audio-'+mocc+' wppa-audio-'+_wppaId[mocc][idx]+'-'+mocc+'"'+' data-from="wppa"'+' onplay="wppaAudioPlaying['+mocc+'] = true;"'+' onpause="wppaAudioPlaying['+mocc+'] = false"'+' style="'+'position:relative;'+'top:-'+(wppaAudioHeight+wppaSlideBorderWidth)+'px;'+'z-index:10;'+'width:'+_wppaVideoNatWidth[mocc][idx]+'px;'+'left:'+(Math.max(0,(wppaGetContainerWidth(mocc)-_wppaVideoNatWidth[mocc][idx])/2))+'px;'+'padding:0 '+wppaSlideBorderWidth+'px;'+'box-sizing:border-box;'+'"'+' >'+
125
- _wppaAudioHtml[mocc][idx]+'</audio>';}
126
- theHtml=theHtml.replace(/title=""/g,'');jQuery("#theslide"+bgfg+"-"+mocc).html(theHtml);}
127
- function _wppaAdjustFilmstrip(mocc){if(!document.getElementById('wppa-filmstrip-'+mocc))return;jQuery('.wppa-film-'+mocc).removeClass('wppa-filmthumb-active');if(!_wppaFilmNoMove[mocc]){var xoffset;xoffset=wppaFilmStripLength[mocc]/2-(_wppaCurIdx[mocc]+0.5+wppaPreambule)*wppaThumbnailPitch[mocc]-wppaFilmStripMargin[mocc];if(wppaFilmShowGlue)xoffset-=(wppaFilmStripMargin[mocc]*2+2);jQuery('#wppa-filmstrip-'+mocc).stop().animate({marginLeft:xoffset+'px'},wppaAnimationSpeed);}
128
- else{_wppaFilmNoMove[mocc]=false;}
129
- if(_wppaCurIdx[mocc]!=-1){var from=_wppaCurIdx[mocc]-10;if(from<0)from=0;var to=_wppaCurIdx[mocc]+10;if(to>_wppaSlides[mocc].length)to=_wppaSlides[mocc].length;var index=0;while(index<_wppaSlides[mocc].length){var html=jQuery('#film_wppatnf_'+_wppaId[mocc][index]+'_'+mocc).html();if(html){if(from<=index<=to){if(html.search('<!--')!=-1){html=html.replace('<!--','');html=html.replace('-->','');jQuery('#film_wppatnf_'+_wppaId[mocc][index]+'_'+mocc).html(html);}}
130
- if(jQuery('#wppa-film-'+index+'-'+mocc).attr('data-title')!=''){jQuery('#wppa-film-'+index+'-'+mocc).attr('title',jQuery('#wppa-film-'+index+'-'+mocc).attr('data-title'));jQuery('#wppa-pre-'+index+'-'+mocc).attr('title',jQuery('#wppa-film-'+index+'-'+mocc).attr('data-title'));}
131
- else if(wppaFilmThumbTitle!=''&&_wppaCurIdx[mocc]==index){jQuery('#wppa-film-'+index+'-'+mocc).attr('title',wppaFilmThumbTitle);jQuery('#wppa-pre-'+index+'-'+mocc).attr('title',wppaFilmThumbTitle);}
132
- else{jQuery('#wppa-film-'+index+'-'+mocc).attr('title',wppaClickToView+' '+_wppaNames[mocc][index]);jQuery('#wppa-pre-'+index+'-'+mocc).attr('title',wppaClickToView+' '+_wppaNames[mocc][index]);}}
133
- index++;}}
134
- jQuery('#wppa-film-'+_wppaCurIdx[mocc]+'-'+mocc).addClass('wppa-filmthumb-active');}
135
- function _wppaNext(mocc){if(!wppaSlideWrap&&_wppaCurIdx[mocc]==(_wppaSlides[mocc].length-1))return;_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]+1;if(_wppaNxtIdx[mocc]==_wppaSlides[mocc].length)_wppaNxtIdx[mocc]=0;_wppaNextSlide(mocc,0);}
136
- function _wppaNextN(mocc,n){if(!wppaSlideWrap&&_wppaCurIdx[mocc]>=(_wppaSlides[mocc].length-n))return;_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]+n;while(_wppaNxtIdx[mocc]>=_wppaSlides[mocc].length)_wppaNxtIdx[mocc]-=_wppaSlides[mocc].length;_wppaNextSlide(mocc,0);}
137
- function _wppaNextOnCallback(mocc){if(!wppaSlideWrap&&_wppaCurIdx[mocc]==(_wppaSlides[mocc].length-1))return;if(_wppaSkipRated[mocc]){var now=_wppaCurIdx[mocc];var idx=now+1;if(idx==_wppaSlides[mocc].length)idx=0;var next=idx;if(_wppaMyr[mocc][next]!=0){idx++;if(idx==_wppaSlides[mocc].length)idx=0;while(idx!=next&&_wppaMyr[mocc][idx]!=0){idx++;if(idx==_wppaSlides[mocc].length)idx=0;}
138
- next=idx;}
139
- _wppaNxtIdx[mocc]=next;}
140
- else{_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]+1;if(_wppaNxtIdx[mocc]==_wppaSlides[mocc].length)_wppaNxtIdx[mocc]=0;}
141
- _wppaNextSlide(mocc,0);}
142
- function _wppaPrev(mocc){if(!wppaSlideWrap&&_wppaCurIdx[mocc]==0)return;_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]-1;if(_wppaNxtIdx[mocc]<0)_wppaNxtIdx[mocc]=_wppaSlides[mocc].length-1;_wppaNextSlide(mocc,0);}
143
- function _wppaPrevN(mocc,n){if(!wppaSlideWrap&&_wppaCurIdx[mocc]<n)return;_wppaNxtIdx[mocc]=_wppaCurIdx[mocc]-n;while(_wppaNxtIdx[mocc]<0)_wppaNxtIdx[mocc]+=_wppaSlides[mocc].length;_wppaNextSlide(mocc,0);}
144
- function _wppaGoto(mocc,idx){_wppaToTheSame=(_wppaNxtIdx[mocc]==idx);_wppaNxtIdx[mocc]=idx;_wppaNextSlide(mocc,0);}
145
- function _wppaGotoRunning(mocc,idx){if(_wppaIsBusy[mocc]){setTimeout('_wppaGotoRunning( '+mocc+','+idx+' )',10);return;}
146
- wppaConsoleLog('GotoRunning '+mocc);_wppaSSRuns[mocc]=false;_wppaToTheSame=(_wppaNxtIdx[mocc]==idx);_wppaNxtIdx[mocc]=idx;__wppaOverruleRun=true;_wppaNextSlide(mocc,"manual");_wppaGotoContinue(mocc);}
147
- function _wppaGotoContinue(mocc){if(_wppaIsBusy[mocc]){setTimeout('_wppaGotoContinue( '+mocc+' )',10);return;}
148
- setTimeout('_wppaNextSlide( '+mocc+', "reset" )',wppaGetSlideshowTimeout(mocc)+10);}
149
- function _wppaStart(mocc,idx){if(wppaSlideshowNavigationType=='icons'){_wppaStartIcons(mocc,idx);}
150
- else{_wppaStartText(mocc,idx);}}
151
- function _wppaStartIcons(mocc,idx){if(idx==-2){var i=0;idx=0;_wppaSkipRated[mocc]=true;if(_wppaMyr[mocc][i]!=0){while(i<_wppaSlides[mocc].length){if(idx==0&&_wppaMyr[mocc][i]==0)idx=i;i++;}}}
152
- if(idx>-1){jQuery('#startstop-'+mocc).html(wppaSvgHtml('Play-Button','1.5em',false,true,'0','10','20','50'));jQuery('#speed0-'+mocc).hide();jQuery('#speed1-'+mocc).hide();_wppaNxtIdx[mocc]=idx;_wppaCurIdx[mocc]=idx;_wppaNextSlide(mocc,0);_wppaShowMetaData(mocc,'show');}
153
- else{_wppaSSRuns[mocc]=true;_wppaNextSlide(mocc,0);jQuery('#startstop-'+mocc).html(wppaSvgHtml('Pause-Button','1.5em',false,true,'0','10','20','50'));jQuery('#speed0-'+mocc).show();jQuery('#speed1-'+mocc).show();_wppaShowMetaData(mocc,'hide');if(jQuery('#bc-pname-modal-'+mocc)){jQuery('#bc-pname-modal-'+mocc).html(wppaSlideShow);}
154
- else{jQuery('#bc-pname-'+mocc).html(wppaSlideShow);}}
155
- _wppaSetRatingDisplay(mocc);}
156
- function _wppaStartText(mocc,idx){if(idx==-2){var i=0;idx=0;_wppaSkipRated[mocc]=true;if(_wppaMyr[mocc][i]!=0){while(i<_wppaSlides[mocc].length){if(idx==0&&_wppaMyr[mocc][i]==0)idx=i;i++;}}}
157
- if(idx>-1){jQuery('#startstop-'+mocc).html(wppaStart+' '+wppaSlideShow);jQuery('#speed0-'+mocc).css('display','none');jQuery('#speed1-'+mocc).css('display','none');_wppaNxtIdx[mocc]=idx;_wppaCurIdx[mocc]=idx;_wppaNextSlide(mocc,0);_wppaShowMetaData(mocc,'show');}
158
- else{_wppaSSRuns[mocc]=true;_wppaNextSlide(mocc,0);jQuery('#startstop-'+mocc).html(wppaStop);jQuery('#speed0-'+mocc).css('display','inline');jQuery('#speed1-'+mocc).css('display','inline');_wppaShowMetaData(mocc,'hide');if(jQuery('#bc-pname-modal-'+mocc)){jQuery('#bc-pname-modal-'+mocc).html(wppaSlideShow);}
159
- else{jQuery('#bc-pname-'+mocc).html(wppaSlideShow);}}
160
- _wppaSetRatingDisplay(mocc);}
161
- function _wppaStop(mocc){if(wppaSlideshowNavigationType=='icons'){_wppaStopIcons(mocc);}
162
- else{_wppaStopText(mocc);}}
163
- function _wppaStopIcons(mocc){_wppaSSRuns[mocc]=false;jQuery('#startstop-'+mocc).html(wppaSvgHtml('Play-Button','1.5em',false,true));jQuery('#speed0-'+mocc).hide();jQuery('#speed1-'+mocc).hide();_wppaShowMetaData(mocc,'show');if(jQuery('#bc-pname-modal-'+mocc)){jQuery('#bc-pname-modal-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}
164
- else{jQuery('#bc-pname-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}}
165
- function _wppaStopText(mocc){_wppaSSRuns[mocc]=false;jQuery('#startstop-'+mocc).html(wppaStart+' '+wppaSlideShow);jQuery('#speed0-'+mocc).css('display','none');jQuery('#speed1-'+mocc).css('display','none');_wppaShowMetaData(mocc,'show');if(jQuery('#bc-pname-modal-'+mocc)){jQuery('#bc-pname-modal-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}
166
- else{jQuery('#bc-pname-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}}
167
- function _wppaSpeed(mocc,faster){if(_wppaTimeOut[mocc]=='random'){return;}
168
- if(faster){if(_wppaTimeOut[mocc]>500)_wppaTimeOut[mocc]/=1.5;}
169
- else{if(_wppaTimeOut[mocc]<60000)_wppaTimeOut[mocc]*=1.5;}}
170
- function _wppaLoadSpinner(mocc){return;}
171
- function _wppaUnloadSpinner(mocc){jQuery('#wppa-slide-spin-'+mocc).stop().fadeOut();setTimeout(function(){jQuery('#wppa-slide-spin-'+mocc).stop().fadeOut();},1000);}
172
- function _wppaCheckRewind(mocc){var n_images;var n_diff;var l_substrate;var x_marg;if(!document.getElementById('wppa-filmstrip-'+mocc))return;n_diff=Math.abs(_wppaCurIdx[mocc]-_wppaNxtIdx[mocc]);if(n_diff<=wppaFilmPageSize[mocc])return;var n_images=wppaFilmStripLength[mocc]/wppaThumbnailPitch[mocc];if(n_diff>=((n_images+1)/2)){l_substrate=wppaThumbnailPitch[mocc]*_wppaSlides[mocc].length;if(wppaFilmShowGlue)l_substrate+=(2+2*wppaFilmStripMargin[mocc]);x_marg=parseInt(jQuery('#wppa-filmstrip-'+mocc).css('margin-left'));if(_wppaNxtIdx[mocc]>_wppaCurIdx[mocc]){x_marg-=l_substrate;}
173
- else{x_marg+=l_substrate;}
174
- jQuery('#wppa-filmstrip-'+mocc).css('margin-left',x_marg+'px');}}
175
- function _wppaSetRatingDisplay(mocc){if(!document.getElementById('wppa-rating-'+mocc)){return;}
176
- var idx,avg,tmp,cnt,dsc,myr,dsctxt;avg=_wppaAvg[mocc][_wppaCurIdx[mocc]];if(typeof(avg)=='undefined')return;if(wppaRatingDisplayType=='likes'){var likeText=avg.split("|");jQuery('#wppa-like-'+mocc).attr('title',likeText[0]);jQuery('#wppa-liketext-'+mocc).html(likeText[1]);if(_wppaMyr[mocc][_wppaCurIdx[mocc]]=='1'){jQuery('#wppa-like-'+mocc).attr('src',wppaImageDirectory+'thumbdown.png');}
177
- else{jQuery('#wppa-like-'+mocc).attr('src',wppaImageDirectory+'thumbup.png');}
178
- return;}
179
- tmp=avg.split('|');avg=tmp[0];cnt=tmp[1];dsc=_wppaDisc[mocc][_wppaCurIdx[mocc]];myr=_wppaMyr[mocc][_wppaCurIdx[mocc]];if(wppaRatingDisplayType=='graphic'){_wppaSetRd(mocc,avg,'#wppa-avg-');_wppaSetRd(mocc,myr,'#wppa-rate-');if(myr==0){jQuery('#wppa-dislike-'+mocc).css('display','inline');jQuery('#wppa-dislike-imgdiv-'+mocc).css('display','inline');if(document.getElementById('wppa-dislike-'+mocc))jQuery('#wppa-filler-'+mocc).css('display','none');jQuery('#wppa-dislike-'+mocc).stop().fadeTo(100,wppaStarOpacity);}
180
- else{jQuery('#wppa-dislike-'+mocc).css('display','none');jQuery('#wppa-dislike-imgdiv-'+mocc).css('display','none');jQuery('#wppa-filler-'+mocc).css('display','inline');jQuery('#wppa-filler-'+mocc).stop().fadeTo(100,wppaStarOpacity);jQuery('#wppa-filler-'+mocc).attr('title',dsc);}}
181
- else{jQuery('#wppa-numrate-avg-'+mocc).html(avg+' ( '+cnt+' ) ');if(wppaRatingOnce&&myr>0){jQuery('#wppa-numrate-mine-'+mocc).html(myr);}
182
- else if(myr<0){jQuery('#wppa-numrate-mine-'+mocc).html(' dislike');}
183
- else{var htm='';for(i=1;i<=wppaRatingMax;i++){if(myr==i){htm+='<span style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+mocc+', '+i+' )">&nbsp;'+i+'&nbsp;</span>';}
184
- else{if(myr>(i-1)&&myr<i)htm+='&nbsp;( '+myr+' )&nbsp;';htm+='<span style="cursor:pointer;" onclick="_wppaRateIt( '+mocc+', '+i+' )" onmouseover="this.style.fontWeight=\'bold\'" onmouseout="this.style.fontWeight=\'normal\'" >&nbsp;'+i+'&nbsp;</span>';}}
185
- jQuery('#wppa-numrate-mine-'+mocc).html(htm);}
186
- if(myr==0){jQuery('#wppa-dislike-'+mocc).css('display','inline');jQuery('#wppa-dislike-imgdiv-'+mocc).css('display','inline');jQuery('#wppa-filler-'+mocc).css('display','none');jQuery('#wppa-dislike-'+mocc).stop().fadeTo(100,wppaStarOpacity);}
187
- else{jQuery('#wppa-dislike-'+mocc).css('display','none');jQuery('#wppa-dislike-imgdiv-'+mocc).css('display','none');jQuery('#wppa-filler-'+mocc).css('display','inline');}
188
- jQuery('#wppa-discount-'+mocc).html(dsc+'&bull; ');jQuery('#wppa-filler-'+mocc).css('display','none');}
189
- if(myr==0){jQuery('#wppa-vote-button-'+mocc).val(wppaVoteForMe);}
190
- else{jQuery('#wppa-vote-button-'+mocc).val(wppaVotedForMe);}
191
- jQuery('#wppa-vote-count-'+mocc).html(cnt);}
192
- function wppaGetDislikeText(dsc,myr,incmine){return dsc;}
193
- function _wppaSetRd(mocc,avg,where){var idx1=parseInt(avg);var idx2=idx1+1;var frac=avg-idx1;var opac=wppaStarOpacity+frac*(1.0-wppaStarOpacity);var ilow=1;var ihigh=wppaRatingMax;for(idx=ilow;idx<=ihigh;idx++){if(where=='#wppa-rate-'||where=='.wppa-rate-'){if(jQuery(where+mocc+'-'+idx).attr('src')!=wppaImageDirectory+'star.ico'){jQuery(where+mocc+'-'+idx).attr('src',wppaImageDirectory+'star.ico');}}
194
- if(idx<=idx1){jQuery(where+mocc+'-'+idx).stop().fadeTo(100,1.0);}
195
- else if(idx==idx2){jQuery(where+mocc+'-'+idx).stop().fadeTo(100,opac);}
196
- else{jQuery(where+mocc+'-'+idx).stop().fadeTo(100,wppaStarOpacity);}}}
197
- function _wppaFollowMe(mocc,idx){if(_wppaSSRuns[mocc])return;if(_wppaMyr[mocc][_wppaCurIdx[mocc]]!=0&&wppaRatingOnce)return;if(_wppaMyr[mocc][_wppaCurIdx[mocc]]<0)return;if(_wppaVoteInProgress)return;_wppaSetRd(mocc,idx,'#wppa-rate-');}
198
- function wppaOvlFollowMe(mocc,idx,val){if(val)return;_wppaSetRd(mocc,idx,'.wppa-rate-');}
199
- function _wppaLeaveMe(mocc,idx){if(_wppaSSRuns[mocc])return;if(_wppaMyr[mocc][_wppaCurIdx[mocc]]!=0&&wppaRatingOnce)return;if(_wppaMyr[mocc][_wppaCurIdx[mocc]]<0)return;if(_wppaVoteInProgress)return;_wppaSetRd(mocc,_wppaMyr[mocc][_wppaCurIdx[mocc]],'#wppa-rate-');}
200
- function wppaOvlLeaveMe(mocc,idx,val){_wppaSetRd(mocc,val,'.wppa-rate-');}
201
- function _wppaValidateComment(mocc,photoid){if(!photoid)photoid=_wppaId[mocc][_wppaCurIdx[mocc]];var name=jQuery('#wppa-comname-'+mocc).val();if(name.length<1){alert(wppaPleaseName);return false;}
202
- if(wppaEmailRequired=='required'||wppaEmailRequired=='optional'){var email=jQuery('#wppa-comemail-'+mocc).val();if(wppaEmailRequired=='optional'&&email.length==0){return true;}
203
- var atpos=email.indexOf("@");var dotpos=email.lastIndexOf(".");if(atpos<1||dotpos<atpos+2||dotpos+2>=email.length){alert(wppaPleaseEmail);return false;}}
204
- var text=jQuery('#wppa-comment-'+mocc).val();if(text.length<1){alert(wppaPleaseComment);return false;}
205
- return true;}
206
- function _wppaGo(url){document.location=url;}
207
- function _wppaBbb(mocc,where,act){if(_wppaSSRuns[mocc])return;var elm='#bbb-'+mocc+'-'+where;switch(act){case'show':if(where=='l')jQuery(elm).attr('title',wppaPreviousPhoto);if(where=='r')jQuery(elm).attr('title',wppaNextPhoto);jQuery('.bbb-'+mocc).css('cursor','pointer');break;case'hide':jQuery('.bbb-'+mocc).removeAttr('title');jQuery('.bbb-'+mocc).css('cursor','default');break;case'click':if(where=='l')wppaPrev(mocc);if(where=='r')wppaNext(mocc);break;default:alert('Unimplemented instruction: '+act+' on: '+elm);}}
208
- function _wppaUbb(mocc,where,act){var elm='#ubb-'+mocc+'-'+where;switch(act){case'show':if(where=='l')jQuery(elm).attr('title',wppaPreviousPhoto);if(where=='r')jQuery(elm).attr('title',wppaNextPhoto);jQuery('.ubb-'+mocc).css('cursor','pointer');jQuery('.ubb-'+mocc).stop().fadeTo(200,0.8);jQuery('#wppa-startstop-icon-'+mocc).stop().fadeTo(200,0.8);break;case'hide':jQuery('.ubb-'+mocc).removeAttr('title');jQuery('.ubb-'+mocc).css('cursor','default');jQuery('.ubb-'+mocc).stop().fadeTo(200,0);jQuery('#wppa-startstop-icon-'+mocc).stop().fadeTo(200,0);break;case'click':var idx;if(where=='l'){idx=_wppaCurIdx[mocc]-1;if(idx<0){if(!wppaSlideWrap){return;}
209
- idx=_wppaSlides[mocc].length-1;}}
210
- if(where=='r'){idx=_wppaCurIdx[mocc]+1;if(idx==_wppaSlides[mocc].length){if(!wppaSlideWrap){return;}
211
- idx=0;}}
212
- if(wppaIsMobile){jQuery('.ubb-'+mocc).stop().fadeTo(200,1).fadeTo(1000,0);jQuery('#wppa-startstop-icon-'+mocc).stop().fadeTo(200,1).fadeTo(1000,0);}
213
- wppaGotoKeepState(mocc,idx);break;default:alert('Unimplemented instruction: '+act+' on: '+elm);}}
214
- function wppaOpenComments(mocc){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-comtable-wrap-'+mocc).css('display','block');jQuery('#wppa-comform-wrap-'+mocc).css('display','block');jQuery('#wppa-comfooter-wrap-'+mocc).css('display','none');wppaColWidth[mocc]=0;setTimeout('_wppaDoAutocol( '+mocc+' )',100);}
215
- function _wppaShowMetaData(mocc,key){if(!_wppaSSRuns[mocc]&&!__wppaOverruleRun){if(key=='show'){if(wppaAutoOpenComments){jQuery('#wppa-comtable-wrap-'+mocc).css('display','block');jQuery('#wppa-comform-wrap-'+mocc).css('display','block');jQuery('#wppa-comfooter-wrap-'+mocc).css('display','none');}
216
- if(_wppaCurIdx[mocc]!=0)
217
- jQuery('.wppa-first-'+mocc).show();if(_wppaCurIdx[mocc]!=(_wppaSlides[mocc].length-1))
218
- jQuery('.wppa-last-'+mocc).show();if(wppaShareHideWhenRunning){jQuery('#wppa-share-'+mocc).css('display','');}
219
- wppaFotomotoToolbar(mocc,_wppaHiresUrl[mocc][_wppaCurIdx[mocc]]);}
220
- else{jQuery('#wppa-comtable-wrap-'+mocc).css('display','none');jQuery('#wppa-comform-wrap-'+mocc).css('display','none');jQuery('#wppa-comfooter-wrap-'+mocc).css('display','block');wppaFotomotoHide(mocc);}}
221
- else{if(key=='show'){if(!wppaFotomotoHideWhenRunning)wppaFotomotoToolbar(mocc,_wppaHiresUrl[mocc][_wppaCurIdx[mocc]]);}
222
- else{if(wppaShareHideWhenRunning){jQuery('#wppa-share-'+mocc).css('display','none');}}}
223
- if(key=='show'){jQuery("#imagedesc-"+mocc).css('visibility','visible');jQuery("#imagetitle-"+mocc).css('visibility','visible');jQuery("#counter-"+mocc).css('visibility','visible');jQuery("#iptccontent-"+mocc).css('visibility','visible');jQuery("#exifcontent-"+mocc).css('visibility','visible');}
224
- else{jQuery("#counter-"+mocc).css('visibility','hidden');jQuery('.wppa-first-'+mocc).hide();jQuery('.wppa-last-'+mocc).hide();jQuery("#iptccontent-"+mocc).css('visibility','hidden');jQuery("#exifcontent-"+mocc).css('visibility','hidden');}}
225
- function wppaGetSlideshowTimeout(mocc){var time;if(_wppaTimeOut[mocc]=='random'){var min=2*wppaAnimationSpeed;var max=7*wppaAnimationSpeed;time=Math.floor(Math.random()*(max-min+1))+min;}
226
- else{time=_wppaTimeOut[mocc];}
227
- return time;}
228
- wppaConsoleLog('wppa-slideshow.js version '+wppaJsSlideshowVersion+' loaded.','force');
1
+ function wppaStoreSlideInfo(p,a,e,t,i,w,r,o,n,l,d,s,u,_,m,c,y,h,S,x,f,g,I,j,Q,b,v,N,T,C,k){var R;if(n=wppaRepairScriptTags(n),_wppaSlides[p]&&"0"!=a||(_wppaSlides[p]=[],_wppaNames[p]=[],_wppaFullNames[p]=[],_wppaDsc[p]=[],_wppaOgDsc[p]=[],_wppaCurIdx[p]=-1,_wppaNxtIdx[p]=0,parseInt(h)>0?_wppaTimeOut[p]=parseInt(h):_wppaTimeOut[p]=wppaSlideShowTimeOut,_wppaSSRuns[p]=!1,_wppaTP[p]=-2,_wppaFg[p]=0,_wppaIsBusy[p]=!1,_wppaFirst[p]=!0,_wppaId[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]=[]),R="default",""!=m?R="pointer":""!=wppaLightBox[p]&&(R="url( "+wppaImageDirectory+wppaMagnifierCursor+" ),pointer"),_wppaIsVideo[p][a]=""!=v,_wppaIsVideo[p][a]?(_wppaSlides[p][a]=' alt="'+C+'" class="theimg theimg-'+p+' big" ',wppaSlideVideoStart&&""==wppaLightBox[p]&&(_wppaSlides[p][a]+=" autoplay "),k.length>0&&(_wppaSlides[p][a]+=' poster="'+k+'" ')):_wppaSlides[p][a]=' src="'+e+'" alt="'+C+'" 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]){var L;L="wppa"==wppaLightBox[p]?"":"controls",_wppaSlides[p][a]+='style="'+t+"; cursor:"+R+'; display:none;" '+L+">"+v+"</video>"}else _wppaSlides[p][a]+='style="'+t+"; cursor:"+R+'; display:none; vertical-align:middle;">';_wppaFullNames[p][a]=r,_wppaNames[p][a]=o,_wppaDsc[p][a]=n,_wppaOgDsc[p][a]=Q,_wppaId[p][a]=l,_wppaAvg[p][a]=d,_wppaDisc[p][a]=s,_wppaMyr[p][a]=u,_wppaVRU[p][a]=_,_wppaLinkUrl[p][a]=m,_wppaLinkTitle[p][a]=c,""!=y?_wppaLinkTarget[p][a]=y:wppaSlideBlank[p]?_wppaLinkTarget[p][a]="_blank":_wppaLinkTarget[p][a]="_self",_wppaCommentHtml[p][a]=S,_wppaIptcHtml[p][a]=x,_wppaExifHtml[p][a]=f,_wppaUrl[p][a]=e,_wppaLbTitle[p][a]=wppaRepairScriptTags(g),_wppaShareUrl[p][a]=I,_wppaShareHtml[p][a]=wppaRepairScriptTags(j),_wppaHiresUrl[p][a]=b,_wppaVideoHtml[p][a]=v,_wppaAudioHtml[p][a]=N,_wppaVideoNatWidth[p][a]=i,_wppaVideoNatHeight[p][a]=w,_wppaWaitTexts[p][a]=T,_wppaImageAlt[p][a]=C}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","48px",!1,!0,"0","10","50","50"))):(_wppaStart(p,a),-1==a&&jQuery("#wppa-startstop-icon-"+p).html(wppaSvgHtml("Pause-Button","48px",!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(p,a):_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=_wppaFg[p],t=1-e;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"+e+"-"+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");(_wppaSSRuns[p]||"auto"!=a)&&_wppaSlides[p]&&(_wppaSlides[p].length<2&&!_wppaFirst[p]||(_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]&&_wppaLat[p][_wppaId[p][_wppaNxtIdx[p]]]?(jQuery("#map-canvas-"+p).css("display",""),wppaGeoInit(p,_wppaLat[p][_wppaId[p][_wppaNxtIdx[p]]],_wppaLon[p][_wppaId[p][_wppaNxtIdx[p]]])):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&&(jQuery("[id^=wppa-numbar-"+p+"-]").html(" . "),jQuery("#wppa-numbar-"+p+"-"+_wppaNxtIdx[p]).html(" "+(_wppaNxtIdx[p]+1)+" ")),_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)),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?(jQuery("#prev-arrow-"+p).html(wppaSvgHtml("Prev-Button","1.5em",!1,!0)),jQuery("#next-arrow-"+p).html(wppaSvgHtml("Next-Button","1.5em",!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,t,_wppaNxtIdx[p]),_wppaLoadSpinner(p),_wppaFirst[p]=!1,_wppaCheckRewind(p),wppaColWidth[p]=0,_wppaDoAutocol(p),setTimeout("_wppaNextSlide_2( "+p+" )",10)))}}function _wppaNextSlide_2(p){var a=_wppaFg[p],e=1-a,t=document.getElementById("theimg"+e+"-"+p);if(t&&1==t.nodeType&&"IMG"==t.nodeName&&!t.complete)return setTimeout("_wppaNextSlide_2( "+p+" )",200),void wppaConsoleLog("Retry next2");wppaUpdateLightboxes(),_wppaUnloadSpinner(p),-1!=_wppaSSRuns[p]&&(_wppaToTheSame||_wppaShowMetaData(p,"hide")),_wppaFg[p]=1-_wppaFg[p],e=1-(a=_wppaFg[p]),setTimeout("_wppaNextSlide_3( "+p+" )",10)}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")),d="nil";switch(t==i&&(d="none"),t==i-1&&(d="left"),t==i+1&&(d="right"),t==_wppaSlides[p].length-1&&0==i&&wppaSlideWrap&&(d="left"),0==t&&i==_wppaSlides[p].length-1&&wppaSlideWrap&&(d="right"),"nil"==d&&(d=t<i?"left":"right"),jQuery(w).css({marginLeft:0,width:l}),jQuery(r).css({marginLeft:0,width:l}),wppaFormatSlide(p),wppaAnimationType){case"fadeover":jQuery(o).fadeOut(wppaAnimationSpeed),jQuery(n).fadeIn(wppaAnimationSpeed,_wppaNextSlide_4(p));break;case"fadeafter":jQuery(o).fadeOut(wppaAnimationSpeed),jQuery(n).delay(wppaAnimationSpeed).fadeIn(wppaAnimationSpeed,_wppaNextSlide_4(p));break;case"swipe":switch(d){case"left":jQuery(w).animate({marginLeft:-l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:l+"px"}),jQuery(n).fadeIn(10),jQuery(r).animate({marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":jQuery(w).animate({marginLeft:l+"px"},wppaAnimationSpeed,"swing"),jQuery(r).css({marginLeft:-l+"px"}),jQuery(n).fadeIn(10),jQuery(r).animate({marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":jQuery(n).fadeIn(10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;case"stackon":switch(d){case"left":jQuery(w).css({zIndex:80}),jQuery(r).css({marginLeft:l+"px",zIndex:81}),jQuery(n).fadeIn(10),jQuery(o).delay(wppaAnimationSpeed).fadeOut(10),jQuery(r).animate({marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"right":jQuery(w).css({zIndex:80}),jQuery(r).css({marginLeft:-l+"px",zIndex:81}),jQuery(n).fadeIn(10),jQuery(o).delay(wppaAnimationSpeed).fadeOut(10),jQuery(r).animate({marginLeft:"0px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p));break;case"none":jQuery(n).fadeIn(10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;case"stackoff":switch(d){case"left":jQuery(w).css({marginLeft:0,zIndex:81}),jQuery(w).animate({marginLeft:-l+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p)),jQuery(r).css({marginLeft:0,zIndex:80}),jQuery(n).fadeIn(10),jQuery(o).delay(wppaAnimationSpeed).fadeOut(10);break;case"right":jQuery(w).css({marginLeft:0,zIndex:81}),jQuery(w).animate({marginLeft:l+"px"},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p)),jQuery(r).css({marginLeft:0,zIndex:80}),jQuery(n).fadeIn(10),jQuery(o).delay(wppaAnimationSpeed).fadeOut(10);break;case"none":jQuery(n).fadeIn(10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;case"turnover":switch(d){case"left":case"right":var s=parseInt(jQuery(r).css("width")),u=parseInt(jQuery(n).css("marginLeft"));jQuery(w).css({zIndex:80}),jQuery(r).css({zIndex:81,width:0}),jQuery(n).css({maxWidth:0,marginLeft:0}),jQuery(n).fadeIn(10),jQuery(r).animate({width:l},wppaAnimationSpeed,"swing"),jQuery(n).animate({maxWidth:s,marginLeft:u},wppaAnimationSpeed,"swing",_wppaNextSlide_4(p)),jQuery(o).delay(wppaAnimationSpeed).fadeOut(10);break;case"none":jQuery(n).fadeIn(10),setTimeout("_wppaNextSlide_4( "+p+" )",10)}break;default:alert("Animation type "+wppaAnimationType+" is not supported in this version")}}function _wppaNextSlide_4(p){var a=_wppaFg[p],e="#theslide"+(1-a)+"-"+p,t="#theslide"+a+"-"+p;jQuery(e).css({zIndex:80}),jQuery(t).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){if(!_wppaToTheSame){var a=_wppaDsc[p][_wppaCurIdx[p]];if(jQuery("#imagedesc-"+p).html(a),wppaHideWhenEmpty){var e=_wppaDsc[p][_wppaCurIdx[p]];""==e||"&nbsp;"==e?jQuery("#descbox-"+p).css("display","none"):jQuery("#descbox-"+p).css("display","")}jQuery("#imagetitle-"+p).html(wppaMakeNameHtml(p)),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]])}if(_wppaToTheSame=!1,_wppaSSRuns[p]&&!wppaSlideWrap&&_wppaCurIdx[p]+1==_wppaSlides[p].length)return _wppaIsBusy[p]=!1,void _wppaStop(p);if(_wppaShowMetaData(p,"show"),-2!=_wppaTP[p]){var t=_wppaTP[p];return _wppaTP[p]=-2,_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p),void wppaStartStop(p,t)}if(wppaUpdateLightboxes(),!wppaIsMini[p]){var i=wppaGetCurrentFullUrl(p,_wppaCurIdx[p]);""==i&&(i=_wppaShareUrl[p][_wppaCurIdx[p]]),"undefined"!=typeof wppaQRUpdate&&wppaQRUpdate(_wppaShareUrl[p][_wppaCurIdx[p]]),_wppaSlides[p].length>1&&wppaPushStateSlide(p,_wppaCurIdx[p],i)}if(_wppaSSRuns[p]&&setTimeout("_wppaNextSlide( "+p+', "auto" )',wppaGetSlideshowTimeout(p)),jQuery(document).trigger("glossaryTooltipReady"),_wppaDidGoto[p]=!1,_wppaIsBusy[p]=!1,wppaIsMini[p]||_bumpViewCount(_wppaId[p][_wppaCurIdx[p]]),_wppaDoAutocol(p),wppaStopAudio(p),wppaSlideAudioStart){var w=jQuery(".wppa-audio-"+_wppaId[p][_wppaCurIdx[p]]+"-"+p);if(w.length>0){var r=w[w.length-1];r&&(wppaAudioPlaying[p]||r.play())}}jQuery(window).trigger("resize")}function wppaFormatSlide(p){var a="theimg"+_wppaFg[p]+"-"+p,e="theslide"+_wppaFg[p]+"-"+p,t="slide_frame-"+p,i=wppaColWidth[p],w=document.getElementById(a),r=jQuery(".wppa-audio-"+p);if(w){void 0!==i&&0!=i||(i=wppaGetContainerWidth(p),wppaColWidth[p]=i);var o=w.naturalWidth;void 0===o&&(o=parseInt(w.style.maxWidth));var n=w.naturalHeight;void 0===n&&(n=parseInt(w.style.maxHeight));var l=wppaAspectRatio[p],d=wppaFullSize[p],s=wppaFullFrameDelta[p],u=wppaPortraitOnly[p],_=wppaFullValign[p];void 0===_&&(_="none");var m=wppaFullHalign[p];void 0===m&&(m="none");var c,y,h,S,x,f,g,I,j=wppaStretch;if(u)c=i-s,h=0,S=0,x=i,g=i,I=f=(y=parseInt(c*n/o))+s,jQuery("#"+t).css({width:g,height:I}),jQuery("#"+e).css({width:x,height:f}),jQuery("#"+a).css({width:c,height:y});else{if(g=i,d<i&&(g=d),I=parseInt(g*l),x=g,f=I,j||o>=g-s||n>=I-s?(n+s)/(o+s)>l?(y=I-s,c=parseInt(y*o/n)):(c=g-s,y=parseInt(c*n/o)):(c=o,y=n),"default"!=_&&"none"!=_){switch(_){case"top":S=0;break;case"center":S=parseInt((I-(y+s))/2);break;case"bottom":S=I-(y+s);break;case"fit":S=0,I=y+s,f=y+s}jQuery("#"+a).css({marginTop:S,marginBottom:0})}if(jQuery("#"+t).css({width:g,height:I}),jQuery("#"+e).css({width:x,height:f}),jQuery("#"+a).css({width:c,height:y}),"default"!=_&&"none"!=_&&"none"!=m&&"default"!=m){switch(m){case"left":h=0;break;case"center":h=parseInt((i-g)/2);break;case"right":h=i-g}h<0&&(h=0),jQuery("#"+a).css({marginLeft:"auto",marginRight:"auto"}),jQuery("#"+t).css({marginLeft:h})}var Q=jQuery(r).height();Q&&Q>0&&(wppaAudioHeight=Q,jQuery(r).css({height:wppaAudioHeight,width:c,left:(i-c)/2}))}var b,v=parseInt(g/3),N=2*v;b=r.length>0?I-wppaAudioHeight-wppaSlideBorderWidth-S:I,jQuery("#bbb-"+p+"-l").css({height:b,width:v,left:0}),jQuery("#bbb-"+p+"-r").css({height:b,width:v,left:N})}}function wppaMakeNameHtml(p){var a="";if(_wppaCurIdx[p]<0)return"";if(wppaIsMini[p]||_wppaIsVideo[p][_wppaCurIdx[p]])a=_wppaFullNames[p][_wppaCurIdx[p]];else switch(wppaArtMonkyLink){case"file":case"zip":if(wppaArtMonkeyButton)if(_wppaFullNames[p][_wppaCurIdx[p]]){var e=_wppaFullNames[p][_wppaCurIdx[p]].split("<img");a='<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[0]+'" />',e[1]&&(a+="<img"+e[1])}else a="";else 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":a=_wppaFullNames[p][_wppaCurIdx[p]];break;default:a=""}return wppaRepairBrTags(a)}function wppaMakeTheSlideHtml(p,a,e){var t,i=_wppaIsVideo[p][e]?"video":"img",w="title";"wppa"==wppaLightBox[p]&&(w="data-lbtitle");var r=""==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]+'"><'+i+r+' 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]+'"><'+i+r+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>";else if(""==wppaLightBox[p])t="<"+i+r+' title="'+_wppaNames[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e];else{for(var o="",n=0,l=wppaLightboxSingle[p]?"":"[slide-"+p+"-"+a+"]";n<e;)o+='<a href="'+(wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][n]:wppaMakeFullsizeUrl(_wppaUrl[p][n]))+'"'+(_wppaIsVideo[p][n]?' data-videonatwidth="'+_wppaVideoNatWidth[p][n]+'" data-videonatheight="'+_wppaVideoNatHeight[p][n]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][n])+'"':"")+(""!=_wppaAudioHtml[p][n]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][n])+'"':"")+" "+w+'="'+_wppaLbTitle[p][n]+'" '+wppaRel+'="'+wppaLightBox[p]+l+'"></a>',n++;for(o+='<a href="'+(wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][e]:wppaMakeFullsizeUrl(_wppaUrl[p][e]))+'" onclick="wppaStopAudio();wppaStopShow('+p+');" target="'+_wppaLinkTarget[p][e]+'"'+(_wppaIsVideo[p][n]?' data-videonatwidth="'+_wppaVideoNatWidth[p][e]+'" data-videonatheight="'+_wppaVideoNatHeight[p][e]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][e])+'"':"")+(""!=_wppaAudioHtml[p][n]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][e])+'"':"")+" "+w+'="'+_wppaLbTitle[p][e]+'" '+wppaRel+'="'+wppaLightBox[p]+l+'"><'+i+r+' title="'+_wppaLinkTitle[p][e]+'" id="theimg'+a+"-"+p+'" '+_wppaSlides[p][e]+"</a>",n=e+1;n<_wppaUrl[p].length;)o+='<a href="'+(wppaOvlHires||"wppa"!=wppaLightBox[p]?_wppaHiresUrl[p][n]:wppaMakeFullsizeUrl(_wppaUrl[p][n]))+'"'+(_wppaIsVideo[p][n]?' data-videonatwidth="'+_wppaVideoNatWidth[p][n]+'" data-videonatheight="'+_wppaVideoNatHeight[p][n]+'" data-videohtml="'+encodeURI(_wppaVideoHtml[p][n])+'"':"")+(""!=_wppaAudioHtml[p][n]?' data-audiohtml="'+encodeURI(_wppaAudioHtml[p][n])+'"':"")+" "+w+'="'+_wppaLbTitle[p][n]+'" '+wppaRel+'="'+wppaLightBox[p]+l+'"></a>',n++;t=o}""!=_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;left:"+Math.max(0,(wppaGetContainerWidth(p)-_wppaVideoNatWidth[p][e])/2)+'px;padding:0;box-sizing:border-box;" >'+_wppaAudioHtml[p][e]+"</audio>"),t=t.replace(/title=""/g,""),jQuery("#theslide"+a+"-"+p).html(t)}function _wppaAdjustFilmstrip(p){if(document.getElementById("wppa-filmstrip-"+p)){if(jQuery(".wppa-film-"+p).removeClass("wppa-filmthumb-active"),_wppaFilmNoMove[p])_wppaFilmNoMove[p]=!1;else{var a;a=wppaFilmStripLength[p]/2-(_wppaCurIdx[p]+.5+wppaPreambule)*wppaThumbnailPitch[p]-wppaFilmStripMargin[p],wppaFilmShowGlue&&(a-=2*wppaFilmStripMargin[p]+2),jQuery("#wppa-filmstrip-"+p).stop().animate({marginLeft:a+"px"},wppaAnimationSpeed)}if(-1!=_wppaCurIdx[p]){var e=_wppaCurIdx[p]-10;e<0&&(e=0);var t=_wppaCurIdx[p]+10;t>_wppaSlides[p].length&&(t=_wppaSlides[p].length);for(var i=0;i<_wppaSlides[p].length;){var w=jQuery("#film_wppatnf_"+_wppaId[p][i]+"_"+p).html();w&&(e<=i<=t&&-1!=w.search("\x3c!--")&&(w=(w=w.replace("\x3c!--","")).replace("--\x3e",""),jQuery("#film_wppatnf_"+_wppaId[p][i]+"_"+p).html(w)),""!=jQuery("#wppa-film-"+i+"-"+p).attr("data-title")?(jQuery("#wppa-film-"+i+"-"+p).attr("title",jQuery("#wppa-film-"+i+"-"+p).attr("data-title")),jQuery("#wppa-pre-"+i+"-"+p).attr("title",jQuery("#wppa-film-"+i+"-"+p).attr("data-title"))):""!=wppaFilmThumbTitle&&_wppaCurIdx[p]==i?(jQuery("#wppa-film-"+i+"-"+p).attr("title",wppaFilmThumbTitle),jQuery("#wppa-pre-"+i+"-"+p).attr("title",wppaFilmThumbTitle)):(jQuery("#wppa-film-"+i+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][i]),jQuery("#wppa-pre-"+i+"-"+p).attr("title",wppaClickToView+" "+_wppaNames[p][i]))),i++}}jQuery("#wppa-film-"+_wppaCurIdx[p]+"-"+p).addClass("wppa-filmthumb-active")}}function _wppaNext(p){(wppaSlideWrap||_wppaCurIdx[p]!=_wppaSlides[p].length-1)&&(_wppaNxtIdx[p]=_wppaCurIdx[p]+1,_wppaNxtIdx[p]==_wppaSlides[p].length&&(_wppaNxtIdx[p]=0),_wppaNextSlide(p,0))}function _wppaNextN(p,a){if(wppaSlideWrap||!(_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||_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||0!=_wppaCurIdx[p])&&(_wppaNxtIdx[p]=_wppaCurIdx[p]-1,_wppaNxtIdx[p]<0&&(_wppaNxtIdx[p]=_wppaSlides[p].length-1),_wppaNextSlide(p,0))}function _wppaPrevN(p,a){if(wppaSlideWrap||!(_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):(wppaConsoleLog("GotoRunning "+p),_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){"icons"==wppaSlideshowNavigationType?_wppaStartIcons(p,a):_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++}a>-1?(jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button","1.5em",!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","1.5em",!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).html(wppaSlideShow):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++}a>-1?(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).html(wppaSlideShow):jQuery("#bc-pname-"+p).html(wppaSlideShow)),_wppaSetRatingDisplay(p)}function _wppaStop(p){"icons"==wppaSlideshowNavigationType?_wppaStopIcons(p):_wppaStopText(p)}function _wppaStopIcons(p){_wppaSSRuns[p]=!1,jQuery("#startstop-"+p).html(wppaSvgHtml("Play-Button","1.5em",!1,!0)),jQuery("#speed0-"+p).hide(),jQuery("#speed1-"+p).hide(),_wppaShowMetaData(p,"show"),jQuery("#bc-pname-modal-"+p)?jQuery("#bc-pname-modal-"+p).html(_wppaNames[p][_wppaCurIdx[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).html(_wppaNames[p][_wppaCurIdx[p]]):jQuery("#bc-pname-"+p).html(_wppaNames[p][_wppaCurIdx[p]])}function _wppaSpeed(p,a){"random"!=_wppaTimeOut[p]&&(a?_wppaTimeOut[p]>500&&(_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,t;document.getElementById("wppa-filmstrip-"+p)&&((a=Math.abs(_wppaCurIdx[p]-_wppaNxtIdx[p]))<=wppaFilmPageSize[p]||a>=(wppaFilmStripLength[p]/wppaThumbnailPitch[p]+1)/2&&(e=wppaThumbnailPitch[p]*_wppaSlides[p].length,wppaFilmShowGlue&&(e+=2+2*wppaFilmStripMargin[p]),t=parseInt(jQuery("#wppa-filmstrip-"+p).css("margin-left")),_wppaNxtIdx[p]>_wppaCurIdx[p]?t-=e:t+=e,jQuery("#wppa-filmstrip-"+p).css("margin-left",t+"px")))}function _wppaSetRatingDisplay(p){if(document.getElementById("wppa-rating-"+p)){var a,e,t,w,r;if(void 0!==(a=_wppaAvg[p][_wppaCurIdx[p]])){if("likes"==wppaRatingDisplayType){var o=a.split("|");return jQuery("#wppa-like-"+p).attr("title",o[0]),jQuery("#wppa-liketext-"+p).html(o[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(e=a.split("|"),a=e[0],t=e[1],w=_wppaDisc[p][_wppaCurIdx[p]],r=_wppaMyr[p][_wppaCurIdx[p]],"graphic"==wppaRatingDisplayType)_wppaSetRd(p,a,"#wppa-avg-"),_wppaSetRd(p,r,"#wppa-rate-"),0==r?(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",w));else{if(jQuery("#wppa-numrate-avg-"+p).html(a+" ( "+t+" ) "),wppaRatingOnce&&r>0)jQuery("#wppa-numrate-mine-"+p).html(r);else if(r<0)jQuery("#wppa-numrate-mine-"+p).html(" dislike");else{var n="";for(i=1;i<=wppaRatingMax;i++)r==i?n+='<span style="cursor:pointer; font-weight:bold;" onclick="_wppaRateIt( '+p+", "+i+' )">&nbsp;'+i+"&nbsp;</span>":(r>i-1&&r<i&&(n+="&nbsp;( "+r+" )&nbsp;"),n+='<span 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(n)}0==r?(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(w+"&bull; "),jQuery("#wppa-filler-"+p).css("display","none")}0==r?jQuery("#wppa-vote-button-"+p).val(wppaVoteForMe):jQuery("#wppa-vote-button-"+p).val(wppaVotedForMe),jQuery("#wppa-vote-count-"+p).html(t)}}}function wppaGetDislikeText(p,a,e){return p}function _wppaSetRd(p,a,e){var t=parseInt(a),i=t+1,w=a-t,r=wppaStarOpacity+w*(1-wppaStarOpacity),o=wppaRatingMax;for(idx=1;idx<=o;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,r):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("@"),i=e.lastIndexOf(".");if(t<1||i<t+2||i+2>=e.length)return alert(wppaPleaseEmail),!1}return!(jQuery("#wppa-comment-"+p).val().length<1)||(alert(wppaPleaseComment),!1)}function _wppaGo(p){document.location=p}function _wppaBbb(p,a,e){if(!_wppaSSRuns[p]){var t="#bbb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".bbb-"+p).css("cursor","pointer");break;case"hide":jQuery(".bbb-"+p).removeAttr("title"),jQuery(".bbb-"+p).css("cursor","default");break;case"click":"l"==a&&wppaPrev(p),"r"==a&&wppaNext(p);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}}function _wppaUbb(p,a,e){var t="#ubb-"+p+"-"+a;switch(e){case"show":"l"==a&&jQuery(t).attr("title",wppaPreviousPhoto),"r"==a&&jQuery(t).attr("title",wppaNextPhoto),jQuery(".ubb-"+p).css("cursor","pointer"),jQuery(".ubb-"+p).stop().fadeTo(200,.8),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,.8);break;case"hide":jQuery(".ubb-"+p).removeAttr("title"),jQuery(".ubb-"+p).css("cursor","default"),jQuery(".ubb-"+p).stop().fadeTo(200,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,0);break;case"click":var i;if("l"==a&&(i=_wppaCurIdx[p]-1)<0){if(!wppaSlideWrap)return;i=_wppaSlides[p].length-1}if("r"==a&&(i=_wppaCurIdx[p]+1)==_wppaSlides[p].length){if(!wppaSlideWrap)return;i=0}wppaIsMobile&&(jQuery(".ubb-"+p).stop().fadeTo(200,1).fadeTo(1e3,0),jQuery("#wppa-startstop-icon-"+p).stop().fadeTo(200,1).fadeTo(1e3,0)),wppaGotoKeepState(p,i);break;default:alert("Unimplemented instruction: "+e+" on: "+t)}}function wppaOpenComments(p){_wppaSSRuns[p]&&_wppaStop(p),jQuery("#wppa-comtable-wrap-"+p).css("display","block"),jQuery("#wppa-comform-wrap-"+p).css("display","block"),jQuery("#wppa-comfooter-wrap-"+p).css("display","none"),wppaColWidth[p]=0,setTimeout("_wppaDoAutocol( "+p+" )",100)}function _wppaShowMetaData(p,a){_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;if("random"==_wppaTimeOut[p]){var e=2*wppaAnimationSpeed,t=7*wppaAnimationSpeed;a=Math.floor(Math.random()*(t-e+1))+e}else a=_wppaTimeOut[p];return a}var wppaJsSlideshowVersion="6.6.29";wppaConsoleLog("wppa-slideshow.js version "+wppaJsSlideshowVersion+" loaded.","force");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/wppa-utils.js CHANGED
@@ -362,8 +362,9 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
362
  break;
363
  case 'Prev-Button':
364
  result += '<path' +
365
- ' 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-11' +
366
- 'C10,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"' +
 
367
  ' />';
368
  break;
369
  case 'Pause-Button':
362
  break;
363
  case 'Prev-Button':
364
  result += '<path' +
365
+ ' d="M30,0H0V30H30V0z M20,20.5' +
366
+ 'c0,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-11' +
367
+ 'C10,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"' +
368
  ' />';
369
  break;
370
  case 'Pause-Button':
js/wppa-utils.min.js CHANGED
@@ -1,51 +1 @@
1
- // wppa-utils.js
2
- //
3
- // conatins common vars and functions
4
- //
5
-
6
- var wppaJsUtilsVersion='6.6.28';var wppaDebug;function wppaTrim(str,arg){var result;result=wppaTrimLeft(str,arg);result=wppaTrimRight(result,arg);return result;}
7
- function wppaTrimLeft(str,arg){var result;var strlen;var arglen;var argcount;var i;var done;var oldStr,newStr;switch(typeof(arg)){case'string':result=str;strlen=str.length;arglen=arg.length;while(strlen>=arglen&&result.substr(0,arglen)==arg){result=result.substr(arglen);strlen=result.length;}
8
- break;case'object':done=false;newStr=str;while(!done){i=0;oldStr=newStr;while(i<arg.length){newStr=wppaTrimLeft(newStr,arg[i]);i++;}
9
- done=(oldStr==newStr);}
10
- result=newStr;break;default:return str.replace(/^\s\s*/,'');}
11
- return result;}
12
- function wppaTrimRight(str,arg){var result;var strlen;var arglen;var argcount;var i;var done;var oldStr,newStr;switch(typeof(arg)){case'string':result=str;strlen=str.length;arglen=arg.length;while(strlen>=arglen&&result.substr(strlen-arglen)==arg){result=result.substr(0,strlen-arglen);strlen=result.length;}
13
- break;case'object':done=false;newStr=str;while(!done){i=0;oldStr=newStr;while(i<arg.length){newStr=wppaTrimRight(newStr,arg[i]);i++;}
14
- done=(oldStr==newStr);}
15
- result=newStr;break;default:return str.replace(/\s\s*$/,'');}
16
- return result;}
17
- function wppa_setCookie(c_name,value,exdays){var exdate=new Date();exdate.setDate(exdate.getDate()+exdays);var c_value=escape(value)+((exdays==null)?"":"; expires="+exdate.toUTCString());document.cookie=c_name+"="+c_value;}
18
- function wppa_getCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i<ARRcookies.length;i++)
19
- {x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);x=x.replace(/^\s+|\s+$/g,"");if(x==c_name)
20
- {return unescape(y);}}
21
- return"";}
22
- function wppaStereoTypeChange(newval){wppa_setCookie('stereotype',newval,365);}
23
- function wppaStereoGlassChange(newval){wppa_setCookie('stereoglass',newval,365);}
24
- function wppaConsoleLog(arg,force){if(typeof(console)!='undefined'&&(wppaDebug||force=='force')){var d=new Date();var n=d.getTime();var t=n%(24*60*60*1000);var h=Math.floor(t/(60*60*1000));t-=h*60*60*1000;var m=Math.floor(t/(60*1000));t-=m*60*1000;var s=Math.floor(t/1000);t-=s*1000;console.log('At: '+h+':'+m+':'+s+'.'+t+' message: '+arg);}}
25
- function wppaConvertScriptToShortcode(scriptId,shortcodeId){var script;var workArr;var temp;var item;var value;var type;var album;var photo;var size;var align;var result;script=jQuery('#'+scriptId).val();if(typeof(script)!='string'||script.length==0){jQuery('#'+shortcodeId).val('No script found');jQuery('#'+shortcodeId).css('color','red');return;}
26
- workarr=script.split('%%');if(workarr[1]!='wppa'||workarr.length<3){jQuery('#'+shortcodeId).val('No %%wppa%% found');jQuery('#'+shortcodeId).css('color','red');return;}
27
- for(i=3;i<workarr.length;i+=2){temp=workarr[i].split('=');item=temp[0];value=temp[1];if(item&&value){switch(item){case'size':size=value;break;case'align':align=value;break;case'photo':case'mphoto':case'slphoto':type=item;photo=value;break;case'album':case'cover':case'slide':case'slideonly':case'slideonlyf':case'slidef':type=item;album=value;break;default:jQuery('#'+shortcodeId).val('Token "'+workarr[i]+'" not recognized');jQuery('#'+shortcodeId).css('color','red');return;}}}
28
- result='[wppa';if(type&&type.length>0){result+=' type="'+type+'"';}
29
- if(album&&album.length>0){result+=' album="'+album+'"';}
30
- if(photo&&photo.length>0){result+=' photo="'+photo+'"';}
31
- if(size&&size.length>0){result+=' size="'+size+'"';}
32
- if(align&&align.length>0){result+=' align="'+align+'"';}
33
- result+='][/wppa]';jQuery('#'+shortcodeId).val(result);jQuery('#'+shortcodeId).css('color','green');document.getElementById(shortcodeId).focus();document.getElementById(shortcodeId).select();}
34
- function wppaSvgHtml(image,height,isLightbox,border,none,light,medium,heavy){var fc;var bc;if(!none)none='0';if(!light)light='10';if(!medium)medium='20';if(!heavy)heavy='50';switch(wppaSvgCornerStyle){case'gif':case'none':radius=none;break;case'light':radius=light;break;case'medium':radius=medium;break;case'heavy':radius=heavy;break;}
35
- if(!height){height='32px';}
36
- if(isLightbox){fc=wppaOvlSvgFillcolor;bc=wppaOvlSvgBgcolor;}
37
- else{fc=wppaSvgFillcolor;bc=wppaSvgBgcolor;}
38
- var src;if(wppaUseSvg){src=wppaImageDirectory+image+'.svg';}
39
- else{src=wppaImageDirectory+image+'.png';}
40
- var wppaSvgArray=['Next-Button','Prev-Button','Backward-Button','Forward-Button','Pause-Button','Play-Button','Stop-Button','Eagle-1','Snail','Exit','Full-Screen','Exit-Full-Screen','Content-View'];if(wppaUseSvg&&jQuery.inArray(image,wppaSvgArray)!='-1'){var result='<svg'+' version="1.1"'+' xmlns="http://www.w3.org/2000/svg"'+' xmlns:xlink="http://www.w3.org/1999/xlink"'+' x="0px"'+' y="0px"'+' viewBox="0 0 30 30"'+' style="'+'enable-background:new 0 0 30 30;'+
41
- (height?'height:'+height+';':'')+'fill:'+fc+';'+'background-color:'+bc+';'+'text-decoration:none !important;'+'vertical-align:middle;'+
42
- (radius?'border-radius:'+radius+'%;':'')+
43
- (border?'border:2px solid '+bc+';box-sizing:border-box;':'')+'"'+' xml:space="preserve"'+' >'+'<g>';switch(image){case'Next-Button':result+='<path'+' d="M30,0H0V30H30V0z M20,20.5'+'c0,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-11'+'c0-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':result+='<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-11'+'C10,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':result+='<path'+' d="M30,0H0V30H30V0z M14,20.5'+'c0,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.5'+'c0,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':result+='<path'+' d="M30,0H0V30H30V0z'+'M19.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.4'+'c0.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':result+='<path'+' d="M30,0H0V30H30V0z M21,20.5'+'c0,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':result+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case'Full-Screen':result+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case'Exit-Full-Screen':result+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;default:alert('Native svg '+image+' not implemented');}
44
- result+='</g>'+'</svg>';}
45
- else{var result='<img'+' src="'+src+'"'+
46
- (wppaUseSvg?' class="wppa-svg"':'')+' style="'+'height:'+height+';'+'fill:'+fc+';'+'background-color:'+bc+';'+
47
- (radius?'border-radius:'+radius+'%;':'')+
48
- (border?'border:2px solid '+bc+';box-sizing:border-box;':'')+
49
- (wppaUseSvg?'display:none;':'')+'text-decoration:none !important;'+'vertical-align:middle;'+'"'+' />';}
50
- return result;}
51
- wppaConsoleLog('wppa-utils.js version '+wppaJsUtilsVersion+' loaded.','force');
1
+ function wppaTrim(e,r){var t;return t=wppaTrimLeft(e,r),t=wppaTrimRight(t,r)}function wppaTrimLeft(e,r){var t,a,o,s,n,l,i;switch(typeof r){case"string":for(t=e,a=e.length,o=r.length;a>=o&&t.substr(0,o)==r;)a=(t=t.substr(o)).length;break;case"object":for(n=!1,i=e;!n;){for(s=0,l=i;s<r.length;)i=wppaTrimLeft(i,r[s]),s++;n=l==i}t=i;break;default:return e.replace(/^\s\s*/,"")}return t}function wppaTrimRight(e,r){var t,a,o,s,n,l,i;switch(typeof r){case"string":for(t=e,a=e.length,o=r.length;a>=o&&t.substr(a-o)==r;)a=(t=t.substr(0,a-o)).length;break;case"object":for(n=!1,i=e;!n;){for(s=0,l=i;s<r.length;)i=wppaTrimRight(i,r[s]),s++;n=l==i}t=i;break;default:return e.replace(/\s\s*$/,"")}return t}function wppa_setCookie(e,r,t){var a=new Date;a.setDate(a.getDate()+t);var o=escape(r)+(null==t?"":"; expires="+a.toUTCString());document.cookie=e+"="+o}function wppa_getCookie(e){var r,t,a,o=document.cookie.split(";");for(r=0;r<o.length;r++)if(t=o[r].substr(0,o[r].indexOf("=")),a=o[r].substr(o[r].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,r){if("undefined"!=typeof console&&(wppaDebug||"force"==r)){var t=(new Date).getTime()%864e5,a=Math.floor(t/36e5);t-=60*a*60*1e3;var o=Math.floor(t/6e4);t-=60*o*1e3;var s=Math.floor(t/1e3);t-=1e3*s,console.log("At: "+a+":"+o+":"+s+"."+t+" message: "+e)}}function wppaConvertScriptToShortcode(e,r){var t,a,o,s,n,l,p,c,u,g;if("string"!=typeof(t=jQuery("#"+e).val())||0==t.length)return jQuery("#"+r).val("No script found"),void jQuery("#"+r).css("color","red");if(workarr=t.split("%%"),"wppa"!=workarr[1]||workarr.length<3)return jQuery("#"+r).val("No %%wppa%% found"),void jQuery("#"+r).css("color","red");for(i=3;i<workarr.length;i+=2)if(a=workarr[i].split("="),o=a[0],s=a[1],o&&s)switch(o){case"size":c=s;break;case"align":u=s;break;case"photo":case"mphoto":case"slphoto":n=o,p=s;break;case"album":case"cover":case"slide":case"slideonly":case"slideonlyf":case"slidef":n=o,l=s;break;default:return jQuery("#"+r).val('Token "'+workarr[i]+'" not recognized'),void jQuery("#"+r).css("color","red")}g="[wppa",n&&n.length>0&&(g+=' type="'+n+'"'),l&&l.length>0&&(g+=' album="'+l+'"'),p&&p.length>0&&(g+=' photo="'+p+'"'),c&&c.length>0&&(g+=' size="'+c+'"'),u&&u.length>0&&(g+=' align="'+u+'"'),g+="][/wppa]",jQuery("#"+r).val(g),jQuery("#"+r).css("color","green"),document.getElementById(r).focus(),document.getElementById(r).select()}function wppaSvgHtml(e,r,t,a,o,s,n,l){var i,p;switch(o||(o="0"),s||(s="10"),n||(n="20"),l||(l="50"),wppaSvgCornerStyle){case"gif":case"none":radius=o;break;case"light":radius=s;break;case"medium":radius=n;break;case"heavy":radius=l}r||(r="32px"),t?(i=wppaOvlSvgFillcolor,p=wppaOvlSvgBgcolor):(i=wppaSvgFillcolor,p=wppaSvgBgcolor);var c;c=wppaUseSvg?wppaImageDirectory+e+".svg":wppaImageDirectory+e+".png";var u=["Next-Button","Prev-Button","Backward-Button","Forward-Button","Pause-Button","Play-Button","Stop-Button","Eagle-1","Snail","Exit","Full-Screen","Exit-Full-Screen","Content-View"];if(wppaUseSvg&&"-1"!=jQuery.inArray(e,u)){g='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;'+(r?"height:"+r+";":"")+"fill:"+i+";background-color:"+p+";text-decoration:none !important;vertical-align:middle;"+(radius?"border-radius:"+radius+"%;":"")+(a?"border:2px solid "+p+";box-sizing:border-box;":"")+'" xml:space="preserve" ><g>';switch(e){case"Next-Button":g+='<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":g+='<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":g+='<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":g+='<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":g+='<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":g+='<path d="M30 24.398l-8.406-8.398 8.406-8.398-5.602-5.602-8.398 8.402-8.402-8.402-5.598 5.602 8.398 8.398-8.398 8.398 5.598 5.602 8.402-8.402 8.398 8.402z"></path>';break;case"Full-Screen":g+='<path d="M27.414 24.586l-4.586-4.586-2.828 2.828 4.586 4.586-4.586 4.586h12v-12zM12 0h-12v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zM12 22.828l-2.828-2.828-4.586 4.586-4.586-4.586v12h12l-4.586-4.586zM32 0h-12l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539 4.586 4.586z"></path>';break;case"Exit-Full-Screen":g+='<path d="M24.586 27.414l4.586 4.586 2.828-2.828-4.586-4.586 4.586-4.586h-12v12zM0 12h12v-12l-4.586 4.586-4.539-4.543-2.828 2.828 4.539 4.543zM0 29.172l2.828 2.828 4.586-4.586 4.586 4.586v-12h-12l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543-2.828-2.828-4.547 4.543-4.586-4.586z"></path>';break;default:alert("Native svg "+e+" not implemented")}g+="</g></svg>"}else var g='<img src="'+c+'"'+(wppaUseSvg?' class="wppa-svg"':"")+' style="height:'+r+";fill:"+i+";background-color:"+p+";"+(radius?"border-radius:"+radius+"%;":"")+(a?"border:2px solid "+p+";box-sizing:border-box;":"")+(wppaUseSvg?"display:none;":"")+'text-decoration:none !important;vertical-align:middle;" />';return g}var wppaJsUtilsVersion="6.6.28",wppaDebug;wppaConsoleLog("wppa-utils.js version "+wppaJsUtilsVersion+" loaded.","force");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/wppa.js CHANGED
@@ -565,7 +565,7 @@ function _wppaDoAutocol( mocc ) {
565
  // Slide
566
  wppaFormatSlide( mocc );
567
 
568
- // Audio on slide
569
  jQuery( "#audio-slide-"+mocc ).css( 'width', w - wppaBoxDelta - 6 );
570
 
571
  // Comments
565
  // Slide
566
  wppaFormatSlide( mocc );
567
 
568
+ // Audio
569
  jQuery( "#audio-slide-"+mocc ).css( 'width', w - wppaBoxDelta - 6 );
570
 
571
  // Comments
readme.txt CHANGED
@@ -2,12 +2,12 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
5
- Version: 6.6.28
6
- Stable tag: 6.6.27
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
10
- Tested up to: 4.8-alpha-40643
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -180,6 +180,36 @@ Oh, just Google on 'picture resizer' and you will find a bunch of free programs
180
 
181
  See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  = 6.6.28 =
184
 
185
  = Bug Fixes =
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
5
+ Version: 6.6.29
6
+ Stable tag: 6.6.28
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
9
  Requires at least: 3.9
10
+ Tested up to: 4.8
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
180
 
181
  See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
182
 
183
+ = 6.6.29 =
184
+
185
+ = Bug Fixes =
186
+
187
+ * The names of directories to be imported may now contain the following regexp special chracters: '[', ']', '(', ')', '{', '}', '$', '+'.
188
+ * Albums that contain only pending photos are no longer seen as empty for the owner of the pending photos.
189
+ * Posterfiles for audio did not show up in photo admin. Fixed.
190
+ * Multimedia items did not show up as cover images. Fixed.
191
+ * Big browse buttons do no longer cover the multimedia control bar.
192
+ * Fixed a layout issue of the audio control bar.
193
+ * On import zipfiles there will no longer be a warning message on extraction of a directory.
194
+ * On import albums, any .csv file found will be moved to your depot directory to be processed on the next pass when the photos exist instead of being ignored.
195
+
196
+ = New Features =
197
+
198
+ * You can add an album category selectionbox in the photo search widget. There is not yet a shortcode argument analogon.
199
+ * You can see the wppa logfile directly from the admin menu and admin bar if you are an admin and you enabled it in Table VIII-C1.
200
+ * Table VII-B7.2: Notify approve photo. When the status of a photo changes from 'pending' to 'publish', the owner gets a notification email.
201
+ * Zipfiles to import may now contain zipfiles. The import procedure has to be repeated to unzip the zipped zipfiles.
202
+ * Zipfiles may now contain .csv files.
203
+ * Moderate photos now sorts photos on a per album basis. You can select the use of the bulk photo editor for moderation in Table IX-B20.
204
+ * Table VII-B1.3 Create notify. Send email to specified user(s) when a user creates an album.
205
+ * You (administrator) can exucute custom code on all albums or photos in Table VIII-B98 and Table VIII-B99
206
+
207
+ = Other Changes =
208
+
209
+ * After front-end upload from the album cover or thumbnail display, one will be directed to the album content (thumbnail) view.
210
+ * Log Ajax actions. Table IX-A9.2.
211
+ * Changed default of Table I-A4: Photocount treshold to 0. There are other methods to show a cover image. This has no effect on existing installations.
212
+
213
  = 6.6.28 =
214
 
215
  = Bug Fixes =
wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 6.6.00
7
  *
8
  */
9
 
@@ -69,6 +69,9 @@ function wppa_add_admin() {
69
  add_submenu_page( 'wppa_admin_menu', __('Photo of the day Widget', 'wp-photo-album-plus'), __('Photo of the day', 'wp-photo-album-plus'), 'wppa_potd', 'wppa_photo_of_the_day', 'wppa_sidebar_page_options' );
70
  add_submenu_page( 'wppa_admin_menu', __('Manage comments', 'wp-photo-album-plus'), __('Comments', 'wp-photo-album-plus').$com_pending, 'wppa_comments', 'wppa_manage_comments', 'wppa_comment_admin' );
71
  add_submenu_page( 'wppa_admin_menu', __('Help &amp; Info', 'wp-photo-album-plus'), __('Documentation', 'wp-photo-album-plus'), 'wppa_help', 'wppa_help', 'wppa_page_help' );
 
 
 
72
  }
73
 
74
  /* ADMIN STYLES */
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 6.6.29
7
  *
8
  */
9
 
69
  add_submenu_page( 'wppa_admin_menu', __('Photo of the day Widget', 'wp-photo-album-plus'), __('Photo of the day', 'wp-photo-album-plus'), 'wppa_potd', 'wppa_photo_of_the_day', 'wppa_sidebar_page_options' );
70
  add_submenu_page( 'wppa_admin_menu', __('Manage comments', 'wp-photo-album-plus'), __('Comments', 'wp-photo-album-plus').$com_pending, 'wppa_comments', 'wppa_manage_comments', 'wppa_comment_admin' );
71
  add_submenu_page( 'wppa_admin_menu', __('Help &amp; Info', 'wp-photo-album-plus'), __('Documentation', 'wp-photo-album-plus'), 'wppa_help', 'wppa_help', 'wppa_page_help' );
72
+ if ( get_option( 'wppa_logfile_on_menu' ) == 'yes' ) {
73
+ add_submenu_page( 'wppa_admin_menu', __('Logfile', 'wp-photo-album-plus'), __('Logfile', 'wp-photo-album-plus'), 'administrator', 'wppa_log', 'wppa_log_page' );
74
+ }
75
  }
76
 
77
  /* ADMIN STYLES */
wppa-adminbar.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * enhances the admin bar with wppa+ menu
6
- * version 6.6.27
7
  *
8
  */
9
 
@@ -104,6 +104,16 @@ function wppa_admin_bar_menu() {
104
  'href' => 'http://wppa.nl'
105
  );
106
 
 
 
 
 
 
 
 
 
 
 
107
  // Add top-level item
108
  $wp_admin_bar->add_menu( array(
109
  'id' => $wppaplus,
3
  * Package: wp-photo-album-plus
4
  *
5
  * enhances the admin bar with wppa+ menu
6
+ * version 6.6.29
7
  *
8
  */
9
 
104
  'href' => 'http://wppa.nl'
105
  );
106
 
107
+ if ( current_user_can( 'administrator' ) ) {
108
+ if ( get_option( 'wppa_logfile_on_menu' ) == 'yes' ) {
109
+ $menu_items['logfile'] = array(
110
+ 'parent' => $wppaplus,
111
+ 'title' => __( 'Logfile', 'wp-photo-album-plus' ),
112
+ 'href' => admin_url( 'admin.php?page=wppa_log' )
113
+ );
114
+ }
115
+ }
116
+
117
  // Add top-level item
118
  $wp_admin_bar->add_menu( array(
119
  'id' => $wppaplus,
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 6.6.28
6
  *
7
  */
8
 
@@ -49,9 +49,13 @@ global $wppa_log_file;
49
  $wppa_action = $_REQUEST['wppa-action'];
50
 
51
  if ( wppa_switch( 'log_ajax' ) ) {
52
- wppa_log( 'Obs', 'Ajax action = '.$wppa_action.', querystring = '.$_SERVER['REQUEST_URI'] );
 
 
 
 
53
  }
54
-
55
  switch ( $wppa_action ) {
56
  case 'getqrcode':
57
  //wppa_log( 'obs', 'Ajax getqrcode for '.$_REQUEST['url'] );
@@ -1339,7 +1343,7 @@ global $wppa_log_file;
1339
  }
1340
 
1341
  $iret = $wpdb->query( $wpdb->prepare( 'UPDATE `'.WPPA_COMMENTS.'` SET `status` = %s WHERE `id` = %s', $comstat, $comid ) );
1342
- if ( wppa_opt( 'search_comments' ) ) {
1343
  wppa_update_photo( $photo );
1344
  }
1345
 
@@ -1806,7 +1810,7 @@ global $wppa_log_file;
1806
 
1807
  case 'status':
1808
  if ( ! current_user_can( 'wppa_moderate' ) && ! current_user_can( 'wppa_admin' ) ) die( 'Security check failure #78' );
1809
- wppa_invalidate_treecounts( wppa_get_photo_item( $photo, 'album' ) ); // $wpdb->get_var( $wpdb->prepare( "SELECT `album` FROM `".WPPA_PHOTOS."` WHERE `id` = %s", $photo ) ) );
1810
  case 'owner':
1811
  case 'name':
1812
  case 'description':
@@ -1819,12 +1823,31 @@ global $wppa_log_file;
1819
  case 'videox':
1820
  case 'videoy':
1821
  switch ( $item ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1822
  case 'name':
1823
  $value = strip_tags( $value );
1824
- $itemname = __( 'Name' , 'wp-photo-album-plus');
1825
  break;
1826
  case 'description':
1827
- $itemname = __( 'Description' , 'wp-photo-album-plus');
1828
  if ( wppa_switch( 'check_balance' ) ) {
1829
  $value = str_replace( array( '<br/>','<br>' ), '<br />', $value );
1830
  if ( balanceTags( $value, true ) != $value ) {
@@ -2229,6 +2252,28 @@ global $wppa_log_file;
2229
  }
2230
 
2231
  else switch ( $option ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2232
 
2233
  // Changing potd_album_type ( physical / virtual ) also clears potd_album
2234
  case 'wppa_potd_album_type':
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 6.6.29
6
  *
7
  */
8
 
49
  $wppa_action = $_REQUEST['wppa-action'];
50
 
51
  if ( wppa_switch( 'log_ajax' ) ) {
52
+ $args = '';
53
+ foreach( array_keys( $_REQUEST ) as $key ) {
54
+ $args .= $key . '=' . $_REQUEST[$key] . ', ';
55
+ }
56
+ wppa_log( 'Ajx', 'Args = ' . $args );
57
  }
58
+
59
  switch ( $wppa_action ) {
60
  case 'getqrcode':
61
  //wppa_log( 'obs', 'Ajax getqrcode for '.$_REQUEST['url'] );
1343
  }
1344
 
1345
  $iret = $wpdb->query( $wpdb->prepare( 'UPDATE `'.WPPA_COMMENTS.'` SET `status` = %s WHERE `id` = %s', $comstat, $comid ) );
1346
+ if ( wppa_switch( 'search_comments' ) ) {
1347
  wppa_update_photo( $photo );
1348
  }
1349
 
1810
 
1811
  case 'status':
1812
  if ( ! current_user_can( 'wppa_moderate' ) && ! current_user_can( 'wppa_admin' ) ) die( 'Security check failure #78' );
1813
+ wppa_invalidate_treecounts( wppa_get_photo_item( $photo, 'album' ) );
1814
  case 'owner':
1815
  case 'name':
1816
  case 'description':
1823
  case 'videox':
1824
  case 'videoy':
1825
  switch ( $item ) {
1826
+ case 'status':
1827
+ if ( wppa_switch( 'mail_on_approve' ) ) {
1828
+ $oldstatus = wppa_get_photo_item( $photo, 'status' );
1829
+ if ( $oldstatus == 'pending' ) {
1830
+ if ( $value == 'publish' ) {
1831
+ $owner = wppa_get_photo_item( $photo, 'owner' );
1832
+ $user = get_user_by( 'login', $owner );
1833
+ $to = $user->user_email;
1834
+ $subj = __('Photo approved', 'wp-photo-album-plus');
1835
+ $cont = sprintf( __('Your recently uploaded photo %s in album %s has been approved', 'wp-photo-album-plus'),
1836
+ '<b>' . wppa_get_photo_item( $photo, 'name' ) . '</b>',
1837
+ '<b>' . wppa_get_album_name( wppa_get_photo_item( $photo, 'album' ) ) . '</b>'
1838
+ );
1839
+ wppa_send_mail( $to, $subj, $cont, $photo, 'void' );
1840
+ }
1841
+ }
1842
+ }
1843
+ $itemname = __( 'Status', 'wp-photo-album-plus');
1844
+ break;
1845
  case 'name':
1846
  $value = strip_tags( $value );
1847
+ $itemname = __( 'Name', 'wp-photo-album-plus');
1848
  break;
1849
  case 'description':
1850
+ $itemname = __( 'Description', 'wp-photo-album-plus');
1851
  if ( wppa_switch( 'check_balance' ) ) {
1852
  $value = str_replace( array( '<br/>','<br>' ), '<br />', $value );
1853
  if ( balanceTags( $value, true ) != $value ) {
2252
  }
2253
 
2254
  else switch ( $option ) {
2255
+
2256
+ // Custom mainetance procedures
2257
+ case 'wppa_custom_album_proc':
2258
+ case 'wppa_custom_photo_proc':
2259
+ $err = false;
2260
+ $path = WPPA_UPLOAD_PATH . '/procs/' . $option . '.php';
2261
+ if ( ! is_dir( dirname( $path ) ) ) {
2262
+ mkdir( dirname( $path ) );
2263
+ }
2264
+ $file = fopen( $path, 'wb' );
2265
+ if ( ! $file ) {
2266
+ $err = true;
2267
+ }
2268
+ if ( fwrite( $file, $value ) === false ) {
2269
+ $err = true;
2270
+ }
2271
+ @ fclose( $file );
2272
+ if ( $err ) {
2273
+ $title = __( 'Failed to save code', 'wp-photo-album-plus' );
2274
+ $alert = __( 'Failed to save code', 'wp-photo-album-plus' );
2275
+ }
2276
+ break;
2277
 
2278
  // Changing potd_album_type ( physical / virtual ) also clears potd_album
2279
  case 'wppa_potd_album_type':
wppa-album-covers.php CHANGED
@@ -83,7 +83,7 @@ global $wpdb;
83
  // $coverphoto
84
  // );
85
  $image = wppa_cache_thumb( $coverphoto ); //$wpdb->get_row( $query, ARRAY_A );
86
- $photocount = wppa_get_photo_count( $albumid, 'use_treecounts' );
87
  $albumcount = wppa_get_album_count( $albumid, 'use_treecounts' );
88
  $mincount = wppa_get_mincount();
89
 
@@ -171,7 +171,7 @@ global $wpdb;
171
  'cover'
172
  );
173
  $src = wppa_get_thumb_url( $coverphoto,
174
- '',
175
  $imgattr_a['width'],
176
  $imgattr_a['height']
177
  );
@@ -387,7 +387,7 @@ global $wpdb;
387
  $coverphoto = false;
388
  }
389
 
390
- $photocount = wppa_get_photo_count( $albumid, 'use_treecounts' );
391
  $albumcount = wppa_get_album_count( $albumid, 'use_treecounts' );
392
  $mincount = wppa_get_mincount();
393
  $title = '';
@@ -448,7 +448,7 @@ global $wpdb;
448
  );
449
  $imgattrs_a[] = $imgattr_a;
450
  $srcs[] = wppa_get_thumb_url( $coverphoto,
451
- '',
452
  $imgattr_a['width'],
453
  $imgattr_a['height']
454
  );
@@ -616,7 +616,7 @@ global $wpdb;
616
  $image = wppa_cache_thumb( $coverphoto ); //$wpdb->get_row( $wpdb->prepare(
617
  // "SELECT * FROM `" . WPPA_PHOTOS . "` WHERE `id` = %s", $coverphoto
618
  // ), ARRAY_A );
619
- $photocount = wppa_get_photo_count( $albumid, true );
620
  $albumcount = wppa_get_album_count( $albumid, true );
621
  $mincount = wppa_get_mincount();
622
  $title = '';
@@ -678,7 +678,7 @@ global $wpdb;
678
  $imgattr_a = wppa_get_imgstyle_a(
679
  $coverphoto, $path, wppa_opt( 'smallsize' ), '', 'cover' );
680
  $src = wppa_get_thumb_url(
681
- $coverphoto, '', $imgattr_a['width'], $imgattr_a['height'] );
682
  }
683
  else {
684
  $path = '';
@@ -1716,7 +1716,7 @@ global $wpdb;
1716
 
1717
  // Find the content 'View' link
1718
  $albumid = $album['id'];
1719
- $photocount = wppa_get_photo_count( $albumid, 'use_treecounts' );
1720
 
1721
  // Thumbnails and covers, show sub-album covers
1722
  // in case slideshow is requested on an empty album
83
  // $coverphoto
84
  // );
85
  $image = wppa_cache_thumb( $coverphoto ); //$wpdb->get_row( $query, ARRAY_A );
86
+ $photocount = wppa_get_photo_count( $albumid );
87
  $albumcount = wppa_get_album_count( $albumid, 'use_treecounts' );
88
  $mincount = wppa_get_mincount();
89
 
171
  'cover'
172
  );
173
  $src = wppa_get_thumb_url( $coverphoto,
174
+ true,
175
  $imgattr_a['width'],
176
  $imgattr_a['height']
177
  );
387
  $coverphoto = false;
388
  }
389
 
390
+ $photocount = wppa_get_photo_count( $albumid );
391
  $albumcount = wppa_get_album_count( $albumid, 'use_treecounts' );
392
  $mincount = wppa_get_mincount();
393
  $title = '';
448
  );
449
  $imgattrs_a[] = $imgattr_a;
450
  $srcs[] = wppa_get_thumb_url( $coverphoto,
451
+ true,
452
  $imgattr_a['width'],
453
  $imgattr_a['height']
454
  );
616
  $image = wppa_cache_thumb( $coverphoto ); //$wpdb->get_row( $wpdb->prepare(
617
  // "SELECT * FROM `" . WPPA_PHOTOS . "` WHERE `id` = %s", $coverphoto
618
  // ), ARRAY_A );
619
+ $photocount = wppa_get_photo_count( $albumid );
620
  $albumcount = wppa_get_album_count( $albumid, true );
621
  $mincount = wppa_get_mincount();
622
  $title = '';
678
  $imgattr_a = wppa_get_imgstyle_a(
679
  $coverphoto, $path, wppa_opt( 'smallsize' ), '', 'cover' );
680
  $src = wppa_get_thumb_url(
681
+ $coverphoto, true, $imgattr_a['width'], $imgattr_a['height'] );
682
  }
683
  else {
684
  $path = '';
1716
 
1717
  // Find the content 'View' link
1718
  $albumid = $album['id'];
1719
+ $photocount = wppa_get_photo_count( $albumid );
1720
 
1721
  // Thumbnails and covers, show sub-album covers
1722
  // in case slideshow is requested on an empty album
wppa-audio.php CHANGED
@@ -212,7 +212,21 @@ global $wppa_supported_audio_extensions;
212
 
213
  function wppa_get_audio_control_height() {
214
 
215
- if ( strpos( $_SERVER["HTTP_USER_AGENT"], 'Safari' ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  $result = '16';
217
  }
218
  else {
212
 
213
  function wppa_get_audio_control_height() {
214
 
215
+ if ( strpos( $_SERVER["HTTP_USER_AGENT"], 'Edge' ) ) {
216
+ $result = '30';
217
+ }
218
+ elseif ( strpos( $_SERVER["HTTP_USER_AGENT"], 'Firefox' ) ) {
219
+ $result = '40';
220
+ }
221
+ elseif ( strpos( $_SERVER["HTTP_USER_AGENT"], 'Chrome' ) ) {
222
+ if ( wppa_is_mobile() ) {
223
+ $result = '48';
224
+ }
225
+ else {
226
+ $result = '32';
227
+ }
228
+ }
229
+ elseif ( strpos( $_SERVER["HTTP_USER_AGENT"], 'Safari' ) ) {
230
  $result = '16';
231
  }
232
  else {
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 6.6.27
7
  *
8
  */
9
 
@@ -128,7 +128,7 @@ function wppa_search_box() {
128
  }
129
 
130
  // Get search html
131
- function wppa_get_search_html( $label = '', $sub = false, $rt = false, $force_root = '', $page = '' ) {
132
  global $wppa_session;
133
 
134
  $wppa_session['has_searchbox'] = true;
@@ -159,7 +159,36 @@ global $wppa_session;
159
  ' class="widget_search"' .
160
  ' >' .
161
  '<div>' .
162
- $label .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  '<input' .
164
  ' type="text"' .
165
  ' class="wppa-search-input"' .
@@ -2846,6 +2875,18 @@ static $albums_granted;
2846
  // Done
2847
  $result .= '</form></div>';
2848
 
 
 
 
 
 
 
 
 
 
 
 
 
2849
  // Ajax upload script
2850
  if ( $ajax_upload ) {
2851
  $result .=
@@ -2876,7 +2917,7 @@ static $albums_granted;
2876
  },
2877
  complete: function(response) {
2878
  jQuery("#message-'.$yalb.'-'.$mocc.'").html( \'<span style="font-size: 10px;" >\'+response.responseText+\'</span>\' );'.
2879
- ( $where == 'thumb' ? 'document.location.reload(true)' : '' ).'
2880
  },
2881
  error: function() {
2882
  jQuery("#message-'.$yalb.'-'.$mocc.'").html( \'<span style="color: red;" >'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'</span>\' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 6.6.29
7
  *
8
  */
9
 
128
  }
129
 
130
  // Get search html
131
+ function wppa_get_search_html( $label = '', $sub = false, $rt = false, $force_root = '', $page = '', $catbox = false ) {
132
  global $wppa_session;
133
 
134
  $wppa_session['has_searchbox'] = true;
159
  ' class="widget_search"' .
160
  ' >' .
161
  '<div>' .
162
+ $label;
163
+ if ( $catbox ) {
164
+ $cats = wppa_get_catlist();
165
+ $result .=
166
+ '<label for="wppa-catbox-' . $mocc . '" >' . __( 'Category', 'wp-photo-album-plus' ) . ': ' .
167
+ '<select' .
168
+ ' id="wppa-catbox-' . $mocc . '"' .
169
+ ' name="wppa-catbox"' .
170
+ ' >';
171
+
172
+ $current = '';
173
+ if ( wppa_get_get( 'catbox' ) ) {
174
+ $current = wppa_get_get( 'catbox' );
175
+ }
176
+ elseif ( wppa_get_post( 'catbox' ) ) {
177
+ $current = wppa_get_post( 'catbox' );
178
+ }
179
+ if ( $current ) {
180
+ $current = trim( wppa_sanitize_cats( $current ), ',' );
181
+ }
182
+
183
+ $result .= '<option value="" >' . __( '--- all ---', 'wp-photo-album-plus' ) . '</option>';
184
+ foreach( array_keys( $cats ) as $cat ) {
185
+ $result .= '<option value="' . $cat . '" ' . ( $current == $cat ? 'selected="selected"' : '' ) . ' >' . $cat . '</option>';
186
+ }
187
+ $result .=
188
+ '</select>' .
189
+ '<br />';
190
+ }
191
+ $result .=
192
  '<input' .
193
  ' type="text"' .
194
  ' class="wppa-search-input"' .
2875
  // Done
2876
  $result .= '</form></div>';
2877
 
2878
+ // If ajax upload and from cover or thumbnail area, go display the thumbnails after upload
2879
+ if ( $where == 'cover' || $where == 'thumb' ) {
2880
+ $url_after_ajax_upload = wppa_get_permalink() . 'wppa-occur=' . wppa( 'occur' ) . '&wppa-cover=0&wppa-album=' . $alb;
2881
+ $ajax_url_after_upload = str_replace( '&amp;', '&', wppa_get_ajaxlink() ) . 'wppa-occur=' . wppa( 'occur' ) . '&wppa-cover=0&wppa-album=' . $alb;
2882
+ $on_complete = 'wppaDoAjaxRender( ' . $occur . ', \'' . $ajax_url_after_upload . '\', \'' . $url_after_ajax_upload . '\' );';
2883
+ }
2884
+ else {
2885
+ $url_after_ajax_upload = '';
2886
+ $ajax_url_after_upload = '';
2887
+ $on_complete = '';
2888
+ }
2889
+
2890
  // Ajax upload script
2891
  if ( $ajax_upload ) {
2892
  $result .=
2917
  },
2918
  complete: function(response) {
2919
  jQuery("#message-'.$yalb.'-'.$mocc.'").html( \'<span style="font-size: 10px;" >\'+response.responseText+\'</span>\' );'.
2920
+ ( $where == 'thumb' || $where == 'cover' ? $on_complete : '' ).'
2921
  },
2922
  error: function() {
2923
  jQuery("#message-'.$yalb.'-'.$mocc.'").html( \'<span style="color: red;" >'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'</span>\' );
wppa-breadcrumb.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
- * Version 6.6.25
7
  *
8
  */
9
 
@@ -244,16 +244,21 @@ global $wppa_session;
244
  elseif ( isset( $_REQUEST['searchstring'] ) ) {
245
  $value .= $_REQUEST['searchstring'];
246
  }
 
 
 
247
  $value .= $albtxt;
248
 
249
  if ( wppa( 'is_slide' ) ) {
250
- // $value = __( 'Searchstring:' , 'wp-photo-album-plus') . ' ' . ( isset ( $wppa_session['display_searchstring'] ) ? $wppa_session['display_searchstring'] : stripslashes( wppa( 'searchstring' ) ) ) . $albtxt;
251
  $thumbhref = wppa_get_permalink().'wppa-cover=0&amp;wppa-occur='.wppa( 'occur' ).'&amp;wppa-searchstring='.stripslashes( str_replace( ' ', '+', $wppa_session['use_searchstring'] ) );
252
  $thumbajax = wppa_get_ajaxlink().'wppa-cover=0&amp;wppa-occur='.wppa( 'occur' ).'&amp;wppa-searchstring='.stripslashes( str_replace( ' ', '+', $wppa_session['use_searchstring'] ) );
 
 
 
 
253
  $title = __( 'View the thumbnails' , 'wp-photo-album-plus');
254
  wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax );
255
  }
256
- // $value = __( 'Searchstring:' , 'wp-photo-album-plus') . ' ' . ( isset ( $wppa_session['display_searchstring'] ) ? $wppa_session['display_searchstring'] : stripslashes( wppa( 'searchstring' ) ) ) . $albtxt;
257
  $href = '';
258
  $title = isset ( $wppa_session['display_searchstring'] ) ? wppa_dss_to_title( $wppa_session['display_searchstring'] ) : '';
259
  wppa_bcitem( $value, $href, $title, 'b9' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
+ * Version 6.6.29
7
  *
8
  */
9
 
244
  elseif ( isset( $_REQUEST['searchstring'] ) ) {
245
  $value .= $_REQUEST['searchstring'];
246
  }
247
+ if ( wppa( 'catbox' ) ) {
248
+ $value .= ', ' . __( 'in category:', 'wp-photo-album-plus' ) . ' ' . trim( wppa( 'catbox' ), ',' );
249
+ }
250
  $value .= $albtxt;
251
 
252
  if ( wppa( 'is_slide' ) ) {
 
253
  $thumbhref = wppa_get_permalink().'wppa-cover=0&amp;wppa-occur='.wppa( 'occur' ).'&amp;wppa-searchstring='.stripslashes( str_replace( ' ', '+', $wppa_session['use_searchstring'] ) );
254
  $thumbajax = wppa_get_ajaxlink().'wppa-cover=0&amp;wppa-occur='.wppa( 'occur' ).'&amp;wppa-searchstring='.stripslashes( str_replace( ' ', '+', $wppa_session['use_searchstring'] ) );
255
+ if ( wppa( 'catbox' ) ) {
256
+ $thumbhref .= '&amp;wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
257
+ $thumbajax .= '&amp;wppa-catbox=' . trim( wppa( 'catbox' ), ',' );
258
+ }
259
  $title = __( 'View the thumbnails' , 'wp-photo-album-plus');
260
  wppa_bcitem( $value, $thumbhref, $title, 'b8', $thumbajax );
261
  }
 
262
  $href = '';
263
  $title = isset ( $wppa_session['display_searchstring'] ) ? wppa_dss_to_title( $wppa_session['display_searchstring'] ) : '';
264
  wppa_bcitem( $value, $href, $title, 'b9' );
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 6.6.27
6
  *
7
  */
8
 
@@ -50,7 +50,7 @@ global $wppa_defaults;
50
 
51
  // If there is only one grant parent, make sure the granted album is created regardless of if it is used.
52
  if ( ! wppa_is_cron() && ! wppa( 'ajax' ) ) {
53
- if ( wppa_is_int( wppa_opt( 'grant_parent' ) ) ) {
54
  wppa_grant_albums();
55
  }
56
  }
@@ -212,6 +212,7 @@ global $thumbs;
212
  'for_sm' => false,
213
  'max_width' => false,
214
  'no_ver' => false,
 
215
 
216
  );
217
  }
@@ -840,6 +841,18 @@ global $wppa;
840
  }
841
  }
842
 
 
 
 
 
 
 
 
 
 
 
 
 
843
  return $result;
844
  }
845
 
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 6.6.29
6
  *
7
  */
8
 
50
 
51
  // If there is only one grant parent, make sure the granted album is created regardless of if it is used.
52
  if ( ! wppa_is_cron() && ! wppa( 'ajax' ) ) {
53
+ if ( wppa_is_int( get_option( 'wppa_grant_parent' ) ) ) {
54
  wppa_grant_albums();
55
  }
56
  }
212
  'for_sm' => false,
213
  'max_width' => false,
214
  'no_ver' => false,
215
+ 'catbox' => '',
216
 
217
  );
218
  }
841
  }
842
  }
843
 
844
+ if ( $wppa['src'] ) {
845
+ if ( wppa_get_get( 'catbox' ) ) {
846
+ $wppa['catbox'] = wppa_get_get( 'catbox' );
847
+ }
848
+ if ( wppa_get_post( 'catbox' ) ) {
849
+ $wppa['catbox'] = wppa_get_post( 'catbox' );
850
+ }
851
+ if ( isset ( $wppa['catbox'] ) ) {
852
+ $wppa['catbox'] = wppa_sanitize_cats( $wppa['catbox'] );
853
+ }
854
+ }
855
+
856
  return $result;
857
  }
858
 
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 6.6.28
7
  *
8
  */
9
 
@@ -1030,6 +1030,12 @@ global $wppa_session;
1030
  if ( isset( $album_array['0'] ) ) $final_array = array_merge( $final_array, $album_array['0'] );
1031
  }
1032
 
 
 
 
 
 
 
1033
  // Compose WHERE clause
1034
  $selection = " `id` = '0' ";
1035
  foreach ( array_keys( $final_array ) as $p ) {
@@ -1673,6 +1679,19 @@ global $wppa_session;
1673
  $alb_clause = $root_albs ? ' AND `album` IN ('.$root_albs.') ' : '';
1674
  }
1675
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1676
  // exclude separate if required
1677
  elseif ( ! $alb_clause && wppa_switch( 'excl_sep' ) ) {
1678
  $sep_albs = '';
@@ -4203,7 +4222,32 @@ global $wppa_alert;
4203
  wppa_alert( sprintf( __( 'Album #%s created' , 'wp-photo-album-plus'), $album ) );
4204
  }
4205
  wppa_invalidate_treecounts( $parent );
 
4206
  wppa_create_pl_htaccess();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4207
  }
4208
  else {
4209
  wppa_alert( __( 'Could not create album' , 'wp-photo-album-plus') );
@@ -4343,9 +4387,9 @@ global $wppa_alert;
4343
  if ( wppa_opt( 'fe_alert' ) != '-none-' || $fail ) {
4344
  wppa_alert( $alert, $reload );
4345
  }
4346
- elseif( ! $blogged ) {
4347
- wppa_alert( '', $reload );
4348
- }
4349
 
4350
  // Redirect to blogpost
4351
  if ( $blogged ) {
@@ -4491,7 +4535,8 @@ global $wppa_alert;
4491
 
4492
  // Housekeeping
4493
  wppa_update_album( array( 'id' => $alb, 'modified' => time() ) );
4494
- wppa_invalidate_treecounts( $alb );
 
4495
  wppa_flush_upldr_cache( 'photoid', $id );
4496
 
4497
  // Add video filetype
@@ -4616,6 +4661,7 @@ global $wppa_alert;
4616
  wppa_make_o1_source( $id );
4617
  wppa_update_album( array( 'id' => $alb, 'modified' => time() ) );
4618
  wppa_invalidate_treecounts( $alb );
 
4619
  wppa_flush_upldr_cache( 'photoid', $id );
4620
  }
4621
  $source_file = $file['tmp_name'];
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 6.6.29
7
  *
8
  */
9
 
1030
  if ( isset( $album_array['0'] ) ) $final_array = array_merge( $final_array, $album_array['0'] );
1031
  }
1032
 
1033
+ // If Catbox specifies a category to limit, remove all albums that do not have the desired cat.
1034
+ if ( wppa( 'catbox' ) ) {
1035
+ $catalbs = $wpdb->get_col( "SELECT `id` FROM `" . WPPA_ALBUMS . "` WHERE `cats` LIKE '%" . wppa( 'catbox' ) . "%' " );
1036
+ $final_array = array_intersect( $final_array, $catalbs );
1037
+ }
1038
+
1039
  // Compose WHERE clause
1040
  $selection = " `id` = '0' ";
1041
  foreach ( array_keys( $final_array ) as $p ) {
1679
  $alb_clause = $root_albs ? ' AND `album` IN ('.$root_albs.') ' : '';
1680
  }
1681
 
1682
+ // Maybe cats limitation
1683
+ elseif ( wppa( 'catbox' ) ) {
1684
+
1685
+ $catalbs = $wpdb->get_col( "SELECT `id` FROM `" . WPPA_ALBUMS . "` WHERE `cats` LIKE '%" . wppa( 'catbox' ) . "%' " );
1686
+
1687
+ if ( ! empty( $catalbs ) ) {
1688
+ $alb_clause = " AND `album` IN ( " . implode( ',', $catalbs ) . " ) ";
1689
+ }
1690
+ else {
1691
+ $alb_clause = " AND `album` > '0' ";
1692
+ }
1693
+ }
1694
+
1695
  // exclude separate if required
1696
  elseif ( ! $alb_clause && wppa_switch( 'excl_sep' ) ) {
1697
  $sep_albs = '';
4222
  wppa_alert( sprintf( __( 'Album #%s created' , 'wp-photo-album-plus'), $album ) );
4223
  }
4224
  wppa_invalidate_treecounts( $parent );
4225
+ wppa_verify_treecounts_a( $parent );
4226
  wppa_create_pl_htaccess();
4227
+ if ( wppa_opt( 'fe_create_ntfy' ) ) {
4228
+ $users = explode( ',', wppa_opt( 'fe_create_ntfy' ) );
4229
+ if ( ! empty( $users ) ) foreach( $users as $usr ) {
4230
+ $user = get_user_by( 'login', trim( $usr ) );
4231
+ if ( ! empty( $user ) ) {
4232
+ $cont = array();
4233
+ $cont[] = sprintf( __( 'User %s created album #%s with name %s.' ), '<b>' . wppa_get_user() . '</b>', $album, '<b>' . $albumname . '</b>' );
4234
+ $cont[] = '<b>' .
4235
+ __( 'Description:' ) .
4236
+ '</b>' .
4237
+ '<br/><br/>' .
4238
+ '<blockquote style="color:#000077; background-color: #dddddd; border:1px solid black; padding: 6px; border-radius 4px;" >' .
4239
+ '<em>' .
4240
+ strip_tags( wppa_get_post( 'wppa-album-desc' ) ) .
4241
+ '</em>' .
4242
+ '</blockquote>';
4243
+ if ( $parent > '0' ) {
4244
+ $cont[] = sprintf( __('The new album is a subalbum of album %s', 'wp-photo-album-plus'), '<b>' . wppa_get_album_name( $parent ) . '</b>' );
4245
+ }
4246
+ $cont[] = __('You are receiving this email because you are assigned to monitor new album creations.', 'wp-photo-album-plus');
4247
+ wppa_send_mail( $user->user_email, __( 'New useralbum created', 'wp-photo-album-plus'), $cont );
4248
+ }
4249
+ }
4250
+ }
4251
  }
4252
  else {
4253
  wppa_alert( __( 'Could not create album' , 'wp-photo-album-plus') );
4387
  if ( wppa_opt( 'fe_alert' ) != '-none-' || $fail ) {
4388
  wppa_alert( $alert, $reload );
4389
  }
4390
+ // elseif( ! $blogged ) {
4391
+ // wppa_alert( '', $reload );
4392
+ // }
4393
 
4394
  // Redirect to blogpost
4395
  if ( $blogged ) {
4535
 
4536
  // Housekeeping
4537
  wppa_update_album( array( 'id' => $alb, 'modified' => time() ) );
4538
+ wppa_verify_treecounts_a( $alb );
4539
+ // wppa_invalidate_treecounts( $alb, 'now' );
4540
  wppa_flush_upldr_cache( 'photoid', $id );
4541
 
4542
  // Add video filetype
4661
  wppa_make_o1_source( $id );
4662
  wppa_update_album( array( 'id' => $alb, 'modified' => time() ) );
4663
  wppa_invalidate_treecounts( $alb );
4664
+ wppa_verify_treecounts_a( $alb );
4665
  wppa_flush_upldr_cache( 'photoid', $id );
4666
  }
4667
  $source_file = $file['tmp_name'];
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 6.6.27
7
  *
8
  */
9
 
@@ -2378,7 +2378,12 @@ global $wppa_supported_audio_extensions;
2378
 
2379
  // Update custom fields
2380
  foreach( array_keys( $custptrs ) as $idx ) {
2381
- $cust_data[$idx] = wppa_sanitize_custom_field( $data_arr[$custptrs[$idx]] );
 
 
 
 
 
2382
  }
2383
  wppa_update_photo( array( 'id' => $photo['id'], 'custom' => serialize( $cust_data ) ) );
2384
 
@@ -2744,17 +2749,20 @@ function wppa_extract( $xpath, $delz ) {
2744
  $zip = new ZipArchive;
2745
  if ( $zip->open( $xpath ) === true ) {
2746
 
2747
- $supported_file_ext = array( 'jpg', 'png', 'gif', 'JPG', 'PNG', 'GIF', 'amf', 'pmf' );
2748
  $done = '0';
2749
  $skip = '0';
2750
  for( $i = 0; $i < $zip->numFiles; $i++ ){
2751
  $stat = $zip->statIndex( $i );
2752
  $file_ext = @ end( explode( '.', $stat['name'] ) );
 
2753
  if ( in_array( $file_ext, $supported_file_ext ) ) {
2754
  $zip->extractTo( WPPA_DEPOT_PATH, $stat['name'] );
2755
  $done++;
2756
  }
2757
- else {
 
 
2758
  wppa_warning_message( sprintf( __( 'File %s is of an unsupported filetype and has been ignored during extraction.', 'wp-photo-album-plus'), wppa_sanitize_file_name( $stat['name'] ) ) );
2759
  $skip++;
2760
  }
@@ -2841,13 +2849,21 @@ global $wppa_session;
2841
  }
2842
 
2843
  // Now import the files
2844
- $photofiles = glob( $file.'/*' );
 
 
2845
  if ( $photofiles ) foreach ( $photofiles as $photofile ) {
2846
  if ( ! is_dir( $photofile ) ) {
2847
 
2848
  if ( ! isset( $wppa_session[$photofile] ) || ! wppa_switch( 'keep_import_files' ) ) {
2849
 
2850
- if ( wppa_albumphoto_exists( $alb, basename( $photofile ) ) ) {
 
 
 
 
 
 
2851
  if ( ! wppa_switch( 'keep_import_files' ) ) {
2852
  wppa_warning_message( 'Photo '.basename( $photofile ).' already exists in album '.$alb.'. Removed. (2)' );
2853
  }
@@ -2867,7 +2883,7 @@ global $wppa_session;
2867
  }
2868
 
2869
  // Now go deeper, process the subdirs
2870
- $subdirs = glob( $file.'/*' );
2871
  if ( $subdirs ) foreach ( $subdirs as $subdir ) {
2872
  if ( is_dir( $subdir ) ) {
2873
  if ( basename( $subdir ) != '.' && basename( $subdir ) != '..' ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
+ * Version 6.6.29
7
  *
8
  */
9
 
2378
 
2379
  // Update custom fields
2380
  foreach( array_keys( $custptrs ) as $idx ) {
2381
+ if ( isset( $data_arr[$custptrs[$idx]] ) ) {
2382
+ $cust_data[$idx] = wppa_sanitize_custom_field( $data_arr[$custptrs[$idx]] );
2383
+ }
2384
+ else {
2385
+ $cust_data[$idx] = '';
2386
+ }
2387
  }
2388
  wppa_update_photo( array( 'id' => $photo['id'], 'custom' => serialize( $cust_data ) ) );
2389
 
2749
  $zip = new ZipArchive;
2750
  if ( $zip->open( $xpath ) === true ) {
2751
 
2752
+ $supported_file_ext = array( 'jpg', 'png', 'gif', 'JPG', 'PNG', 'GIF', 'amf', 'pmf', 'zip', 'csv' );
2753
  $done = '0';
2754
  $skip = '0';
2755
  for( $i = 0; $i < $zip->numFiles; $i++ ){
2756
  $stat = $zip->statIndex( $i );
2757
  $file_ext = @ end( explode( '.', $stat['name'] ) );
2758
+
2759
  if ( in_array( $file_ext, $supported_file_ext ) ) {
2760
  $zip->extractTo( WPPA_DEPOT_PATH, $stat['name'] );
2761
  $done++;
2762
  }
2763
+
2764
+ // Assuming that entries without a file extension are directries. No warning on directory.
2765
+ elseif ( strpos( $stat['name'], '.' ) !== false && strlen( $file_ext ) < 5 ) {
2766
  wppa_warning_message( sprintf( __( 'File %s is of an unsupported filetype and has been ignored during extraction.', 'wp-photo-album-plus'), wppa_sanitize_file_name( $stat['name'] ) ) );
2767
  $skip++;
2768
  }
2849
  }
2850
 
2851
  // Now import the files
2852
+ // First escape special regexp chars
2853
+ $xfile = str_replace( array( '[', ']', '(', ')', '{', '}', '$', '+' ), array( '\[', '\]', '\(', '\)', '\{', '\}', '\$', '\+' ), $file );
2854
+ $photofiles = glob( $xfile.'/*' );
2855
  if ( $photofiles ) foreach ( $photofiles as $photofile ) {
2856
  if ( ! is_dir( $photofile ) ) {
2857
 
2858
  if ( ! isset( $wppa_session[$photofile] ) || ! wppa_switch( 'keep_import_files' ) ) {
2859
 
2860
+ // If we find a .csv file, move it to our depot and give a warning message
2861
+ if ( wppa_get_ext( $photofile ) == 'csv' ) {
2862
+ copy( $photofile, WPPA_DEPOT_PATH . '/' . basename( $photofile ) );
2863
+ @ unlink( $photofile );
2864
+ wppa_warning_message( sprintf( __( '.csv file %s has been moved to your depot.', 'wp-photo-album-plus' ), basename( $photofile ) ) );
2865
+ }
2866
+ elseif ( wppa_albumphoto_exists( $alb, basename( $photofile ) ) ) {
2867
  if ( ! wppa_switch( 'keep_import_files' ) ) {
2868
  wppa_warning_message( 'Photo '.basename( $photofile ).' already exists in album '.$alb.'. Removed. (2)' );
2869
  }
2883
  }
2884
 
2885
  // Now go deeper, process the subdirs
2886
+ $subdirs = glob( $xfile.'/*' );
2887
  if ( $subdirs ) foreach ( $subdirs as $subdir ) {
2888
  if ( is_dir( $subdir ) ) {
2889
  if ( basename( $subdir ) != '.' && basename( $subdir ) != '..' ) {
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 6.6.13
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
@@ -283,7 +283,7 @@ global $pagenow;
283
  }
284
 
285
  // Cron jobs postponed?
286
- if ( wppa_switch( 'maint_ignore_cron' ) ) {
287
  wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions. See <i>Table VIII-A0.2</i>', 'wp-photo-album-plus') );
288
  }
289
 
4
  *
5
  * This file loads required php files and contains all functions used in init actions.
6
  *
7
+ * Version 6.6.29
8
  */
9
 
10
  /* LOAD SIDEBAR WIDGETS */
283
  }
284
 
285
  // Cron jobs postponed?
286
+ if ( get_option( 'wppa_maint_ignore_cron' ) == 'yes' ) {
287
  wppa_warning_message( __( 'Please do not forget to re-enable cron jobs for wppa when you are ready doing your bulk actions. See <i>Table VIII-A0.2</i>', 'wp-photo-album-plus') );
288
  }
289
 
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 6.6.22
7
  *
8
  */
9
 
@@ -411,6 +411,9 @@ function wppa_convert_from_pretty( $uri ) {
411
  case 'vt':
412
  $deltauri = 'wppa-vt=';
413
  break;
 
 
 
414
 
415
  default:
416
  $deltauri = '';
@@ -424,7 +427,7 @@ function wppa_convert_from_pretty( $uri ) {
424
  // }
425
  if ( $deltauri ) {
426
  $newuri .= $deltauri;
427
- $newuri .= substr($arg, 2);
428
  }
429
  else {
430
  $newuri = rtrim( $newuri, '&' );
@@ -512,6 +515,7 @@ function wppa_convert_to_pretty( $xuri, $no_names = false, $overrule = false ) {
512
  'debug',
513
  'inv',
514
  'vt',
 
515
  );
516
 
517
  $uri = $parts[0] . '?';
@@ -629,6 +633,7 @@ function wppa_convert_to_pretty( $xuri, $no_names = false, $overrule = false ) {
629
  'caldate',
630
  'inv',
631
  'vt',
 
632
  );
633
  if ( count($args) > 0 ) {
634
  foreach ( $args as $arg ) {
@@ -728,6 +733,9 @@ function wppa_convert_to_pretty( $xuri, $no_names = false, $overrule = false ) {
728
  case 'vt':
729
  $newuri .= 'vt';
730
  break;
 
 
 
731
  }
732
  if ( $val !== false ) {
733
  if ( $code == 'searchstring' ) $newuri .= str_replace(' ', '_', $val);
@@ -1760,6 +1768,10 @@ global $wpdb;
1760
  $result['url'] .= '&amp;wppa-searchstring=' . urlencode( wppa( 'searchstring' ) );
1761
  }
1762
 
 
 
 
 
1763
  if ( $wich == 'topten' ) {
1764
  $result['url'] .= '&amp;wppa-topten=' . wppa_opt( 'topten_count' );
1765
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 6.6.29
7
  *
8
  */
9
 
411
  case 'vt':
412
  $deltauri = 'wppa-vt=';
413
  break;
414
+ case 'cb':
415
+ $deltauri = 'wppa-catbox';
416
+ break;
417
 
418
  default:
419
  $deltauri = '';
427
  // }
428
  if ( $deltauri ) {
429
  $newuri .= $deltauri;
430
+ $newuri .= substr( $arg, 2 );
431
  }
432
  else {
433
  $newuri = rtrim( $newuri, '&' );
515
  'debug',
516
  'inv',
517
  'vt',
518
+ 'catbox',
519
  );
520
 
521
  $uri = $parts[0] . '?';
633
  'caldate',
634
  'inv',
635
  'vt',
636
+ 'catbox',
637
  );
638
  if ( count($args) > 0 ) {
639
  foreach ( $args as $arg ) {
733
  case 'vt':
734
  $newuri .= 'vt';
735
  break;
736
+ case 'catbox':
737
+ $newuri .= 'cb';
738
+ break;
739
  }
740
  if ( $val !== false ) {
741
  if ( $code == 'searchstring' ) $newuri .= str_replace(' ', '_', $val);
1768
  $result['url'] .= '&amp;wppa-searchstring=' . urlencode( wppa( 'searchstring' ) );
1769
  }
1770
 
1771
+ if ( wppa( 'catbox' ) ) {
1772
+ $result['url'] .= '&amp;wppa-catbox=' . urlencode( trim( wppa( 'catbox' ), ',' ) );
1773
+ }
1774
+
1775
  if ( $wich == 'topten' ) {
1776
  $result['url'] .= '&amp;wppa-topten=' . wppa_opt( 'topten_count' );
1777
  }
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 6.6.27
7
  *
8
  */
9
 
@@ -48,7 +48,8 @@ $wppa_all_maintenance_slugs = array( 'wppa_remake_index_albums',
48
  'wppa_sync_cloud',
49
  'wppa_sanitize_tags',
50
  'wppa_sanitize_cats',
51
- 'wppa_test_proc',
 
52
  'wppa_crypt_photos',
53
  'wppa_crypt_albums',
54
  'wppa_create_o1_files',
@@ -69,7 +70,7 @@ $wppa_cron_maintenance_slugs = array( 'wppa_remake_index_albums',
69
  'wppa_comp_sizes',
70
  'wppa_add_gpx_tag',
71
  'wppa_add_hd_tag',
72
- 'wppa_test_proc',
73
  );
74
 
75
  // Main maintenace module
@@ -269,6 +270,7 @@ global $wppa_timestamp_start;
269
  case 'wppa_remove_empty_albums':
270
  case 'wppa_sanitize_cats':
271
  case 'wppa_crypt_albums':
 
272
 
273
  // Process albums
274
  $table = WPPA_ALBUMS;
@@ -328,6 +330,10 @@ global $wppa_timestamp_start;
328
  wppa_update_album( array( 'id' => $album['id'], 'crypt' => wppa_get_unique_album_crypt() ) );
329
  break;
330
 
 
 
 
 
331
 
332
  }
333
  // Test for timeout / ready
@@ -366,7 +372,7 @@ global $wppa_timestamp_start;
366
  case 'wppa_sync_cloud':
367
  case 'wppa_sanitize_tags':
368
  case 'wppa_crypt_photos':
369
- case 'wppa_test_proc':
370
  case 'wppa_create_o1_files':
371
  case 'wppa_owner_to_name_proc':
372
  case 'wppa_move_all_photos':
@@ -808,46 +814,9 @@ global $wppa_timestamp_start;
808
  }
809
  break;
810
 
811
- case 'wppa_test_proc':
812
- $old_tags = $photo['tags'];
813
- $tags = '';
814
- // Location
815
- $temp = explode( '/', $photo['location'] );
816
- if ( ! isset( $temp['2'] ) ) $temp['2'] = false;
817
- if ( ! isset( $temp['3'] ) ) $temp['3'] = false;
818
- $lat = $temp['2'];
819
- $lon = $temp['3'];
820
- if ( $lat < 0.01 && $lat > -0.01 && $lon < 0.01 && $lon > -0.01 ) {
821
- $lat = false;
822
- $lon = false;
823
- }
824
- if ( $photo['location'] && $lat && $lon ) {
825
- $tags .= ',GPX';
826
- }
827
- // HD?
828
- $size = wppa_get_artmonkey_size_a( $photo['id'] );
829
- if ( is_array( $size ) && $size['x'] >= 1920 && $size['y'] >= 1080 ) {
830
- $tags .= ',HD';
831
- }
832
- // Album names
833
- $albid = $photo['album'];
834
- $albnam = wppa_get_album_item( $albid, 'name' );
835
- $tags .= ',' . $albnam;
836
- while ( $albid > '0' ) {
837
- $albid = wppa_get_album_item( $albid, 'a_parent' );
838
- if ( $albid > '0' ) {
839
- $tags .= ',' . wppa_get_album_item( $albid, 'name' );
840
- }
841
- }
842
- $tags = wppa_sanitize_tags( $tags );
843
-
844
- // Update only if new data differs from existing data
845
- if ( $old_tags != $tags ) {
846
- wppa_update_photo( array( 'id' => $photo['id'], 'tags' => $tags ) );
847
- wppa_index_update( 'photo', $photo['id'] );
848
- wppa_clear_taglist();
849
- }
850
-
851
  break;
852
 
853
  }
@@ -1011,6 +980,7 @@ global $wppa_timestamp_start;
1011
  wppa_delete_from_cloudinary( $to_delete_from_cloudinary );
1012
  }
1013
  break;
 
1014
  }
1015
 
1016
  // Register lastid
@@ -1119,9 +1089,6 @@ global $wppa_timestamp_start;
1119
  case 'wppa_sanitize_cats':
1120
  wppa_clear_catlist();
1121
  break;
1122
- case 'wppa_test_proc':
1123
- wppa_clear_taglist();
1124
- break;
1125
  case 'wppa_sync_cloud':
1126
  unset( $wppa_session['cloudinary_ids'] );
1127
  break;
@@ -1236,8 +1203,8 @@ global $wppa_log_file;
1236
  else {
1237
  $size = filesize( $wppa_log_file );
1238
  $data = fread( $file, $size );
1239
- $data = htmlspecialchars( strip_tags( $data ) );
1240
- $data = str_replace( array( '{b}', '{/b}', "\n" ), array( '<b>', '</b>', '<br />' ), $data );
1241
  $result .= $data;
1242
  fclose( $file );
1243
  }
@@ -1548,3 +1515,25 @@ function wppa_fix_source_path() {
1548
  }
1549
  }
1550
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 6.6.29
7
  *
8
  */
9
 
48
  'wppa_sync_cloud',
49
  'wppa_sanitize_tags',
50
  'wppa_sanitize_cats',
51
+ 'wppa_custom_album_proc',
52
+ 'wppa_custom_photo_proc',
53
  'wppa_crypt_photos',
54
  'wppa_crypt_albums',
55
  'wppa_create_o1_files',
70
  'wppa_comp_sizes',
71
  'wppa_add_gpx_tag',
72
  'wppa_add_hd_tag',
73
+
74
  );
75
 
76
  // Main maintenace module
270
  case 'wppa_remove_empty_albums':
271
  case 'wppa_sanitize_cats':
272
  case 'wppa_crypt_albums':
273
+ case 'wppa_custom_album_proc':
274
 
275
  // Process albums
276
  $table = WPPA_ALBUMS;
330
  wppa_update_album( array( 'id' => $album['id'], 'crypt' => wppa_get_unique_album_crypt() ) );
331
  break;
332
 
333
+ case 'wppa_custom_album_proc':
334
+ $file = WPPA_UPLOAD_PATH . '/procs/wppa_custom_album_proc.php';
335
+ include $file;
336
+ break;
337
 
338
  }
339
  // Test for timeout / ready
372
  case 'wppa_sync_cloud':
373
  case 'wppa_sanitize_tags':
374
  case 'wppa_crypt_photos':
375
+ case 'wppa_custom_photo_proc':
376
  case 'wppa_create_o1_files':
377
  case 'wppa_owner_to_name_proc':
378
  case 'wppa_move_all_photos':
814
  }
815
  break;
816
 
817
+ case 'wppa_custom_photo_proc':
818
+ $file = WPPA_UPLOAD_PATH . '/procs/wppa_custom_photo_proc.php';
819
+ include $file;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
  break;
821
 
822
  }
980
  wppa_delete_from_cloudinary( $to_delete_from_cloudinary );
981
  }
982
  break;
983
+
984
  }
985
 
986
  // Register lastid
1089
  case 'wppa_sanitize_cats':
1090
  wppa_clear_catlist();
1091
  break;
 
 
 
1092
  case 'wppa_sync_cloud':
1093
  unset( $wppa_session['cloudinary_ids'] );
1094
  break;
1203
  else {
1204
  $size = filesize( $wppa_log_file );
1205
  $data = fread( $file, $size );
1206
+ $data = strip_tags( $data );
1207
+ $data = str_replace( array( '{b}', '{/b}', "\n", '{span', '{/span}', '" }' ), array( '<b>', '</b>', '<br />', '<span', '</span>', '" >' ), $data );
1208
  $result .= $data;
1209
  fclose( $file );
1210
  }
1515
  }
1516
  }
1517
 
1518
+ function wppa_log_page() {
1519
+
1520
+ echo
1521
+ '<div class="wrap">' .
1522
+ wppa_admin_spinner() .
1523
+ wp_nonce_field( 'wppa-nonce', 'wppa-nonce', true, false ) .
1524
+ '<img id="icon-album" src="' . WPPA_URL . '/img/page_green.png" />' .
1525
+ '<h1 style="display:inline" >' . __('WP Photo Album Plus Logfile', 'wp-photo-album-plus') .
1526
+ '<input' .
1527
+ ' class="button-secundary"' .
1528
+ ' style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"' .
1529
+ ' value="Purge logfile"' .
1530
+ ' onclick="wppaAjaxUpdateOptionValue(\'errorlog_purge\', 0);jQuery(\'#wppa-maintenance-list\').fadeOut(2000);"' .
1531
+ ' type="button" >' .
1532
+ '</h1>' .
1533
+ '<style type="text/css" >h2 { display:none; }</style>' .
1534
+
1535
+ wppa_do_maintenance_popup( 'wppa_list_errorlog' ) .
1536
+
1537
+ '</div>';
1538
+
1539
+ }
wppa-non-admin.php CHANGED
@@ -718,6 +718,7 @@ function wppa_add_page_specific_urls() {
718
  wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
719
  wppaUseSvg = ' . ( wppa_use_svg() ? 'true' : 'false' ) . ';
720
  wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
 
721
  </script>
722
  <!-- WPPA+ END Page specific urls -->';
723
 
@@ -920,7 +921,6 @@ global $wppa_init_js_data;
920
  wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ).';
921
  wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ).';
922
  wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
923
- wppaAudioHeight = '.wppa_get_audio_control_height().';
924
  wppaRel = "'.( wppa_opt( 'lightbox_name' ) == 'wppa' ? 'data-rel' : 'rel' ).'";
925
  wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ).';
926
  wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ).';
718
  wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
719
  wppaUseSvg = ' . ( wppa_use_svg() ? 'true' : 'false' ) . ';
720
  wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
721
+ wppaAudioHeight = '.wppa_get_audio_control_height().';
722
  </script>
723
  <!-- WPPA+ END Page specific urls -->';
724
 
921
  wppaOvlHires = '.( wppa_switch( 'lb_hres' ) ? 'true' : 'false' ).';
922
  wppaSlideVideoStart = '.( wppa_switch( 'start_slide_video' ) ? 'true' : 'false' ).';
923
  wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
 
924
  wppaRel = "'.( wppa_opt( 'lightbox_name' ) == 'wppa' ? 'data-rel' : 'rel' ).'";
925
  wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ).';
926
  wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ).';
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 6.6.27
7
  *
8
  */
9
 
@@ -57,7 +57,12 @@ function _wppa_moderate_photos() {
57
  echo
58
  '<div class="wrap">' .
59
  '<h2>' . __( 'Moderate photos' , 'wp-photo-album-plus') . '</h2>';
60
- wppa_album_photos( '', $photo, '', true );
 
 
 
 
 
61
  echo
62
  '</div>';
63
  }
@@ -208,7 +213,7 @@ global $wpdb;
208
  $photos = $wpdb->get_results( "SELECT * " .
209
  "FROM `" . WPPA_PHOTOS . "` " .
210
  "WHERE `status` = 'pending' " . $orphotois . " " .
211
- "ORDER BY `timestamp` DESC " .
212
  $limit, ARRAY_A
213
  );
214
  $link = wppa_dbg_url( get_admin_url() . 'admin.php' . '?page=wppa_moderate_photos' . '&wppa_nonce=' . wp_create_nonce('wppa_nonce') );
@@ -482,6 +487,9 @@ function wppaTryScheduledel( id ) {
482
  // Horizon
483
  echo '<hr id="horizon" style="position:fixed;top:300px;left:0px;border:none;background-color:#777777;z-index:100000;display:none;height:1px;width:100%;" />';
484
 
 
 
 
485
  // Display all photos
486
  foreach ( $photos as $photo ) {
487
 
@@ -537,6 +545,14 @@ function wppaTryScheduledel( id ) {
537
  'cenlft' => __( 'center - left' , 'wp-photo-album-plus'), 'cencen' => __( 'center - center' , 'wp-photo-album-plus'), 'cenrht' => __( 'center - right' , 'wp-photo-album-plus'),
538
  'botlft' => __( 'bottom - left' , 'wp-photo-album-plus'), 'botcen' => __( 'bottom - center' , 'wp-photo-album-plus'), 'botrht' => __( 'bottom - right' , 'wp-photo-album-plus'), );
539
 
 
 
 
 
 
 
 
 
540
  echo // Anchor for scroll to
541
  "\n" . '<a id="photo_' . $id . '" ></a>';
542
 
@@ -600,8 +616,8 @@ function wppaTryScheduledel( id ) {
600
  }
601
  else {
602
  if ( $has_audio ) {
603
- $big = wppa_fix_poster_ext( $big, $id );
604
- $src = wppa_fix_poster_ext( $src, $id );
605
  }
606
  echo
607
  '<a' .
@@ -2077,6 +2093,13 @@ function wppa_album_photos_bulk( $album ) {
2077
  // Check input
2078
  wppa_vfy_arg( 'wppa-page' );
2079
 
 
 
 
 
 
 
 
2080
  // Init
2081
  $count = '0';
2082
  $abort = false;
@@ -2219,7 +2242,12 @@ echo '<br />';
2219
  echo 'Page='.$page;
2220
  */
2221
  if ( $album ) {
2222
- if ( $album == 'search' ) {
 
 
 
 
 
2223
  $count = wppa_get_edit_search_photos( '', 'count_only' );
2224
  $photos = wppa_get_edit_search_photos( $limit );
2225
  $link = wppa_dbg_url( get_admin_url().'admin.php?page=wppa_admin_menu&tab=edit&edit_id='.$album.'&wppa-searchstring='.wppa_sanitize_searchstring($_REQUEST['wppa-searchstring']).'&bulk'.'&wppa_nonce=' . wp_create_nonce('wppa_nonce') );
@@ -2485,6 +2513,19 @@ function wppaSetConfirmMove( id ) {
2485
  <tbody>
2486
  <?php foreach ( $photos as $photo ) { ?>
2487
  <?php $id = $photo['id']; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
2488
  <?php $maxsize = wppa_get_minisize(); ?>
2489
  <tr id="photoitem-<?php echo $photo['id'] ?>" >
2490
  <!-- Checkbox -->
@@ -2673,8 +2714,11 @@ function wppaSetConfirmMove( id ) {
2673
  if ( isset( $_REQUEST['wppa-searchstring'] ) ) {
2674
  echo '<h3>'.__( 'No photos matching your search criteria.' , 'wp-photo-album-plus').'</h3>';
2675
  }
 
 
 
2676
  else {
2677
- echo '<h3>'.__( 'No photos yet in this album.' , 'wp-photo-album-plus').'</h3>';
2678
  }
2679
  }
2680
  else {
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 6.6.29
7
  *
8
  */
9
 
57
  echo
58
  '<div class="wrap">' .
59
  '<h2>' . __( 'Moderate photos' , 'wp-photo-album-plus') . '</h2>';
60
+ if ( wppa_switch( 'moderate_bulk' ) ) {
61
+ wppa_album_photos_bulk( 'moderate' );
62
+ }
63
+ else {
64
+ wppa_album_photos( '', $photo, '', true );
65
+ }
66
  echo
67
  '</div>';
68
  }
213
  $photos = $wpdb->get_results( "SELECT * " .
214
  "FROM `" . WPPA_PHOTOS . "` " .
215
  "WHERE `status` = 'pending' " . $orphotois . " " .
216
+ "ORDER BY `album` DESC, `timestamp` DESC " .
217
  $limit, ARRAY_A
218
  );
219
  $link = wppa_dbg_url( get_admin_url() . 'admin.php' . '?page=wppa_moderate_photos' . '&wppa_nonce=' . wp_create_nonce('wppa_nonce') );
487
  // Horizon
488
  echo '<hr id="horizon" style="position:fixed;top:300px;left:0px;border:none;background-color:#777777;z-index:100000;display:none;height:1px;width:100%;" />';
489
 
490
+ // Albun name if moderate
491
+ static $modalbum;
492
+
493
  // Display all photos
494
  foreach ( $photos as $photo ) {
495
 
545
  'cenlft' => __( 'center - left' , 'wp-photo-album-plus'), 'cencen' => __( 'center - center' , 'wp-photo-album-plus'), 'cenrht' => __( 'center - right' , 'wp-photo-album-plus'),
546
  'botlft' => __( 'bottom - left' , 'wp-photo-album-plus'), 'botcen' => __( 'bottom - center' , 'wp-photo-album-plus'), 'botrht' => __( 'bottom - right' , 'wp-photo-album-plus'), );
547
 
548
+ // Album for moderate
549
+ if ( $modalbum != $album ) {
550
+ echo '<h3>' . sprintf( __( 'Edit/Moderate photos from album %s by %s', 'wp-photo-album-plus' ),
551
+ '<i>' . wppa_get_album_name( $album ) . '</i>',
552
+ '<i>' . wppa_get_album_item( $album, 'owner' ) . '</i>' ) . '</h3>';
553
+ $modalbum = $album;
554
+ }
555
+
556
  echo // Anchor for scroll to
557
  "\n" . '<a id="photo_' . $id . '" ></a>';
558
 
616
  }
617
  else {
618
  if ( $has_audio ) {
619
+ $src = wppa_get_thumb_url( $id );
620
+ $big = wppa_get_photo_url( $id );
621
  }
622
  echo
623
  '<a' .
2093
  // Check input
2094
  wppa_vfy_arg( 'wppa-page' );
2095
 
2096
+ if ( $album == 'moderate' ) {
2097
+ // Can i moderate?
2098
+ if ( ! current_user_can( 'wppa_moderate' ) ) {
2099
+ wp_die( __( 'You do not have the rights to do this' , 'wp-photo-album-plus') );
2100
+ }
2101
+ }
2102
+
2103
  // Init
2104
  $count = '0';
2105
  $abort = false;
2242
  echo 'Page='.$page;
2243
  */
2244
  if ( $album ) {
2245
+ if ( $album == 'moderate' ) {
2246
+ $photos = $wpdb->get_results( "SELECT * FROM `" . WPPA_PHOTOS . "` WHERE `status` = 'pending' ORDER BY `album` DESC, `timestamp` DESC " . $limit, ARRAY_A );
2247
+ $count = count( $photos );
2248
+ $link = wppa_dbg_url( get_admin_url().'admin.php?page=wppa_moderate_photos' );
2249
+ }
2250
+ elseif ( $album == 'search' ) {
2251
  $count = wppa_get_edit_search_photos( '', 'count_only' );
2252
  $photos = wppa_get_edit_search_photos( $limit );
2253
  $link = wppa_dbg_url( get_admin_url().'admin.php?page=wppa_admin_menu&tab=edit&edit_id='.$album.'&wppa-searchstring='.wppa_sanitize_searchstring($_REQUEST['wppa-searchstring']).'&bulk'.'&wppa_nonce=' . wp_create_nonce('wppa_nonce') );
2513
  <tbody>
2514
  <?php foreach ( $photos as $photo ) { ?>
2515
  <?php $id = $photo['id']; ?>
2516
+
2517
+ <?php // Album for moderate
2518
+ static $modalbum;
2519
+ if ( $album == 'moderate' ) {
2520
+ if ( $modalbum != $photo['album'] ) {
2521
+ echo '<tr><td colspan="8" style="background-color:lightgreen;" ><h3 style="margin:0;" >' . sprintf( __( 'Moderate photos from album %s by %s', 'wp-photo-album-plus' ),
2522
+ '<i>' . wppa_get_album_name( $photo['album'] ) . '</i>',
2523
+ '<i>' . wppa_get_album_item( $photo['album'], 'owner' ) . '</i>' ) . '</h3></td></tr>';
2524
+ $modalbum = $photo['album'];
2525
+ }
2526
+ }
2527
+ ?>
2528
+
2529
  <?php $maxsize = wppa_get_minisize(); ?>
2530
  <tr id="photoitem-<?php echo $photo['id'] ?>" >
2531
  <!-- Checkbox -->
2714
  if ( isset( $_REQUEST['wppa-searchstring'] ) ) {
2715
  echo '<h3>'.__( 'No photos matching your search criteria.' , 'wp-photo-album-plus').'</h3>';
2716
  }
2717
+ elseif ( $album == 'moderate' ) {
2718
+ echo '<h3>'.__( 'No photos to moderate', 'wp-photo-album-plus' ) . '</h3>';
2719
+ }
2720
  else {
2721
+ echo '<h3>'.__( 'No photos yet in this album.' , 'wp-photo-album-plus' ).'</h3>';
2722
  }
2723
  }
2724
  else {
wppa-search-widget.php CHANGED
@@ -3,15 +3,15 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
- * Version 6.6.23
7
  *
8
  */
9
 
10
  class SearchPhotos extends WP_Widget {
11
  /** constructor */
12
  function __construct() {
13
- $widget_ops = array( 'classname' => 'wppa_search_photos',
14
- 'description' => __( 'WPPA+ Search Photos', 'wp-photo-album-plus' )
15
  );
16
  parent::__construct( 'wppa_search_photos', __( 'Search Photos', 'wp-photo-album-plus' ), $widget_ops ); //
17
  }
@@ -41,6 +41,7 @@ class SearchPhotos extends WP_Widget {
41
  'sub' => false,
42
  'album' => '',
43
  'landingpage' => '0',
 
44
  ) );
45
 
46
  $widget_title = apply_filters( 'widget_title', $instance['title'] );
@@ -48,11 +49,11 @@ class SearchPhotos extends WP_Widget {
48
  // Display the widget
49
  echo $before_widget;
50
 
51
- if ( ! empty( $widget_title ) ) {
52
- echo $before_title . $widget_title . $after_title;
53
  }
54
 
55
- echo wppa_get_search_html( $instance['label'], $instance['sub'], $instance['root'], $instance['album'], $instance['landingpage'] );
56
 
57
  echo $after_widget;
58
 
@@ -62,7 +63,7 @@ class SearchPhotos extends WP_Widget {
62
 
63
  /** @see WP_Widget::update */
64
  function update( $new_instance, $old_instance ) {
65
-
66
  $instance = $old_instance;
67
  $instance['title'] = strip_tags($new_instance['title']);
68
  $instance['label'] = $new_instance['label'];
@@ -70,6 +71,7 @@ class SearchPhotos extends WP_Widget {
70
  $instance['sub'] = isset( $new_instance['sub'] ) ? $new_instance['sub'] : false;
71
  $instance['album'] = $new_instance['album'];
72
  $instance['landingpage'] = $new_instance['landingpage'];
 
73
 
74
  return $instance;
75
  }
@@ -87,6 +89,7 @@ class SearchPhotos extends WP_Widget {
87
  'sub' => false,
88
  'album' => '',
89
  'landingpage' => '',
 
90
  ) );
91
  $title = $instance['title'];
92
  $label = $instance['label'];
@@ -94,6 +97,7 @@ class SearchPhotos extends WP_Widget {
94
  $sub = $instance['sub'];
95
  $album = $instance['album'];
96
  $landingpage = $instance['landingpage'];
 
97
  ?>
98
  <p>
99
  <label for="<?php echo $this->get_field_id('title'); ?>">
@@ -135,6 +139,12 @@ class SearchPhotos extends WP_Widget {
135
  <?php _e( 'Enable subsearch', 'wp-photo-album-plus' ); ?>
136
  </label>
137
  </p>
 
 
 
 
 
 
138
  <p>
139
  <label for="<?php echo $this->get_field_id( 'landingpage' ); ?>" >
140
  <?php _e( 'Landing page', 'wp-photo-album-plus' ); echo ': '.$landingpage ?>
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the search widget
6
+ * Version 6.6.29
7
  *
8
  */
9
 
10
  class SearchPhotos extends WP_Widget {
11
  /** constructor */
12
  function __construct() {
13
+ $widget_ops = array( 'classname' => 'wppa_search_photos',
14
+ 'description' => __( 'WPPA+ Search Photos', 'wp-photo-album-plus' )
15
  );
16
  parent::__construct( 'wppa_search_photos', __( 'Search Photos', 'wp-photo-album-plus' ), $widget_ops ); //
17
  }
41
  'sub' => false,
42
  'album' => '',
43
  'landingpage' => '0',
44
+ 'catbox' => false,
45
  ) );
46
 
47
  $widget_title = apply_filters( 'widget_title', $instance['title'] );
49
  // Display the widget
50
  echo $before_widget;
51
 
52
+ if ( ! empty( $widget_title ) ) {
53
+ echo $before_title . $widget_title . $after_title;
54
  }
55
 
56
+ echo wppa_get_search_html( $instance['label'], $instance['sub'], $instance['root'], $instance['album'], $instance['landingpage'], $instance['catbox'] );
57
 
58
  echo $after_widget;
59
 
63
 
64
  /** @see WP_Widget::update */
65
  function update( $new_instance, $old_instance ) {
66
+
67
  $instance = $old_instance;
68
  $instance['title'] = strip_tags($new_instance['title']);
69
  $instance['label'] = $new_instance['label'];
71
  $instance['sub'] = isset( $new_instance['sub'] ) ? $new_instance['sub'] : false;
72
  $instance['album'] = $new_instance['album'];
73
  $instance['landingpage'] = $new_instance['landingpage'];
74
+ $instance['catbox'] = $new_instance['catbox'];
75
 
76
  return $instance;
77
  }
89
  'sub' => false,
90
  'album' => '',
91
  'landingpage' => '',
92
+ 'catbox' => false,
93
  ) );
94
  $title = $instance['title'];
95
  $label = $instance['label'];
97
  $sub = $instance['sub'];
98
  $album = $instance['album'];
99
  $landingpage = $instance['landingpage'];
100
+ $catbox = $instance['catbox'];
101
  ?>
102
  <p>
103
  <label for="<?php echo $this->get_field_id('title'); ?>">
139
  <?php _e( 'Enable subsearch', 'wp-photo-album-plus' ); ?>
140
  </label>
141
  </p>
142
+ <p>
143
+ <input type="checkbox" <?php if ( $catbox ) echo 'checked="checked"' ?> id="<?php echo $this->get_field_id( 'catbox' ); ?>" name="<?php echo $this->get_field_name( 'catbox' ); ?>" />
144
+ <label for="<?php echo $this->get_field_id('catbox'); ?>">
145
+ <?php _e( 'Add category selectionbox', 'wp-photo-album-plus' ); ?>
146
+ </label>
147
+ </p>
148
  <p>
149
  <label for="<?php echo $this->get_field_id( 'landingpage' ); ?>" >
150
  <?php _e( 'Landing page', 'wp-photo-album-plus' ); echo ': '.$landingpage ?>
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 6.6.28
7
  *
8
  */
9
 
@@ -6273,6 +6273,17 @@ global $wp_version;
6273
  $tags = 'access,album';
6274
  wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
6275
 
 
 
 
 
 
 
 
 
 
 
 
6276
  $name = __('User create Albums login', 'wp-photo-album-plus');
6277
  $desc = __('Frontend album creation requires the user is logged in.', 'wp-photo-album-plus');
6278
  $help = '';//esc_js(__('If you uncheck this box, make sure you check the item Owners only in the next sub-table.'));
@@ -6378,6 +6389,17 @@ global $wp_version;
6378
  $tags = 'upload';
6379
  wppa_setting($slug, '7.1', $name, $desc, $html, $help, $clas, $tags);
6380
 
 
 
 
 
 
 
 
 
 
 
 
6381
  $name = __('Upload notify', 'wp-photo-album-plus');
6382
  $desc = __('Notify admin at frontend upload.', 'wp-photo-album-plus');
6383
  $help = esc_js(__('If checked, admin will receive a notification by email.', 'wp-photo-album-plus'));
@@ -7638,23 +7660,35 @@ global $wp_version;
7638
  wppa_setting(false, '19.2', $name, $desc, $html, $help, $clas, $tags);
7639
 
7640
  }
7641
- if ( strpos( $_SERVER['SERVER_NAME'], 'opajaap' ) !== false ) {
7642
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7643
 
7644
- $name = __('Test proc');
7645
- $desc = __('For OpaJaap only');
7646
- $help = '';
7647
- $slug2 = 'wppa_test_proc';
7648
- $html1 = wppa_cronjob_button( $slug2 );// . __('ad inf', 'wp-photo-album-plus') . wppa_checkbox( $slug2.'_ad_inf' );
7649
- $html2 = wppa_maintenance_button( $slug2 );
7650
- $html3 = wppa_status_field( $slug2 );
7651
- $html4 = wppa_togo_field( $slug2 );
7652
- $html = array($html1, $html2, $html3, $html4);
7653
- $clas = '';
7654
- $tags = 'system';
7655
- wppa_setting(false, '99', $name, $desc, $html, $help, $clas, $tags);
 
7656
 
7657
- }
7658
  wppa_setting_subheader('C', '4', __('Listings', 'wp-photo-album-plus'));
7659
 
7660
  $name = __('List Logfile', 'wp-photo-album-plus');
@@ -7662,10 +7696,11 @@ if ( strpos( $_SERVER['SERVER_NAME'], 'opajaap' ) !== false ) {
7662
  $help = '';
7663
  $slug1 = 'wppa_errorlog_purge';
7664
  $slug2 = 'wppa_list_errorlog';
 
7665
  $html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
7666
  $html2 = wppa_popup_button( $slug2 );
7667
- $html3 = '';
7668
- $html4 = '';
7669
  $html = array($html1, $html2, $html3, $html4);
7670
  $clas = '';
7671
  $tags = 'system';
@@ -7884,7 +7919,16 @@ if ( strpos( $_SERVER['SERVER_NAME'], 'opajaap' ) !== false ) {
7884
  $html = wppa_checkbox($slug);
7885
  $clas = '';
7886
  $tags = 'system';
7887
- wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
 
 
 
 
 
 
 
 
 
7888
 
7889
  $name = __('Retry failed mails', 'wp-photo-album-plus');
7890
  $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
@@ -8105,6 +8149,15 @@ if ( strpos( $_SERVER['SERVER_NAME'], 'opajaap' ) !== false ) {
8105
  $clas = '';
8106
  $tags = 'system';
8107
  wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
 
 
 
 
 
 
 
 
 
8108
  }
8109
  wppa_setting_subheader( 'C', '1', __( 'SEO related settings' , 'wp-photo-album-plus') );
8110
  {
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 6.6.29
7
  *
8
  */
9
 
6273
  $tags = 'access,album';
6274
  wppa_setting($slug, '1.2', $name, $desc, $html, $help, $clas, $tags);
6275
 
6276
+ $name = __('User create notify', 'wp-photo-album-plus');
6277
+ $desc = __('Notify these users when an album is created at the front-end', 'wp-photo-album-plus');
6278
+ $help = esc_js(__('Enter login names seperated by comma\'s (,)', 'wp-photo-album-plus'));
6279
+ $slug = 'wppa_fe_create_ntfy';
6280
+ $html1 = wppa_input($slug, '300px' );
6281
+ $html2 = '';
6282
+ $html = array( $html1, $html2 );
6283
+ $clas = '';
6284
+ $tags = 'mail,album';
6285
+ wppa_setting($slug, '1.3', $name, $desc, $html, $help, $clas, $tags);
6286
+
6287
  $name = __('User create Albums login', 'wp-photo-album-plus');
6288
  $desc = __('Frontend album creation requires the user is logged in.', 'wp-photo-album-plus');
6289
  $help = '';//esc_js(__('If you uncheck this box, make sure you check the item Owners only in the next sub-table.'));
6389
  $tags = 'upload';
6390
  wppa_setting($slug, '7.1', $name, $desc, $html, $help, $clas, $tags);
6391
 
6392
+ $name = __('Notify approve photo', 'wp-photo-album-plus');
6393
+ $desc = __('Send an email to the owner when a photo is approved', 'wp-photo-album-plus');
6394
+ $help = '';
6395
+ $slug = 'wppa_mail_on_approve';
6396
+ $html1 = wppa_checkbox($slug);
6397
+ $html2 = '';
6398
+ $html = array( $html1, $html2 );
6399
+ $clas = '';
6400
+ $tags = 'upload,mail';
6401
+ wppa_setting($slug, '7.2', $name, $desc, $html, $help, $clas, $tags);
6402
+
6403
  $name = __('Upload notify', 'wp-photo-album-plus');
6404
  $desc = __('Notify admin at frontend upload.', 'wp-photo-album-plus');
6405
  $help = esc_js(__('If checked, admin will receive a notification by email.', 'wp-photo-album-plus'));
7660
  wppa_setting(false, '19.2', $name, $desc, $html, $help, $clas, $tags);
7661
 
7662
  }
 
7663
 
7664
+ if ( current_user_can( 'administrator' ) ) {
7665
+ $name = __('Custom album proc', 'wp-photo-album-plus');
7666
+ $desc = __('The php code to execute on all albums');
7667
+ $help = esc_js(__('Only run this if you know what you are doing!', 'wp-photo-album-plus'));
7668
+ $slug2 = 'wppa_custom_album_proc';
7669
+ $html1 = wppa_textarea( $slug2 );
7670
+ $html2 = wppa_maintenance_button( $slug2 );
7671
+ $html3 = wppa_status_field( $slug2 );
7672
+ $html4 = wppa_togo_field( $slug2 );
7673
+ $html = array($html1, $html2, $html3, $html4);
7674
+ $clas = '';
7675
+ $tags = 'system';
7676
+ wppa_setting(false, '98', $name, $desc, $html, $help, $clas, $tags);
7677
 
7678
+ $name = __('Custom photo proc', 'wp-photo-album-plus');
7679
+ $desc = __('The php code to execute on all photos');
7680
+ $help = esc_js(__('Only run this if you know what you are doing!', 'wp-photo-album-plus'));
7681
+ $slug2 = 'wppa_custom_photo_proc';
7682
+ $html1 = wppa_textarea( $slug2 );
7683
+ $html2 = wppa_maintenance_button( $slug2 );
7684
+ $html3 = wppa_status_field( $slug2 );
7685
+ $html4 = wppa_togo_field( $slug2 );
7686
+ $html = array($html1, $html2, $html3, $html4);
7687
+ $clas = '';
7688
+ $tags = 'system';
7689
+ wppa_setting(false, '99', $name, $desc, $html, $help, $clas, $tags);
7690
+ }
7691
 
 
7692
  wppa_setting_subheader('C', '4', __('Listings', 'wp-photo-album-plus'));
7693
 
7694
  $name = __('List Logfile', 'wp-photo-album-plus');
7696
  $help = '';
7697
  $slug1 = 'wppa_errorlog_purge';
7698
  $slug2 = 'wppa_list_errorlog';
7699
+ $slug4 = 'wppa_logfile_on_menu';
7700
  $html1 = wppa_ajax_button(__('Purge logfile', 'wp-photo-album-plus'), 'errorlog_purge', '0', true );
7701
  $html2 = wppa_popup_button( $slug2 );
7702
+ $html3 = __('On menu', 'wp-photo-album-plus');
7703
+ $html4 = wppa_checkbox($slug4);
7704
  $html = array($html1, $html2, $html3, $html4);
7705
  $clas = '';
7706
  $tags = 'system';
7919
  $html = wppa_checkbox($slug);
7920
  $clas = '';
7921
  $tags = 'system';
7922
+ wppa_setting($slug, '9.1', $name, $desc, $html, $help, $clas, $tags);
7923
+
7924
+ $name = __('Log Ajax', 'wp-photo-album-plus');
7925
+ $desc = __('Keep track of cron activity in the wppa logfile.', 'wp-photo-album-plus');
7926
+ $help = '';
7927
+ $slug = 'wppa_log_ajax';
7928
+ $html = wppa_checkbox($slug);
7929
+ $clas = '';
7930
+ $tags = 'system';
7931
+ wppa_setting($slug, '9.2', $name, $desc, $html, $help, $clas, $tags);
7932
 
7933
  $name = __('Retry failed mails', 'wp-photo-album-plus');
7934
  $desc = __('Select number of retries for failed mails', 'wp-photo-album-plus');
8149
  $clas = '';
8150
  $tags = 'system';
8151
  wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
8152
+
8153
+ $name = __('Bulk photo moderation', 'wp-photo-album-plus');
8154
+ $desc = __('Use bulk edit for photo moderation', 'wp-photo-album-plus');
8155
+ $help = '';
8156
+ $slug = 'wppa_moderate_bulk';
8157
+ $html = wppa_checkbox($slug);
8158
+ $clas = '';
8159
+ $tags = 'system';
8160
+ wppa_setting($slug, '20', $name, $desc, $html, $help, $clas, $tags);
8161
  }
8162
  wppa_setting_subheader( 'C', '1', __( 'SEO related settings' , 'wp-photo-album-plus') );
8163
  {
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 6.6.28
7
  *
8
  */
9
 
@@ -728,7 +728,7 @@ Hide Camera info
728
  'wppa_initial_colwidth' => '640',
729
  'wppa_resize_on_upload' => 'yes', // 2
730
  'wppa_resize_to' => '0', // 3
731
- 'wppa_min_thumbs' => '1', // 4
732
  'wppa_bwidth' => '1', // 5
733
  'wppa_bradius' => '6', // 6
734
  'wppa_box_spacing' => '8', // 7
@@ -1404,6 +1404,7 @@ Hide Camera info
1404
  'wppa_user_album_edit_on' => 'no',
1405
  'wppa_upload_moderate' => 'no',
1406
  'wppa_fe_upload_private' => 'no',
 
1407
  'wppa_upload_edit' => 'none',
1408
  'wppa_upload_edit_users' => 'admin',
1409
  'wppa_upload_edit_theme_css' => 'no',
@@ -1432,6 +1433,8 @@ Hide Camera info
1432
  'wppa_fe_alert' => 'all',
1433
  'wppa_fe_upload_max_albums' => '200', // VII-B13
1434
 
 
 
1435
  'wppa_editor_upload_limit_count' => '0',
1436
  'wppa_editor_upload_limit_time' => '0',
1437
  'wppa_author_upload_limit_count' => '0',
@@ -1516,9 +1519,12 @@ Hide Camera info
1516
  'wppa_move_all_photos_from' => '',
1517
  'wppa_move_all_photos_to' => '',
1518
 
 
 
1519
 
1520
- 'wppa_test_proc' => '', // 99
1521
  'wppa_test_proc_ad_inf' => 'no', // 99
 
1522
 
1523
 
1524
  // Table IX: Miscellaneous
@@ -1570,6 +1576,7 @@ Hide Camera info
1570
  'wppa_log_cron' => 'no', // A9
1571
  'wppa_retry_mails' => '0', // A10
1572
  'wppa_log_ajax' => 'no',
 
1573
 
1574
 
1575
  // IX D New
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 6.6.29
7
  *
8
  */
9
 
728
  'wppa_initial_colwidth' => '640',
729
  'wppa_resize_on_upload' => 'yes', // 2
730
  'wppa_resize_to' => '0', // 3
731
+ 'wppa_min_thumbs' => '0', // 4
732
  'wppa_bwidth' => '1', // 5
733
  'wppa_bradius' => '6', // 6
734
  'wppa_box_spacing' => '8', // 7
1404
  'wppa_user_album_edit_on' => 'no',
1405
  'wppa_upload_moderate' => 'no',
1406
  'wppa_fe_upload_private' => 'no',
1407
+ 'wppa_mail_on_approve' => 'no',
1408
  'wppa_upload_edit' => 'none',
1409
  'wppa_upload_edit_users' => 'admin',
1410
  'wppa_upload_edit_theme_css' => 'no',
1433
  'wppa_fe_alert' => 'all',
1434
  'wppa_fe_upload_max_albums' => '200', // VII-B13
1435
 
1436
+ 'wppa_fe_create_ntfy' => '', // VII-B1.3
1437
+
1438
  'wppa_editor_upload_limit_count' => '0',
1439
  'wppa_editor_upload_limit_time' => '0',
1440
  'wppa_author_upload_limit_count' => '0',
1519
  'wppa_move_all_photos_from' => '',
1520
  'wppa_move_all_photos_to' => '',
1521
 
1522
+ 'wppa_logfile_on_menu' => 'no',
1523
+
1524
 
1525
+ 'wppa_custom_photo_proc' => '', // 99
1526
  'wppa_test_proc_ad_inf' => 'no', // 99
1527
+ 'wppa_custom_album_proc' => '', // 99
1528
 
1529
 
1530
  // Table IX: Miscellaneous
1576
  'wppa_log_cron' => 'no', // A9
1577
  'wppa_retry_mails' => '0', // A10
1578
  'wppa_log_ajax' => 'no',
1579
+ 'wppa_moderate_bulk' => 'no', // B20
1580
 
1581
 
1582
  // IX D New
wppa-slideshow.php CHANGED
@@ -471,6 +471,8 @@ function wppa_slide_frame() {
471
  // Big browsing buttons enabled ?
472
  if ( ( wppa_switch( 'show_bbb' ) && ! wppa_in_widget() ) ||
473
  ( wppa_switch( 'show_bbb_widget' ) && wppa_in_widget() ) ) {
 
 
474
 
475
  wppa_out( '<img' .
476
  ' id="bbb-' . wppa( 'mocc' ) . '-l"' .
@@ -485,7 +487,7 @@ function wppa_slide_frame() {
485
  'float:left;' .
486
  'top:0px;' .
487
  'width:' . ( wppa( 'slideframewidth' ) * 0.5 ) . 'px;' .
488
- 'height:' . wppa( 'slideframeheight' ) . 'px;' .
489
  'box-shadow:none;' .
490
  'cursor:default;' .
491
  '"' .
@@ -506,7 +508,7 @@ function wppa_slide_frame() {
506
  'float:right;' .
507
  'top:0px;' .
508
  'width:' . ( wppa( 'slideframewidth' ) * 0.5 ) . 'px;' .
509
- 'height:' . wppa( 'slideframeheight' ) . 'px;' .
510
  'box-shadow:none;' .
511
  'cursor:default;' .
512
  '"' .
471
  // Big browsing buttons enabled ?
472
  if ( ( wppa_switch( 'show_bbb' ) && ! wppa_in_widget() ) ||
473
  ( wppa_switch( 'show_bbb_widget' ) && wppa_in_widget() ) ) {
474
+ $h = wppa( 'slideframeheight' );
475
+ $h -= wppa_get_audio_control_height();
476
 
477
  wppa_out( '<img' .
478
  ' id="bbb-' . wppa( 'mocc' ) . '-l"' .
487
  'float:left;' .
488
  'top:0px;' .
489
  'width:' . ( wppa( 'slideframewidth' ) * 0.5 ) . 'px;' .
490
+ 'height:' . $h . 'px;' .
491
  'box-shadow:none;' .
492
  'cursor:default;' .
493
  '"' .
508
  'float:right;' .
509
  'top:0px;' .
510
  'width:' . ( wppa( 'slideframewidth' ) * 0.5 ) . 'px;' .
511
+ 'height:' . $h . 'px;' .
512
  'box-shadow:none;' .
513
  'cursor:default;' .
514
  '"' .
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 6.6.28
7
  *
8
  */
9
 
@@ -955,7 +955,7 @@ global $wpdb;
955
  }
956
 
957
 
958
- function wppa_send_mail( $to, $subj, $cont, $photo, $email = '' ) {
959
 
960
  $message_part_1 = '';
961
  $message_part_2 = '';
@@ -982,7 +982,7 @@ function wppa_send_mail( $to, $subj, $cont, $photo, $email = '' ) {
982
  '</head>' .
983
  '<body>' .
984
  '<h3>'.$subj.'</h3>' .
985
- '<p><img src="'.wppa_get_thumb_url($photo).'" '.wppa_get_imgalt($photo).'/></p>';
986
  if ( is_array($cont) ) {
987
  foreach ( $cont as $c ) if ( $c ) {
988
  $message_part_1 .= '<p>'.$c.'</p>';
@@ -1026,6 +1026,8 @@ function wppa_send_mail( $to, $subj, $cont, $photo, $email = '' ) {
1026
  '' );
1027
  if ( $iret ) return;
1028
 
 
 
1029
  // Failed
1030
  if ( ! wppa_is_cron() ) {
1031
  echo 'Mail sending Failed';
@@ -1593,17 +1595,20 @@ global $wppa_log_file;
1593
  // Sanitize type
1594
  $t = strtolower( substr( $xtype, 0, 1 ) );
1595
  switch ( $t ) {
 
 
 
1596
  case 'c':
1597
- $type = 'Cron';
1598
  if ( ! wppa_switch( 'log_cron' ) ) {
1599
  return;
1600
  }
1601
  break;
1602
  case 'd':
1603
- $type = 'Dbg';
1604
  break;
1605
  case 'e':
1606
- $type = 'Err';
1607
  break;
1608
  case 'f':
1609
  $type = 'Fix';
@@ -1615,7 +1620,7 @@ global $wppa_log_file;
1615
  $type = 'Upl';
1616
  break;
1617
  case 'w':
1618
- $type = 'War';
1619
  break;
1620
  default:
1621
  $type = 'Misc';
@@ -3480,7 +3485,7 @@ function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border =
3480
 
3481
  // Compose html. Non native svg or gif/png
3482
  else {
3483
- wppa_log('dbg','Still used for '.$name);
3484
  $result = '<img' .
3485
  ' src="' . wppa_get_imgdir( $src ) . '"' .
3486
  ( $use_svg ? ' class="wppa-svg"' : '' ) .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 6.6.29
7
  *
8
  */
9
 
955
  }
956
 
957
 
958
+ function wppa_send_mail( $to, $subj, $cont, $photo = '0', $email = '' ) {
959
 
960
  $message_part_1 = '';
961
  $message_part_2 = '';
982
  '</head>' .
983
  '<body>' .
984
  '<h3>'.$subj.'</h3>' .
985
+ ( $photo ? '<p><img src="'.wppa_get_thumb_url($photo).'" '.wppa_get_imgalt($photo).'/></p>' : '' );
986
  if ( is_array($cont) ) {
987
  foreach ( $cont as $c ) if ( $c ) {
988
  $message_part_1 .= '<p>'.$c.'</p>';
1026
  '' );
1027
  if ( $iret ) return;
1028
 
1029
+ wppa_log( 'Err', 'Mail sending failed. to=' . $to . ', subject=' . $subject . ', message=' . $message_part_1 . $message_part_2 . $message_part_3 );
1030
+
1031
  // Failed
1032
  if ( ! wppa_is_cron() ) {
1033
  echo 'Mail sending Failed';
1595
  // Sanitize type
1596
  $t = strtolower( substr( $xtype, 0, 1 ) );
1597
  switch ( $t ) {
1598
+ case 'a':
1599
+ $type = '{span style="color:blue;" }Ajax{/span}';
1600
+ break;
1601
  case 'c':
1602
+ $type = '{span style="color:blue;" }Cron{/span}';
1603
  if ( ! wppa_switch( 'log_cron' ) ) {
1604
  return;
1605
  }
1606
  break;
1607
  case 'd':
1608
+ $type = '{span style="color:orange;" }Dbg{/span}';
1609
  break;
1610
  case 'e':
1611
+ $type = '{span style="color:red;" }Err{/span}';
1612
  break;
1613
  case 'f':
1614
  $type = 'Fix';
1620
  $type = 'Upl';
1621
  break;
1622
  case 'w':
1623
+ $type = '{span style="color:yellow;" }War{/span}';
1624
  break;
1625
  default:
1626
  $type = 'Misc';
3485
 
3486
  // Compose html. Non native svg or gif/png
3487
  else {
3488
+ wppa_log('dbg','Still used for '.$name,true);
3489
  $result = '<img' .
3490
  ' src="' . wppa_get_imgdir( $src ) . '"' .
3491
  ( $use_svg ? ' class="wppa-svg"' : '' ) .
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: 6.6.28
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -23,7 +23,7 @@ global $wp_version;
23
 
24
  /* WPPA GLOBALS */
25
  global $wppa_revno; $wppa_revno = '6628'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '6-6-28-008'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );
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: 6.6.29
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
23
 
24
  /* WPPA GLOBALS */
25
  global $wppa_revno; $wppa_revno = '6628'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '6-6-29-011'; // WPPA software version
27
 
28
  /* start timers */
29
  global $wppa_starttime; $wppa_starttime = microtime( true );