Version Description
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 6.6.06 |
Comparing to | |
See all releases |
Code changes from version 6.6.05 to 6.6.06
- js/wppa-ajax-front.js +24 -1
- js/wppa-ajax-front.min.js +2 -1
- js/wppa-lightbox.js +5 -5
- js/wppa-lightbox.min.js +4 -5
- js/wppa-slideshow.js +6 -6
- js/wppa-slideshow.min.js +6 -6
- js/wppa-touch.js +3 -2
- js/wppa-touch.min.js +2 -2
- js/wppa-utils.js +2 -1
- js/wppa-utils.min.js +2 -2
- js/wppa.js +3 -2
- js/wppa.min.js +2 -3
- readme.txt +17 -3
- wppa-ajax.php +27 -3
- wppa-album-admin-autosave.php +11 -2
- wppa-functions.php +10 -8
- wppa-links.php +2 -2
- wppa-non-admin.php +1 -0
- wppa-photo-admin-autosave.php +15 -4
- wppa-picture.php +4 -2
- wppa-settings-autosave.php +12 -1
- wppa-setup.php +9 -1
- wppa-slideshow.php +3 -2
- wppa-statistics.php +35 -1
- wppa-thumbnails.php +1 -1
- wppa-utils.php +31 -7
- wppa.php +3 -3
js/wppa-ajax-front.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
-
var wppaJsAjaxVersion = '6.6.
|
7 |
|
8 |
var wppaRenderAdd = false;
|
9 |
var wppaWaitForCounter = 0;
|
@@ -532,6 +532,29 @@ function wppaAjaxDestroyAlbum( album, nonce ) {
|
|
532 |
return false;
|
533 |
}
|
534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
// Bump view counter
|
536 |
function _bumpViewCount( photo ) {
|
537 |
|
3 |
// Contains frontend ajax modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaJsAjaxVersion = '6.6.06';
|
7 |
|
8 |
var wppaRenderAdd = false;
|
9 |
var wppaWaitForCounter = 0;
|
532 |
return false;
|
533 |
}
|
534 |
|
535 |
+
// Bump click counter
|
536 |
+
function _bumpClickCount( photo ) {
|
537 |
+
|
538 |
+
// Feature enabled?
|
539 |
+
if ( ! wppaBumpClickCount ) return;
|
540 |
+
|
541 |
+
jQuery.ajax( { url: wppaAjaxUrl,
|
542 |
+
data: 'action=wppa' +
|
543 |
+
'&wppa-action=bumpclickcount' +
|
544 |
+
'&wppa-photo=' + photo +
|
545 |
+
'&wppa-nonce=' + jQuery( '#wppa-nonce' ).val(),
|
546 |
+
async: false,
|
547 |
+
type: 'GET',
|
548 |
+
timeout: 60000,
|
549 |
+
success: function( result, status, xhr ) {
|
550 |
+
wppaConsoleLog( '_bumpClickCount success.' );
|
551 |
+
},
|
552 |
+
error: function( xhr, status, error ) {
|
553 |
+
wppaConsoleLog( '_bumpClickCount failed. Error = ' + error + ', status = ' + status, 'force' );
|
554 |
+
},
|
555 |
+
} );
|
556 |
+
}
|
557 |
+
|
558 |
// Bump view counter
|
559 |
function _bumpViewCount( photo ) {
|
560 |
|
js/wppa-ajax-front.min.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
-
var wppaJsAjaxVersion='6.6.
|
8 |
wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).css('display','');},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
|
9 |
else{if(wppaRenderModal){var opt={modal:true,resizable:true,width:wppaGetContainerWidth(mocc),show:{effect:"fadeIn",duration:400},closeText:"",};jQuery('#wppa-modal-container-'+mocc).html(result).dialog(opt).dialog("open");jQuery('.ui-dialog').css({boxShadow:'0px 0px 5px 5px #aaaaaa',borderRadius:wppaBoxRadius+'px',padding:'8px',backgroundColor:wppaModalBgColor,boxSizing:'content-box',zIndex:100000,});jQuery('.ui-dialog-titlebar').css({lineHeight:'0px',height:'32px',});jQuery('.ui-button').css({backgroundImage:wppaModalQuitImg,padding:0,position:'absolute',right:'8px',top:'8px',width:'16px',height:'16px',});jQuery('.ui-button').attr('title','Close');jQuery('.ui-button').on('click',function(){_wppaStop(mocc);});}
|
10 |
else{jQuery('#wppa-container-'+mocc).html(result);}}
|
@@ -38,6 +38,7 @@ editTag=jQuery('#'+tagsEdit).val();if(editTag!=''){selArr[j]=editTag;}
|
|
38 |
tags=selArr.join();if(editTag!=''||tagsAlbum!=''){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=sanitizetags'+'&tags='+tags+'&album='+album,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){jQuery('#'+tagsPrev).html('Working...');},success:function(result,status,xhr){jQuery('#'+tagsPrev).html(wppaTrim(result,','));},error:function(xhr,status,error){jQuery('#'+tagsPrev).html('<span style="color:red" >'+error+'</span>');wppaConsoleLog('wppaPrevTags failed. Error = '+error+', status = '+status,'force');},});}}
|
39 |
function wppaAjaxDestroyAlbum(album,nonce){if(confirm('Are you sure you want to delete this album?')){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=destroyalbum'+'&album='+album+'&nonce='+nonce,async:true,type:'GET',timeout:60000,success:function(result,status,xhr){alert(result+'\n'+'Page will be reloaded');document.location.reload(true);},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxDestroyAlbum failed. Error = '+error+', status = '+status,'force');},});}
|
40 |
return false;}
|
|
|
41 |
function _bumpViewCount(photo){if(!wppaBumpViewCount)return;if(wppaPhotoView[photo])return;jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=bumpviewcount'+'&wppa-photo='+photo+'&wppa-nonce='+jQuery('#wppa-nonce').val(),async:true,type:'GET',timeout:60000,success:function(result,status,xhr){wppaPhotoView[photo]=true;},error:function(xhr,status,error){wppaConsoleLog('_bumpViewCount failed. Error = '+error+', status = '+status,'force');},});}
|
42 |
function wppaVoteThumb(mocc,photo){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=rate'+'&wppa-rating=1'+'&wppa-rating-id='+photo+'&wppa-occur='+mocc+'&wppa-nonce='+jQuery('#wppa-nonce').val(),async:true,type:'GET',timeout:60000,success:function(result,status,xhr){jQuery('#wppa-vote-button-'+mocc+'-'+photo).val(wppaVotedForMe);},error:function(xhr,status,error){wppaConsoleLog('wppaVoteThumb failed. Error = '+error+', status = '+status,'force');},});}
|
43 |
function _wppaRateIt(mocc,value){if(value==0)return;if(_wppaSSRuns[mocc])return;var photo=_wppaId[mocc][_wppaCurIdx[mocc]];var oldval=_wppaMyr[mocc][_wppaCurIdx[mocc]];var waittext=_wppaWaitTexts[mocc][_wppaCurIdx[mocc]];if(waittext.length>0){alert(waittext);return;}
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaJsAjaxVersion='6.6.06';var wppaRenderAdd=false;var wppaWaitForCounter=0;function wppaDoAjaxRender(mocc,ajaxurl,newurl,add,waitfor){if(parseInt(waitfor)>0&&waitfor!=wppaWaitForCounter){setTimeout('wppaDoAjaxRender( '+mocc+', \''+ajaxurl+'\', \''+newurl+'\', \''+add+'\', '+waitfor+' )',100);return;}
|
8 |
wppaRenderAdd=add;if(wppaLang!='')ajaxurl+='&lang='+wppaLang;if(wppaAutoColumnWidth[mocc])ajaxurl+='&resp=1';if(wppaCanAjaxRender){jQuery.ajax({url:ajaxurl,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){if(_wppaSSRuns[mocc])_wppaStop(mocc);jQuery('#wppa-ajax-spin-'+mocc).css('display','');},success:function(result,status,xhr){if(wppaRenderAdd){jQuery(wppaRenderAdd+result).insertBefore('#wppa-container-'+mocc+'-end');}
|
9 |
else{if(wppaRenderModal){var opt={modal:true,resizable:true,width:wppaGetContainerWidth(mocc),show:{effect:"fadeIn",duration:400},closeText:"",};jQuery('#wppa-modal-container-'+mocc).html(result).dialog(opt).dialog("open");jQuery('.ui-dialog').css({boxShadow:'0px 0px 5px 5px #aaaaaa',borderRadius:wppaBoxRadius+'px',padding:'8px',backgroundColor:wppaModalBgColor,boxSizing:'content-box',zIndex:100000,});jQuery('.ui-dialog-titlebar').css({lineHeight:'0px',height:'32px',});jQuery('.ui-button').css({backgroundImage:wppaModalQuitImg,padding:0,position:'absolute',right:'8px',top:'8px',width:'16px',height:'16px',});jQuery('.ui-button').attr('title','Close');jQuery('.ui-button').on('click',function(){_wppaStop(mocc);});}
|
10 |
else{jQuery('#wppa-container-'+mocc).html(result);}}
|
38 |
tags=selArr.join();if(editTag!=''||tagsAlbum!=''){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=sanitizetags'+'&tags='+tags+'&album='+album,async:true,type:'GET',timeout:60000,beforeSend:function(xhr){jQuery('#'+tagsPrev).html('Working...');},success:function(result,status,xhr){jQuery('#'+tagsPrev).html(wppaTrim(result,','));},error:function(xhr,status,error){jQuery('#'+tagsPrev).html('<span style="color:red" >'+error+'</span>');wppaConsoleLog('wppaPrevTags failed. Error = '+error+', status = '+status,'force');},});}}
|
39 |
function wppaAjaxDestroyAlbum(album,nonce){if(confirm('Are you sure you want to delete this album?')){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=destroyalbum'+'&album='+album+'&nonce='+nonce,async:true,type:'GET',timeout:60000,success:function(result,status,xhr){alert(result+'\n'+'Page will be reloaded');document.location.reload(true);},error:function(xhr,status,error){wppaConsoleLog('wppaAjaxDestroyAlbum failed. Error = '+error+', status = '+status,'force');},});}
|
40 |
return false;}
|
41 |
+
function _bumpClickCount(photo){if(!wppaBumpClickCount)return;jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=bumpclickcount'+'&wppa-photo='+photo+'&wppa-nonce='+jQuery('#wppa-nonce').val(),async:false,type:'GET',timeout:60000,success:function(result,status,xhr){wppaConsoleLog('_bumpClickCount success.');},error:function(xhr,status,error){wppaConsoleLog('_bumpClickCount failed. Error = '+error+', status = '+status,'force');},});}
|
42 |
function _bumpViewCount(photo){if(!wppaBumpViewCount)return;if(wppaPhotoView[photo])return;jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=bumpviewcount'+'&wppa-photo='+photo+'&wppa-nonce='+jQuery('#wppa-nonce').val(),async:true,type:'GET',timeout:60000,success:function(result,status,xhr){wppaPhotoView[photo]=true;},error:function(xhr,status,error){wppaConsoleLog('_bumpViewCount failed. Error = '+error+', status = '+status,'force');},});}
|
43 |
function wppaVoteThumb(mocc,photo){jQuery.ajax({url:wppaAjaxUrl,data:'action=wppa'+'&wppa-action=rate'+'&wppa-rating=1'+'&wppa-rating-id='+photo+'&wppa-occur='+mocc+'&wppa-nonce='+jQuery('#wppa-nonce').val(),async:true,type:'GET',timeout:60000,success:function(result,status,xhr){jQuery('#wppa-vote-button-'+mocc+'-'+photo).val(wppaVotedForMe);},error:function(xhr,status,error){wppaConsoleLog('wppaVoteThumb failed. Error = '+error+', status = '+status,'force');},});}
|
44 |
function _wppaRateIt(mocc,value){if(value==0)return;if(_wppaSSRuns[mocc])return;var photo=_wppaId[mocc][_wppaCurIdx[mocc]];var oldval=_wppaMyr[mocc][_wppaCurIdx[mocc]];var waittext=_wppaWaitTexts[mocc][_wppaCurIdx[mocc]];if(waittext.length>0){alert(waittext);return;}
|
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;
|
@@ -501,7 +501,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
501 |
}
|
502 |
|
503 |
// Replace svg img src to html
|
504 |
-
wppaReplaceSvg();
|
505 |
|
506 |
wppaOvlIsVideo = wppaIsVideo;
|
507 |
setTimeout( 'wppaOvlFormatFull()', 10 );
|
@@ -753,7 +753,7 @@ wppaConsoleLog( '_wppaOvlShow, idx='+idx );
|
|
753 |
jQuery( '#wppa-overlay-ic' ).html( html );
|
754 |
|
755 |
// Replace svg img src to html
|
756 |
-
wppaReplaceSvg();
|
757 |
|
758 |
// Restore opacity of fs and exit buttons
|
759 |
// wppaShowFsButtons();
|
@@ -1073,8 +1073,8 @@ wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning);
|
|
1073 |
wppaOvlRunning = true;
|
1074 |
wppaOvlRun();
|
1075 |
}
|
1076 |
-
|
1077 |
-
wppaReplaceSvg();
|
1078 |
}
|
1079 |
|
1080 |
// Start lb slideshow
|
3 |
// Conatins lightbox modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaLightboxVersion = '6.6.06';
|
7 |
|
8 |
// Global inits
|
9 |
var wppaNormsBtnOpac = 0.75;
|
501 |
}
|
502 |
|
503 |
// Replace svg img src to html
|
504 |
+
// wppaReplaceSvg();
|
505 |
|
506 |
wppaOvlIsVideo = wppaIsVideo;
|
507 |
setTimeout( 'wppaOvlFormatFull()', 10 );
|
753 |
jQuery( '#wppa-overlay-ic' ).html( html );
|
754 |
|
755 |
// Replace svg img src to html
|
756 |
+
// wppaReplaceSvg();
|
757 |
|
758 |
// Restore opacity of fs and exit buttons
|
759 |
// wppaShowFsButtons();
|
1073 |
wppaOvlRunning = true;
|
1074 |
wppaOvlRun();
|
1075 |
}
|
1076 |
+
|
1077 |
+
// wppaReplaceSvg();
|
1078 |
}
|
1079 |
|
1080 |
// Start lb slideshow
|
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;}
|
@@ -54,7 +54,7 @@ html+='</div>';'</div>';}
|
|
54 |
var dark=wppaIsMobile?'0.1':'0.1';html+='<div'+' id="wppa-exit-btn"'+' style="height:48px;z-index:100098;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+';"'+' onclick="wppaOvlHide()"'+' onmouseover="jQuery(this).stop().fadeTo(300,1);"'+' ontouchstart="jQuery(this).stop().fadeTo(300,1);"'+' onmouseout="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' ontouchend="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' >'+
|
55 |
wppaSvgHtml('Exit','48px',true,true,'0','0','0','0')+'</div>';html+='<div'+' id="wppa-norms-btn"'+' style="height:48px;z-index:100098;position:fixed;top:0;right:48px;opacity:'+wppaNormsBtnOpac+';"'+' onclick="wppaOvlNorm()"'+' onmouseover="jQuery(this).stop().fadeTo(300,1);"'+' ontouchstart="jQuery(this).stop().fadeTo(300,1);"'+' onmouseout="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' ontouchend="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' >'+
|
56 |
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);}
|
57 |
-
|
58 |
else{wppaOvlFsPhotoId=0;}
|
59 |
wppaOvlFirst=false;return false;}
|
60 |
else{wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaStopVideo(0);var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';if(wppaOvlFontColor){txtcol=wppaOvlFontColor;}
|
@@ -76,7 +76,7 @@ wppaSvgHtml('Next-Button','48px',true,true)+'</div>';}
|
|
76 |
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%;'+
|
77 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
78 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
79 |
-
wppaOvlTitles[idx]+'</div>';'</div>';jQuery('#wppa-overlay-ic').html(html);
|
80 |
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;}
|
81 |
if(wppaOvlMode!='normal'){wppaOvlFormatFull();return;}
|
82 |
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];}
|
@@ -107,8 +107,7 @@ function wppaOvlStepMode(){wppaConsoleLog('wppaOvlStepMode from '+wppaOvlMode);v
|
|
107 |
i++;}}
|
108 |
function wppaOvlStartStop(){wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning);if(wppaOvlRunning){wppaOvlRunning=false;jQuery('#wppa-ovl-start-stop-btn').html(wppaSvgHtml((wppaOvlRunning?'Pause-Button':'Play-Button'),'48px',true,true,'0','20','50','50'));if(wppaOvlIdx!=-1){if(wppaOvlIdx!=0){jQuery('#wppa-ovl-prev-btn').css('visibility','visible');}
|
109 |
if(wppaOvlIdx!=(wppaOvlUrls.length-1)){jQuery('#wppa-ovl-next-btn').css('visibility','visible');}}}
|
110 |
-
else{jQuery('#wppa-ovl-start-stop-btn').html(wppaSvgHtml((wppaOvlRunning?'Pause-Button':'Pause-Button'),'48px',true,true,'0','20','50','50'));wppaOvlRunning=true;wppaOvlRun();}
|
111 |
-
wppaReplaceSvg();}
|
112 |
function wppaOvlRun(){wppaConsoleLog('wppaOvlRun, running='+wppaOvlRunning);if(!wppaOvlRunning)return;if(wppaOvlVideoPlaying||wppaOvlAudioPlaying){setTimeout('wppaOvlRun()',500);return;}
|
113 |
if(!wppaIsVideo){var elm=document.getElementById('wppa-overlay-img');if(elm){if(!elm.complete){wppaConsoleLog('Wait during run');setTimeout('wppaOvlRun()',500);return;}}}
|
114 |
var next;if(wppaOvlIdx>=(wppaOvlUrls.length-1))next=0;else next=wppaOvlIdx+1;wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaOvlShow(next);setTimeout('wppaOvlRun()',wppaOvlSlideSpeed);}
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaLightboxVersion='6.6.06';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;}
|
54 |
var dark=wppaIsMobile?'0.1':'0.1';html+='<div'+' id="wppa-exit-btn"'+' style="height:48px;z-index:100098;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+';"'+' onclick="wppaOvlHide()"'+' onmouseover="jQuery(this).stop().fadeTo(300,1);"'+' ontouchstart="jQuery(this).stop().fadeTo(300,1);"'+' onmouseout="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' ontouchend="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' >'+
|
55 |
wppaSvgHtml('Exit','48px',true,true,'0','0','0','0')+'</div>';html+='<div'+' id="wppa-norms-btn"'+' style="height:48px;z-index:100098;position:fixed;top:0;right:48px;opacity:'+wppaNormsBtnOpac+';"'+' onclick="wppaOvlNorm()"'+' onmouseover="jQuery(this).stop().fadeTo(300,1);"'+' ontouchstart="jQuery(this).stop().fadeTo(300,1);"'+' onmouseout="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' ontouchend="jQuery(this).stop().fadeTo(300,'+dark+');wppaNormsBtnOpac='+dark+';"'+' >'+
|
56 |
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);}
|
57 |
+
wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlFormatFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
|
58 |
else{wppaOvlFsPhotoId=0;}
|
59 |
wppaOvlFirst=false;return false;}
|
60 |
else{wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaStopVideo(0);var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';if(wppaOvlFontColor){txtcol=wppaOvlFontColor;}
|
76 |
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%;'+
|
77 |
(wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
|
78 |
(showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
|
79 |
+
wppaOvlTitles[idx]+'</div>';'</div>';jQuery('#wppa-overlay-ic').html(html);wppaOvlResize();return false;}}
|
80 |
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;}
|
81 |
if(wppaOvlMode!='normal'){wppaOvlFormatFull();return;}
|
82 |
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];}
|
107 |
i++;}}
|
108 |
function wppaOvlStartStop(){wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning);if(wppaOvlRunning){wppaOvlRunning=false;jQuery('#wppa-ovl-start-stop-btn').html(wppaSvgHtml((wppaOvlRunning?'Pause-Button':'Play-Button'),'48px',true,true,'0','20','50','50'));if(wppaOvlIdx!=-1){if(wppaOvlIdx!=0){jQuery('#wppa-ovl-prev-btn').css('visibility','visible');}
|
109 |
if(wppaOvlIdx!=(wppaOvlUrls.length-1)){jQuery('#wppa-ovl-next-btn').css('visibility','visible');}}}
|
110 |
+
else{jQuery('#wppa-ovl-start-stop-btn').html(wppaSvgHtml((wppaOvlRunning?'Pause-Button':'Pause-Button'),'48px',true,true,'0','20','50','50'));wppaOvlRunning=true;wppaOvlRun();}}
|
|
|
111 |
function wppaOvlRun(){wppaConsoleLog('wppaOvlRun, running='+wppaOvlRunning);if(!wppaOvlRunning)return;if(wppaOvlVideoPlaying||wppaOvlAudioPlaying){setTimeout('wppaOvlRun()',500);return;}
|
112 |
if(!wppaIsVideo){var elm=document.getElementById('wppa-overlay-img');if(elm){if(!elm.complete){wppaConsoleLog('Wait during run');setTimeout('wppaOvlRun()',500);return;}}}
|
113 |
var next;if(wppaOvlIdx>=(wppaOvlUrls.length-1))next=0;else next=wppaOvlIdx+1;wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaOvlShow(next);setTimeout('wppaOvlRun()',wppaOvlSlideSpeed);}
|
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.
|
7 |
|
8 |
// This is an entrypoint to load the slide data
|
9 |
function wppaStoreSlideInfo(
|
@@ -214,7 +214,7 @@ function wppaStartStop( mocc, index ) {
|
|
214 |
jQuery( '#wppa-startstop-icon-' + mocc ).html( wppaSvgHtml( 'Pause-Button', '48px', false, true, '0', '10', '50', '50' ) );
|
215 |
}
|
216 |
}
|
217 |
-
wppaReplaceSvg();
|
218 |
if ( wppaIsMobile ) {
|
219 |
jQuery( '#wppa-startstop-icon-' + mocc ).stop().fadeTo( 10, 1 ).fadeTo( 3000, 0 );
|
220 |
jQuery( '.ubb-'+mocc ).stop().fadeTo( 10, 1 ).fadeTo( 3000, 0 );
|
@@ -453,7 +453,7 @@ function _wppaNextSlide( mocc, mode ) {
|
|
453 |
// Display prev/next
|
454 |
jQuery( '#prev-arrow-'+mocc ).html( wppaSvgHtml( 'Prev-Button', '1.5em', false, true ) );
|
455 |
jQuery( '#next-arrow-'+mocc ).html( wppaSvgHtml( 'Next-Button', '1.5em', false, true ) );
|
456 |
-
wppaReplaceSvg();
|
457 |
|
458 |
// Display Rating
|
459 |
if ( wppaIsMini[mocc] || wppaGetContainerWidth( mocc ) < wppaMiniTreshold ) {
|
@@ -1077,7 +1077,7 @@ function wppaMakeTheSlideHtml( mocc, bgfg, idx ) {
|
|
1077 |
'</a>';
|
1078 |
}
|
1079 |
else {
|
1080 |
-
theHtml = '<a onclick="wppaStopAudio();wppaStopShow('+mocc+');
|
1081 |
'<'+imgVideo+mmEvents+' title="'+_wppaLinkTitle[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx]+
|
1082 |
'</a>';
|
1083 |
}
|
@@ -1395,7 +1395,7 @@ function _wppaStart( mocc, idx ) {
|
|
1395 |
}
|
1396 |
|
1397 |
// Both cases:
|
1398 |
-
wppaReplaceSvg();
|
1399 |
_wppaSetRatingDisplay( mocc );
|
1400 |
}
|
1401 |
|
@@ -1403,7 +1403,7 @@ function _wppaStop( mocc ) {
|
|
1403 |
|
1404 |
_wppaSSRuns[mocc] = false;
|
1405 |
jQuery( '#startstop-'+mocc ).html( wppaSvgHtml( 'Play-Button', '1.5em', false, true ) );
|
1406 |
-
wppaReplaceSvg();
|
1407 |
jQuery( '#speed0-'+mocc ).hide(); //css( 'display', 'none' );
|
1408 |
jQuery( '#speed1-'+mocc ).hide(); // css( 'display', 'none' );
|
1409 |
_wppaShowMetaData( mocc, 'show' );
|
3 |
// Contains slideshow modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaJsSlideshowVersion = '6.6.06';
|
7 |
|
8 |
// This is an entrypoint to load the slide data
|
9 |
function wppaStoreSlideInfo(
|
214 |
jQuery( '#wppa-startstop-icon-' + mocc ).html( wppaSvgHtml( 'Pause-Button', '48px', false, true, '0', '10', '50', '50' ) );
|
215 |
}
|
216 |
}
|
217 |
+
// wppaReplaceSvg();
|
218 |
if ( wppaIsMobile ) {
|
219 |
jQuery( '#wppa-startstop-icon-' + mocc ).stop().fadeTo( 10, 1 ).fadeTo( 3000, 0 );
|
220 |
jQuery( '.ubb-'+mocc ).stop().fadeTo( 10, 1 ).fadeTo( 3000, 0 );
|
453 |
// Display prev/next
|
454 |
jQuery( '#prev-arrow-'+mocc ).html( wppaSvgHtml( 'Prev-Button', '1.5em', false, true ) );
|
455 |
jQuery( '#next-arrow-'+mocc ).html( wppaSvgHtml( 'Next-Button', '1.5em', false, true ) );
|
456 |
+
// wppaReplaceSvg();
|
457 |
|
458 |
// Display Rating
|
459 |
if ( wppaIsMini[mocc] || wppaGetContainerWidth( mocc ) < wppaMiniTreshold ) {
|
1077 |
'</a>';
|
1078 |
}
|
1079 |
else {
|
1080 |
+
theHtml = '<a onclick="_bumpClickCount(\''+_wppaId[mocc][idx]+'\');wppaStopAudio();wppaStopShow('+mocc+');window.open(\''+_wppaLinkUrl[mocc][idx]+'\', \''+_wppaLinkTarget[mocc][idx]+'\');" title="'+_wppaLinkTitle[mocc][idx]+'">'+
|
1081 |
'<'+imgVideo+mmEvents+' title="'+_wppaLinkTitle[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx]+
|
1082 |
'</a>';
|
1083 |
}
|
1395 |
}
|
1396 |
|
1397 |
// Both cases:
|
1398 |
+
// wppaReplaceSvg();
|
1399 |
_wppaSetRatingDisplay( mocc );
|
1400 |
}
|
1401 |
|
1403 |
|
1404 |
_wppaSSRuns[mocc] = false;
|
1405 |
jQuery( '#startstop-'+mocc ).html( wppaSvgHtml( 'Play-Button', '1.5em', false, true ) );
|
1406 |
+
// wppaReplaceSvg();
|
1407 |
jQuery( '#speed0-'+mocc ).hide(); //css( 'display', 'none' );
|
1408 |
jQuery( '#speed1-'+mocc ).hide(); // css( 'display', 'none' );
|
1409 |
_wppaShowMetaData( mocc, 'show' );
|
js/wppa-slideshow.min.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
-
var wppaJsSlideshowVersion='6.6.
|
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 ';}
|
@@ -22,7 +22,7 @@ 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 |
-
|
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);}
|
@@ -52,7 +52,7 @@ 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]]);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{jQuery('#wppa-avg-rat-'+mocc).html(wppaAvgRating);jQuery('#wppa-my-rat-'+mocc).html(wppaMyRating);}}
|
57 |
else{wppaMakeTheSlideHtml(mocc,bg,_wppaNxtIdx[mocc]);}
|
58 |
_wppaLoadSpinner(mocc);_wppaFirst[mocc]=false;_wppaCheckRewind(mocc);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);setTimeout('_wppaNextSlide_2( '+mocc+' )',10);}
|
@@ -99,7 +99,7 @@ else{result='<a title="Download" style="cursor:pointer;" onclick="wppaAjaxMakeOr
|
|
99 |
break;case'none':result=_wppaFullNames[mocc][_wppaCurIdx[mocc]];break;default:result='';}
|
100 |
return wppaRepairBrTags(result);}
|
101 |
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>';}
|
102 |
-
else{theHtml='<a onclick="wppaStopAudio();wppaStopShow('+mocc+');
|
103 |
else{if(wppaLightBox[mocc]==''){theHtml='<'+imgVideo+mmEvents+' title="'+_wppaNames[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx];}
|
104 |
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];}
|
105 |
else{url=wppaMakeFullsizeUrl(_wppaUrl[mocc][i]);}
|
@@ -144,8 +144,8 @@ function _wppaStart(mocc,idx){if(idx==-2){var i=0;idx=0;_wppaSkipRated[mocc]=tru
|
|
144 |
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');}
|
145 |
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);}
|
146 |
else{jQuery('#bc-pname-'+mocc).html(wppaSlideShow);}}
|
147 |
-
|
148 |
-
function _wppaStop(mocc){_wppaSSRuns[mocc]=false;jQuery('#startstop-'+mocc).html(wppaSvgHtml('Play-Button','1.5em',false,true));
|
149 |
else{jQuery('#bc-pname-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}}
|
150 |
function _wppaSpeed(mocc,faster){if(_wppaTimeOut[mocc]=='random'){return;}
|
151 |
if(faster){if(_wppaTimeOut[mocc]>500)_wppaTimeOut[mocc]/=1.5;}
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaJsSlideshowVersion='6.6.06';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 ';}
|
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);}
|
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]]);jQuery('#prev-arrow-'+mocc).html(wppaSvgHtml('Prev-Button','1.5em',false,true));jQuery('#next-arrow-'+mocc).html(wppaSvgHtml('Next-Button','1.5em',false,true));if(wppaIsMini[mocc]||wppaGetContainerWidth(mocc)<wppaMiniTreshold){jQuery('#wppa-avg-rat-'+mocc).html(wppaAvgRat);jQuery('#wppa-my-rat-'+mocc).html(wppaMyRat);}
|
56 |
else{jQuery('#wppa-avg-rat-'+mocc).html(wppaAvgRating);jQuery('#wppa-my-rat-'+mocc).html(wppaMyRating);}}
|
57 |
else{wppaMakeTheSlideHtml(mocc,bg,_wppaNxtIdx[mocc]);}
|
58 |
_wppaLoadSpinner(mocc);_wppaFirst[mocc]=false;_wppaCheckRewind(mocc);wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);setTimeout('_wppaNextSlide_2( '+mocc+' )',10);}
|
99 |
break;case'none':result=_wppaFullNames[mocc][_wppaCurIdx[mocc]];break;default:result='';}
|
100 |
return wppaRepairBrTags(result);}
|
101 |
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>';}
|
102 |
+
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>';}}
|
103 |
else{if(wppaLightBox[mocc]==''){theHtml='<'+imgVideo+mmEvents+' title="'+_wppaNames[mocc][idx]+'" id="theimg'+bgfg+'-'+mocc+'" '+_wppaSlides[mocc][idx];}
|
104 |
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];}
|
105 |
else{url=wppaMakeFullsizeUrl(_wppaUrl[mocc][i]);}
|
144 |
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');}
|
145 |
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);}
|
146 |
else{jQuery('#bc-pname-'+mocc).html(wppaSlideShow);}}
|
147 |
+
_wppaSetRatingDisplay(mocc);}
|
148 |
+
function _wppaStop(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]]);}
|
149 |
else{jQuery('#bc-pname-'+mocc).html(_wppaNames[mocc][_wppaCurIdx[mocc]]);}}
|
150 |
function _wppaSpeed(mocc,faster){if(_wppaTimeOut[mocc]=='random'){return;}
|
151 |
if(faster){if(_wppaTimeOut[mocc]>500)_wppaTimeOut[mocc]/=1.5;}
|
js/wppa-touch.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// Contains swipe modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
-
var wppaJsTouchVersion = '6.
|
7 |
|
8 |
var wppaTriggerElementID = null;
|
9 |
var wppaFingerCount = 0;
|
@@ -37,8 +37,9 @@ function wppaInTime() {
|
|
37 |
return ( t - wppaMobileTimeStart ) < 250;
|
38 |
}
|
39 |
|
40 |
-
function wppaTapLink( url ) {
|
41 |
if ( wppaInTime() ) {
|
|
|
42 |
document.location.href = url;
|
43 |
}
|
44 |
}
|
3 |
// Contains swipe modules
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
+
var wppaJsTouchVersion = '6.6.06';
|
7 |
|
8 |
var wppaTriggerElementID = null;
|
9 |
var wppaFingerCount = 0;
|
37 |
return ( t - wppaMobileTimeStart ) < 250;
|
38 |
}
|
39 |
|
40 |
+
function wppaTapLink( id, url ) {
|
41 |
if ( wppaInTime() ) {
|
42 |
+
_bumpClickCount( id );
|
43 |
document.location.href = url;
|
44 |
}
|
45 |
}
|
js/wppa-touch.min.js
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
-
var wppaJsTouchVersion='6.
|
8 |
function wppaInTime(){var d=new Date();var t=d.getTime();return(t-wppaMobileTimeStart)<250;}
|
9 |
-
function wppaTapLink(url){if(wppaInTime()){document.location.href=url;}}
|
10 |
function wppaTouchStart(event,id,mocc){wppaSwipeMocc=mocc;if(mocc==-1){wppaSwipeOnLightbox=true;event.preventDefault();}
|
11 |
wppaFingerCount=event.touches.length;if(wppaFingerCount==1){wppaStartX=event.touches[0].pageX;wppaStartY=event.touches[0].pageY;wppaTriggerElementID=id;}else{wppaTouchCancel();}}
|
12 |
function wppaTouchMove(event){if(wppaSwipeOnLightbox){event.preventDefault();}
|
4 |
// Dependancies: wppa.js and default wp jQuery library
|
5 |
//
|
6 |
|
7 |
+
var wppaJsTouchVersion='6.6.06';var wppaTriggerElementID=null;var wppaFingerCount=0;var wppaStartX=0;var wppaStartY=0;var wppaCurX=0;var wppaCurY=0;var wppaDeltaX=0;var wppaDeltaY=0;var wppaHorzDiff=0;var wppaVertDiff=0;var wppaMinLength=72;var wppaSwipeLength=0;var wppaSwipeAngle=null;var wppaSwipeDirection=null;var wppaSwipeOnLightbox=false;var wppaSwipeMocc=0;var wppaMobileTimeStart=0;function wppaStartTime(){var d=new Date();var t=d.getTime();wppaMobileTimeStart=t;return true;}
|
8 |
function wppaInTime(){var d=new Date();var t=d.getTime();return(t-wppaMobileTimeStart)<250;}
|
9 |
+
function wppaTapLink(id,url){if(wppaInTime()){_bumpClickCount(id);document.location.href=url;}}
|
10 |
function wppaTouchStart(event,id,mocc){wppaSwipeMocc=mocc;if(mocc==-1){wppaSwipeOnLightbox=true;event.preventDefault();}
|
11 |
wppaFingerCount=event.touches.length;if(wppaFingerCount==1){wppaStartX=event.touches[0].pageX;wppaStartY=event.touches[0].pageY;wppaTriggerElementID=id;}else{wppaTouchCancel();}}
|
12 |
function wppaTouchMove(event){if(wppaSwipeOnLightbox){event.preventDefault();}
|
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
|
@@ -328,6 +328,7 @@ function wppaSvgHtml( image, height, isLightbox, border, none, light, medium, he
|
|
328 |
'text-decoration:none !important;' +
|
329 |
'vertical-align:middle;' +
|
330 |
'"' +
|
|
|
331 |
' />';
|
332 |
|
333 |
return result;
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
+
var wppaJsUtilsVersion = '6.6.06';
|
6 |
var wppaDebug;
|
7 |
|
8 |
// Trim
|
328 |
'text-decoration:none !important;' +
|
329 |
'vertical-align:middle;' +
|
330 |
'"' +
|
331 |
+
' onload="wppaReplaceSvg()"' +
|
332 |
' />';
|
333 |
|
334 |
return result;
|
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);}
|
@@ -41,7 +41,7 @@ var result='<img'+' src="'+src+'"'+
|
|
41 |
(wppaIsIe?'':' 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 |
-
(wppaIsIe?'':'display:none;')+'text-decoration:none !important;'+'vertical-align:middle;'+'"'+' />';return result;}
|
45 |
function wppaReplaceSvg(){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');imgStyle=imgStyle.replace('display:none','display:inline');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'){$svg=$svg.attr('style',imgStyle);}
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
+
var wppaJsUtilsVersion='6.6.06';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);}
|
41 |
(wppaIsIe?'':' 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 |
+
(wppaIsIe?'':'display:none;')+'text-decoration:none !important;'+'vertical-align:middle;'+'"'+' onload="wppaReplaceSvg()"'+' />';return result;}
|
45 |
function wppaReplaceSvg(){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');imgStyle=imgStyle.replace('display:none','display:inline');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'){$svg=$svg.attr('style',imgStyle);}
|
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!!
|
@@ -104,6 +104,7 @@ var wppaIncludeUrl = '';
|
|
104 |
var wppaSlideToFullpopup = false;
|
105 |
var wppaComAltSize = 75;
|
106 |
var wppaBumpViewCount = true;
|
|
|
107 |
var wppaFotomoto = false;
|
108 |
var wppaArtMonkeyButton = true;
|
109 |
var wppaShortQargs = false;
|
@@ -283,7 +284,7 @@ function wppaDoInit( autoOnly ) {
|
|
283 |
}
|
284 |
}
|
285 |
// Replave .svg images with svg html
|
286 |
-
wppaReplaceSvg();
|
287 |
}
|
288 |
|
289 |
// Initialize Ajax render partial page content with history update
|
2 |
//
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
+
var wppaJsVersion = '6.6.06';
|
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!!
|
104 |
var wppaSlideToFullpopup = false;
|
105 |
var wppaComAltSize = 75;
|
106 |
var wppaBumpViewCount = true;
|
107 |
+
var wppaBumpClickCount = false;
|
108 |
var wppaFotomoto = false;
|
109 |
var wppaArtMonkeyButton = true;
|
110 |
var wppaShortQargs = false;
|
284 |
}
|
285 |
}
|
286 |
// Replave .svg images with svg html
|
287 |
+
// wppaReplaceSvg();
|
288 |
}
|
289 |
|
290 |
// Initialize Ajax render partial page content with history update
|
js/wppa.min.js
CHANGED
@@ -3,9 +3,8 @@
|
|
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();}
|
9 |
jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax){wppaCanAjaxRender=true;}
|
10 |
if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
|
11 |
wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
|
3 |
// conatins common vars and functions
|
4 |
//
|
5 |
|
6 |
+
var wppaJsVersion='6.6.06';var wppaVersion='0';var wppaIsIe=false;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 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 _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 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 |
jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax){wppaCanAjaxRender=true;}
|
9 |
if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
|
10 |
wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
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
|
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
|
@@ -178,7 +178,21 @@ Oh, just Google on 'picture resizer' and you will find a bunch of free programs
|
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
-
See for additional information: http://www.wppa.nl/changelog/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
= 6.6.05 =
|
184 |
|
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
|
5 |
+
Version: 6.6.06
|
6 |
+
Stable tag: 6.6.06
|
7 |
Author: J.N. Breetvelt
|
8 |
Author URI: http://www.opajaap.nl/
|
9 |
Requires at least: 3.9
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
+
See for additional information: <a href="http://www.wppa.nl/changelog/" >The documentation website</a>
|
182 |
+
|
183 |
+
= 6.6.06 =
|
184 |
+
|
185 |
+
= Bug Fixes =
|
186 |
+
|
187 |
+
* Fixed a default covertype layout issue on static (non-responsive) display.
|
188 |
+
* On some systems the rating system did not work. Fixed.
|
189 |
+
|
190 |
+
= New Features =
|
191 |
+
|
192 |
+
* Table IV-A9.2: Track clickcounts. Counts the clicks on single images and slideshow images when there is a link url. Totals per album show up on the album admin page.
|
193 |
+
* Table VI-B2: Thumbnail linktype: added option: 'the thumbnails album in a slideshow'. Shows the slideshow of the album where the thumbnail belongs. Starting at the pointed image.
|
194 |
+
This always shows the physical album where the thumbnail belongs to as a slideshow, even when the collection of thumbnails is the content of a virtual album;
|
195 |
+
as opposed to 'the fullsize photo in a slidshow' (the default) that always shows the slideshow of the selection where the thumbnail belongs to.
|
196 |
|
197 |
= 6.6.05 =
|
198 |
|
wppa-ajax.php
CHANGED
@@ -631,7 +631,27 @@ global $wppa_log_file;
|
|
631 |
wppa_exit();
|
632 |
break;
|
633 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
case 'rate':
|
|
|
|
|
|
|
|
|
|
|
635 |
// Get commandline args
|
636 |
$photo = wppa_decrypt_photo( $_REQUEST['wppa-rating-id'] );
|
637 |
$rating = $_REQUEST['wppa-rating'];
|
@@ -733,11 +753,15 @@ global $wppa_log_file;
|
|
733 |
wppa_create_rating_entry( array( 'photo' => $photo, 'value' => '1', 'user' => $user ) );
|
734 |
$myavgrat = '1';
|
735 |
}
|
|
|
|
|
|
|
|
|
|
|
736 |
$lt = wppa_get_like_title_a( $photo );
|
737 |
$allavgratcombi = $lt['title'] . '|' . $lt['display'];
|
738 |
|
739 |
-
//
|
740 |
-
wppa_rate_photo( $photo );
|
741 |
echo $occur.'||'.$photo.'||'.$index.'||'.$myavgrat.'||'.esc_attr( $allavgratcombi ).'||||||likes';
|
742 |
wppa_exit();
|
743 |
}
|
@@ -2608,7 +2632,7 @@ global $wppa_log_file;
|
|
2608 |
case 'wppa_rating_display_type':
|
2609 |
if ( $value == 'likes' ) {
|
2610 |
wppa_update_option( 'wppa_rating_multi', 'yes' );
|
2611 |
-
wppa_update_option( 'wppa_rating_dayly', '
|
2612 |
wppa_update_option( 'wppa_vote_needs_comment', 'no' );
|
2613 |
}
|
2614 |
break;
|
631 |
wppa_exit();
|
632 |
break;
|
633 |
|
634 |
+
case 'bumpclickcount':
|
635 |
+
$nonce = $_REQUEST['wppa-nonce'];
|
636 |
+
$photo = isset( $_REQUEST['wppa-photo'] ) ? $_REQUEST['wppa-photo'] : 0;
|
637 |
+
if ( strlen( $photo ) == 12 ) {
|
638 |
+
$photo = wppa_decrypt_photo( $photo );
|
639 |
+
}
|
640 |
+
if ( $photo && wp_verify_nonce( $nonce, 'wppa-check' ) ) {
|
641 |
+
wppa_bump_clickcount( $photo );
|
642 |
+
}
|
643 |
+
else {
|
644 |
+
_e( 'Security check failure' , 'wp-photo-album-plus');
|
645 |
+
}
|
646 |
+
wppa_exit();
|
647 |
+
break;
|
648 |
+
|
649 |
case 'rate':
|
650 |
+
// Correct the fact that this is a non-admin operation, if it is only
|
651 |
+
if ( is_admin() ) {
|
652 |
+
require_once 'wppa-non-admin.php';
|
653 |
+
}
|
654 |
+
|
655 |
// Get commandline args
|
656 |
$photo = wppa_decrypt_photo( $_REQUEST['wppa-rating-id'] );
|
657 |
$rating = $_REQUEST['wppa-rating'];
|
753 |
wppa_create_rating_entry( array( 'photo' => $photo, 'value' => '1', 'user' => $user ) );
|
754 |
$myavgrat = '1';
|
755 |
}
|
756 |
+
|
757 |
+
// Update photo data
|
758 |
+
wppa_rate_photo( $photo );
|
759 |
+
|
760 |
+
// Get callback data
|
761 |
$lt = wppa_get_like_title_a( $photo );
|
762 |
$allavgratcombi = $lt['title'] . '|' . $lt['display'];
|
763 |
|
764 |
+
// Output and quit
|
|
|
765 |
echo $occur.'||'.$photo.'||'.$index.'||'.$myavgrat.'||'.esc_attr( $allavgratcombi ).'||||||likes';
|
766 |
wppa_exit();
|
767 |
}
|
2632 |
case 'wppa_rating_display_type':
|
2633 |
if ( $value == 'likes' ) {
|
2634 |
wppa_update_option( 'wppa_rating_multi', 'yes' );
|
2635 |
+
wppa_update_option( 'wppa_rating_dayly', '0' );
|
2636 |
wppa_update_option( 'wppa_vote_needs_comment', 'no' );
|
2637 |
}
|
2638 |
break;
|
wppa-album-admin-autosave.php
CHANGED
@@ -327,8 +327,17 @@ function wppaTryScheduleAll( id ) {
|
|
327 |
}
|
328 |
|
329 |
// Views
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
|
333 |
// Owner
|
334 |
echo
|
327 |
}
|
328 |
|
329 |
// Views
|
330 |
+
if ( wppa_switch( 'track_viewcounts' ) ) {
|
331 |
+
echo
|
332 |
+
__( 'Views:', 'wp-photo-album-plus' ) . ' ' . $views . '. ';
|
333 |
+
}
|
334 |
+
|
335 |
+
// Clicks
|
336 |
+
if ( wppa_switch( 'track_clickcounts' ) ) {
|
337 |
+
$click_arr = $wpdb->get_col( "SELECT `clicks` FROM `" . WPPA_PHOTOS . "` WHERE `album` = $id" );
|
338 |
+
echo
|
339 |
+
__( 'Clicks:', 'wp-photo-album-plus' ) . ' ' . array_sum( $click_arr ) . '. ';
|
340 |
+
}
|
341 |
|
342 |
// Owner
|
343 |
echo
|
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 |
|
@@ -3644,15 +3644,17 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
|
|
3644 |
$photo_pos = $photo_left;
|
3645 |
switch ( $photo_pos ) {
|
3646 |
case 'left':
|
3647 |
-
$width -=
|
3648 |
-
|
3649 |
-
|
|
|
3650 |
$result = 'style="width:'.$width.'px; float:right;'.__wcs( 'wppa-cover-text-frame' ).'"';
|
3651 |
break;
|
3652 |
case 'right':
|
3653 |
-
$width -=
|
3654 |
-
|
3655 |
-
|
|
|
3656 |
$result = 'style="width:'.$width.'px; float:left;'.__wcs( 'wppa-cover-text-frame' ).'"';
|
3657 |
break;
|
3658 |
case 'top':
|
@@ -4774,7 +4776,7 @@ function wppa_get_lbtitle( $type, $id ) {
|
|
4774 |
if ( wppa_opt( 'rating_max' ) != '1' && wppa_opt( 'rating_display_type' ) == 'graphic' ) {
|
4775 |
$result .= wppa_get_rating_range_html( $id, true );
|
4776 |
}
|
4777 |
-
elseif ( wppa_opt( 'rating_display_type' ) == 'likes' &&
|
4778 |
$result .= wppa_get_slide_rating_vote_only( 'always', $id, 'is_lightbox' );
|
4779 |
}
|
4780 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 6.6.06
|
7 |
*
|
8 |
*/
|
9 |
|
3644 |
$photo_pos = $photo_left;
|
3645 |
switch ( $photo_pos ) {
|
3646 |
case 'left':
|
3647 |
+
$width -= wppa_get_textframe_delta();
|
3648 |
+
// $width -= 13; // margin
|
3649 |
+
// $width -= 2; // border
|
3650 |
+
// $width -= wppa_opt( 'smallsize' );
|
3651 |
$result = 'style="width:'.$width.'px; float:right;'.__wcs( 'wppa-cover-text-frame' ).'"';
|
3652 |
break;
|
3653 |
case 'right':
|
3654 |
+
$width -= wppa_get_textframe_delta();
|
3655 |
+
// $width -= 13; // margin
|
3656 |
+
// $width -= 2; // border
|
3657 |
+
// $width -= wppa_opt( 'smallsize' );
|
3658 |
$result = 'style="width:'.$width.'px; float:left;'.__wcs( 'wppa-cover-text-frame' ).'"';
|
3659 |
break;
|
3660 |
case 'top':
|
4776 |
if ( wppa_opt( 'rating_max' ) != '1' && wppa_opt( 'rating_display_type' ) == 'graphic' ) {
|
4777 |
$result .= wppa_get_rating_range_html( $id, true );
|
4778 |
}
|
4779 |
+
elseif ( wppa_opt( 'rating_display_type' ) == 'likes' && wppa_switch( 'ovl_rating' ) ) {
|
4780 |
$result .= wppa_get_slide_rating_vote_only( 'always', $id, 'is_lightbox' );
|
4781 |
}
|
4782 |
|
wppa-links.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
-
* Version 6.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1156,7 +1156,7 @@ function wppa_page_links( $npages = '1', $curpage = '1', $slide = false ) {
|
|
1156 |
$result .= $curpage . '/' . $npages;
|
1157 |
}
|
1158 |
|
1159 |
-
$result .= '<script>wppaReplaceSvg()</script>';
|
1160 |
$result .= '</div><!-- #prevnext-a-' . wppa( 'mocc' ) . ' -->';
|
1161 |
wppa_out( $result );
|
1162 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
+
* Version 6.6.06
|
7 |
*
|
8 |
*/
|
9 |
|
1156 |
$result .= $curpage . '/' . $npages;
|
1157 |
}
|
1158 |
|
1159 |
+
// $result .= '<script>wppaReplaceSvg()</script>';
|
1160 |
$result .= '</div><!-- #prevnext-a-' . wppa( 'mocc' ) . ' -->';
|
1161 |
wppa_out( $result );
|
1162 |
}
|
wppa-non-admin.php
CHANGED
@@ -838,6 +838,7 @@ global $wppa_init_js_data;
|
|
838 |
wppaSlideToFullpopup = '.( wppa_opt( 'slideshow_linktype' ) == 'fullpopup' ? 'true' : 'false' ).';
|
839 |
wppaComAltSize = '.wppa_opt( 'comten_alt_thumbsize' ).';
|
840 |
wppaBumpViewCount = '.( wppa_switch( 'track_viewcounts') ? 'true' : 'false' ).';
|
|
|
841 |
wppaShareHideWhenRunning = '.( wppa_switch( 'share_hide_when_running') ? 'true' : 'false' ).';
|
842 |
wppaFotomoto = '.( wppa_switch( 'fotomoto_on') ? 'true' : 'false' ).';
|
843 |
wppaArtMonkeyButton = '.( wppa_opt( 'art_monkey_display' ) == 'button' ? 'true' : 'false' ).';
|
838 |
wppaSlideToFullpopup = '.( wppa_opt( 'slideshow_linktype' ) == 'fullpopup' ? 'true' : 'false' ).';
|
839 |
wppaComAltSize = '.wppa_opt( 'comten_alt_thumbsize' ).';
|
840 |
wppaBumpViewCount = '.( wppa_switch( 'track_viewcounts') ? 'true' : 'false' ).';
|
841 |
+
wppaBumpClickCount = '.( wppa_switch( 'track_clickcounts') ? 'true' : 'false' ).';
|
842 |
wppaShareHideWhenRunning = '.( wppa_switch( 'share_hide_when_running') ? 'true' : 'false' ).';
|
843 |
wppaFotomoto = '.( wppa_switch( 'fotomoto_on') ? 'true' : 'false' ).';
|
844 |
wppaArtMonkeyButton = '.( wppa_opt( 'art_monkey_display' ) == 'button' ? 'true' : 'false' ).';
|
wppa-photo-admin-autosave.php
CHANGED
@@ -430,6 +430,7 @@ function wppaTryWatermark( id ) {
|
|
430 |
$description = stripslashes( $photo['description'] );
|
431 |
$exifdtm = $photo['exifdtm'];
|
432 |
$views = $photo['views'];
|
|
|
433 |
$p_order = $photo['p_order'];
|
434 |
$linktarget = $photo['linktarget'];
|
435 |
$linkurl = $photo['linkurl'];
|
@@ -691,10 +692,20 @@ function wppaTryWatermark( id ) {
|
|
691 |
}
|
692 |
|
693 |
// Views
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
698 |
|
699 |
// Status
|
700 |
echo '<br />' .
|
430 |
$description = stripslashes( $photo['description'] );
|
431 |
$exifdtm = $photo['exifdtm'];
|
432 |
$views = $photo['views'];
|
433 |
+
$clicks = $photo['clicks'];
|
434 |
$p_order = $photo['p_order'];
|
435 |
$linktarget = $photo['linktarget'];
|
436 |
$linkurl = $photo['linkurl'];
|
692 |
}
|
693 |
|
694 |
// Views
|
695 |
+
if ( wppa_switch( 'track_viewcounts' ) ) {
|
696 |
+
echo
|
697 |
+
__( 'Views' , 'wp-photo-album-plus' ) . ': ' .
|
698 |
+
$views .
|
699 |
+
'. ';
|
700 |
+
}
|
701 |
+
|
702 |
+
// Clicks
|
703 |
+
if ( wppa_switch( 'track_clickcounts' ) ) {
|
704 |
+
echo
|
705 |
+
__( 'Clicks', 'wp-photo-album-plus' ) . ': ' .
|
706 |
+
$clicks .
|
707 |
+
'. ';
|
708 |
+
}
|
709 |
|
710 |
// Status
|
711 |
echo '<br />' .
|
wppa-picture.php
CHANGED
@@ -155,9 +155,11 @@ function wppa_get_picture_html( $args ) {
|
|
155 |
else {
|
156 |
$result .=
|
157 |
'<a' .
|
158 |
-
( wppa_is_mobile() ?
|
|
|
|
|
|
|
159 |
' title="' . $link['title'] . '"' .
|
160 |
-
' target="' . $link['target'] . '"' .
|
161 |
' class="thumb-img"' .
|
162 |
' id="a-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
163 |
' >';
|
155 |
else {
|
156 |
$result .=
|
157 |
'<a' .
|
158 |
+
( wppa_is_mobile() ?
|
159 |
+
' ontouchstart="wppaStartTime();" ontouchend="wppaTapLink(\'' . $id . '\',\'' . $link['url'] . '\');" ' :
|
160 |
+
' onclick="_bumpClickCount( \'' . $id . '\' );window.open(\'' . $link['url'] . '\', \'' . $link['target'] . '\' )"'
|
161 |
+
) .
|
162 |
' title="' . $link['title'] . '"' .
|
|
|
163 |
' class="thumb-img"' .
|
164 |
' id="a-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
165 |
' >';
|
wppa-settings-autosave.php
CHANGED
@@ -3528,7 +3528,16 @@ global $wp_version;
|
|
3528 |
$html = wppa_checkbox($slug);
|
3529 |
$clas = '';
|
3530 |
$tags = 'system,meta';
|
3531 |
-
wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3532 |
|
3533 |
$name = __('Auto page', 'wp-photo-album-plus');
|
3534 |
$desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
|
@@ -5454,6 +5463,7 @@ global $wp_version;
|
|
5454 |
__('no link at all.', 'wp-photo-album-plus'),
|
5455 |
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5456 |
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
|
|
5457 |
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5458 |
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
5459 |
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
@@ -5464,6 +5474,7 @@ global $wp_version;
|
|
5464 |
'none',
|
5465 |
'file',
|
5466 |
'photo',
|
|
|
5467 |
'single',
|
5468 |
'slphoto',
|
5469 |
'fullpopup',
|
3528 |
$html = wppa_checkbox($slug);
|
3529 |
$clas = '';
|
3530 |
$tags = 'system,meta';
|
3531 |
+
wppa_setting($slug, '9.1', $name, $desc, $html, $help, $clas, $tags);
|
3532 |
+
|
3533 |
+
$name = __('Track clickcounts', 'wp-photo-album-plus');
|
3534 |
+
$desc = __('Register number of clicks on photos that link to an url.', 'wp-photo-album-plus');
|
3535 |
+
$help = '';
|
3536 |
+
$slug = 'wppa_track_clickcounts';
|
3537 |
+
$html = wppa_checkbox($slug);
|
3538 |
+
$clas = '';
|
3539 |
+
$tags = 'system,meta';
|
3540 |
+
wppa_setting($slug, '9.2', $name, $desc, $html, $help, $clas, $tags);
|
3541 |
|
3542 |
$name = __('Auto page', 'wp-photo-album-plus');
|
3543 |
$desc = __('Create a wp page for every fullsize image.', 'wp-photo-album-plus');
|
5463 |
__('no link at all.', 'wp-photo-album-plus'),
|
5464 |
__('the plain photo (file).', 'wp-photo-album-plus'),
|
5465 |
__('the full size photo in a slideshow.', 'wp-photo-album-plus'),
|
5466 |
+
__('the thumbnails album in a slideshow.', 'wp-photo-album-plus'),
|
5467 |
__('the fullsize photo on its own.', 'wp-photo-album-plus'),
|
5468 |
__('the single photo in the style of a slideshow.', 'wp-photo-album-plus'),
|
5469 |
__('the fs photo with download and print buttons.', 'wp-photo-album-plus'),
|
5474 |
'none',
|
5475 |
'file',
|
5476 |
'photo',
|
5477 |
+
'slidealbum',
|
5478 |
'single',
|
5479 |
'slphoto',
|
5480 |
'fullpopup',
|
wppa-setup.php
CHANGED
@@ -95,6 +95,7 @@ global $silent;
|
|
95 |
modified tinytext NOT NULL,
|
96 |
location tinytext NOT NULL,
|
97 |
views bigint(20) NOT NULL default '0',
|
|
|
98 |
page_id bigint(20) NOT NULL default '0',
|
99 |
exifdtm tinytext NOT NULL,
|
100 |
videox smallint(5) NOT NULL default '0',
|
@@ -487,6 +488,12 @@ global $silent;
|
|
487 |
}
|
488 |
|
489 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
|
491 |
}
|
492 |
|
@@ -1067,6 +1074,7 @@ Hide Camera info
|
|
1067 |
'wppa_update_addressline' => 'yes',
|
1068 |
'wppa_render_shortcode_always' => 'no',
|
1069 |
'wppa_track_viewcounts' => 'yes',
|
|
|
1070 |
'wppa_auto_page' => 'no',
|
1071 |
'wppa_auto_page_type' => 'photo',
|
1072 |
'wppa_auto_page_links' => 'bottom',
|
@@ -1947,7 +1955,7 @@ static $user;
|
|
1947 |
}
|
1948 |
|
1949 |
// Remake permalink redirects
|
1950 |
-
if (
|
1951 |
wppa_create_pl_htaccess();
|
1952 |
}
|
1953 |
|
95 |
modified tinytext NOT NULL,
|
96 |
location tinytext NOT NULL,
|
97 |
views bigint(20) NOT NULL default '0',
|
98 |
+
clicks bigint(20) NOT NULL default '0',
|
99 |
page_id bigint(20) NOT NULL default '0',
|
100 |
exifdtm tinytext NOT NULL,
|
101 |
videox smallint(5) NOT NULL default '0',
|
488 |
}
|
489 |
|
490 |
}
|
491 |
+
|
492 |
+
if ( $old_rev <= '6606' ) {
|
493 |
+
if ( get_option( 'wppa_rating_dayly' ) == 'no' ) {
|
494 |
+
wppa_update_option( 'wppa_rating_dayly', '0' );
|
495 |
+
}
|
496 |
+
}
|
497 |
|
498 |
}
|
499 |
|
1074 |
'wppa_update_addressline' => 'yes',
|
1075 |
'wppa_render_shortcode_always' => 'no',
|
1076 |
'wppa_track_viewcounts' => 'yes',
|
1077 |
+
'wppa_track_clickcounts' => 'no',
|
1078 |
'wppa_auto_page' => 'no',
|
1079 |
'wppa_auto_page_type' => 'photo',
|
1080 |
'wppa_auto_page_links' => 'bottom',
|
1955 |
}
|
1956 |
|
1957 |
// Remake permalink redirects
|
1958 |
+
if ( ! empty( $albums_created ) ) {
|
1959 |
wppa_create_pl_htaccess();
|
1960 |
}
|
1961 |
|
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 |
|
@@ -701,6 +701,7 @@ function wppa_get_slide_rating_vote_only( $opt, $id = '0', $is_lightbox = false
|
|
701 |
( $my ? ' alt="down"' : ' alt="up"' ) .
|
702 |
' style="height:'.$fs.'px; margin:0 0 -3px 0; padding:0 '.$pad.'px; box-shadow:none; display:inline;"' .
|
703 |
' class="no-shadow"' .
|
|
|
704 |
' onmouseover="jQuery(this).stop().fadeTo(100, 1.0)"' .
|
705 |
' onmouseout="jQuery(this).stop().fadeTo(100, wppaStarOpacity)"' .
|
706 |
( $is_lightbox ? ' onclick="wppaOvlRateIt(\''.wppa_encrypt_photo($id).'\', 1, 0 )"' : ' onclick="wppaRateIt( ' . wppa( 'mocc' ) . ', 1);"' ) .
|
@@ -709,7 +710,7 @@ function wppa_get_slide_rating_vote_only( $opt, $id = '0', $is_lightbox = false
|
|
709 |
|
710 |
$result .= '</div>';
|
711 |
|
712 |
-
if (
|
713 |
$result .= '<span' .
|
714 |
( $is_lightbox ? ' id="wppa-liketext-0"' : ' id="wppa-liketext-'.wppa( 'mocc' ).'"' ) .
|
715 |
' style="cursor:default;"' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
+
* Version 6.6.06
|
7 |
*
|
8 |
*/
|
9 |
|
701 |
( $my ? ' alt="down"' : ' alt="up"' ) .
|
702 |
' style="height:'.$fs.'px; margin:0 0 -3px 0; padding:0 '.$pad.'px; box-shadow:none; display:inline;"' .
|
703 |
' class="no-shadow"' .
|
704 |
+
( $title ? ' title="' . esc_attr( $title ) . '"' : '' ) .
|
705 |
' onmouseover="jQuery(this).stop().fadeTo(100, 1.0)"' .
|
706 |
' onmouseout="jQuery(this).stop().fadeTo(100, wppaStarOpacity)"' .
|
707 |
( $is_lightbox ? ' onclick="wppaOvlRateIt(\''.wppa_encrypt_photo($id).'\', 1, 0 )"' : ' onclick="wppaRateIt( ' . wppa( 'mocc' ) . ', 1);"' ) .
|
710 |
|
711 |
$result .= '</div>';
|
712 |
|
713 |
+
if ( wppa_switch( 'show_avg_rating' ) ) {
|
714 |
$result .= '<span' .
|
715 |
( $is_lightbox ? ' id="wppa-liketext-0"' : ' id="wppa-liketext-'.wppa( 'mocc' ).'"' ) .
|
716 |
' style="cursor:default;"' .
|
wppa-statistics.php
CHANGED
@@ -192,6 +192,38 @@ global $wpdb;
|
|
192 |
return stripslashes($result);
|
193 |
}
|
194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
// Bump Viewcount
|
196 |
function wppa_bump_viewcount($type, $id) {
|
197 |
global $wpdb;
|
@@ -214,7 +246,9 @@ global $wppa_session;
|
|
214 |
if ( $id < '1' ) return; // Not a wppa image
|
215 |
if ( ! wppa_is_int( $id ) ) return; // Not an integer
|
216 |
|
217 |
-
if ( ! isset($wppa_session[$type]) )
|
|
|
|
|
218 |
if ( ! isset($wppa_session[$type][$id] ) ) { // This one not done yest
|
219 |
$wppa_session[$type][$id] = true; // Mark as viewed
|
220 |
if ( $type == 'album' ) $table = WPPA_ALBUMS; else $table = WPPA_PHOTOS;
|
192 |
return stripslashes($result);
|
193 |
}
|
194 |
|
195 |
+
// Bump Clivkcount
|
196 |
+
function wppa_bump_clickcount( $id ) {
|
197 |
+
global $wpdb;
|
198 |
+
global $wppa_session;
|
199 |
+
|
200 |
+
// Feature enabled?
|
201 |
+
if ( ! wppa_switch( 'track_clickcounts' ) ) {
|
202 |
+
return;
|
203 |
+
}
|
204 |
+
|
205 |
+
// Sanitize input
|
206 |
+
if ( ! wppa_is_int( $id ) || $id < '1' ) {
|
207 |
+
return;
|
208 |
+
}
|
209 |
+
|
210 |
+
// Init clicks in session?
|
211 |
+
if ( ! isset ( $wppa_session['click'] ) ) {
|
212 |
+
$wppa_session['click'] = array();
|
213 |
+
}
|
214 |
+
|
215 |
+
// Remember click and update photodata, only if first time
|
216 |
+
if ( ! isset( $wppa_session['click'][$id] ) ) {
|
217 |
+
$wppa_session['click'][$id] = true;
|
218 |
+
$count = $wpdb->get_var( "SELECT `clicks` FROM `" . WPPA_PHOTOS . "` WHERE `id` = $id" );
|
219 |
+
$count++;
|
220 |
+
$wpdb->query( "UPDATE `" . WPPA_PHOTOS . "` SET `clicks` = $count WHERE `id` = $id" );
|
221 |
+
|
222 |
+
// Invalidate cache
|
223 |
+
wppa_cache_photo( 'invalidate', $id );
|
224 |
+
}
|
225 |
+
}
|
226 |
+
|
227 |
// Bump Viewcount
|
228 |
function wppa_bump_viewcount($type, $id) {
|
229 |
global $wpdb;
|
246 |
if ( $id < '1' ) return; // Not a wppa image
|
247 |
if ( ! wppa_is_int( $id ) ) return; // Not an integer
|
248 |
|
249 |
+
if ( ! isset($wppa_session[$type]) ) {
|
250 |
+
$wppa_session[$type] = array();
|
251 |
+
}
|
252 |
if ( ! isset($wppa_session[$type][$id] ) ) { // This one not done yest
|
253 |
$wppa_session[$type][$id] = true; // Mark as viewed
|
254 |
if ( $type == 'album' ) $table = WPPA_ALBUMS; else $table = WPPA_PHOTOS;
|
wppa-thumbnails.php
CHANGED
@@ -559,7 +559,7 @@ global $wpdb;
|
|
559 |
' onload="jQuery(this).trigger(\'onmouseout\');"' .
|
560 |
' />';
|
561 |
|
562 |
-
if (
|
563 |
$result .=
|
564 |
'<span' .
|
565 |
' id="wppa-liketext-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
559 |
' onload="jQuery(this).trigger(\'onmouseout\');"' .
|
560 |
' />';
|
561 |
|
562 |
+
if ( wppa_switch( 'show_avg_rating' ) ) {
|
563 |
$result .=
|
564 |
'<span' .
|
565 |
' id="wppa-liketext-' . $id . '-' . wppa( 'mocc' ) . '"' .
|
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 |
|
@@ -2382,18 +2382,34 @@ function wppa_mkdir( $path ) {
|
|
2382 |
}
|
2383 |
}
|
2384 |
|
|
|
|
|
2385 |
function wppa_rate_photo( $id ) {
|
2386 |
global $wpdb;
|
2387 |
|
|
|
2388 |
if ( wppa_opt( 'rating_display_type' ) == 'likes' ) {
|
|
|
|
|
2389 |
$count = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id" );
|
|
|
|
|
2390 |
$wpdb->query( "UPDATE `" . WPPA_PHOTOS . "` SET `rating_count` = '$count', `mean_rating` = '0' WHERE `id` = $id" );
|
|
|
|
|
|
|
2391 |
}
|
2392 |
else {
|
|
|
|
|
2393 |
$ratings = $wpdb->get_results( $wpdb->prepare( "SELECT `value` FROM `".WPPA_RATING."` WHERE `photo` = %s AND `status` = %s", $id, 'publish' ), ARRAY_A );
|
|
|
|
|
2394 |
$the_value = '0';
|
2395 |
$the_count = '0';
|
2396 |
-
|
|
|
|
|
2397 |
if ( $rating['value'] == '-1' ) $the_value += wppa_opt( 'dislike_value' );
|
2398 |
else $the_value += $rating['value'];
|
2399 |
$the_count++;
|
@@ -2401,9 +2417,14 @@ global $wpdb;
|
|
2401 |
if ( $the_count ) $the_value /= $the_count;
|
2402 |
if ( wppa_opt( 'rating_max' ) == '1' ) $the_value = '0';
|
2403 |
if ( $the_value == '10' ) $the_value = '9.9999999'; // mean_rating is a text field. for sort order reasons we make 10 into 9.99999
|
2404 |
-
|
2405 |
-
|
2406 |
-
$wpdb->query( $wpdb->prepare( "UPDATE `".WPPA_PHOTOS."` SET `rating_count` = %s WHERE `id` =
|
|
|
|
|
|
|
|
|
|
|
2407 |
wppa_test_for_medal( $id );
|
2408 |
}
|
2409 |
}
|
@@ -3276,6 +3297,7 @@ function wppa_get_svghtml( $name, $height = false, $lightbox = false, $border =
|
|
3276 |
( $border ? 'border:2px solid ' . $bgcolor . ';box-sizing:border-box;' : '' ) .
|
3277 |
|
3278 |
'"' .
|
|
|
3279 |
' />';
|
3280 |
|
3281 |
return $result;
|
@@ -3368,9 +3390,11 @@ function wppa_serialize( $array ) {
|
|
3368 |
|
3369 |
function wppa_get_like_title_a( $id ) {
|
3370 |
global $wpdb;
|
3371 |
-
|
|
|
|
|
3372 |
$me = wppa_get_user();
|
3373 |
-
$likes = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id" );
|
3374 |
$mylike = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id AND `user` = '$me'" );
|
3375 |
|
3376 |
if ( $mylike ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
+
* Version 6.6.06
|
7 |
*
|
8 |
*/
|
9 |
|
2382 |
}
|
2383 |
}
|
2384 |
|
2385 |
+
|
2386 |
+
// Compute avg rating and count and put it in photo data
|
2387 |
function wppa_rate_photo( $id ) {
|
2388 |
global $wpdb;
|
2389 |
|
2390 |
+
// Likes only?
|
2391 |
if ( wppa_opt( 'rating_display_type' ) == 'likes' ) {
|
2392 |
+
|
2393 |
+
// Get rating(like)count
|
2394 |
$count = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id" );
|
2395 |
+
|
2396 |
+
// Update photo
|
2397 |
$wpdb->query( "UPDATE `" . WPPA_PHOTOS . "` SET `rating_count` = '$count', `mean_rating` = '0' WHERE `id` = $id" );
|
2398 |
+
|
2399 |
+
// Invalidate cache
|
2400 |
+
wppa_cache_photo( 'invalidate', $id );
|
2401 |
}
|
2402 |
else {
|
2403 |
+
|
2404 |
+
// Get all ratings for this photo
|
2405 |
$ratings = $wpdb->get_results( $wpdb->prepare( "SELECT `value` FROM `".WPPA_RATING."` WHERE `photo` = %s AND `status` = %s", $id, 'publish' ), ARRAY_A );
|
2406 |
+
|
2407 |
+
// Init
|
2408 |
$the_value = '0';
|
2409 |
$the_count = '0';
|
2410 |
+
|
2411 |
+
// Compute mean value and count
|
2412 |
+
if ( $ratings ) foreach ( $ratings as $rating ) {
|
2413 |
if ( $rating['value'] == '-1' ) $the_value += wppa_opt( 'dislike_value' );
|
2414 |
else $the_value += $rating['value'];
|
2415 |
$the_count++;
|
2417 |
if ( $the_count ) $the_value /= $the_count;
|
2418 |
if ( wppa_opt( 'rating_max' ) == '1' ) $the_value = '0';
|
2419 |
if ( $the_value == '10' ) $the_value = '9.9999999'; // mean_rating is a text field. for sort order reasons we make 10 into 9.99999
|
2420 |
+
|
2421 |
+
// Update photo
|
2422 |
+
$wpdb->query( $wpdb->prepare( "UPDATE `".WPPA_PHOTOS."` SET `mean_rating` = %s, `rating_count` = %s WHERE `id` = $id", $the_value, $the_count ) );
|
2423 |
+
|
2424 |
+
// Invalidate cache
|
2425 |
+
wppa_cache_photo( 'invalidate', $id );
|
2426 |
+
|
2427 |
+
// Set status to a medaltype if appiliccable
|
2428 |
wppa_test_for_medal( $id );
|
2429 |
}
|
2430 |
}
|
3297 |
( $border ? 'border:2px solid ' . $bgcolor . ';box-sizing:border-box;' : '' ) .
|
3298 |
|
3299 |
'"' .
|
3300 |
+
' onload="wppaReplaceSvg()"' .
|
3301 |
' />';
|
3302 |
|
3303 |
return $result;
|
3390 |
|
3391 |
function wppa_get_like_title_a( $id ) {
|
3392 |
global $wpdb;
|
3393 |
+
//static $c;
|
3394 |
+
//wppa_log('obs', 'wppa_get_like_title_a', true);
|
3395 |
+
//$c++;
|
3396 |
$me = wppa_get_user();
|
3397 |
+
$likes = wppa_get_photo_item( $id, 'rating_count'); //$wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id" );
|
3398 |
$mylike = $wpdb->get_var( "SELECT COUNT(*) FROM `" . WPPA_RATING . "` WHERE `photo` = $id AND `user` = '$me'" );
|
3399 |
|
3400 |
if ( $mylike ) {
|
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.06
|
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 = '6606'; // WPPA db version
|
26 |
+
global $wppa_api_version; $wppa_api_version = '6-6-06-002'; // WPPA software version
|
27 |
|
28 |
/* start timers */
|
29 |
global $wppa_starttime; $wppa_starttime = microtime(true);
|