Version Description
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 6.6.27 |
Comparing to | |
See all releases |
Code changes from version 6.6.26 to 6.6.27
- js/wppa-lightbox.js +21 -3
- js/wppa-lightbox.min.js +5 -4
- js/wppa-utils.js +7 -6
- js/wppa-utils.min.js +6 -6
- js/wppa.js +3 -1
- js/wppa.min.js +1 -1
- readme.txt +21 -3
- wppa-admin-functions.php +2 -2
- wppa-adminbar.php +2 -2
- wppa-ajax.php +9 -1
- wppa-album-admin-autosave.php +3 -3
- wppa-boxes-html.php +3 -3
- wppa-common-functions.php +9 -3
- wppa-cron.php +31 -1
- wppa-filter.php +2 -1
- wppa-functions.php +8 -6
- wppa-import.php +4 -3
- wppa-init.php +6 -0
- wppa-maintenance.php +7 -1
- wppa-non-admin.php +37 -39
- wppa-photo-admin-autosave.php +4 -4
- wppa-settings-autosave.php +18 -5
- wppa-setup.php +3 -2
- wppa-slideshow.php +27 -25
- wppa-utils.php +21 -5
- wppa.php +3 -3
js/wppa-lightbox.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// Conatins lightbox modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
-
var wppaLightboxVersion = '6.6.
|
7 |
|
8 |
// Global inits
|
9 |
var wppaNormsBtnOpac = 0.75;
|
@@ -519,6 +519,10 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
519 |
wppaOvlFsPhotoId = 0;
|
520 |
}
|
521 |
wppaOvlFirst = false;
|
|
|
|
|
|
|
|
|
522 |
return false;
|
523 |
}
|
524 |
|
@@ -755,7 +759,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
755 |
wppaOvlTitles[idx] +
|
756 |
'</div>';
|
757 |
'</div>';
|
758 |
-
alert(html);
|
759 |
// Insert the html
|
760 |
jQuery( '#wppa-overlay-ic' ).html( html );
|
761 |
|
@@ -773,6 +777,14 @@ alert(html);
|
|
773 |
// Size
|
774 |
wppaOvlResize();
|
775 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
776 |
// Done!
|
777 |
return false;
|
778 |
}
|
@@ -1174,7 +1186,7 @@ wppaConsoleLog( 'wppaOvlHide' );
|
|
1174 |
|
1175 |
// Remove background
|
1176 |
jQuery( '#wppa-overlay-bg' ).fadeOut( 300 );
|
1177 |
-
|
1178 |
// Remove kb handler
|
1179 |
jQuery( document ).off( 'keydown', wppaOvlKeyboardHandler );
|
1180 |
wppaKbHandlerInstalled = false;
|
@@ -1186,6 +1198,12 @@ wppaConsoleLog( 'wppaOvlHide' );
|
|
1186 |
wppaNormsBtnOpac = 0.75;
|
1187 |
jQuery( '#wppa-ovl-spin' ).stop().fadeOut();
|
1188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1189 |
}
|
1190 |
|
1191 |
// Perform onclick action
|
3 |
// Conatins lightbox modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaLightboxVersion = '6.6.27';
|
7 |
|
8 |
// Global inits
|
9 |
var wppaNormsBtnOpac = 0.75;
|
519 |
wppaOvlFsPhotoId = 0;
|
520 |
}
|
521 |
wppaOvlFirst = false;
|
522 |
+
|
523 |
+
// Record we are in
|
524 |
+
wppaOvlOpen = true;
|
525 |
+
|
526 |
return false;
|
527 |
}
|
528 |
|
759 |
wppaOvlTitles[idx] +
|
760 |
'</div>';
|
761 |
'</div>';
|
762 |
+
//alert(html);
|
763 |
// Insert the html
|
764 |
jQuery( '#wppa-overlay-ic' ).html( html );
|
765 |
|
777 |
// Size
|
778 |
wppaOvlResize();
|
779 |
|
780 |
+
// Show fs and exit buttons
|
781 |
+
if ( wppaOvlFirst ) {
|
782 |
+
wppaShowFsButtons();
|
783 |
+
}
|
784 |
+
|
785 |
+
// Record we are in
|
786 |
+
wppaOvlOpen = true;
|
787 |
+
|
788 |
// Done!
|
789 |
return false;
|
790 |
}
|
1186 |
|
1187 |
// Remove background
|
1188 |
jQuery( '#wppa-overlay-bg' ).fadeOut( 300 );
|
1189 |
+
|
1190 |
// Remove kb handler
|
1191 |
jQuery( document ).off( 'keydown', wppaOvlKeyboardHandler );
|
1192 |
wppaKbHandlerInstalled = false;
|
1198 |
wppaNormsBtnOpac = 0.75;
|
1199 |
jQuery( '#wppa-ovl-spin' ).stop().fadeOut();
|
1200 |
|
1201 |
+
// Remove fs and exit buttons
|
1202 |
+
jQuery( '#wppa-fulls-btn' ).stop().fadeOut( 300 );
|
1203 |
+
jQuery( '#wppa-exit-btn' ).stop().fadeOut( 300 );
|
1204 |
+
|
1205 |
+
// Record we are out
|
1206 |
+
wppaOvlOpen = false;
|
1207 |
}
|
1208 |
|
1209 |
// Perform onclick action
|
js/wppa-lightbox.min.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
-
var wppaLightboxVersion='6.6.
|
8 |
function wppaOvlKeyboardHandler(e){var keycode;var escapeKey;if(e==null){keycode=event.keyCode;escapeKey=27;}else{keycode=e.keyCode;escapeKey=27;}
|
9 |
var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
10 |
wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
|
@@ -57,7 +57,7 @@ wppaSvgHtml('Exit','48px',true,true,'0','0','0','0')+'</div>';html+='<div'+' id=
|
|
57 |
wppaSvgHtml('Exit-Full-Screen','48px',true,true,'0','0','0','0')+'</div>';if((!wppaIsVideo&&!wppaHasAudio)||wppaOvlFsPhotoId!=wppaPhotoId||wppaPhotoId==0){wppaStopVideo(0);wppaStopAudio();jQuery('#wppa-overlay-ic').html(html);}
|
58 |
jQuery('#wppa-overlay-img').bind('contextmenu',function(e){return false;});wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlFormatFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
|
59 |
else{wppaOvlFsPhotoId=0;}
|
60 |
-
wppaOvlFirst=false;return false;}
|
61 |
else{wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaStopVideo(0);var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';if(wppaOvlFontColor){txtcol=wppaOvlFontColor;}
|
62 |
var showNav=wppaOvlUrls.length>1;jQuery('#wppa-overlay-ic').css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop,});var html='';html+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >';if(wppaIsVideo){html+='<video'+' id="wppa-overlay-img"'+' onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);"'+' onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);"'+' preload="metadata"'+
|
63 |
(wppaOvlVideoStart?' autoplay':'')+' onpause="wppaOvlVideoPlaying = false;"'+' onplay="wppaOvlVideoPlaying = true;"'+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );" '+' controls'+' style="'+'border-width:'+wppaOvlBorderWidth+'px '+wppaOvlBorderWidth+'px 0;'+'border-style:solid;'+'border-color:'+wppaOvlTheme+';'+'width:'+wppaSavedImageWidth+'px;'+'height:'+wppaSavedImageHeight+'px;'+'box-shadow:none;'+'box-sizing:content-box;'+'position:relative;'+'border-top-left-radius:'+wppaOvlRadius+'px;'+'border-top-right-radius:'+wppaOvlRadius+'px;'+'margin:0;'+'padding:0;'+'"'+' alt="'+wppaOvlAlts[idx]+'"'+' >'+
|
@@ -77,7 +77,8 @@ wppaSvgHtml('Next-Button','48px',true,true)+'</div>';}
|
|
77 |
html+='</div>';var showCounter=!wppaOvlIsSingle&&wppaOvlShowCounter;html+='<div id="wppa-overlay-txt-container"'+' style="'+'position:relative;'+'padding:10px;'+'background-color:'+wppaOvlTheme+';'+'color:'+txtcol+';'+'text-align:center;'+'font-family:'+wppaOvlFontFamily+';'+'font-size:'+wppaOvlFontSize+'px;'+'font-weight:'+wppaOvlFontWeight+';'+'line-height:'+wppaOvlLineHeight+'px;'+'box-shadow:none;'+'border-bottom-left-radius:'+wppaOvlRadius+'px;'+'border-bottom-right-radius:'+wppaOvlRadius+'px;'+'"'+' >'+'<div'+' id="wppa-overlay-txt"'+' style="'+'text-align:center;'+'min-height:36px;'+'width:100%;'+
|
78 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
79 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
80 |
-
wppaOvlTitles[idx]+'</div>';'</div>';jQuery('#wppa-overlay-ic').html(html);jQuery('#wppa-overlay-img').bind('contextmenu',function(e){return false;});wppaOvlResize();
|
|
|
81 |
function wppaOvlSize(speed){wppaConsoleLog('wppaOvlSize');var img=document.getElementById('wppa-overlay-img');var txt=document.getElementById('wppa-overlay-txt');if(!img||!txt||jQuery('#wppa-overlay-bg').css('display')=='none'){wppaConsoleLog('Lb quitted');return;}
|
82 |
if(wppaOvlMode!='normal'){wppaOvlFormatFull();return;}
|
83 |
var iw=jQuery(window).width();var ih=jQuery(window).height();var cw,nw,nh;if(wppaOvlIsVideo){cw=img.clientWidth;nw=wppaOvlVideoNaturalWidths[wppaOvlCurIdx];nh=wppaOvlVideoNaturalHeights[wppaOvlCurIdx];}
|
@@ -117,7 +118,7 @@ wppaOvlShow(wppaOvlIdx-1);return false;}
|
|
117 |
function wppaOvlShowNext(){wppaConsoleLog('wppaOvlShowNext');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx>=(wppaOvlUrls.length-1)){wppaOvlIdx=-1;}
|
118 |
wppaOvlShow(wppaOvlIdx+1);return false;}
|
119 |
function wppaOvlHide(){wppaConsoleLog('wppaOvlHide');wppaStopAudio();if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
120 |
-
jQuery('#wppa-overlay-ic').html('');jQuery('#wppa-overlay-bg').fadeOut(300);jQuery(document).off('keydown',wppaOvlKeyboardHandler);wppaKbHandlerInstalled=false;wppaOvlFirst=true;wppaOvlRunning=false;wppaOvlMode=wppaOvlModeInitial;wppaNormsBtnOpac=0.75;jQuery('#wppa-ovl-spin').stop().fadeOut();}
|
121 |
function wppaOvlOnclick(event){wppaConsoleLog('wppaOvlOnClick');switch(wppaOvlOnclickType){case'none':break;case'close':if(wppaOvlMode=='normal'){wppaOvlHide();}
|
122 |
break;case'browse':var x=event.screenX-window.screenX;var y=event.clientY;if(y>48){if(x<jQuery(window).width()/2)wppaOvlShowPrev();else wppaOvlShowNext();}
|
123 |
break;default:alert('Unimplemented action: '+wppaOvlOnclickType);break;}
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaLightboxVersion='6.6.27';var wppaNormsBtnOpac=0.75;var wppaIsVideo=false;var wppaHasAudio=false;var wppaOvlImgs=[];var wppaKbHandlerInstalled=false;var wppaOvlMode='';var wppaOvlCurIdx=0;var wppaOvlSvgInverse=false;var wppaSavedContainerWidth=0;var wppaSavedContainerHeight;var wppaSavedMarginLeft;var wppaSavedMarginTop;var wppaSavedImageWidth;var wppaSavedImageHeight;jQuery(document).ready(function(e){wppaInitOverlay();});jQuery(window).resize(function(){jQuery("#wppa-overlay-bg").css({height:window.innerHeight,width:window.innerWidth,});wppaOvlResize();});function wppaDoOnOrientationChange(e){if(wppaOvlMode!='normal'&&document.getElementById('wppa-overlay-img')){setTimeout('wppaOvlShow( '+wppaOvlIdx+' )',100);return;}}
|
8 |
function wppaOvlKeyboardHandler(e){var keycode;var escapeKey;if(e==null){keycode=event.keyCode;escapeKey=27;}else{keycode=e.keyCode;escapeKey=27;}
|
9 |
var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
10 |
wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
|
57 |
wppaSvgHtml('Exit-Full-Screen','48px',true,true,'0','0','0','0')+'</div>';if((!wppaIsVideo&&!wppaHasAudio)||wppaOvlFsPhotoId!=wppaPhotoId||wppaPhotoId==0){wppaStopVideo(0);wppaStopAudio();jQuery('#wppa-overlay-ic').html(html);}
|
58 |
jQuery('#wppa-overlay-img').bind('contextmenu',function(e){return false;});wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlFormatFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
|
59 |
else{wppaOvlFsPhotoId=0;}
|
60 |
+
wppaOvlFirst=false;wppaOvlOpen=true;return false;}
|
61 |
else{wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaStopVideo(0);var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';if(wppaOvlFontColor){txtcol=wppaOvlFontColor;}
|
62 |
var showNav=wppaOvlUrls.length>1;jQuery('#wppa-overlay-ic').css({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop,});var html='';html+='<div id="img-sb-img-cont" style="position:relative;line-height:0;" >';if(wppaIsVideo){html+='<video'+' id="wppa-overlay-img"'+' onmouseover="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0.8);"'+' onmouseout="jQuery(\'.wppa-ovl-nav-btn\').stop().fadeTo(200,0);"'+' preload="metadata"'+
|
63 |
(wppaOvlVideoStart?' autoplay':'')+' onpause="wppaOvlVideoPlaying = false;"'+' onplay="wppaOvlVideoPlaying = true;"'+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );" '+' controls'+' style="'+'border-width:'+wppaOvlBorderWidth+'px '+wppaOvlBorderWidth+'px 0;'+'border-style:solid;'+'border-color:'+wppaOvlTheme+';'+'width:'+wppaSavedImageWidth+'px;'+'height:'+wppaSavedImageHeight+'px;'+'box-shadow:none;'+'box-sizing:content-box;'+'position:relative;'+'border-top-left-radius:'+wppaOvlRadius+'px;'+'border-top-right-radius:'+wppaOvlRadius+'px;'+'margin:0;'+'padding:0;'+'"'+' alt="'+wppaOvlAlts[idx]+'"'+' >'+
|
77 |
html+='</div>';var showCounter=!wppaOvlIsSingle&&wppaOvlShowCounter;html+='<div id="wppa-overlay-txt-container"'+' style="'+'position:relative;'+'padding:10px;'+'background-color:'+wppaOvlTheme+';'+'color:'+txtcol+';'+'text-align:center;'+'font-family:'+wppaOvlFontFamily+';'+'font-size:'+wppaOvlFontSize+'px;'+'font-weight:'+wppaOvlFontWeight+';'+'line-height:'+wppaOvlLineHeight+'px;'+'box-shadow:none;'+'border-bottom-left-radius:'+wppaOvlRadius+'px;'+'border-bottom-right-radius:'+wppaOvlRadius+'px;'+'"'+' >'+'<div'+' id="wppa-overlay-txt"'+' style="'+'text-align:center;'+'min-height:36px;'+'width:100%;'+
|
78 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
79 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
80 |
+
wppaOvlTitles[idx]+'</div>';'</div>';jQuery('#wppa-overlay-ic').html(html);jQuery('#wppa-overlay-img').bind('contextmenu',function(e){return false;});wppaOvlResize();if(wppaOvlFirst){wppaShowFsButtons();}
|
81 |
+
wppaOvlOpen=true;return false;}}
|
82 |
function wppaOvlSize(speed){wppaConsoleLog('wppaOvlSize');var img=document.getElementById('wppa-overlay-img');var txt=document.getElementById('wppa-overlay-txt');if(!img||!txt||jQuery('#wppa-overlay-bg').css('display')=='none'){wppaConsoleLog('Lb quitted');return;}
|
83 |
if(wppaOvlMode!='normal'){wppaOvlFormatFull();return;}
|
84 |
var iw=jQuery(window).width();var ih=jQuery(window).height();var cw,nw,nh;if(wppaOvlIsVideo){cw=img.clientWidth;nw=wppaOvlVideoNaturalWidths[wppaOvlCurIdx];nh=wppaOvlVideoNaturalHeights[wppaOvlCurIdx];}
|
118 |
function wppaOvlShowNext(){wppaConsoleLog('wppaOvlShowNext');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx>=(wppaOvlUrls.length-1)){wppaOvlIdx=-1;}
|
119 |
wppaOvlShow(wppaOvlIdx+1);return false;}
|
120 |
function wppaOvlHide(){wppaConsoleLog('wppaOvlHide');wppaStopAudio();if(wppaOvlMode!='normal'){wppaOvlNorm(true);}
|
121 |
+
jQuery('#wppa-overlay-ic').html('');jQuery('#wppa-overlay-bg').fadeOut(300);jQuery(document).off('keydown',wppaOvlKeyboardHandler);wppaKbHandlerInstalled=false;wppaOvlFirst=true;wppaOvlRunning=false;wppaOvlMode=wppaOvlModeInitial;wppaNormsBtnOpac=0.75;jQuery('#wppa-ovl-spin').stop().fadeOut();jQuery('#wppa-fulls-btn').stop().fadeOut(300);jQuery('#wppa-exit-btn').stop().fadeOut(300);wppaOvlOpen=false;}
|
122 |
function wppaOvlOnclick(event){wppaConsoleLog('wppaOvlOnClick');switch(wppaOvlOnclickType){case'none':break;case'close':if(wppaOvlMode=='normal'){wppaOvlHide();}
|
123 |
break;case'browse':var x=event.screenX-window.screenX;var y=event.clientY;if(y>48){if(x<jQuery(window).width()/2)wppaOvlShowPrev();else wppaOvlShowNext();}
|
124 |
break;default:alert('Unimplemented action: '+wppaOvlOnclickType);break;}
|
js/wppa-utils.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
-
var wppaJsUtilsVersion = '6.6.
|
6 |
var wppaDebug;
|
7 |
|
8 |
// Trim
|
@@ -277,6 +277,7 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
|
|
277 |
|
278 |
// Find Radius
|
279 |
switch ( wppaSvgCornerStyle ) {
|
|
|
280 |
case 'none':
|
281 |
radius = none;
|
282 |
break;
|
@@ -307,24 +308,24 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
|
|
307 |
}
|
308 |
|
309 |
var src;
|
310 |
-
if (
|
311 |
-
src = wppaImageDirectory + image + '.
|
312 |
}
|
313 |
else {
|
314 |
-
src = wppaImageDirectory + image + '.
|
315 |
}
|
316 |
|
317 |
// Make the HTML
|
318 |
var result = '<img' +
|
319 |
' src="' + src + '"' +
|
320 |
-
(
|
321 |
' style="' +
|
322 |
'height:' + height + ';' +
|
323 |
'fill:' + fc + ';' +
|
324 |
'background-color:' + bc + ';' +
|
325 |
( radius ? 'border-radius:' + radius + '%;' : '' ) +
|
326 |
( border ? 'border:2px solid ' + bc + ';box-sizing:border-box;' : '' ) +
|
327 |
-
(
|
328 |
'text-decoration:none !important;' +
|
329 |
'vertical-align:middle;' +
|
330 |
'"' +
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
+
var wppaJsUtilsVersion = '6.6.27';
|
6 |
var wppaDebug;
|
7 |
|
8 |
// Trim
|
277 |
|
278 |
// Find Radius
|
279 |
switch ( wppaSvgCornerStyle ) {
|
280 |
+
case 'gif':
|
281 |
case 'none':
|
282 |
radius = none;
|
283 |
break;
|
308 |
}
|
309 |
|
310 |
var src;
|
311 |
+
if ( wppaUseSvg ) {
|
312 |
+
src = wppaImageDirectory + image + '.svg';
|
313 |
}
|
314 |
else {
|
315 |
+
src = wppaImageDirectory + image + '.png';
|
316 |
}
|
317 |
|
318 |
// Make the HTML
|
319 |
var result = '<img' +
|
320 |
' src="' + src + '"' +
|
321 |
+
( wppaUseSvg ? ' class="wppa-svg"' : '' ) +
|
322 |
' style="' +
|
323 |
'height:' + height + ';' +
|
324 |
'fill:' + fc + ';' +
|
325 |
'background-color:' + bc + ';' +
|
326 |
( radius ? 'border-radius:' + radius + '%;' : '' ) +
|
327 |
( border ? 'border:2px solid ' + bc + ';box-sizing:border-box;' : '' ) +
|
328 |
+
( wppaUseSvg ? 'display:none;' : '' ) +
|
329 |
'text-decoration:none !important;' +
|
330 |
'vertical-align:middle;' +
|
331 |
'"' +
|
js/wppa-utils.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
-
var wppaJsUtilsVersion='6.6.
|
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);}
|
@@ -31,17 +31,17 @@ 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'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(
|
39 |
-
else{src=wppaImageDirectory+image+'.
|
40 |
var result='<img'+' src="'+src+'"'+
|
41 |
-
(
|
42 |
(radius?'border-radius:'+radius+'%;':'')+
|
43 |
(border?'border:2px solid '+bc+';box-sizing:border-box;':'')+
|
44 |
-
(
|
45 |
function wppaReplaceSvg(){wppaConsoleLog('Doing ReplaceSvg','force');jQuery('img.wppa-svg').each(function(){var $img=jQuery(this);var imgID=$img.attr('id');var imgClass=$img.attr('class');var imgURL=$img.attr('src');var imgStyle=$img.attr('style');jQuery.get(imgURL,function(data){var $svg=jQuery(data).find('svg');if(typeof imgID!=='undefined'){$svg=$svg.attr('id',imgID);}
|
46 |
if(typeof imgClass!=='undefined'){$svg=$svg.attr('class',imgClass+' replaced-svg');}
|
47 |
if(typeof imgStyle!=='undefined'){if(typeof(imgID)=='undefined'||(imgID.substr(0,15)!='wppa-ajax-spin-'&&imgID.substr(0,15)!='wppa-ovl-spin')){imgStyle=imgStyle.replace('display:none','display:inline');}
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
+
var wppaJsUtilsVersion='6.6.27';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);}
|
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 result='<img'+' src="'+src+'"'+
|
41 |
+
(wppaUseSvg?' class="wppa-svg"':'')+' style="'+'height:'+height+';'+'fill:'+fc+';'+'background-color:'+bc+';'+
|
42 |
(radius?'border-radius:'+radius+'%;':'')+
|
43 |
(border?'border:2px solid '+bc+';box-sizing:border-box;':'')+
|
44 |
+
(wppaUseSvg?'display:none;':'')+'text-decoration:none !important;'+'vertical-align:middle;'+'"'+' onload="wppaReplaceSvg()"'+' />';setTimeout(function(){wppaReplaceSvg();},100);return result;}
|
45 |
function wppaReplaceSvg(){wppaConsoleLog('Doing ReplaceSvg','force');jQuery('img.wppa-svg').each(function(){var $img=jQuery(this);var imgID=$img.attr('id');var imgClass=$img.attr('class');var imgURL=$img.attr('src');var imgStyle=$img.attr('style');jQuery.get(imgURL,function(data){var $svg=jQuery(data).find('svg');if(typeof imgID!=='undefined'){$svg=$svg.attr('id',imgID);}
|
46 |
if(typeof imgClass!=='undefined'){$svg=$svg.attr('class',imgClass+' replaced-svg');}
|
47 |
if(typeof imgStyle!=='undefined'){if(typeof(imgID)=='undefined'||(imgID.substr(0,15)!='wppa-ajax-spin-'&&imgID.substr(0,15)!='wppa-ovl-spin')){imgStyle=imgStyle.replace('display:none','display:inline');}
|
js/wppa.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
-
var wppaJsVersion = '6.6.
|
6 |
|
7 |
// Important notice:
|
8 |
// All external vars that may be given a value in wppa-non-admin.php must be declared here and not in other front-end js files!!
|
@@ -11,6 +11,7 @@ var wppaJsVersion = '6.6.24';
|
|
11 |
// 'External' variables ( public )
|
12 |
var wppaVersion = '0';
|
13 |
var wppaIsIe = false;
|
|
|
14 |
var wppaDebug;
|
15 |
var wppaFullValign = [];
|
16 |
var wppaFullHalign = [];
|
@@ -217,6 +218,7 @@ var wppaOvlShowLegenda = true;
|
|
217 |
var wppaOvlShowStartStop = true;
|
218 |
var wppaOvlRadius = 0;
|
219 |
var wppaOvlBorderWidth = 16;
|
|
|
220 |
|
221 |
// The next lightbox var values become overwritten in wppa-non-admin.php -> wppa_load_footer()
|
222 |
// Therefor they are placed here!
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
+
var wppaJsVersion = '6.6.27';
|
6 |
|
7 |
// Important notice:
|
8 |
// All external vars that may be given a value in wppa-non-admin.php must be declared here and not in other front-end js files!!
|
11 |
// 'External' variables ( public )
|
12 |
var wppaVersion = '0';
|
13 |
var wppaIsIe = false;
|
14 |
+
var wppaUseSvg = true;
|
15 |
var wppaDebug;
|
16 |
var wppaFullValign = [];
|
17 |
var wppaFullHalign = [];
|
218 |
var wppaOvlShowStartStop = true;
|
219 |
var wppaOvlRadius = 0;
|
220 |
var wppaOvlBorderWidth = 16;
|
221 |
+
var wppaOvlOpen = false;
|
222 |
|
223 |
// The next lightbox var values become overwritten in wppa-non-admin.php -> wppa_load_footer()
|
224 |
// Therefor they are placed here!
|
js/wppa.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
-
var wppaJsVersion='6.6.
|
7 |
if(!autoOnly){_wppaTextDelay=wppaAnimationSpeed;if(wppaFadeInAfterFadeOut)_wppaTextDelay*=2;if(anyAutocol){jQuery(window).resize(function(){for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}});}}
|
8 |
wppaReplaceSvg();jQuery('.wppa-ajax-spin').stop().fadeOut();setTimeout(function(){jQuery('.wppa-ajax-spin').stop().fadeOut();},1000);jQuery('.wppa-ovl-spin').stop().fadeOut();setTimeout(function(){jQuery('.wppa-ovl-spin').stop().fadeOut();},1000);setTimeout(function(){var i=1;while(i<wppaTopMoc){if(jQuery('ubb-'+i+'-l')){wppaUbb(i,'l','hide');wppaUbb(i,'r','hide');}
|
9 |
i++;}},3000);}
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
+
var wppaJsVersion='6.6.27';var wppaVersion='0';var wppaIsIe=false;var wppaUseSvg=true;var wppaDebug;var wppaFullValign=[];var wppaFullHalign=[];var wppaFullFrameDelta=[];var wppaAnimationSpeed;var wppaImageDirectory;var wppaAutoColumnWidth=[];var wppaAutoColumnFrac=[];var wppaThumbnailAreaDelta;var wppaSlideShowTimeOut=2500;var wppaFadeInAfterFadeOut=false;var wppaTextFrameDelta=0;var wppaBoxDelta=0;var wppaPreambule;var wppaHideWhenEmpty=false;var wppaThumbnailPitch=[];var wppaFilmStripLength=[];var wppaFilmStripMargin=[];var wppaFilmStripAreaDelta=[];var wppaFilmShowGlue=false;var wppaIsMini=[];var wppaPortraitOnly=[];var wppaSlideShow;var wppaPhoto;var wppaOf;var wppaNextPhoto;var wppaPreviousPhoto;var wppaNextP;var wppaPrevP;var wppaAvgRating;var wppaMyRating;var wppaAvgRat;var wppaMyRat;var wppaDislikeMsg;var wppaMiniTreshold=300;var wppaStart='Start';var wppaStop='Stop';var wppaPleaseName;var wppaPleaseEmail;var wppaPleaseComment;var wppaRatingOnce=true;var wppaBGcolorNumbar='transparent';var wppaBcolorNumbar='transparent';var wppaBGcolorNumbarActive='transparent';var wppaBcolorNumbarActive='transparent';var wppaFontFamilyNumbar='';var wppaFontSizeNumbar='';var wppaFontColorNumbar='';var wppaFontWeightNumbar='';var wppaFontFamilyNumbarActive='';var wppaFontSizeNumbarActive='';var wppaFontColorNumbarActive='';var wppaFontWeightNumbarActive='';var wppaNumbarMax='10';var wppaAjaxUrl='';var wppaLang='';var wppaNextOnCallback=false;var wppaStarOpacity=0.2;var wppaSlideWrap=true;var wppaLightBox=[];var wppaEmailRequired='required';var wppaSlideBorderWidth=0;var wppaSlideInitRunning=[];var wppaAnimationType='fadeover';var wppaSlidePause=[];var wppaSlideBlank=[];var wppaRatingMax=5;var wppaRatingDisplayType='graphic';var wppaRatingPrec=2;var wppaFilmPageSize=[];var wppaAspectRatio=[];var wppaFullSize=[];var wppaStretch=false;var wppaThumbSpaceAuto=false;var wppaMinThumbSpace=4;var wppaMagnifierCursor='';var wppaArtMonkyLink='none';var wppaAutoOpenComments=false;var wppaUpdateAddressLine=false;var wppaFilmThumbTitle='';var wppaClickToView='';var wppaUploadUrl='';var wppaVoteForMe='';var wppaVotedForMe='';var wppaSlideSwipe=true;var wppaLightboxSingle=[];var wppaMaxCoverWidth=300;var wppaDownLoad='Download';var wppaSiteUrl='';var wppaWppaUrl='';var wppaIncludeUrl='';var wppaSlideToFullpopup=false;var wppaComAltSize=75;var wppaBumpViewCount=true;var wppaBumpClickCount=false;var wppaFotomoto=false;var wppaArtMonkeyButton=true;var wppaShortQargs=false;var wppaOvlHires=false;var wppaMasonryCols=[];var wppaVideoPlaying=[];var wppaAudioPlaying=[];var wppaSlideVideoStart=false;var wppaSlideAudioStart=false;var wppaAudioHeight=28;var wppaHis=0;var wppaStartHtml=[];var wppaCanAjaxRender=false;var wppaCanPushState=false;var wppaAllowAjax=true;var wppaMaxOccur=0;var wppaFirstOccur=0;var wppaUsePhotoNamesInUrls=false;var wppaShareHideWhenRunning=false;var wppaCommentRequiredAfterVote=true;var wppaTopMoc=0;var wppaColWidth=[];var wppaFotomotoHideWhenRunning=false;var wppaFotomotoMinWidth=400;var wppaPhotoView=[];var wppaBackgroundColorImage='';var wppaPopupLinkType='';var wppaPopupOnclick=[];var wppaThumbTargetBlank=false;var wppaRel='rel';var wppaEditPhotoWidth='960';var wppaThemeStyles='';var wppaStickyHeaderHeight=0;var wppaRenderModal=false;var wppaModalBgColor='#ffffff';var wppaBoxRadius=0;var wppaModalQuitImg;var wppaUploadEdit='none';var wppaPageArg='';var wppaSlideshowNavigationType='icons';var wppaCoverImageResponsive=[];var _wppaId=[];var _wppaAvg=[];var _wppaDisc=[];var _wppaMyr=[];var _wppaVRU=[];var _wppaLinkUrl=[];var _wppaLinkTitle=[];var _wppaLinkTarget=[];var _wppaCommentHtml=[];var _wppaIptcHtml=[];var _wppaExifHtml=[];var _wppaToTheSame=false;var _wppaSlides=[];var _wppaNames=[];var _wppaFullNames=[];var _wppaDsc=[];var _wppaOgDsc=[];var _wppaCurIdx=[];var _wppaNxtIdx=[];var _wppaTimeOut=[];var _wppaSSRuns=[];var _wppaFg=[];var _wppaTP=[];var _wppaIsBusy=[];var _wppaFirst=[];var _wppaVoteInProgress=false;var _wppaTextDelay;var _wppaUrl=[];var _wppaSkipRated=[];var _wppaLbTitle=[];var _wppaStateCount=0;var _wppaDidGoto=[];var _wppaShareUrl=[];var _wppaShareHtml=[];var _wppaFilmNoMove=[];var _wppaHiresUrl=[];var _wppaIsVideo=[];var _wppaVideoHtml=[];var _wppaAudioHtml=[];var _wppaVideoNatWidth=[];var _wppaVideoNatHeight=[];var _wppaWaitTexts=[];var _wppaImageAlt=[];var __wppaOverruleRun=false;var wppaOvlUrls;var wppaOvlTitles;var wppaOvlAlts;var wppaOvlIdx=0;var wppaOvlFirst=true;var wppaOvlKbHandler='';var wppaOvlSizeHandler='';var wppaOvlPadTop=5;var wppaOvlIsSingle;var wppaOvlRunning=false;var wppaOvlVideoHtmls;var wppaOvlAudioHtmls;var wppaOvlVideoNaturalWidths;var wppaOvlVideoNaturalHeights;var wppaOvlModeInitial='normal';var wppaOvlVideoPlaying=false;var wppaOvlAudioPlaying=false;var wppaOvlShowLegenda=true;var wppaOvlShowStartStop=true;var wppaOvlRadius=0;var wppaOvlBorderWidth=16;var wppaOvlOpen=false;var wppaOvlTxtHeight=36;var wppaOvlOpacity=0.8;var wppaOvlOnclickType='none';var wppaOvlTheme='black';var wppaOvlAnimSpeed=300;var wppaOvlSlideSpeed=3000;var wppaVer4WindowWidth=800;var wppaVer4WindowHeight=600;var wppaOvlFontFamily='Helvetica';var wppaOvlFontSize='10';var wppaOvlFontColor='';var wppaOvlFontWeight='bold';var wppaOvlLineHeight='12';var wppaOvlShowCounter=true;var wppaOvlIsVideo=false;var wppaShowLegenda='';var wppaOvlFsPhotoId=0;var wppaPhotoId=0;var wppaOvlVideoStart=false;var wppaOvlAudioStart=false;var wppaLastIptc='';var wppaLastExif='';var wppaIsMobile=false;var wppaSvgFillcolor='gray';var wppaSvgBgcolor='transparent';var wppaSvgCornerStyle='light';jQuery(document).ready(function(){wppaDoInit(false);setTimeout(function(){wppaDoInit(true);},1000);});function wppaDoInit(autoOnly){var anyAutocol=false;for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);anyAutocol=true;}}
|
7 |
if(!autoOnly){_wppaTextDelay=wppaAnimationSpeed;if(wppaFadeInAfterFadeOut)_wppaTextDelay*=2;if(anyAutocol){jQuery(window).resize(function(){for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);}}});}}
|
8 |
wppaReplaceSvg();jQuery('.wppa-ajax-spin').stop().fadeOut();setTimeout(function(){jQuery('.wppa-ajax-spin').stop().fadeOut();},1000);jQuery('.wppa-ovl-spin').stop().fadeOut();setTimeout(function(){jQuery('.wppa-ovl-spin').stop().fadeOut();},1000);setTimeout(function(){var i=1;while(i<wppaTopMoc){if(jQuery('ubb-'+i+'-l')){wppaUbb(i,'l','hide');wppaUbb(i,'r','hide');}
|
9 |
i++;}},3000);}
|
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¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
|
5 |
-
Version: 6.6.
|
6 |
-
Stable tag: 6.6.
|
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-
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -180,6 +180,24 @@ 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.26 =
|
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¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick
|
5 |
+
Version: 6.6.27
|
6 |
+
Stable tag: 6.6.26
|
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 |
|
181 |
See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
|
182 |
|
183 |
+
= 6.6.27 =
|
184 |
+
|
185 |
+
= Bug Fixes =
|
186 |
+
|
187 |
+
* The fullscreen and exit buttons on lightbox were under the lightbox image. Now really fixed.
|
188 |
+
* If the provider changes the diskname, the 'Local import from'-root_dir is now corrected automaticly to the new value.
|
189 |
+
* + New album in the adminbar caused erroneously a Security error 2 message. Fixed.
|
190 |
+
|
191 |
+
= New Features =
|
192 |
+
|
193 |
+
* You can disable cron jobs temporary in Table VIII-A0.2, Use with care!
|
194 |
+
|
195 |
+
= Other Changes =
|
196 |
+
|
197 |
+
* Table II-J11: Navigation symbol style has now an option to revert to non-svg icons. Usefull in case of pageload problems due to many slideshows on a page.
|
198 |
+
* The minimum and maximum allowed fe upload image size works now as follows: an image is too small if both width and height are less than the given limit,
|
199 |
+
the image is too large if either width or height (or both) is larger than the given limit.
|
200 |
+
|
201 |
= 6.6.26 =
|
202 |
|
203 |
= Bug Fixes =
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1057,7 +1057,7 @@ function wppa_admin_spinner() {
|
|
1057 |
|
1058 |
$result = '<img' .
|
1059 |
' id="wppa-admin-spinner"' .
|
1060 |
-
' src="' . wppa_get_imgdir(
|
1061 |
' alt="Spinner"' .
|
1062 |
' style="' .
|
1063 |
'position:fixed;' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
1057 |
|
1058 |
$result = '<img' .
|
1059 |
' id="wppa-admin-spinner"' .
|
1060 |
+
' src="' . wppa_get_imgdir( wppa_use_svg() ? 'loader.svg' : 'loader.gif' ) . '"' .
|
1061 |
' alt="Spinner"' .
|
1062 |
' style="' .
|
1063 |
'position:fixed;' .
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -138,7 +138,7 @@ function wppa_admin_bar_menu() {
|
|
138 |
$menu_item = array( 'id' => 'wppa-album-new',
|
139 |
'parent' => 'new-content-default',
|
140 |
'title' => __( 'Album', 'wp-photo-album-plus' ),
|
141 |
-
'href' => admin_url( 'admin.php?page=wppa_admin_menu&tab=edit&edit_id=new' ),
|
142 |
);
|
143 |
// Add item
|
144 |
$wp_admin_bar->add_menu( $menu_item );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* enhances the admin bar with wppa+ menu
|
6 |
+
* version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
138 |
$menu_item = array( 'id' => 'wppa-album-new',
|
139 |
'parent' => 'new-content-default',
|
140 |
'title' => __( 'Album', 'wp-photo-album-plus' ),
|
141 |
+
'href' => admin_url( 'admin.php?page=wppa_admin_menu&tab=edit&edit_id=new&wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) ),
|
142 |
);
|
143 |
// Add item
|
144 |
$wp_admin_bar->add_menu( $menu_item );
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 6.6.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -3021,6 +3021,14 @@ global $wppa_log_file;
|
|
3021 |
case 'wppa_grant_tags':
|
3022 |
$value = wppa_sanitize_tags( $value );
|
3023 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3024 |
|
3025 |
default:
|
3026 |
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 6.6.27
|
6 |
*
|
7 |
*/
|
8 |
|
3021 |
case 'wppa_grant_tags':
|
3022 |
$value = wppa_sanitize_tags( $value );
|
3023 |
break;
|
3024 |
+
case 'wppa_maint_ignore_cron':
|
3025 |
+
if ( $value == 'no' ) {
|
3026 |
+
wppa_update_option( 'wppa_maint_ignore_cron', 'no' );
|
3027 |
+
wppa_schedule_maintenance_proc( 'wppa_remake_index_albums' );
|
3028 |
+
wppa_schedule_maintenance_proc( 'wppa_remake_index_photos' );
|
3029 |
+
wppa_schedule_treecount_update();
|
3030 |
+
}
|
3031 |
+
break;
|
3032 |
|
3033 |
default:
|
3034 |
|
wppa-album-admin-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -732,7 +732,7 @@ function wppaTryScheduleAll( id ) {
|
|
732 |
' />' .
|
733 |
'<img' .
|
734 |
' id="wppa-album-spin"' .
|
735 |
-
' src="' . wppa_get_imgdir() . 'spinner.' . (
|
736 |
' alt="Spin"' .
|
737 |
' style="visibility:hidden"' .
|
738 |
' />' .
|
@@ -2650,7 +2650,7 @@ global $wpdb;
|
|
2650 |
wppaAjaxInProgress++;
|
2651 |
|
2652 |
jQuery( "#wppa-sort-seqn-albums-" + album ).attr( 'value', seqno ); // set hidden value to new value to prevent duplicate action
|
2653 |
-
var spinnerhtml = '<img src="' + wppaImageDirectory + 'spinner.' + <?php echo (
|
2654 |
jQuery( '#wppa-album-seqno-' + album ).html( spinnerhtml );
|
2655 |
}
|
2656 |
</script>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
732 |
' />' .
|
733 |
'<img' .
|
734 |
' id="wppa-album-spin"' .
|
735 |
+
' src="' . wppa_get_imgdir() . 'spinner.' . ( wppa_use_svg() ? 'svg' : 'gif' ) . '"' .
|
736 |
' alt="Spin"' .
|
737 |
' style="visibility:hidden"' .
|
738 |
' />' .
|
2650 |
wppaAjaxInProgress++;
|
2651 |
|
2652 |
jQuery( "#wppa-sort-seqn-albums-" + album ).attr( 'value', seqno ); // set hidden value to new value to prevent duplicate action
|
2653 |
+
var spinnerhtml = '<img src="' + wppaImageDirectory + 'spinner.' + <?php echo ( wppa_use_svg() ? 'svg' : 'gif' ) ?> + '" />';
|
2654 |
jQuery( '#wppa-album-seqno-' + album ).html( spinnerhtml );
|
2655 |
}
|
2656 |
</script>
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -2474,14 +2474,14 @@ static $albums_granted;
|
|
2474 |
$minsize = wppa_opt( 'upload_frontend_minsize' );
|
2475 |
$result .=
|
2476 |
'<div style="font-size:10px;" >' .
|
2477 |
-
sprintf( __( 'Min photo size: %d
|
2478 |
'</div>';
|
2479 |
}
|
2480 |
if ( wppa_opt( 'upload_frontend_maxsize' ) ) {
|
2481 |
$maxsize = wppa_opt( 'upload_frontend_maxsize' );
|
2482 |
$result .=
|
2483 |
'<div style="font-size:10px;" >' .
|
2484 |
-
sprintf( __( 'Max photo size: %d
|
2485 |
'</div>';
|
2486 |
}
|
2487 |
else {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
2474 |
$minsize = wppa_opt( 'upload_frontend_minsize' );
|
2475 |
$result .=
|
2476 |
'<div style="font-size:10px;" >' .
|
2477 |
+
sprintf( __( 'Min photo size: %d pixels', 'wp-photo-album-plus' ), $minsize ) .
|
2478 |
'</div>';
|
2479 |
}
|
2480 |
if ( wppa_opt( 'upload_frontend_maxsize' ) ) {
|
2481 |
$maxsize = wppa_opt( 'upload_frontend_maxsize' );
|
2482 |
$result .=
|
2483 |
'<div style="font-size:10px;" >' .
|
2484 |
+
sprintf( __( 'Max photo size: %d pixels', 'wp-photo-album-plus' ), $maxsize ) .
|
2485 |
'</div>';
|
2486 |
}
|
2487 |
else {
|
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.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -1297,13 +1297,19 @@ global $wp_roles;
|
|
1297 |
|
1298 |
$limits = '';
|
1299 |
if ( is_user_logged_in() ) {
|
1300 |
-
|
|
|
|
|
|
|
|
|
1301 |
else {
|
1302 |
$roles = $wp_roles->roles;
|
1303 |
$roles['loggedout'] = '';
|
1304 |
unset ( $roles['administrator'] );
|
1305 |
foreach ( array_keys( $roles ) as $role ) if ( ! $limits ) {
|
1306 |
-
if ( current_user_can( $role ) )
|
|
|
|
|
1307 |
}
|
1308 |
}
|
1309 |
}
|
2 |
/* wppa-common-functions.php
|
3 |
*
|
4 |
* Functions used in admin and in themes
|
5 |
+
* Version 6.6.27
|
6 |
*
|
7 |
*/
|
8 |
|
1297 |
|
1298 |
$limits = '';
|
1299 |
if ( is_user_logged_in() ) {
|
1300 |
+
|
1301 |
+
// Unlimited if you have wppa_upload capabilities
|
1302 |
+
if ( current_user_can( 'wppa_upload' ) ) {
|
1303 |
+
$limits = '0/0';
|
1304 |
+
}
|
1305 |
else {
|
1306 |
$roles = $wp_roles->roles;
|
1307 |
$roles['loggedout'] = '';
|
1308 |
unset ( $roles['administrator'] );
|
1309 |
foreach ( array_keys( $roles ) as $role ) if ( ! $limits ) {
|
1310 |
+
if ( current_user_can( $role ) ) {
|
1311 |
+
$limits = get_option( 'wppa_'.$role.'_upload_limit_count', '0' ).'/'.get_option( 'wppa_'.$role.'_upload_limit_time', '0' );
|
1312 |
+
}
|
1313 |
}
|
1314 |
}
|
1315 |
}
|
wppa-cron.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all cron functions
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*
|
9 |
*/
|
@@ -27,6 +27,11 @@ add_action( 'wppa_cron_event', 'wppa_do_maintenance_proc', 10, 1 );
|
|
27 |
function wppa_schedule_maintenance_proc( $slug, $from_settings_page = false ) {
|
28 |
global $is_reschedule;
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
// Schedule cron job
|
31 |
if ( ! wp_next_scheduled( 'wppa_cron_event', array( $slug ) ) ) {
|
32 |
wp_schedule_single_event( time() + 30, 'wppa_cron_event', array( $slug ) );
|
@@ -117,6 +122,11 @@ add_action( 'wppa_cleanup', 'wppa_do_cleanup' );
|
|
117 |
// Schedule cleanup session database table
|
118 |
function wppa_schedule_cleanup( $now = false ) {
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
// Immediate action requested?
|
121 |
if ( $now ) {
|
122 |
wp_schedule_single_event( time() + 1, 'wppa_cleanup' );
|
@@ -131,6 +141,11 @@ function wppa_schedule_cleanup( $now = false ) {
|
|
131 |
function wppa_do_cleanup() {
|
132 |
global $wpdb;
|
133 |
|
|
|
|
|
|
|
|
|
|
|
134 |
wppa_log( 'Cron', '{b}wppa_cleanup{/b} started.' );
|
135 |
|
136 |
// Cleanup session db table
|
@@ -222,6 +237,11 @@ add_action( 'wppa_update_treecounts', 'wppa_do_update_treecounts' );
|
|
222 |
|
223 |
function wppa_schedule_treecount_update() {
|
224 |
|
|
|
|
|
|
|
|
|
|
|
225 |
// Schedule cron job
|
226 |
if ( ! wp_next_scheduled( 'wppa_update_treecounts' ) ) {
|
227 |
wp_schedule_single_event( time() + 10, 'wppa_update_treecounts' );
|
@@ -231,6 +251,11 @@ function wppa_schedule_treecount_update() {
|
|
231 |
function wppa_do_update_treecounts() {
|
232 |
global $wpdb;
|
233 |
|
|
|
|
|
|
|
|
|
|
|
234 |
$start = time();
|
235 |
|
236 |
$albs = $wpdb->get_col( "SELECT `id` FROM `" . WPPA_ALBUMS . "` WHERE `a_parent` < '1' ORDER BY `id`" );
|
@@ -251,6 +276,11 @@ global $wpdb;
|
|
251 |
function wppa_re_animate_cron() {
|
252 |
global $wppa_cron_maintenance_slugs;
|
253 |
|
|
|
|
|
|
|
|
|
|
|
254 |
foreach ( $wppa_cron_maintenance_slugs as $slug ) {
|
255 |
if ( wppa_is_maintenance_cron_job_crashed( $slug ) ) {
|
256 |
$last = get_option( $slug . '_last' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all cron functions
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*
|
9 |
*/
|
27 |
function wppa_schedule_maintenance_proc( $slug, $from_settings_page = false ) {
|
28 |
global $is_reschedule;
|
29 |
|
30 |
+
// Are we temp disbled?
|
31 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
+
|
35 |
// Schedule cron job
|
36 |
if ( ! wp_next_scheduled( 'wppa_cron_event', array( $slug ) ) ) {
|
37 |
wp_schedule_single_event( time() + 30, 'wppa_cron_event', array( $slug ) );
|
122 |
// Schedule cleanup session database table
|
123 |
function wppa_schedule_cleanup( $now = false ) {
|
124 |
|
125 |
+
// Are we temp disbled?
|
126 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
127 |
+
return;
|
128 |
+
}
|
129 |
+
|
130 |
// Immediate action requested?
|
131 |
if ( $now ) {
|
132 |
wp_schedule_single_event( time() + 1, 'wppa_cleanup' );
|
141 |
function wppa_do_cleanup() {
|
142 |
global $wpdb;
|
143 |
|
144 |
+
// Are we temp disbled?
|
145 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
146 |
+
return;
|
147 |
+
}
|
148 |
+
|
149 |
wppa_log( 'Cron', '{b}wppa_cleanup{/b} started.' );
|
150 |
|
151 |
// Cleanup session db table
|
237 |
|
238 |
function wppa_schedule_treecount_update() {
|
239 |
|
240 |
+
// Are we temp disbled?
|
241 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
242 |
+
return;
|
243 |
+
}
|
244 |
+
|
245 |
// Schedule cron job
|
246 |
if ( ! wp_next_scheduled( 'wppa_update_treecounts' ) ) {
|
247 |
wp_schedule_single_event( time() + 10, 'wppa_update_treecounts' );
|
251 |
function wppa_do_update_treecounts() {
|
252 |
global $wpdb;
|
253 |
|
254 |
+
// Are we temp disbled?
|
255 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
256 |
+
return;
|
257 |
+
}
|
258 |
+
|
259 |
$start = time();
|
260 |
|
261 |
$albs = $wpdb->get_col( "SELECT `id` FROM `" . WPPA_ALBUMS . "` WHERE `a_parent` < '1' ORDER BY `id`" );
|
276 |
function wppa_re_animate_cron() {
|
277 |
global $wppa_cron_maintenance_slugs;
|
278 |
|
279 |
+
// Are we temp disbled?
|
280 |
+
if ( wppa_switch( 'maint_ignore_cron' ) ) {
|
281 |
+
return;
|
282 |
+
}
|
283 |
+
|
284 |
foreach ( $wppa_cron_maintenance_slugs as $slug ) {
|
285 |
if ( wppa_is_maintenance_cron_job_crashed( $slug ) ) {
|
286 |
$last = get_option( $slug . '_last' );
|
wppa-filter.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* get the albums via shortcode handler
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -119,6 +119,7 @@ global $wppa_revno;
|
|
119 |
case 'slideonlyf':
|
120 |
$wppa['start_album'] = $atts['album'];
|
121 |
$wppa['is_slideonly'] = '1';
|
|
|
122 |
$wppa['film_on'] = '1';
|
123 |
$wppa['start_photo'] = $atts['photo'];
|
124 |
break;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* get the albums via shortcode handler
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
119 |
case 'slideonlyf':
|
120 |
$wppa['start_album'] = $atts['album'];
|
121 |
$wppa['is_slideonly'] = '1';
|
122 |
+
$wppa['is_slideonlyf'] = '1';
|
123 |
$wppa['film_on'] = '1';
|
124 |
$wppa['start_photo'] = $atts['photo'];
|
125 |
break;
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3073,7 +3073,9 @@ global $blog_id;
|
|
3073 |
// Spinner for Ajax
|
3074 |
if ( wppa_switch( 'allow_ajax' ) ) {
|
3075 |
if ( ! wppa_in_widget() ) {
|
|
|
3076 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
|
|
3077 |
case 'none':
|
3078 |
$bradius = '0';
|
3079 |
break;
|
@@ -3090,8 +3092,8 @@ global $blog_id;
|
|
3090 |
|
3091 |
wppa_out( '<img' .
|
3092 |
' id="wppa-ajax-spin-' . wppa( 'mocc' ) . '"' .
|
3093 |
-
' src="'.wppa_get_imgdir().'loader.' . (
|
3094 |
-
(
|
3095 |
' alt="spinner"' .
|
3096 |
' style="' .
|
3097 |
'box-shadow:none;' .
|
@@ -4501,8 +4503,8 @@ global $wppa_alert;
|
|
4501 |
// Is it not too small?
|
4502 |
$ms = wppa_opt( 'upload_frontend_minsize' );
|
4503 |
if ( $ms ) { // Min size configured
|
4504 |
-
if ( $imgsize[0] < $ms
|
4505 |
-
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file is smaller than the allowed minimum of %d
|
4506 |
return false;
|
4507 |
}
|
4508 |
}
|
@@ -4511,7 +4513,7 @@ global $wppa_alert;
|
|
4511 |
$ms = wppa_opt( 'upload_frontend_maxsize' );
|
4512 |
if ( $ms ) { // Max size configured
|
4513 |
if ( $imgsize[0] > $ms || $imgsize[1] > $ms ) {
|
4514 |
-
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file is larger than the allowed maximum of %d
|
4515 |
return false;
|
4516 |
}
|
4517 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
3073 |
// Spinner for Ajax
|
3074 |
if ( wppa_switch( 'allow_ajax' ) ) {
|
3075 |
if ( ! wppa_in_widget() ) {
|
3076 |
+
|
3077 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
3078 |
+
case 'gif':
|
3079 |
case 'none':
|
3080 |
$bradius = '0';
|
3081 |
break;
|
3092 |
|
3093 |
wppa_out( '<img' .
|
3094 |
' id="wppa-ajax-spin-' . wppa( 'mocc' ) . '"' .
|
3095 |
+
' src="'.wppa_get_imgdir().'loader.' . ( wppa_use_svg() ? 'svg' : 'gif' ) . '"' .
|
3096 |
+
( wppa_use_svg() ? ' class="wppa-svg wppa-ajax-spin"' : ' class="wppa-ajax-spin"' ) .
|
3097 |
' alt="spinner"' .
|
3098 |
' style="' .
|
3099 |
'box-shadow:none;' .
|
4503 |
// Is it not too small?
|
4504 |
$ms = wppa_opt( 'upload_frontend_minsize' );
|
4505 |
if ( $ms ) { // Min size configured
|
4506 |
+
if ( $imgsize[0] < $ms && $imgsize[1] < $ms ) {
|
4507 |
+
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file is smaller than the allowed minimum of %d pixels.' , 'wp-photo-album-plus' ), $ms ) );
|
4508 |
return false;
|
4509 |
}
|
4510 |
}
|
4513 |
$ms = wppa_opt( 'upload_frontend_maxsize' );
|
4514 |
if ( $ms ) { // Max size configured
|
4515 |
if ( $imgsize[0] > $ms || $imgsize[1] > $ms ) {
|
4516 |
+
$wppa_alert .= esc_js( sprintf( __( 'Uploaded file is larger than the allowed maximum of %d pixels.' , 'wp-photo-album-plus' ), $ms ) );
|
4517 |
return false;
|
4518 |
}
|
4519 |
}
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -180,7 +180,7 @@ global $wppa_session;
|
|
180 |
// Local. Find data we will going to need
|
181 |
if ( $source_type == 'local' ) {
|
182 |
|
183 |
-
// Get
|
184 |
$source = get_option( 'wppa_import_source_'.$user, WPPA_DEPOT_PATH );
|
185 |
if ( ! $source || ! is_dir( $source ) ) {
|
186 |
$source = WPPA_DEPOT_PATH;
|
@@ -282,9 +282,10 @@ global $wppa_session;
|
|
282 |
|
283 |
// Local: dir
|
284 |
if ( $source_type == 'local' ) {
|
|
|
285 |
echo
|
286 |
'<select name="wppa-source" >' .
|
287 |
-
wppa_abs_walktree( wppa_opt( 'import_root'), $source ) .
|
288 |
'</select>' .
|
289 |
'<input' .
|
290 |
' type="submit"' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
180 |
// Local. Find data we will going to need
|
181 |
if ( $source_type == 'local' ) {
|
182 |
|
183 |
+
// Get current local dir setting
|
184 |
$source = get_option( 'wppa_import_source_'.$user, WPPA_DEPOT_PATH );
|
185 |
if ( ! $source || ! is_dir( $source ) ) {
|
186 |
$source = WPPA_DEPOT_PATH;
|
282 |
|
283 |
// Local: dir
|
284 |
if ( $source_type == 'local' ) {
|
285 |
+
wppa_update_option( 'wppa_import_root', ABSPATH . basename( content_url() ) ); // Provider may have changed disk
|
286 |
echo
|
287 |
'<select name="wppa-source" >' .
|
288 |
+
wppa_abs_walktree( wppa_opt( 'import_root' ), $source ) .
|
289 |
'</select>' .
|
290 |
'<input' .
|
291 |
' type="submit"' .
|
wppa-init.php
CHANGED
@@ -282,6 +282,12 @@ global $pagenow;
|
|
282 |
}
|
283 |
}
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
if ( get_option( 'wppa_prevrev' ) == '100' && get_option('wppa_i_done') != 'done' && $_SERVER['QUERY_STRING'] != 'page=wppa_options' ) {
|
286 |
wppa_ok_message( __('Please finish setting up WP Photo ALbum Plus on', 'wp-photo-album-plus') . ' <a href="'.get_admin_url().'admin.php?page=wppa_options">' . __('this page', 'wp-photo-album-plus') . '</a>' );
|
287 |
}
|
282 |
}
|
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 |
+
|
290 |
+
// Finish setup
|
291 |
if ( get_option( 'wppa_prevrev' ) == '100' && get_option('wppa_i_done') != 'done' && $_SERVER['QUERY_STRING'] != 'page=wppa_options' ) {
|
292 |
wppa_ok_message( __('Please finish setting up WP Photo ALbum Plus on', 'wp-photo-album-plus') . ' <a href="'.get_admin_url().'admin.php?page=wppa_options">' . __('this page', 'wp-photo-album-plus') . '</a>' );
|
293 |
}
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -82,6 +82,12 @@ global $wppa_supported_audio_extensions;
|
|
82 |
global $wppa_all_maintenance_slugs;
|
83 |
global $wppa_timestamp_start;
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
// Check for multiple maintenance procs
|
86 |
if ( ! wppa_switch( 'maint_ignore_concurrency_error' ) && ! wppa_is_cron() ) {
|
87 |
|
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 |
|
82 |
global $wppa_all_maintenance_slugs;
|
83 |
global $wppa_timestamp_start;
|
84 |
|
85 |
+
// Are we temp disbled?
|
86 |
+
if ( wppa_is_cron() && wppa_switch( 'maint_ignore_cron' ) ) {
|
87 |
+
return;
|
88 |
+
}
|
89 |
+
|
90 |
+
|
91 |
// Check for multiple maintenance procs
|
92 |
if ( ! wppa_switch( 'maint_ignore_concurrency_error' ) && ! wppa_is_cron() ) {
|
93 |
|
wppa-non-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -431,42 +431,6 @@ global $wppa_session;
|
|
431 |
</div>';
|
432 |
}
|
433 |
|
434 |
-
// The 'exit' icon
|
435 |
-
echo
|
436 |
-
'<div' .
|
437 |
-
' id="wppa-exit-btn"' .
|
438 |
-
' style="height:48px;z-index:100098;position:fixed;top:0;right:0;opacity:0.75;"' .
|
439 |
-
' onclick="wppaOvlHide()"' .
|
440 |
-
' onmouseover="jQuery(this).stop().fadeTo(300,1);"' .
|
441 |
-
// ' ontouchstart="jQuery(this).stop().fadeTo(300,1);"' .
|
442 |
-
' onmouseout="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
|
443 |
-
// ' ontouchend="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
|
444 |
-
' >' .
|
445 |
-
wppa_get_svghtml( 'Exit', '48px', true, true, '0', '0', '0', '0' ) .
|
446 |
-
'</div>' .
|
447 |
-
'<script>' .
|
448 |
-
'jQuery(\'#wppa-exit-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,1);});' .
|
449 |
-
'jQuery(\'#wppa-exit-btn\').on(\'touchend\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,' . $dark . ');});' .
|
450 |
-
'</script>';
|
451 |
-
|
452 |
-
// The 'fullscreen' icon
|
453 |
-
echo
|
454 |
-
'<div' .
|
455 |
-
' id="wppa-fulls-btn"' .
|
456 |
-
' style="height:48px;z-index:100098;position:fixed;top:0;right:48px;opacity:0.75;"' .
|
457 |
-
' onclick="wppaOvlFull()"' .
|
458 |
-
' onmouseover="jQuery(this).stop().fadeTo(300,1);"' .
|
459 |
-
// ' ontouchstart="jQuery(this).stop().fadeTo(300,1);"' .
|
460 |
-
' onmouseout="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
|
461 |
-
// ' ontouchend="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
|
462 |
-
' >' .
|
463 |
-
wppa_get_svghtml( 'Full-Screen', '48px', true, true, '0', '0', '0', '0' ) .
|
464 |
-
'</div>' .
|
465 |
-
'<script>' .
|
466 |
-
'jQuery(\'#wppa-fulls-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,1);});' .
|
467 |
-
'jQuery(\'#wppa-fulls-btn\').on(\'touchend\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,' . $dark . ');});' .
|
468 |
-
'</script>';
|
469 |
-
|
470 |
// Close lightbox overlay background
|
471 |
echo
|
472 |
'</div>';
|
@@ -487,8 +451,41 @@ global $wppa_session;
|
|
487 |
' >' .
|
488 |
'</div>';
|
489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
// The Spinner image
|
491 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
|
|
492 |
case 'none':
|
493 |
$bradius = '0';
|
494 |
break;
|
@@ -507,7 +504,7 @@ global $wppa_session;
|
|
507 |
'<img' .
|
508 |
' id="wppa-ovl-spin"' .
|
509 |
' alt="spinner"' .
|
510 |
-
(
|
511 |
' style="' .
|
512 |
'width:120px;' .
|
513 |
'height:120px;' .
|
@@ -524,7 +521,7 @@ global $wppa_session;
|
|
524 |
'box-shadow:none;' .
|
525 |
'border-radius:' . $bradius . 'px;' .
|
526 |
'"' .
|
527 |
-
' src="' . wppa_get_imgdir() . (
|
528 |
' />';
|
529 |
|
530 |
// The init vars
|
@@ -689,6 +686,7 @@ function wppa_add_page_specific_urls() {
|
|
689 |
wppaUploadUrl = "' . WPPA_UPLOAD_URL . '";
|
690 |
wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ';
|
691 |
wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
|
|
|
692 |
wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
|
693 |
</script>
|
694 |
<!-- WPPA+ END Page specific urls -->';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
431 |
</div>';
|
432 |
}
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
// Close lightbox overlay background
|
435 |
echo
|
436 |
'</div>';
|
451 |
' >' .
|
452 |
'</div>';
|
453 |
|
454 |
+
// The 'exit' icon
|
455 |
+
echo
|
456 |
+
'<div' .
|
457 |
+
' id="wppa-exit-btn"' .
|
458 |
+
' style="height:48px;z-index:100098;position:fixed;top:0;right:0;opacity:0.75;display:none;"' .
|
459 |
+
' onclick="wppaOvlHide()"' .
|
460 |
+
' onmouseover="if(wppaOvlOpen){jQuery(this).stop().fadeTo(300,1);}else{jQuery(this).stop().fadeOut(300);}"' .
|
461 |
+
' onmouseout="if(wppaOvlOpen){jQuery(this).stop().fadeTo(300,' . $dark . ');}else{jQuery(this).stop().fadeOut(300);}"' .
|
462 |
+
' >' .
|
463 |
+
wppa_get_svghtml( 'Exit', '48px', true, true, '0', '0', '0', '0' ) .
|
464 |
+
'</div>' .
|
465 |
+
'<script>' .
|
466 |
+
'jQuery(\'#wppa-exit-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,1);});' .
|
467 |
+
'jQuery(\'#wppa-exit-btn\').on(\'touchend\',function(){jQuery(\'#wppa-exit-btn\').stop().fadeTo(300,' . $dark . ');});' .
|
468 |
+
'</script>';
|
469 |
+
|
470 |
+
// The 'fullscreen' icon
|
471 |
+
echo
|
472 |
+
'<div' .
|
473 |
+
' id="wppa-fulls-btn"' .
|
474 |
+
' style="height:48px;z-index:100098;position:fixed;top:0;right:48px;opacity:0.75;display:none;"' .
|
475 |
+
' onclick="wppaOvlFull()"' .
|
476 |
+
' onmouseover="jQuery(this).stop().fadeTo(300,1);"' .
|
477 |
+
' onmouseout="jQuery(this).stop().fadeTo(300,' . $dark . ');"' .
|
478 |
+
' >' .
|
479 |
+
wppa_get_svghtml( 'Full-Screen', '48px', true, true, '0', '0', '0', '0' ) .
|
480 |
+
'</div>' .
|
481 |
+
'<script>' .
|
482 |
+
'jQuery(\'#wppa-fulls-btn\').on(\'touchstart\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,1);});' .
|
483 |
+
'jQuery(\'#wppa-fulls-btn\').on(\'touchend\',function(){jQuery(\'#wppa-fulls-btn\').stop().fadeTo(300,' . $dark . ');});' .
|
484 |
+
'</script>';
|
485 |
+
|
486 |
// The Spinner image
|
487 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
488 |
+
case 'gif':
|
489 |
case 'none':
|
490 |
$bradius = '0';
|
491 |
break;
|
504 |
'<img' .
|
505 |
' id="wppa-ovl-spin"' .
|
506 |
' alt="spinner"' .
|
507 |
+
( wppa_use_svg() ? ' class="wppa-svg"' : '' ) .
|
508 |
' style="' .
|
509 |
'width:120px;' .
|
510 |
'height:120px;' .
|
521 |
'box-shadow:none;' .
|
522 |
'border-radius:' . $bradius . 'px;' .
|
523 |
'"' .
|
524 |
+
' src="' . wppa_get_imgdir() . ( wppa_use_svg() ? 'loader.svg' : 'loader.gif' ) . '"' .
|
525 |
' />';
|
526 |
|
527 |
// The init vars
|
686 |
wppaUploadUrl = "' . WPPA_UPLOAD_URL . '";
|
687 |
wppaIsIe = ' . ( wppa_is_ie() ? 'true' : 'false' ) . ';
|
688 |
wppaIsSafari = ' . ( wppa_is_safari() ? 'true' : 'false' ) . ';
|
689 |
+
wppaUseSvg = ' . ( wppa_use_svg() ? 'true' : 'false' ) . ';
|
690 |
wppaSlideshowNavigationType = "' . wppa_get_navigation_type() . '";
|
691 |
</script>
|
692 |
<!-- WPPA+ END Page specific urls -->';
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1123,7 +1123,7 @@ function wppaTryScheduledel( id ) {
|
|
1123 |
' ' .
|
1124 |
'<img' .
|
1125 |
' id="wppa-water-spin-' . $id . '"' .
|
1126 |
-
' src="' . wppa_get_imgdir() . 'spinner.' . (
|
1127 |
' alt="Spin"' .
|
1128 |
' style="visibility:hidden"' .
|
1129 |
' />';
|
@@ -1678,7 +1678,7 @@ function wppaTryScheduledel( id ) {
|
|
1678 |
' />' .
|
1679 |
'<img' .
|
1680 |
' id="wppa-photo-spin-' . $id . '"' .
|
1681 |
-
' src="' . wppa_get_imgdir() . 'spinner.' . (
|
1682 |
' style="visibility:hidden"' .
|
1683 |
' />' .
|
1684 |
'</td>';
|
@@ -2800,7 +2800,7 @@ global $wpdb;
|
|
2800 |
xmlhttp.setRequestHeader( "Content-type","application/x-www-form-urlencoded" );
|
2801 |
xmlhttp.send( data );
|
2802 |
jQuery( "#wppa-sort-seqn-"+photo ).attr( 'value', seqno ); // set hidden value to new value to prevent duplicate action
|
2803 |
-
var spinnerhtml = '<img src="'+wppaImageDirectory+'spinner.'+<?php echo (
|
2804 |
jQuery( '#wppa-seqno-'+photo ).html( spinnerhtml );
|
2805 |
}
|
2806 |
</script>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
1123 |
' ' .
|
1124 |
'<img' .
|
1125 |
' id="wppa-water-spin-' . $id . '"' .
|
1126 |
+
' src="' . wppa_get_imgdir() . 'spinner.' . ( wppa_use_svg() ? 'svg' : 'gif' ) . '"' .
|
1127 |
' alt="Spin"' .
|
1128 |
' style="visibility:hidden"' .
|
1129 |
' />';
|
1678 |
' />' .
|
1679 |
'<img' .
|
1680 |
' id="wppa-photo-spin-' . $id . '"' .
|
1681 |
+
' src="' . wppa_get_imgdir() . 'spinner.' . ( wppa_use_svg() ? 'svg' : 'gif' ) . '"' .
|
1682 |
' style="visibility:hidden"' .
|
1683 |
' />' .
|
1684 |
'</td>';
|
2800 |
xmlhttp.setRequestHeader( "Content-type","application/x-www-form-urlencoded" );
|
2801 |
xmlhttp.send( data );
|
2802 |
jQuery( "#wppa-sort-seqn-"+photo ).attr( 'value', seqno ); // set hidden value to new value to prevent duplicate action
|
2803 |
+
var spinnerhtml = '<img src="'+wppaImageDirectory+'spinner.'+<?php echo ( wppa_use_svg() ? 'svg' : 'gif' ) ?>+'" />';
|
2804 |
jQuery( '#wppa-seqno-'+photo ).html( spinnerhtml );
|
2805 |
}
|
2806 |
</script>
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3050,10 +3050,10 @@ global $wp_version;
|
|
3050 |
|
3051 |
$name = __('Navigation symbols style', 'wp-photo-album-plus');
|
3052 |
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
3053 |
-
$help = '';
|
3054 |
$slug = 'wppa_icon_corner_style';
|
3055 |
-
$opts = array(__('none', 'wp-photo-album-plus'), __('light', 'wp-photo-album-plus'), __('medium', 'wp-photo-album-plus'), __('heavy', 'wp-photo-album-plus'));
|
3056 |
-
$vals = array('none', 'light', 'medium', 'heavy');
|
3057 |
$html = wppa_select($slug, $opts, $vals);
|
3058 |
$clas = '';
|
3059 |
$tags = 'layout,navi';
|
@@ -6923,7 +6923,20 @@ global $wp_version;
|
|
6923 |
$html = array($html1, $html2, $html3, $html4);
|
6924 |
$clas = '';
|
6925 |
$tags = 'system';
|
6926 |
-
wppa_setting(false, '0', $name, $desc, $html, $help, $clas, $tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6927 |
|
6928 |
$name = __('Setup', 'wp-photo-album-plus');
|
6929 |
$desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
3050 |
|
3051 |
$name = __('Navigation symbols style', 'wp-photo-album-plus');
|
3052 |
$desc = __('The corner rounding size of navigation icons.', 'wp-photo-album-plus' );
|
3053 |
+
$help = esc_js(__('Use gif/png if you have excessive pageload times due to many slideshows on a page', 'wp-photo-album-plus'));
|
3054 |
$slug = 'wppa_icon_corner_style';
|
3055 |
+
$opts = array(__('none', 'wp-photo-album-plus'), __('light', 'wp-photo-album-plus'), __('medium', 'wp-photo-album-plus'), __('heavy', 'wp-photo-album-plus'), __('use gif/png, no svg', 'wp-photo-album-plus'));
|
3056 |
+
$vals = array('none', 'light', 'medium', 'heavy', 'gif');
|
3057 |
$html = wppa_select($slug, $opts, $vals);
|
3058 |
$clas = '';
|
3059 |
$tags = 'layout,navi';
|
6923 |
$html = array($html1, $html2, $html3, $html4);
|
6924 |
$clas = '';
|
6925 |
$tags = 'system';
|
6926 |
+
wppa_setting(false, '0.1', $name, $desc, $html, $help, $clas, $tags);
|
6927 |
+
|
6928 |
+
$name = __('Postpone cron', 'wp-photo-album-plus');
|
6929 |
+
$desc = __('Temporary do no background processes.', 'wp-photo-album-plus');
|
6930 |
+
$help = esc_js(__('This setting is meant to be used a.o. during bulk import/upload. Use with care!', 'wp-photo-album-plus'));
|
6931 |
+
$slug = 'wppa_maint_ignore_cron';
|
6932 |
+
$html1 = wppa_checkbox( $slug );
|
6933 |
+
$html2 = '';
|
6934 |
+
$html3 = '';
|
6935 |
+
$html4 = '';
|
6936 |
+
$html = array($html1, $html2, $html3, $html4);
|
6937 |
+
$clas = '';
|
6938 |
+
$tags = 'system';
|
6939 |
+
wppa_setting(false, '0.2', $name, $desc, $html, $help, $clas, $tags);
|
6940 |
|
6941 |
$name = __('Setup', 'wp-photo-album-plus');
|
6942 |
$desc = __('Re-initialize plugin.', 'wp-photo-album-plus');
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1443,7 +1443,8 @@ Hide Camera info
|
|
1443 |
|
1444 |
// Table VIII: Actions
|
1445 |
// A Harmless
|
1446 |
-
'wppa_maint_ignore_concurrency_error' => 'no', // 0
|
|
|
1447 |
'wppa_setup' => '', // 1
|
1448 |
'wppa_backup' => '',
|
1449 |
'wppa_load_skin' => '',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the setup stuff
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
1443 |
|
1444 |
// Table VIII: Actions
|
1445 |
// A Harmless
|
1446 |
+
'wppa_maint_ignore_concurrency_error' => 'no', // 0.1
|
1447 |
+
'wppa_maint_ignore_cron' => 'no', // 0.2
|
1448 |
'wppa_setup' => '', // 1
|
1449 |
'wppa_backup' => '',
|
1450 |
'wppa_load_skin' => '',
|
wppa-slideshow.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -387,6 +387,7 @@ function wppa_slide_frame() {
|
|
387 |
);
|
388 |
|
389 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
|
|
390 |
case 'none':
|
391 |
$bradius = '0';
|
392 |
break;
|
@@ -401,30 +402,31 @@ function wppa_slide_frame() {
|
|
401 |
break;
|
402 |
}
|
403 |
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
'
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
|
|
428 |
|
429 |
|
430 |
/*'<div' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
387 |
);
|
388 |
|
389 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
390 |
+
case 'gif':
|
391 |
case 'none':
|
392 |
$bradius = '0';
|
393 |
break;
|
402 |
break;
|
403 |
}
|
404 |
|
405 |
+
// if ( ! wppa( 'is_slideonly' ) || wppa( 'is_slideonlyf' ) ) {
|
406 |
+
wppa_out( '<img' .
|
407 |
+
' id="wppa-slide-spin-' . wppa( 'mocc' ) . '"' .
|
408 |
+
' alt="spinner"' .
|
409 |
+
( wppa_use_svg() ? ' class="wppa-svg"' : '' ) .
|
410 |
+
' style="' .
|
411 |
+
'width:120px;' .
|
412 |
+
'height:120px;' .
|
413 |
+
'position:absolute;' .
|
414 |
+
'top:50%;' .
|
415 |
+
'margin-top:-60px;' .
|
416 |
+
'left:50%;' .
|
417 |
+
'margin-left:-60px;' .
|
418 |
+
'z-index:100100;' .
|
419 |
+
'opacity:1;' .
|
420 |
+
'display:block;' .
|
421 |
+
'fill:' . wppa_opt( 'svg_color' ) . ';' .
|
422 |
+
'background-color:' . wppa_opt( 'svg_bg_color' ) . ';' .
|
423 |
+
'box-shadow:none;' .
|
424 |
+
'border-radius:' . $bradius .'px;' .
|
425 |
+
'"' .
|
426 |
+
' src="' . wppa_get_imgdir() . ( wppa_use_svg() ? 'loader.svg' : 'loader.gif' ) . '"' .
|
427 |
+
' />'
|
428 |
+
);
|
429 |
+
// }
|
430 |
|
431 |
|
432 |
/*'<div' .
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3274,6 +3274,11 @@ global $wppa_first_id;
|
|
3274 |
// @8: string: border radius in %: heavy
|
3275 |
function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border = false, $none = '0', $light = '10', $medium = '20', $heavy = '50' ) {
|
3276 |
|
|
|
|
|
|
|
|
|
|
|
3277 |
// Find the colors
|
3278 |
if ( $lightbox ) {
|
3279 |
$fillcolor = wppa_opt( 'ovl_svg_color' );
|
@@ -3286,6 +3291,7 @@ function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border =
|
|
3286 |
|
3287 |
// Find the border radius
|
3288 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
|
|
3289 |
case 'none':
|
3290 |
$bradius = $none;
|
3291 |
break;
|
@@ -3300,18 +3306,18 @@ function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border =
|
|
3300 |
break;
|
3301 |
}
|
3302 |
|
3303 |
-
$
|
3304 |
-
$src = $
|
3305 |
|
3306 |
// Compose the html
|
3307 |
$result = '<img' .
|
3308 |
' src="' . wppa_get_imgdir( $src ) . '"' .
|
3309 |
-
( $
|
3310 |
' style="' .
|
3311 |
( $height ? 'height:' . $height . ';' : '' ) .
|
3312 |
'fill:' . $fillcolor . ';' .
|
3313 |
'background-color:' . $bgcolor . ';' .
|
3314 |
-
( $
|
3315 |
'text-decoration:none !important;' .
|
3316 |
'vertical-align:middle;' .
|
3317 |
( $bradius ? 'border-radius:' . $bradius . '%;' : '' ) .
|
@@ -3624,4 +3630,14 @@ function wppa_create_qrcode_cache( $qrsrc ) {
|
|
3624 |
else {
|
3625 |
return $qrsrc;
|
3626 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3627 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
+
* Version 6.6.27
|
7 |
*
|
8 |
*/
|
9 |
|
3274 |
// @8: string: border radius in %: heavy
|
3275 |
function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border = false, $none = '0', $light = '10', $medium = '20', $heavy = '50' ) {
|
3276 |
|
3277 |
+
// Slideonly has no navigation
|
3278 |
+
// if ( wppa( 'is_slideonly' ) && ! wppa( 'is_slideonlyf' ) ) {
|
3279 |
+
// return '';
|
3280 |
+
// }
|
3281 |
+
|
3282 |
// Find the colors
|
3283 |
if ( $lightbox ) {
|
3284 |
$fillcolor = wppa_opt( 'ovl_svg_color' );
|
3291 |
|
3292 |
// Find the border radius
|
3293 |
switch( wppa_opt( 'icon_corner_style' ) ) {
|
3294 |
+
case 'gif':
|
3295 |
case 'none':
|
3296 |
$bradius = $none;
|
3297 |
break;
|
3306 |
break;
|
3307 |
}
|
3308 |
|
3309 |
+
$use_svg = wppa_use_svg();
|
3310 |
+
$src = $use_svg ? $name . '.svg' : $name . '.png';
|
3311 |
|
3312 |
// Compose the html
|
3313 |
$result = '<img' .
|
3314 |
' src="' . wppa_get_imgdir( $src ) . '"' .
|
3315 |
+
( $use_svg ? ' class="wppa-svg"' : '' ) .
|
3316 |
' style="' .
|
3317 |
( $height ? 'height:' . $height . ';' : '' ) .
|
3318 |
'fill:' . $fillcolor . ';' .
|
3319 |
'background-color:' . $bgcolor . ';' .
|
3320 |
+
( $use_svg ? 'display:none;' : '' ) .
|
3321 |
'text-decoration:none !important;' .
|
3322 |
'vertical-align:middle;' .
|
3323 |
( $bradius ? 'border-radius:' . $bradius . '%;' : '' ) .
|
3630 |
else {
|
3631 |
return $qrsrc;
|
3632 |
}
|
3633 |
+
}
|
3634 |
+
|
3635 |
+
function wppa_use_svg() {
|
3636 |
+
if ( wppa_is_ie() ) {
|
3637 |
+
return false;
|
3638 |
+
}
|
3639 |
+
if ( wppa_opt( 'icon_corner_style' ) == 'gif' ) {
|
3640 |
+
return false;
|
3641 |
+
}
|
3642 |
+
return true;
|
3643 |
}
|
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.
|
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/
|
@@ -22,8 +22,8 @@ global $wpdb;
|
|
22 |
global $wp_version;
|
23 |
|
24 |
/* WPPA GLOBALS */
|
25 |
-
global $wppa_revno; $wppa_revno = '
|
26 |
-
global $wppa_api_version; $wppa_api_version = '6-6-
|
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.27
|
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/
|
22 |
global $wp_version;
|
23 |
|
24 |
/* WPPA GLOBALS */
|
25 |
+
global $wppa_revno; $wppa_revno = '6627'; // WPPA db version
|
26 |
+
global $wppa_api_version; $wppa_api_version = '6-6-27-005'; // WPPA software version
|
27 |
|
28 |
/* start timers */
|
29 |
global $wppa_starttime; $wppa_starttime = microtime( true );
|