WP Photo Album Plus - Version 6.3.14

Version Description

Download this release

Release Info

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

Code changes from version 6.3.13 to 6.3.14

images/pause.png ADDED
Binary file
images/start.png ADDED
Binary file
images/stop.png ADDED
Binary file
js/wppa-lightbox.js CHANGED
@@ -3,10 +3,22 @@
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
- var wppaLightboxVersion = '6.2.8';
7
 
8
  var wppaNormsBtnOpac = 1;
9
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  // Initial initialization
11
  jQuery( document ).ready(function( e ) {
12
  wppaInitOverlay();
@@ -14,7 +26,10 @@ jQuery( document ).ready(function( e ) {
14
 
15
  // Window resize handler
16
  jQuery( window ).resize(function() {
17
- jQuery("#wppa-overlay-bg").css({height:window.innerHeight});
 
 
 
18
  wppaOvlResize( 10 );
19
  });
20
 
@@ -55,6 +70,7 @@ function wppaOvlKeyboardHandler( e ) {
55
  wppaOvlShowNext();
56
  break;
57
  case 's':
 
58
  wppaOvlStartStop();
59
  break;
60
  case 'd':
@@ -68,6 +84,7 @@ function wppaOvlKeyboardHandler( e ) {
68
  }
69
  }
70
 
 
71
  function wppaOvlFull() {
72
  var oldMode = wppaOvlMode;
73
  wppaOvlStepMode();
@@ -95,6 +112,7 @@ function wppaOvlFull() {
95
  jQuery('#wppa-ovl-legenda-1').html('');
96
  }
97
 
 
98
  function wppaOvlNorm() {
99
  wppaOvlMode = 'normal';
100
  if (document.cancelFullScreen) {
@@ -113,10 +131,15 @@ function wppaOvlNorm() {
113
  // wppaOvlShow() wppaOvlShow2(), wppaOvlShow3() and wppaOvlShow4() with rendering in between the steps.
114
  // If in fullscreen mode, wppaOvlShow() calls wppaOvlShowFull().
115
  function wppaOvlShow( arg ) {
116
- wppaConsoleLog( 'wppaOvlShow arg='+arg );
117
 
118
  if ( wppaOvlFirst ) {
119
 
 
 
 
 
 
 
120
  // Install keyboard handler
121
  jQuery( document ).on('keydown', wppaOvlKeyboardHandler );
122
 
@@ -126,13 +149,25 @@ wppaConsoleLog( 'wppaOvlShow arg='+arg );
126
  occ++;
127
  wppaStopShow( occ );
128
  }
129
-
130
- wppaOvlFirst = false;
131
  }
132
-
133
- // Prevent Weaver ii from hiding us
134
- jQuery( '#weaver-final' ).removeClass( 'wvr-hide-bang' );
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  // Display spinner
137
  jQuery( '#wppa-overlay-sp' ).css( {left: ( jQuery( window ).width()/2 )-16, top: ( jQuery( window ).height()/2 )-16, visibility: 'visible'});
138
 
@@ -182,7 +217,8 @@ wppaConsoleLog( 'wppaOvlShow arg='+arg );
182
  wppaOvlVideoHtmls = [];
183
  wppaOvlAudioHtmls = [];
184
  wppaOvlVideoNaturalWidths = [];
185
- wppaOvlVideoNaturalHeights = [];
 
186
  var setname = temp[1];
187
  var anchors = jQuery( 'a' );
188
  var anchor;
@@ -216,7 +252,20 @@ wppaConsoleLog( 'wppaOvlShow arg='+arg );
216
 
217
  wppaOvlVideoNaturalWidths[j] = jQuery( anchor ).attr( 'data-videonatwidth' ) ? jQuery( anchor ).attr( 'data-videonatwidth' ) : '';
218
  wppaOvlVideoNaturalHeights[j] = jQuery( anchor ).attr( 'data-videonatheight' ) ? jQuery( anchor ).attr( 'data-videonatheight' ) : '';
219
- if ( anchor.href == wppaOvlUrl ) wppaOvlIdx = j; // Current index
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  j++;
221
  }
222
  }
@@ -236,15 +285,17 @@ wppaConsoleLog( 'wppaOvlShow arg='+arg );
236
 
237
  _bumpViewCount( wppaPhotoId );
238
 
239
- var wppaIsVideo = wppaOvlVideoHtml != '';
240
- var wppaHasAudio = wppaOvlAudioHtml != '';
 
 
241
 
242
  // Fullsize?
243
  if ( wppaOvlMode != 'normal' ) {
244
  var html;
245
 
246
  // Init background
247
- jQuery( '#wppa-overlay-bg' ).fadeTo( 300, wppaOvlOpacity ); // show black background first
248
 
249
  // Fullsize Video
250
  if ( wppaIsVideo ) {
@@ -345,196 +396,425 @@ wppaConsoleLog( 'wppaOvlShow arg='+arg );
345
  else {
346
  wppaOvlFsPhotoId = 0;
347
  }
 
348
  return false;
349
  }
350
 
351
  // NOT fullsize
352
  else {
 
353
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
354
  wppaPhotoId = 0;
355
- var mw = 250;
356
-
357
  wppaStopVideo( 0 );
358
-
359
- jQuery( '#wppa-overlay-bg' ).fadeTo( 300, wppaOvlOpacity );
360
- var lft = ( jQuery( window ).width()/2-125 )+'px';
361
- var ptp = ( jQuery( window ).height()/2-125 )+'px';
362
-
363
- jQuery( '#wppa-overlay-ic' ).css( {left: lft, paddingTop: ptp});
364
  var txtcol = wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727'; // Normal font
365
- var qtxtcol = wppaOvlTheme == 'black' ? '#a7a7a7' : '#575757'; // Bold font
366
  if ( wppaOvlFontColor ) txtcol = wppaOvlFontColor;
367
  var startstop = wppaOvlRunning ? wppaStop : wppaStart;
 
 
 
 
 
 
 
 
 
 
 
368
  var html = '';
369
- if ( wppaOvlShowStartStop) {
370
- html += '<div id="wppa-overlay-start-stop" style="position:absolute; left:0px; top:'+( wppaOvlPadTop-1 )+'px; visibility:hidden; box-shadow:none; font-family:helvetica; font-weight:bold; font-size:14px; color:'+qtxtcol+'; cursor:pointer; " onclick="wppaOvlStartStop()" ontouchstart="wppaOvlStartStop()" >'+startstop+'</div>';
371
- }
372
- html +=
373
- '<div id="wppa-overlay-qt-txt" style="position:absolute; right:16px; top:'+( wppaOvlPadTop-1 )+'px; visibility:hidden; box-shadow:none; font-family:helvetica; font-weight:bold; font-size:14px; color:'+qtxtcol+'; cursor:pointer; " onclick="wppaOvlHide()" ontouchstart="wppaOvlHide()" >'+wppaOvlCloseTxt+'&nbsp;&nbsp;</div>'+
374
- '<img id="wppa-overlay-qt-img" src="'+wppaImageDirectory+'smallcross-'+wppaOvlTheme+'.gif'+'" style="position:absolute; right:0; top:'+wppaOvlPadTop+'px; visibility:hidden; box-shadow:none; cursor:pointer" onclick="wppaOvlHide()" ontouchstart="wppaOvlHide()" >';
375
-
376
- // Not Fullsize Video
377
- if ( wppaIsVideo ) {
378
-
379
- html += '<video' +
380
- ' id="wppa-overlay-img"' +
381
- ' preload="metadata"' +
382
- ( wppaOvlVideoStart ? ' autoplay' : '' ) +
383
- ' onpause="wppaOvlVideoPlaying = false;"' +
384
- ' onplay="wppaOvlVideoPlaying = true;"' +
385
- ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
386
- ' ontouchend="wppaTouchEnd( event );"' +
387
- ' ontouchmove="wppaTouchMove( event );"' +
388
- ' ontouchcancel="wppaTouchCancel( event );" ' +
389
- ' style="' +
390
- 'border-width:16px;' +
391
- 'border-style:solid;' +
392
- 'border-color:'+wppaOvlTheme+';' +
393
- 'margin-bottom:-15px;' +
394
- 'max-width:'+mw+'px;' +
395
- 'visibility:hidden;' +
396
- 'box-shadow:none;"' +
397
- ' controls' +
398
- ' >'+wppaOvlVideoHtml+'</video>';
399
-
400
- wppaOvlIsVideo = true;
401
- }
402
-
403
- // Not fullsize photo
404
- else {
405
-
406
- html += '<img' +
407
- ' id="wppa-overlay-img"'+
408
- ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
409
- ' ontouchend="wppaTouchEnd( event );"' +
410
- ' ontouchmove="wppaTouchMove( event );"' +
411
- ' ontouchcancel="wppaTouchCancel( event );"' +
412
- ' src="'+wppaOvlUrl+'"' +
413
- ' style="' +
414
- 'border-width:16px;' +
415
- 'border-style:solid;' +
416
- 'border-color:'+wppaOvlTheme+';' +
417
- 'margin-bottom:-15px;' +
418
- 'max-width:'+mw+'px;' +
419
- 'visibility:hidden;' +
420
- 'box-shadow:none;"' +
421
- ' />';
422
 
423
- // Audio on not fullsize
424
- if ( wppaHasAudio ) { //wppaOvlAudioHtml != '' ) {
425
- html += '<audio' +
426
- ' id="wppa-overlay-audio"' +
427
- ' class="wppa-overlay-audio"' +
428
- ' data-from="wppa"' +
429
  ' preload="metadata"' +
430
- // ( ( wppaOvlAudioStart && ! wppaOvlAudioPlaying ) ? ' autoplay' : '' ) +
431
- ' onpause="wppaOvlAudioPlaying = false;"' +
432
- ' onplay="wppaOvlAudioPlaying = true;"' +
 
 
 
 
 
433
  ' style="' +
434
- 'width:100%;' +
 
 
 
 
 
 
435
  'position:relative;' +
436
- 'top:-'+( wppaAudioHeight + 16 )+'px;' +
437
- 'padding:16px;' +
438
- 'background-color:transparent;' +
439
- 'box-sizing:border-box;' +
440
- '"' +
441
- ' controls' +
442
  ' >' +
443
- wppaOvlAudioHtml +
444
- '</audio>';
 
 
445
  }
446
- wppaOvlIsVideo = false;
447
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  html += '<div id="wppa-overlay-txt-container"' +
449
  ' style="' +
450
  'position:relative;' +
451
- ( wppaHasAudio ? 'top:-'+( wppaAudioHeight + 32 )+'px;' : '' ) +
452
  'padding:10px;' +
453
- 'background-color:'+wppaOvlTheme+'; color:'+txtcol+'; text-align:center; font-family:'+wppaOvlFontFamily+'; font-size: '+wppaOvlFontSize+'px; font-weight:'+wppaOvlFontWeight+'; line-height:'+wppaOvlLineHeight+'px; visibility:hidden; box-shadow:none;" ><div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
 
 
455
  jQuery( '#wppa-overlay-ic' ).html( html );
456
- setTimeout( 'wppaOvlShow2()', 10 );
 
 
 
 
 
 
 
 
457
  return false;
458
  }
459
  }
460
 
 
 
461
 
462
- function wppaOvlShow2() {
463
- wppaConsoleLog( 'wppaOvlShow2' );
464
- var img = document.getElementById( 'wppa-overlay-img' );
465
-
466
- if ( ! wppaOvlIsVideo && ( ! img || ! img.complete ) ) {
467
- setTimeout( 'wppaOvlShow2()', 10 ); // Wait for load complete
 
 
 
 
 
 
468
  return;
469
  }
470
- if ( wppaOvlAnimSpeed!=0 )
471
- img.style.visibility = 'visible'; // Display image
472
 
473
- setTimeout( 'wppaOvlShow3()', 10 );
474
- return false;
475
- }
476
- function wppaOvlShow3() {
477
- wppaConsoleLog( 'wppaOvlShow3' );
478
- // Remove spinner
479
- jQuery( '#wppa-overlay-sp' ).css( {visibility: 'hidden'});
480
- // Size to final dimensions
481
- jQuery( '#wppa-overlay-txt-container' ).html( '<div id="wppa-overlay-txt"></div>' ); // reqd for sizeing
482
- var speed = wppaOvlAnimSpeed;
483
- wppaOvlSize( speed );
484
- // Go on
485
- setTimeout( 'wppaOvlShow4()', speed+50 );
486
- return false;
487
- }
488
- function wppaOvlShow4() {
489
- wppaConsoleLog( 'wppaOvlShow4' );
490
-
491
- var cw = document.getElementById( 'wppa-overlay-img' ).clientWidth;
492
- if ( wppaOvlIdx != -1 ) { // One out of a set
493
- var vl = 'visibility:hidden;';
494
- var vr = 'visibility:hidden;';
495
- var ht = 'height:'+wppaOvlTxtHeight+'px;';
496
-
497
- var txtwidth;
498
- if ( wppaOvlRunning ) txtwidth = cw + 12;
499
- else txtwidth = cw - 80;
500
-
501
- if ( wppaOvlIdx != 0 ) vl = 'visible';
502
- if ( wppaOvlIdx != ( wppaOvlUrls.length-1 ) ) vr = 'visible';
503
- if ( wppaOvlTxtHeight == 'auto' ) ht = '';
504
-
505
- var html = '';
506
- if ( ! wppaOvlRunning ) {
507
- html +=
508
- '<img src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif" style="position:relative; top:-8px; float:left; '+vl+'; box-shadow:none;" onclick="wppaOvlShowPrev()" ontouchstart="wppaOvlShowPrev()" />'+
509
- '<img src="'+wppaImageDirectory+'next-'+wppaOvlTheme+'.gif" style="position:relative; top:-8px; float:right;'+vr+'; box-shadow:none;" onclick="wppaOvlShowNext()" ontouchstart="wppaOvlShowNext()" />';
 
 
 
 
510
  }
511
- html +=
512
- '<div id="wppa-overlay-txt" style="text-align:center; min-height:36px; '+ht+' overflow:auto; box-shadow:none; width:'+txtwidth+'px;" >';
513
- if ( wppaOvlShowCounter ) html += ( wppaOvlIdx+1 )+'/'+wppaOvlUrls.length+'<br />';
514
- html += wppaOvlTitle+'</div>';
515
-
516
- // if ( wppaFotomoto ) {
517
- // html += '<span class="FotomotoToolbarPosition"></span>';
518
- // html += '<script style="text/javascript" >FOTOMOTO.API.setBoxImage( "'+wppaOvlUrl+'" );</script>';
519
- // }
520
-
521
-
522
-
523
- jQuery( '#wppa-overlay-txt-container' ).html( html );
524
- wppaOvlIsSingle = false;
525
  }
526
  else {
527
- jQuery( '#wppa-overlay-txt-container' ).html( '<div id="wppa-overlay-txt" style="text-align:center; margin-left:45px;" >'+wppaOvlTitle+'</div>' );
528
- wppaOvlIsSingle = true;
529
  }
530
- jQuery( '#wppa-overlay-txt-container' ).css( 'visibility', 'visible' );
531
- jQuery( '#wppa-overlay-qt-txt' ).css( {visibility: 'visible'});
532
- jQuery( '#wppa-overlay-qt-img' ).css( {visibility: 'visible'});
533
- if ( ! wppaOvlIsSingle ) jQuery( '#wppa-overlay-start-stop' ).css( {visibility: 'visible'});
534
 
 
 
 
 
535
 
536
- if ( wppaOvlTxtHeight == 'auto' ) wppaOvlResize( 10 ); // Resize to accomodate for var text height
537
- return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538
  }
539
 
540
  // Show fullscreen lightbox image
@@ -650,10 +930,11 @@ function wppaOvlStartAudio() {
650
  if ( elm ) {
651
  if ( typeof( elm.play ) == 'function' ) {
652
  elm.play();
653
- wppaConsoleLog('Audio play '+'wppa-overlay-audio', 'force');
654
  }
655
  }
656
  }
 
657
  // Step through the ring of fullscreen modes
658
  function wppaOvlStepMode() {
659
  wppaConsoleLog('StepMode from '+wppaOvlMode);
@@ -671,12 +952,35 @@ wppaConsoleLog('StepMode from '+wppaOvlMode);
671
 
672
  // Start / stop lightbox slideshow
673
  function wppaOvlStartStop() {
 
674
  if ( wppaOvlRunning ) {
675
- jQuery( '#wppa-overlay-start-stop' ).html( wppaStart );
 
676
  wppaOvlRunning = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
  }
678
  else {
679
- jQuery( '#wppa-overlay-start-stop' ).html( wppaStop );
 
 
 
 
680
  wppaOvlRunning = true;
681
  wppaOvlRun();
682
  }
@@ -684,15 +988,30 @@ function wppaOvlStartStop() {
684
 
685
  // Start lb slideshow
686
  function wppaOvlRun() {
687
- wppaConsoleLog( 'wppaOvlRun, running='+wppaOvlRunning );
688
 
 
689
  if ( ! wppaOvlRunning ) return;
690
 
 
691
  if ( wppaOvlVideoPlaying || wppaOvlAudioPlaying ) {
692
  setTimeout( 'wppaOvlRun()', 500 );
693
  return;
694
  }
695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
696
  var next;
697
  if ( wppaOvlIdx >= ( wppaOvlUrls.length-1 ) ) next = 0;
698
  else next = wppaOvlIdx + 1;
@@ -735,140 +1054,6 @@ wppaConsoleLog( 'wppaOvlShowNext' );
735
  return false;
736
  }
737
 
738
- // Adjust display sizes
739
- // Two parts with rendering in between
740
- function wppaOvlSize( speed ) {
741
- wppaConsoleLog( 'wppaOvlSize' );
742
-
743
- // Are we still visible?
744
- if ( jQuery('#wppa-overlay-bg').css('display') == 'none' ) {
745
- wppaConsoleLog('Lb quitted');
746
- return;
747
- }
748
-
749
- // Full screen?
750
- if ( wppaOvlMode != 'normal' ) {
751
- wppaOvlShowFull();
752
- return;
753
- }
754
-
755
-
756
- // Wait for text complete
757
- if ( ! document.getElementById( 'wppa-overlay-txt' ) ) { setTimeout( 'wppaOvlSize( '+speed+' )', 10 ); return;}
758
-
759
- var iw = jQuery( window ).width();
760
- var ih = jQuery( window ).height();
761
- var img = document.getElementById( 'wppa-overlay-img' );
762
- var cw, nw, nh;
763
-
764
- if ( wppaOvlIsVideo ) {
765
- cw = 640;
766
- nw = 640;
767
- nh = 480;
768
- }
769
- else {
770
- cw = img.clientWidth;
771
-
772
- nw = img.naturalWidth;
773
- nh = img.naturalHeight;
774
- }
775
-
776
- var fakt1;
777
- var fakt2;
778
- var fakt;
779
-
780
- // If the width is the limiting factor, adjust the height
781
- if ( typeof( nw ) == 'undefined' ) { // ver 4 browser
782
- nw = img.clientWidth;
783
- nh = img.clientHeight;
784
- fakt1 = ( iw-100 )/nw;
785
- fakt2 = ih/nh;
786
- if ( fakt1<fakt2 ) fakt = fakt1; // very landscape, width is the limit
787
- else fakt = fakt2; // Height is the limit
788
- if ( true ) { // Up or downsize
789
- nw = parseInt( nw * fakt );
790
- nh = parseInt( nh * fakt );
791
- }
792
- }
793
- else {
794
- fakt1 = ( iw-100 )/nw;
795
- fakt2 = ih/nh;
796
- if ( fakt1<fakt2 ) fakt = fakt1; // very landscape, width is the limit
797
- else fakt = fakt2; // Height is the limit
798
- if ( fakt < 1.0 ) { // Only downsize if needed
799
- nw = parseInt( nw * fakt );
800
- nh = parseInt( nh * fakt );
801
- }
802
- }
803
-
804
- var mh; // max image height
805
- var tch = document.getElementById( 'wppa-overlay-txt' ).clientHeight;
806
-
807
- if ( wppaOvlTxtHeight == 'auto' ) {
808
- if ( tch == 0 ) tch = 36;
809
- mh = ih - tch - 52;
810
- }
811
- else {
812
- mh = ih - wppaOvlTxtHeight - 52;
813
- }
814
-
815
- var mw = parseInt( mh * nw / nh );
816
- var pt = wppaOvlPadTop;
817
- var lft = parseInt( ( iw-mw )/2 );
818
- var wid = mw;
819
-
820
- // Image too small? ( never for ver 4 browsers, we do not know the natural dimensions
821
- if ( nh < mh ) {
822
- pt = wppaOvlPadTop + ( mh - nh )/2;
823
- lft = parseInt( ( iw-nw )/2 );
824
- wid = nw;
825
- }
826
-
827
- var cwid = wid+32; // container width = image width + 2 * border
828
-
829
- lft -= 16; // border width
830
-
831
- // Go to final size
832
- if ( speed == 0 ) {
833
- jQuery( '#wppa-overlay-img' ).css( {width:wid, maxWidth: wid, visibility: 'visible'});
834
- jQuery( '#wppa-overlay-ic' ).css( {width: cwid, left: lft, paddingTop: pt});
835
- jQuery( '#wppa-overlay-qt-txt' ).css( {top: ( pt-1 )});
836
- jQuery( '#wppa-overlay-start-stop' ).css( {top: ( pt-1 )});
837
- jQuery( '#wppa-overlay-qt-img' ).css( {top: pt});
838
- }
839
- else {
840
- jQuery( '#wppa-overlay-img' ).stop().animate( {width:wid, maxWidth: wid}, speed );
841
- jQuery( '#wppa-overlay-ic' ).stop().animate( {width: cwid, left: lft, paddingTop: pt}, speed );
842
- jQuery( '#wppa-overlay-qt-txt' ).stop().animate( {top: ( pt-1 )}, speed );
843
- jQuery( '#wppa-overlay-start-stop' ).stop().animate( {top: ( pt-1 )}, speed );
844
- jQuery( '#wppa-overlay-qt-img' ).stop().animate( {top: pt}, speed );
845
- }
846
-
847
- // If resizing, also resize txt elements when sizing is complete
848
- if ( document.getElementById( 'wppa-overlay-txt' ) ) {
849
- // Hide during resize if sizing takes longer than 10 ms.
850
- if ( speed > 10 ) jQuery( '#wppa-overlay-txt' ).css( {visibility: 'hidden'});
851
- }
852
- setTimeout( 'wppaOvlSize2()', 20 );
853
- return true;
854
- }
855
- function wppaOvlSize2() {
856
- wppaConsoleLog( 'wppaOvlSize2' );
857
-
858
- var elm = document.getElementById( 'wppa-overlay-img' );
859
- if ( ! elm ) return; // quit inbetween
860
- var cw = elm.clientWidth;
861
- var txtwidth;
862
- if ( wppaOvlRunning ) txtwidth = cw + 12;
863
- else txtwidth = cw - 80;
864
-
865
- jQuery( '#wppa-overlay-img' ).css( {width: cw}); // Req'd for ver 4 browsers
866
- jQuery( '#wppa-overlay-ic' ).css( {width: cw+32}); // ditto
867
- jQuery( '#wppa-overlay-txt' ).css( {width: txtwidth+'px', visibility: 'visible'});
868
-
869
- return true;
870
- }
871
-
872
  // Quit lightbox mode
873
  function wppaOvlHide() {
874
  wppaConsoleLog( 'wppaOvlHide' );
@@ -878,7 +1063,7 @@ wppaConsoleLog( 'wppaOvlHide' );
878
 
879
  // Clear image container
880
  jQuery( '#wppa-overlay-ic' ).html( '' );
881
- jQuery( '#wppa-overlay-ic' ).css( {paddingTop: 0});
882
 
883
  // Remove background
884
  jQuery( '#wppa-overlay-bg' ).fadeOut( 300 );
@@ -924,6 +1109,13 @@ wppaConsoleLog( 'wppaInitOverlay' );
924
 
925
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
926
  wppaPhotoId = 0;
 
 
 
 
 
 
 
927
 
928
  for ( i = 0; i < anchors.length; i++ ) {
929
 
@@ -964,18 +1156,25 @@ wppaConsoleLog( 'wppaInitOverlay' );
964
  // Change to: <a onclick="myproc(); wppaOvlResize()" >Show Details</a>
965
  // Isn't it simple?
966
  function wppaOvlResize() {
967
- wppaConsoleLog( 'wppaOvlResize' );
968
- // See if generic lightbox is on
969
- // if ( wppaLightBox != 'wppa' ) return; // No, not this time.
970
- // Wait for completeion of text and do a size operation
971
- setTimeout( 'wppaOvlSize( 10 )', 50 ); // After resizing, the number of lines may have changed
972
- setTimeout( 'wppaOvlSize( 10 )', 100 );
973
- setTimeout( 'wppaOvlSize( 10 )', 150 );
974
- setTimeout( 'wppaOvlSize( 10 )', 1000 );
975
 
976
  if ( wppaOvlAudioStart && ! wppaOvlAudioPlaying ) {
977
- setTimeout( 'wppaOvlStartAudio()', 1010 );
978
  }
 
 
 
 
 
 
 
979
  }
980
 
981
 
3
  // Conatins lightbox modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaLightboxVersion = '6.2.14';
7
 
8
  var wppaNormsBtnOpac = 1;
9
 
10
+ var wppaIsVideo = false;
11
+ var wppaHasAudio = false;
12
+ var wppaOvlImgs = [];
13
+
14
+ // Global size specs
15
+ var wppaSavedContainerWidth;// = 250 + 2 * wppaOvlBorderWidth;
16
+ var wppaSavedContainerHeight;// = 250 + 3 * wppaOvlBorderWidth + 20 + ( wppaOvlTxtHeight == 'auto' ? 50 : wppaOvlTxtHeight );
17
+ var wppaSavedMarginLeft;// = - ( 125 + wppaOvlBorderWidth );
18
+ var wppaSavedMarginTop;// = - ( 125 + wppaOvlBorderWidth + 10 + ( wppaOvlTxtHeight == 'auto' ? 25 : wppaOvlTxtHeight / 2 ) );
19
+ var wppaSavedImageWidth;// = wppaSavedContainerWidth;//250;
20
+ var wppaSavedImageHeight;// = 250 + wppaOvlBorderWidth;
21
+
22
  // Initial initialization
23
  jQuery( document ).ready(function( e ) {
24
  wppaInitOverlay();
26
 
27
  // Window resize handler
28
  jQuery( window ).resize(function() {
29
+ jQuery("#wppa-overlay-bg").css({
30
+ height:window.innerHeight,
31
+ width:window.innerWidth,
32
+ });
33
  wppaOvlResize( 10 );
34
  });
35
 
70
  wppaOvlShowNext();
71
  break;
72
  case 's':
73
+ // wppaConsoleLog('s pressed', 'force');
74
  wppaOvlStartStop();
75
  break;
76
  case 'd':
84
  }
85
  }
86
 
87
+ // Switch to fullscreen mode
88
  function wppaOvlFull() {
89
  var oldMode = wppaOvlMode;
90
  wppaOvlStepMode();
112
  jQuery('#wppa-ovl-legenda-1').html('');
113
  }
114
 
115
+ // Switch to normal screen mode
116
  function wppaOvlNorm() {
117
  wppaOvlMode = 'normal';
118
  if (document.cancelFullScreen) {
131
  // wppaOvlShow() wppaOvlShow2(), wppaOvlShow3() and wppaOvlShow4() with rendering in between the steps.
132
  // If in fullscreen mode, wppaOvlShow() calls wppaOvlShowFull().
133
  function wppaOvlShow( arg ) {
 
134
 
135
  if ( wppaOvlFirst ) {
136
 
137
+ // Prevent Weaver ii from hiding us
138
+ jQuery( '#weaver-final' ).removeClass( 'wvr-hide-bang' );
139
+
140
+ // Init background
141
+ jQuery( '#wppa-overlay-bg' ).fadeTo( 3, wppaOvlOpacity );
142
+
143
  // Install keyboard handler
144
  jQuery( document ).on('keydown', wppaOvlKeyboardHandler );
145
 
149
  occ++;
150
  wppaStopShow( occ );
151
  }
 
 
152
  }
 
 
 
153
 
154
+ // Adjust background size
155
+ jQuery( '#wppa-overlay-bg' ).css({
156
+ width:window.innerWidth,
157
+ height:window.innerHeight,
158
+ });
159
+
160
+ // Now start the actual function
161
+ if ( wppaOvlFirst ) {
162
+ setTimeout( function(){ _wppaOvlShow( arg )}, 3 );
163
+ }
164
+ else {
165
+ _wppaOvlShow( arg );
166
+ }
167
+ }
168
+
169
+ function _wppaOvlShow( arg ) {
170
+ //wppaConsoleLog('Start _wppaOvlShow', 'force');
171
  // Display spinner
172
  jQuery( '#wppa-overlay-sp' ).css( {left: ( jQuery( window ).width()/2 )-16, top: ( jQuery( window ).height()/2 )-16, visibility: 'visible'});
173
 
217
  wppaOvlVideoHtmls = [];
218
  wppaOvlAudioHtmls = [];
219
  wppaOvlVideoNaturalWidths = [];
220
+ wppaOvlVideoNaturalHeights = [];
221
+ wppaOvlImgs = [];
222
  var setname = temp[1];
223
  var anchors = jQuery( 'a' );
224
  var anchor;
252
 
253
  wppaOvlVideoNaturalWidths[j] = jQuery( anchor ).attr( 'data-videonatwidth' ) ? jQuery( anchor ).attr( 'data-videonatwidth' ) : '';
254
  wppaOvlVideoNaturalHeights[j] = jQuery( anchor ).attr( 'data-videonatheight' ) ? jQuery( anchor ).attr( 'data-videonatheight' ) : '';
255
+ wppaOvlImgs[j] = new Image();
256
+ wppaOvlImgs[j].src = wppaOvlUrls[j]; // Preload
257
+ // wppaConsoleLog( 'Preloading '+j, 'force' );
258
+ if ( anchor.href == wppaOvlUrl ) {
259
+ wppaOvlIdx = j; // Current index
260
+ if ( wppaOvlUrl.length > 0 ) { // Not empty
261
+ if ( ! wppaOvlImgs[j].complete ) { // Not loaded yet
262
+ // wppaConsoleLog( 'Waiting for ' + j, 'force' );
263
+ jQuery( '#wppa-overlay-sp' ).css( { visibility: 'visible' } ); // Show spinner
264
+ setTimeout( function() { _wppaOvlShow( arg ) }, 100 ); // Try again in 100 ms
265
+ return;
266
+ }
267
+ }
268
+ }
269
  j++;
270
  }
271
  }
285
 
286
  _bumpViewCount( wppaPhotoId );
287
 
288
+ // var
289
+ wppaIsVideo = wppaOvlVideoHtml != '';
290
+ // var
291
+ wppaHasAudio = wppaOvlAudioHtml != '';
292
 
293
  // Fullsize?
294
  if ( wppaOvlMode != 'normal' ) {
295
  var html;
296
 
297
  // Init background
298
+ // jQuery( '#wppa-overlay-bg' ).fadeTo( 300, wppaOvlOpacity ); // show black background first
299
 
300
  // Fullsize Video
301
  if ( wppaIsVideo ) {
396
  else {
397
  wppaOvlFsPhotoId = 0;
398
  }
399
+ wppaOvlFirst = false;
400
  return false;
401
  }
402
 
403
  // NOT fullsize
404
  else {
405
+ // Initialize
406
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
407
  wppaPhotoId = 0;
 
 
408
  wppaStopVideo( 0 );
 
 
 
 
 
 
409
  var txtcol = wppaOvlTheme == 'black' ? '#a7a7a7' : '#272727'; // Normal font
 
410
  if ( wppaOvlFontColor ) txtcol = wppaOvlFontColor;
411
  var startstop = wppaOvlRunning ? wppaStop : wppaStart;
412
+ var showNav = ( parseInt( arg ) != arg || arg == -1 );
413
+
414
+ // Initial sizing of image container ( contains image, borders and subtext )
415
+ jQuery( '#wppa-overlay-ic' ).css( {
416
+ width:wppaSavedContainerWidth,
417
+ // height:wppaSavedContainerHeight,
418
+ marginLeft:wppaSavedMarginLeft,
419
+ marginTop:wppaSavedMarginTop,
420
+ });
421
+
422
+ // Make the html
423
  var html = '';
424
+
425
+ // The img sub image container
426
+ html += '<div id="img-sb-img-cont" style="position:relative;line-height:0;" >';
427
+
428
+ // Not Fullsize Video
429
+ if ( wppaIsVideo ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
 
431
+ html += '<video' +
432
+ ' id="wppa-overlay-img"' +
 
 
 
 
433
  ' preload="metadata"' +
434
+ ( wppaOvlVideoStart ? ' autoplay' : '' ) +
435
+ ' onpause="wppaOvlVideoPlaying = false;"' +
436
+ ' onplay="wppaOvlVideoPlaying = true;"' +
437
+ ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
438
+ ' ontouchend="wppaTouchEnd( event );"' +
439
+ ' ontouchmove="wppaTouchMove( event );"' +
440
+ ' ontouchcancel="wppaTouchCancel( event );" ' +
441
+ ' controls' +
442
  ' style="' +
443
+ 'border-width:' + wppaOvlBorderWidth + 'px ' + wppaOvlBorderWidth + 'px 0;' +
444
+ 'border-style:solid;' +
445
+ 'border-color:'+wppaOvlTheme+';' +
446
+ 'width:' + wppaSavedImageWidth + 'px;' +
447
+ 'height:' + wppaSavedImageHeight + 'px;' +
448
+ 'box-shadow:none;' +
449
+ 'box-sizing:content-box;' +
450
  'position:relative;' +
451
+ 'border-top-left-radius:'+wppaOvlRadius+'px;' +
452
+ 'border-top-right-radius:'+wppaOvlRadius+'px;' +
453
+ 'margin:0;' +
454
+ 'padding:0;' +
455
+ '"' +
 
456
  ' >' +
457
+ wppaOvlVideoHtml +
458
+ '</video>';
459
+
460
+ wppaOvlIsVideo = true;
461
  }
462
+
463
+ // Not fullsize photo
464
+ else {
465
+ html += '<img' +
466
+ ' id="wppa-overlay-img"'+
467
+ ' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"' +
468
+ ' ontouchend="wppaTouchEnd( event );"' +
469
+ ' ontouchmove="wppaTouchMove( event );"' +
470
+ ' ontouchcancel="wppaTouchCancel( event );"' +
471
+ ' src="'+wppaOvlUrl+'"' +
472
+ ' style="' +
473
+ 'border-width:' + wppaOvlBorderWidth + 'px ' + wppaOvlBorderWidth + 'px 0;' +
474
+ 'border-style:solid;' +
475
+ 'border-color:'+wppaOvlTheme+';' +
476
+ 'width:' + wppaSavedImageWidth + 'px;' +
477
+ 'height:' + wppaSavedImageHeight + 'px;' +
478
+ 'box-shadow:none;' +
479
+ 'box-sizing:content-box;' +
480
+ 'position:relative;' +
481
+ 'border-top-left-radius:'+wppaOvlRadius+'px;' +
482
+ 'border-top-right-radius:'+wppaOvlRadius+'px;' +
483
+ 'margin:0;' +
484
+ 'padding:0;' +
485
+ '"' +
486
+ ' />';
487
+
488
+ // Audio on not fullsize
489
+ if ( wppaHasAudio ) {
490
+ html += '<audio' +
491
+ ' id="wppa-overlay-audio"' +
492
+ ' class="wppa-overlay-audio"' +
493
+ ' data-from="wppa"' +
494
+ ' preload="metadata"' +
495
+ ' onpause="wppaOvlAudioPlaying = false;"' +
496
+ ' onplay="wppaOvlAudioPlaying = true;"' +
497
+ ' style="' +
498
+ 'width:100%;' +
499
+ 'position:absolute;' +
500
+ 'box-shadow:none;' +
501
+ 'left:0;' +
502
+ 'bottom:0;' +
503
+ 'padding:0 ' + wppaOvlBorderWidth + 'px;' +
504
+ 'margin:0;' +
505
+ 'background-color:transparent;' +
506
+ 'box-sizing:border-box;' +
507
+ '"' +
508
+ ' controls' +
509
+ ' >' +
510
+ wppaOvlAudioHtml +
511
+ '</audio>';
512
+ }
513
+ wppaOvlIsVideo = false;
514
+ }
515
+
516
+ // The quit symbol image
517
+ html += '<img' +
518
+ ' id="wppa-overlay-qt-img"' +
519
+ ' src="' + wppaStopSymbolUrl + '"' +
520
+ ' style="' +
521
+ 'position:absolute;' +
522
+ 'z-index:100101;' +
523
+ 'right:' + wppaOvlBorderWidth + 'px;' +
524
+ 'top:' + wppaOvlBorderWidth + 'px;' +
525
+ 'box-shadow:none;' +
526
+ 'cursor:pointer;' +
527
+ 'height:' + wppaStopSymbolSize + 'px;' +
528
+ ( wppaStopSumbolBradius > 0 ? 'border-radius:' + wppaStopSumbolBradius + 'px;' : '' ) +
529
+ ( showNav ? 'opacity:1;' : 'opacity:0;' ) +
530
+ '"' +
531
+ ' onclick="wppaOvlHide()"' +
532
+ ' ontouchend="wppaOvlHide()"' +
533
+ ' onmouseover="jQuery(this).stop().fadeTo(200,0.8);"' +
534
+ ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
535
+ ' ontouchstart="jQuery(this).stop().fadeTo(200,0.8);"' +
536
+ ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
537
+ ' />';
538
+
539
+ // The start/stop button
540
+ if ( wppaOvlShowStartStop ) {
541
+ html += '<img' +
542
+ ' id="wppa-ovl-start-stop-btn"' +
543
+ ' src="'+( wppaOvlRunning ? wppaPauseSymbolUrl : wppaStartSymbolUrl )+'"' +
544
+ ' style="' +
545
+ 'height:'+wppaStartPauseSymbolSize+'px;' +
546
+ ( wppaStartPauseSymbolBradius > 0 ? 'border-radius:'+wppaStartPauseSymbolBradius+'px;' : '' ) +
547
+ 'z-index:100101;' +
548
+ 'position:absolute;' +
549
+ 'top:50%;' +
550
+ 'margin-top:' + ( -wppaStartPauseSymbolSize/2 ) + 'px;' +
551
+ 'left:50%;' +
552
+ 'margin-left:' + ( -wppaStartPauseSymbolSize/2 ) + 'px;' +
553
+ 'box-shadow:none;' +
554
+ ( showNav ? 'opacity:1;' : 'opacity:0;' ) +
555
+ '"' +
556
+ ' onclick="wppaOvlStartStop()"' +
557
+ ' ontouchend="wppaOvlStartStop()"' +
558
+ ' onmouseover="jQuery(this).stop().fadeTo(200,0.8);"' +
559
+ ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
560
+ ' ontouchstart="jQuery(this).stop().fadeTo(200,0.8);"' +
561
+ ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
562
+ ' />';
563
+ }
564
+
565
+ // The browse buttons
566
+ // Determine visibility of each button
567
+ var vl;
568
+ var vr;
569
+
570
+ // Single image, no browse buttons
571
+ if ( wppaOvlIdx == -1 ) {
572
+ var vl = 'visibility:hidden;';
573
+ var vr = 'visibility:hidden;';
574
+ }
575
+ // One out of a set
576
+ else {
577
+
578
+ // NOT first, show prev button
579
+ if ( wppaOvlIdx != 0 ) {
580
+ vl = 'visibility:visible;';
581
+ }
582
+
583
+ // NOT last, show next button
584
+ if ( wppaOvlIdx != ( wppaOvlUrls.length-1 ) ) {
585
+ vr = 'visibility:visible;';
586
+ }
587
+ }
588
+
589
+ // The prev button
590
+ html += '<img' +
591
+ ' id="wppa-ovl-prev-btn"' +
592
+ ' src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif"' +
593
+ ' style="' +
594
+ 'position:absolute;' +
595
+ 'z-index:100101;' +
596
+ 'width:' + wppaLeftRightSymbolSize + 'px;' +
597
+ ( wppaLeftRightSymbolBradius ? 'border-radius:' + wppaLeftRightSymbolBradius + 'px;' : '' ) +
598
+ 'top:50%;' +
599
+ 'margin-top:-' + ( wppaLeftRightSymbolSize/2 ) + 'px;' +
600
+ 'left:1px;' +
601
+ vl + ';' +
602
+ 'box-shadow:none;' +
603
+ ( showNav ? 'opacity:1;' : 'opacity:0;' ) +
604
+ '"' +
605
+ ' onclick="wppaOvlShowPrev()"' +
606
+ ' ontouchend="wppaOvlShowPrev()"' +
607
+ ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
608
+ ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
609
+ ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
610
+ ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
611
+ ' />';
612
+
613
+ // The next button
614
+ html += '<img' +
615
+ ' id="wppa-ovl-next-btn"' +
616
+ ' src="'+wppaImageDirectory+'next-'+wppaOvlTheme+'.gif"' +
617
+ ' style="' +
618
+ 'position:absolute;' +
619
+ 'z-index:100101;' +
620
+ 'width:' + wppaLeftRightSymbolSize + 'px;' +
621
+ ( wppaLeftRightSymbolBradius ? 'border-radius:' + wppaLeftRightSymbolBradius + 'px;' : '' ) +
622
+ 'top:50%;' +
623
+ 'margin-top:-' + ( wppaLeftRightSymbolSize/2 ) + 'px;' +
624
+ 'right:1px;' +
625
+ vr + ';' +
626
+ 'box-shadow:none;' +
627
+ ( showNav ? 'opacity:1;' : 'opacity:0;' ) +
628
+ '"' +
629
+ ' onclick="wppaOvlShowNext()"' +
630
+ ' ontouchend="wppaOvlShowNext()"' +
631
+ ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
632
+ ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
633
+ ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
634
+ ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
635
+ ' />';
636
+
637
+ // Close the #img-sb-img-cont
638
+ html += '</div>';
639
+
640
+ // The subtext container
641
+ wppaOvlIsSingle = ( wppaOvlIdx == -1 );
642
+ var showCounter = ! wppaOvlIsSingle && wppaOvlShowCounter;
643
  html += '<div id="wppa-overlay-txt-container"' +
644
  ' style="' +
645
  'position:relative;' +
 
646
  'padding:10px;' +
647
+ 'background-color:' + wppaOvlTheme + ';' +
648
+ 'color:' + txtcol + ';' +
649
+ 'text-align:center;' +
650
+ 'font-family:' + wppaOvlFontFamily + ';' +
651
+ 'font-size:' + wppaOvlFontSize + 'px;' +
652
+ 'font-weight:' + wppaOvlFontWeight + ';' +
653
+ 'line-height:' + wppaOvlLineHeight + 'px;' +
654
+ 'box-shadow:none;' +
655
+ 'border-bottom-left-radius:'+wppaOvlRadius+'px;' +
656
+ 'border-bottom-right-radius:'+wppaOvlRadius+'px;' +
657
+ '"' +
658
+ ' >' +
659
+ '<div' +
660
+ ' id="wppa-overlay-txt"' +
661
+ ' style="' +
662
+ 'text-align:center;' +
663
+ 'min-height:36px;' +
664
+ 'width:100%;' +
665
+ ( wppaOvlTxtHeight == 'auto' ? 'max-height:200px;' : 'max-height:' + wppaOvlTxtHeight + 'px;' ) +
666
+ 'overflow:auto;' +
667
+ 'box-shadow:none;' +
668
+ '"' +
669
+ ' >' +
670
+ ( showCounter ? ( wppaOvlIdx + 1 ) + '/' + wppaOvlUrls.length + '<br />' : '' ) +
671
+ wppaOvlTitle +
672
+ '</div>';
673
+ '</div>';
674
 
675
+
676
  jQuery( '#wppa-overlay-ic' ).html( html );
677
+
678
+ // Remove spinner
679
+ jQuery( '#wppa-overlay-sp' ).css( { visibility: 'hidden' } );
680
+
681
+ // Size
682
+ wppaOvlResize();
683
+
684
+ // Done!
685
+ wppaOvlFirst = false;
686
  return false;
687
  }
688
  }
689
 
690
+ // Adjust display sizes
691
+ function wppaOvlSize( speed ) {
692
 
693
+ var img = document.getElementById( 'wppa-overlay-img' ); // Do NOT jquerify this:
694
+ var txt = document.getElementById( 'wppa-overlay-txt' ); // jQuery does not support .naturalHeight etc.
695
+
696
+ // Are we still visible?
697
+ if ( ! img || ! txt || jQuery('#wppa-overlay-bg').css('display') == 'none' ) {
698
+ wppaConsoleLog('Lb quitted');
699
+ return;
700
+ }
701
+
702
+ // Full screen?
703
+ if ( wppaOvlMode != 'normal' ) {
704
+ wppaOvlShowFull();
705
  return;
706
  }
 
 
707
 
708
+
709
+ var iw = jQuery( window ).width();
710
+ var ih = jQuery( window ).height();
711
+ var cw, nw, nh;
712
+
713
+ if ( wppaOvlIsVideo ) {
714
+ cw = 640;
715
+ nw = 640;
716
+ nh = 480;
717
+ }
718
+ else {
719
+ cw = img.clientWidth;
720
+ nw = img.naturalWidth;
721
+ nh = img.naturalHeight;
722
+ }
723
+
724
+ var fakt1;
725
+ var fakt2;
726
+ var fakt;
727
+
728
+ // If the width is the limiting factor, adjust the height
729
+ if ( typeof( nw ) == 'undefined' ) { // ver 4 browser
730
+ nw = img.clientWidth;
731
+ nh = img.clientHeight;
732
+ fakt1 = ( iw-100 )/nw;
733
+ fakt2 = ih/nh;
734
+ if ( fakt1<fakt2 ) fakt = fakt1; // very landscape, width is the limit
735
+ else fakt = fakt2; // Height is the limit
736
+ if ( true ) { // Up or downsize
737
+ nw = parseInt( nw * fakt );
738
+ nh = parseInt( nh * fakt );
739
+ }
740
+ }
741
+ else {
742
+ fakt1 = ( iw-100 )/nw;
743
+ fakt2 = ih/nh;
744
+ if ( fakt1<fakt2 ) fakt = fakt1; // very landscape, width is the limit
745
+ else fakt = fakt2; // Height is the limit
746
+ if ( fakt < 1.0 ) { // Only downsize if needed
747
+ nw = parseInt( nw * fakt );
748
+ nh = parseInt( nh * fakt );
749
  }
750
+ }
751
+
752
+ var mh; // max image height
753
+ // var tch = document.getElementById( 'wppa-overlay-txt' ).clientHeight;
754
+ var tch = jQuery( '#wppa-overlay-txt' ).height();
755
+
756
+ if ( wppaOvlTxtHeight == 'auto' ) {
757
+ if ( tch == 0 ) tch = 20 + 2 * wppaOvlBorderWidth;
758
+ mh = ih - tch - 20 - 2 * wppaOvlBorderWidth;
 
 
 
 
 
759
  }
760
  else {
761
+ mh = ih - wppaOvlTxtHeight - 20 - 2 * wppaOvlBorderWidth;
 
762
  }
 
 
 
 
763
 
764
+ var mw = parseInt( mh * nw / nh );
765
+ var pt = wppaOvlPadTop;
766
+ var lft = parseInt( ( iw-mw )/2 );
767
+ var wid = mw;
768
 
769
+ // Image too small? ( never for ver 4 browsers, we do not know the natural dimensions
770
+ if ( nh < mh ) {
771
+ pt = wppaOvlPadTop + ( mh - nh )/2;
772
+ lft = parseInt( ( iw-nw )/2 );
773
+ wid = nw;
774
+ }
775
+
776
+ // Save new image width and height
777
+ var done = wppaSavedImageWidth == wid;
778
+
779
+ if ( wid <= 240 ) {
780
+ wid = 240;
781
+ nh = 180;
782
+ nw = 240;
783
+ done = false;
784
+ }
785
+
786
+ wppaSavedImageWidth = wid;
787
+ wppaSavedImageHeight = wid * nh / nw;
788
+ wppaSavedMarginLeft = - ( wid / 2 + wppaOvlBorderWidth );
789
+ wppaSavedContainerWidth = wid + 2 * wppaOvlBorderWidth;
790
+ wppaSavedContainerHeight = wppaSavedImageHeight + wppaOvlBorderWidth + jQuery( '#wppa-overlay-txt-container' ).height() + 20; // padding = 10
791
+ wppaSavedMarginTop = - wppaSavedContainerHeight / 2;
792
+
793
+ // Go to final size
794
+ jQuery( '#wppa-overlay-img' ).animate( {
795
+ width:wppaSavedImageWidth,
796
+ height:wppaSavedImageHeight,
797
+ },
798
+ speed
799
+ );
800
+
801
+ jQuery( '#wppa-overlay-ic' ).animate( {
802
+ width:wppaSavedContainerWidth,
803
+ marginLeft:wppaSavedMarginLeft,
804
+ marginTop:wppaSavedMarginTop,
805
+ },
806
+ speed
807
+ );
808
+
809
+
810
+ // Done?
811
+ if ( ! done ) {
812
+ setTimeout( function(){ wppaOvlSize(wppaOvlAnimSpeed) }, speed + 100 );
813
+ wppaConsoleLog( 'Not done '+wppaOvlIdx+' saved='+wppaSavedImageWidth+', wid='+wid+', cw='+cw+', nw='+nw+
814
+ ', img complete='+document.getElementById( 'wppa-overlay-img' ).complete, 'force' );
815
+ }
816
+ else wppaConsoleLog( 'Done '+wppaOvlIdx, 'force' );
817
+ return true;
818
  }
819
 
820
  // Show fullscreen lightbox image
930
  if ( elm ) {
931
  if ( typeof( elm.play ) == 'function' ) {
932
  elm.play();
933
+ // wppaConsoleLog('Audio play '+'wppa-overlay-audio', 'force');
934
  }
935
  }
936
  }
937
+
938
  // Step through the ring of fullscreen modes
939
  function wppaOvlStepMode() {
940
  wppaConsoleLog('StepMode from '+wppaOvlMode);
952
 
953
  // Start / stop lightbox slideshow
954
  function wppaOvlStartStop() {
955
+ //wppaConsoleLog('wppaOvlStartStop called. Running='+wppaOvlRunning, 'force');
956
  if ( wppaOvlRunning ) {
957
+
958
+ // Stop it
959
  wppaOvlRunning = false;
960
+
961
+ // Swap button image
962
+ jQuery( '#wppa-ovl-start-stop-btn' ).attr( 'src', wppaStartSymbolUrl );
963
+
964
+ // If in a set: Determine visibility of browse buttons and make visible if appliccable
965
+ if ( wppaOvlIdx != -1 ) {
966
+
967
+ // NOT first, show prev button
968
+ if ( wppaOvlIdx != 0 ) {
969
+ jQuery( '#wppa-ovl-prev-btn' ).css('visibility', 'visible');
970
+ }
971
+
972
+ // NOT last, show next button
973
+ if ( wppaOvlIdx != ( wppaOvlUrls.length-1 ) ) {
974
+ jQuery( '#wppa-ovl-next-btn' ).css('visibility', 'visible');
975
+ }
976
+ }
977
  }
978
  else {
979
+
980
+ // Swap button image
981
+ jQuery( '#wppa-ovl-start-stop-btn' ).attr( 'src', wppaPauseSymbolUrl );
982
+
983
+ // Start it
984
  wppaOvlRunning = true;
985
  wppaOvlRun();
986
  }
988
 
989
  // Start lb slideshow
990
  function wppaOvlRun() {
991
+ //wppaConsoleLog( 'wppaOvlRun, running='+wppaOvlRunning, 'force' );
992
 
993
+ // Already running?
994
  if ( ! wppaOvlRunning ) return;
995
 
996
+ // Wait until playing audio or video ends
997
  if ( wppaOvlVideoPlaying || wppaOvlAudioPlaying ) {
998
  setTimeout( 'wppaOvlRun()', 500 );
999
  return;
1000
  }
1001
 
1002
+ // If the current image is not yet complete, try again after 500 ms
1003
+ if ( ! wppaIsVideo ) {
1004
+ var elm = document.getElementById( 'wppa-overlay-img' );
1005
+ if ( elm ) {
1006
+ if ( ! elm.complete ) {
1007
+ wppaConsoleLog( 'Wait during run', 'force' );
1008
+ setTimeout( 'wppaOvlRun()', 500 );
1009
+ return;
1010
+ }
1011
+ }
1012
+ }
1013
+
1014
+
1015
  var next;
1016
  if ( wppaOvlIdx >= ( wppaOvlUrls.length-1 ) ) next = 0;
1017
  else next = wppaOvlIdx + 1;
1054
  return false;
1055
  }
1056
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1057
  // Quit lightbox mode
1058
  function wppaOvlHide() {
1059
  wppaConsoleLog( 'wppaOvlHide' );
1063
 
1064
  // Clear image container
1065
  jQuery( '#wppa-overlay-ic' ).html( '' );
1066
+ // jQuery( '#wppa-overlay-ic' ).css( {paddingTop: 0});
1067
 
1068
  // Remove background
1069
  jQuery( '#wppa-overlay-bg' ).fadeOut( 300 );
1109
 
1110
  wppaOvlFsPhotoId = 0; // Reset ovl fullscreen photo id
1111
  wppaPhotoId = 0;
1112
+
1113
+ wppaSavedContainerWidth = 240 + 2 * wppaOvlBorderWidth;
1114
+ wppaSavedContainerHeight = 180 + 3 * wppaOvlBorderWidth + 20 + ( wppaOvlTxtHeight == 'auto' ? 50 : wppaOvlTxtHeight );
1115
+ wppaSavedMarginLeft = - ( 120 + wppaOvlBorderWidth );
1116
+ wppaSavedMarginTop = - ( 90 + wppaOvlBorderWidth + 10 + ( wppaOvlTxtHeight == 'auto' ? 25 : wppaOvlTxtHeight / 2 ) );
1117
+ wppaSavedImageWidth = 240;
1118
+ wppaSavedImageHeight = 180 + wppaOvlBorderWidth;
1119
 
1120
  for ( i = 0; i < anchors.length; i++ ) {
1121
 
1156
  // Change to: <a onclick="myproc(); wppaOvlResize()" >Show Details</a>
1157
  // Isn't it simple?
1158
  function wppaOvlResize() {
1159
+ // return;
1160
+ wppaConsoleLog( 'wppaOvlResize', 'force' );
1161
+
1162
+ // After resizing, the number of lines may have changed
1163
+ // setTimeout( 'wppaOvlSize( '+wppaOvlAnimSpeed+' )', 50 );
1164
+ setTimeout( 'wppaOvlSize( '+wppaOvlAnimSpeed+' )', 100 );
1165
+ // setTimeout( 'wppaOvlSize( '+wppaOvlAnimSpeed+' )', 150 );
1166
+ // setTimeout( 'wppaOvlSize( '+wppaOvlAnimSpeed+' )', 1500 );
1167
 
1168
  if ( wppaOvlAudioStart && ! wppaOvlAudioPlaying ) {
1169
+ setTimeout( 'wppaOvlStartAudio()', 1510 );
1170
  }
1171
+
1172
+ // if ( jQuery('#wppa-overlay-bg').css('display') == 'none' ) {
1173
+ // wppaConsoleLog('Lb quitted');
1174
+ // return;
1175
+ // }
1176
+
1177
+ //setTimeout('wppaOvlResize()', 100);
1178
  }
1179
 
1180
 
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.2.8';var wppaNormsBtnOpac=1;jQuery(document).ready(function(e){wppaInitOverlay();});jQuery(window).resize(function(){jQuery("#wppa-overlay-bg").css({height:window.innerHeight});wppaOvlResize(10);});function wppaOvlKeyboardHandler(e){var keycode;var escapeKey;if(e==null){keycode=event.keyCode;escapeKey=27;}else{keycode=e.keyCode;escapeKey=27;}
8
  var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
9
  switch(key){case'p':wppaOvlShowPrev();break;case'n':wppaOvlShowNext();break;case's':wppaOvlStartStop();break;case'd':jQuery('#wppa-ovl-legenda-1').css('visibility','hidden');jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';break;case'f':wppaOvlFull();break;}}
10
  function wppaOvlFull(){var oldMode=wppaOvlMode;wppaOvlStepMode();var elem=document.getElementById('wppa-overlay-ic');if(!elem)return;if(oldMode=='normal'){if(elem.requestFullscreen){elem.requestFullscreen();}else if(elem.mozRequestFullScreen){elem.mozRequestFullScreen();}else if(elem.webkitRequestFullscreen){elem.webkitRequestFullscreen();}
@@ -13,21 +13,23 @@ if(wppaOvlMode=='normal'){if(document.cancelFullScreen){document.cancelFullScree
13
  jQuery('#wppa-ovl-legenda-1').html('');}
14
  function wppaOvlNorm(){wppaOvlMode='normal';if(document.cancelFullScreen){document.cancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}
15
  setTimeout('wppaOvlShow( '+wppaOvlIdx+' )',1000);}
16
- function wppaOvlShow(arg){wppaConsoleLog('wppaOvlShow arg='+arg);if(wppaOvlFirst){jQuery(document).on('keydown',wppaOvlKeyboardHandler);var occ=0;while(occ<wppaTopMoc){occ++;wppaStopShow(occ);}
17
- wppaOvlFirst=false;}
18
- jQuery('#weaver-final').removeClass('wvr-hide-bang');jQuery('#wppa-overlay-sp').css({left:(jQuery(window).width()/2)-16,top:(jQuery(window).height()/2)-16,visibility:'visible'});var href;if(parseInt(arg)==arg){if(arg!=-1){wppaOvlUrl=wppaOvlUrls[arg];wppaOvlTitle=wppaOvlTitles[arg];wppaOvlIdx=arg;wppaOvlVideoHtml=wppaOvlVideoHtmls[arg];wppaOvlAudioHtml=wppaOvlAudioHtmls[arg];wppaOvlVideoNaturalWidth=wppaOvlVideoNaturalWidths[arg];wppaOvlVideoNaturalHeight=wppaOvlVideoNaturalHeights[arg];}}
 
19
  else{wppaOvlIdx=-1;wppaOvlUrl=arg.href;if(jQuery(arg).attr('data-lbtitle')){wppaOvlTitle=wppaRepairScriptTags(jQuery(arg).attr('data-lbtitle'));}
20
  else{wppaOvlTitle=wppaRepairScriptTags(arg.title);}
21
  wppaOvlVideoHtml=jQuery(arg).attr('data-videohtml')?decodeURI(jQuery(arg).attr('data-videohtml')):'';wppaOvlAudioHtml=jQuery(arg).attr('data-audiohtml')?decodeURI(jQuery(arg).attr('data-audiohtml')):'';wppaOvlVideoNaturalWidth=jQuery(arg).attr('data-videonatwidth')?jQuery(arg).attr('data-videonatwidth'):'';wppaOvlVideoNaturalHeight=jQuery(arg).attr('data-videonatheight')?jQuery(arg).attr('data-videonatheight'):'';var rel;if(arg.rel){rel=arg.rel;}
22
  else if(jQuery(arg).attr('data-rel')){rel=jQuery(arg).attr('data-rel');}
23
  else{rel=false;}
24
- var temp=rel.split('[');if(temp[1]){wppaOvlUrls=[];wppaOvlTitles=[];wppaOvlVideoHtmls=[];wppaOvlAudioHtmls=[];wppaOvlVideoNaturalWidths=[];wppaOvlVideoNaturalHeights=[];var setname=temp[1];var anchors=jQuery('a');var anchor;var i,j=0;wppaOvlIdx=-1;for(i=0;i<anchors.length;i++){anchor=anchors[i];if(jQuery(anchor).attr('data-rel')){temp=jQuery(anchor).attr('data-rel').split("[");}
25
  else{temp=false;}
26
  if(temp.length>1){if(temp[0]=='wppa'&&temp[1]==setname){wppaOvlUrls[j]=anchor.href;if(jQuery(anchor).attr('data-lbtitle')){wppaOvlTitles[j]=wppaRepairScriptTags(jQuery(anchor).attr('data-lbtitle'));}
27
  else{wppaOvlTitles[j]=wppaRepairScriptTags(anchor.title);}
28
- wppaOvlVideoHtmls[j]=jQuery(anchor).attr('data-videohtml')?decodeURI(jQuery(anchor).attr('data-videohtml')):'';wppaOvlAudioHtmls[j]=jQuery(anchor).attr('data-audiohtml')?decodeURI(jQuery(anchor).attr('data-audiohtml')):'';wppaOvlVideoNaturalWidths[j]=jQuery(anchor).attr('data-videonatwidth')?jQuery(anchor).attr('data-videonatwidth'):'';wppaOvlVideoNaturalHeights[j]=jQuery(anchor).attr('data-videonatheight')?jQuery(anchor).attr('data-videonatheight'):'';if(anchor.href==wppaOvlUrl)wppaOvlIdx=j;j++;}}}}
 
29
  else{wppaOvlUrls=false;wppaOvlTitles=false;wppaOvlVideoHtmls=false;wppaOvlVideoNaturalWidths=false;wppaOvlVideoNaturalHeights=false;wppaOvlIdx=-1;}}
30
- wppaPhotoId=wppaUrlToId(wppaOvlUrl);_bumpViewCount(wppaPhotoId);var wppaIsVideo=wppaOvlVideoHtml!='';var wppaHasAudio=wppaOvlAudioHtml!='';if(wppaOvlMode!='normal'){var html;jQuery('#wppa-overlay-bg').fadeTo(300,wppaOvlOpacity);if(wppaIsVideo){html='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+jQuery(window).width()+'px; height:'+jQuery(window).height()+'px; left:0px; top:0px; text-align:center;" >'+'<video id="wppa-overlay-img" controls preload="metadata"'+
31
  (wppaOvlVideoStart?' autoplay':'')+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );"'+' onpause="wppaOvlVideoPlaying = false;"'+' onplay="wppaOvlVideoPlaying = true;"'+' style="border:none; width:'+jQuery(window).width()+'px; box-shadow:none; position:absolute;" >'+
32
  wppaOvlVideoHtml+'</video>'+'<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';if(wppaOvlShowLegenda){html+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme=='black'?'#272727':'#a7a7a7')+'; color:'+(wppaOvlTheme=='black'?'#a7a7a7':'#272727')+'; visibility:'+wppaShowLegenda+';" >'+'Mode='+wppaOvlMode+'. '+(wppaOvlIsSingle?wppaOvlFullLegendaSingle:wppaOvlFullLegenda)+'</div>';}
33
  html+='</div>';'</div>';}
@@ -39,23 +41,43 @@ html+='</div>';'</div>';}
39
  html+='<img'+' id="wppa-norms-btn"'+' src="'+wppaImageDirectory+'norms.png"'+' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"'+' onclick="wppaOvlNorm()"'+' ontouchstart="wppaOvlNorm()"'+' onmouseover="jQuery(this).fadeTo(600,1);"'+' onmouseout="jQuery(this).fadeTo(600,0);wppaNormsBtnOpac=0;"'+' >';if((!wppaIsVideo&&!wppaHasAudio)||wppaOvlFsPhotoId!=wppaPhotoId||wppaPhotoId==0){wppaStopVideo(0);wppaStopAudio();jQuery('#wppa-overlay-ic').html(html);}
40
  wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlShowFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
41
  else{wppaOvlFsPhotoId=0;}
42
- return false;}
43
- else{wppaOvlFsPhotoId=0;wppaPhotoId=0;var mw=250;wppaStopVideo(0);jQuery('#wppa-overlay-bg').fadeTo(300,wppaOvlOpacity);var lft=(jQuery(window).width()/2-125)+'px';var ptp=(jQuery(window).height()/2-125)+'px';jQuery('#wppa-overlay-ic').css({left:lft,paddingTop:ptp});var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';var qtxtcol=wppaOvlTheme=='black'?'#a7a7a7':'#575757';if(wppaOvlFontColor)txtcol=wppaOvlFontColor;var startstop=wppaOvlRunning?wppaStop:wppaStart;var html='';if(wppaOvlShowStartStop){html+='<div id="wppa-overlay-start-stop" style="position:absolute; left:0px; top:'+(wppaOvlPadTop-1)+'px; visibility:hidden; box-shadow:none; font-family:helvetica; font-weight:bold; font-size:14px; color:'+qtxtcol+'; cursor:pointer; " onclick="wppaOvlStartStop()" ontouchstart="wppaOvlStartStop()" >'+startstop+'</div>';}
44
- html+='<div id="wppa-overlay-qt-txt" style="position:absolute; right:16px; top:'+(wppaOvlPadTop-1)+'px; visibility:hidden; box-shadow:none; font-family:helvetica; font-weight:bold; font-size:14px; color:'+qtxtcol+'; cursor:pointer; " onclick="wppaOvlHide()" ontouchstart="wppaOvlHide()" >'+wppaOvlCloseTxt+'&nbsp;&nbsp;</div>'+'<img id="wppa-overlay-qt-img" src="'+wppaImageDirectory+'smallcross-'+wppaOvlTheme+'.gif'+'" style="position:absolute; right:0; top:'+wppaOvlPadTop+'px; visibility:hidden; box-shadow:none; cursor:pointer" onclick="wppaOvlHide()" ontouchstart="wppaOvlHide()" >';if(wppaIsVideo){html+='<video'+' id="wppa-overlay-img"'+' preload="metadata"'+
45
- (wppaOvlVideoStart?' autoplay':'')+' onpause="wppaOvlVideoPlaying = false;"'+' onplay="wppaOvlVideoPlaying = true;"'+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );" '+' style="'+'border-width:16px;'+'border-style:solid;'+'border-color:'+wppaOvlTheme+';'+'margin-bottom:-15px;'+'max-width:'+mw+'px;'+'visibility:hidden;'+'box-shadow:none;"'+' controls'+' >'+wppaOvlVideoHtml+'</video>';wppaOvlIsVideo=true;}
46
- else{html+='<img'+' id="wppa-overlay-img"'+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );"'+' src="'+wppaOvlUrl+'"'+' style="'+'border-width:16px;'+'border-style:solid;'+'border-color:'+wppaOvlTheme+';'+'margin-bottom:-15px;'+'max-width:'+mw+'px;'+'visibility:hidden;'+'box-shadow:none;"'+' />';if(wppaHasAudio){html+='<audio'+' id="wppa-overlay-audio"'+' class="wppa-overlay-audio"'+' data-from="wppa"'+' preload="metadata"'+' onpause="wppaOvlAudioPlaying = false;"'+' onplay="wppaOvlAudioPlaying = true;"'+' style="'+'width:100%;'+'position:relative;'+'top:-'+(wppaAudioHeight+16)+'px;'+'padding:16px;'+'background-color:transparent;'+'box-sizing:border-box;'+'"'+' controls'+' >'+
47
  wppaOvlAudioHtml+'</audio>';}
48
  wppaOvlIsVideo=false;}
49
- html+='<div id="wppa-overlay-txt-container"'+' style="'+'position:relative;'+
50
- (wppaHasAudio?'top:-'+(wppaAudioHeight+32)+'px;':'')+'padding:10px;'+'background-color:'+wppaOvlTheme+'; color:'+txtcol+'; text-align:center; font-family:'+wppaOvlFontFamily+'; font-size: '+wppaOvlFontSize+'px; font-weight:'+wppaOvlFontWeight+'; line-height:'+wppaOvlLineHeight+'px; visibility:hidden; box-shadow:none;" ><div>';jQuery('#wppa-overlay-ic').html(html);setTimeout('wppaOvlShow2()',10);return false;}}
51
- function wppaOvlShow2(){wppaConsoleLog('wppaOvlShow2');var img=document.getElementById('wppa-overlay-img');if(!wppaOvlIsVideo&&(!img||!img.complete)){setTimeout('wppaOvlShow2()',10);return;}
52
- if(wppaOvlAnimSpeed!=0)
53
- img.style.visibility='visible';setTimeout('wppaOvlShow3()',10);return false;}
54
- function wppaOvlShow3(){wppaConsoleLog('wppaOvlShow3');jQuery('#wppa-overlay-sp').css({visibility:'hidden'});jQuery('#wppa-overlay-txt-container').html('<div id="wppa-overlay-txt"></div>');var speed=wppaOvlAnimSpeed;wppaOvlSize(speed);setTimeout('wppaOvlShow4()',speed+50);return false;}
55
- function wppaOvlShow4(){wppaConsoleLog('wppaOvlShow4');var cw=document.getElementById('wppa-overlay-img').clientWidth;if(wppaOvlIdx!=-1){var vl='visibility:hidden;';var vr='visibility:hidden;';var ht='height:'+wppaOvlTxtHeight+'px;';var txtwidth;if(wppaOvlRunning)txtwidth=cw+12;else txtwidth=cw-80;if(wppaOvlIdx!=0)vl='visible';if(wppaOvlIdx!=(wppaOvlUrls.length-1))vr='visible';if(wppaOvlTxtHeight=='auto')ht='';var html='';if(!wppaOvlRunning){html+='<img src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif" style="position:relative; top:-8px; float:left; '+vl+'; box-shadow:none;" onclick="wppaOvlShowPrev()" ontouchstart="wppaOvlShowPrev()" />'+'<img src="'+wppaImageDirectory+'next-'+wppaOvlTheme+'.gif" style="position:relative; top:-8px; float:right;'+vr+'; box-shadow:none;" onclick="wppaOvlShowNext()" ontouchstart="wppaOvlShowNext()" />';}
56
- html+='<div id="wppa-overlay-txt" style="text-align:center; min-height:36px; '+ht+' overflow:auto; box-shadow:none; width:'+txtwidth+'px;" >';if(wppaOvlShowCounter)html+=(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />';html+=wppaOvlTitle+'</div>';jQuery('#wppa-overlay-txt-container').html(html);wppaOvlIsSingle=false;}
57
- else{jQuery('#wppa-overlay-txt-container').html('<div id="wppa-overlay-txt" style="text-align:center; margin-left:45px;" >'+wppaOvlTitle+'</div>');wppaOvlIsSingle=true;}
58
- jQuery('#wppa-overlay-txt-container').css('visibility','visible');jQuery('#wppa-overlay-qt-txt').css({visibility:'visible'});jQuery('#wppa-overlay-qt-img').css({visibility:'visible'});if(!wppaOvlIsSingle)jQuery('#wppa-overlay-start-stop').css({visibility:'visible'});if(wppaOvlTxtHeight=='auto')wppaOvlResize(10);return false;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  function wppaOvlShowFull(){var img;var natWidth;var natHeight;if(wppaOvlIsVideo){img=document.getElementById('wppa-overlay-img');natWidth=wppaOvlVideoNaturalWidth;natHeight=wppaOvlVideoNaturalHeight;}
60
  else{img=document.getElementById('wppa-overlay-img');if(!img||!img.complete){setTimeout('wppaOvlShowFull()',10);return;}
61
  natWidth=img.naturalWidth;natHeight=img.naturalHeight;}
@@ -68,38 +90,25 @@ margTop=(jQuery(window).height()-natHeight)/2;if(margTop<0){scrollTop=-margTop;m
68
  imgHeight=natHeight;imgWidth=natWidth;Overflow='auto';break;}
69
  margLeft=parseInt(margLeft);margTop=parseInt(margTop);imgHeight=parseInt(imgHeight);imgWidth=parseInt(imgWidth);jQuery(img).css({height:imgHeight,width:imgWidth,marginLeft:margLeft,marginTop:margTop,left:0,top:0});jQuery(img).css({visibility:'visible'});jQuery('#wppa-ovl-full-bg').css({overflow:Overflow});jQuery('#wppa-ovl-full-bg').scrollTop(scrollTop);jQuery('#wppa-ovl-full-bg').scrollLeft(scrollLeft);jQuery('#wppa-overlay-sp').css({visibility:'hidden'});return true;}
70
  function wppaOvlUpdateFsId(){wppaOvlFsPhotoId=wppaPhotoId;}
71
- function wppaOvlStartAudio(){var elm=document.getElementById('wppa-overlay-audio');if(elm){if(typeof(elm.play)=='function'){elm.play();wppaConsoleLog('Audio play '+'wppa-overlay-audio','force');}}}
72
  function wppaOvlStepMode(){wppaConsoleLog('StepMode from '+wppaOvlMode);var modes=new Array('normal','padded','stretched','clipped','realsize','padded');var i=0;while(i<modes.length){if(wppaOvlMode==modes[i]){wppaOvlMode=modes[i+1];wppaOvlShow(wppaOvlIdx);return;}
73
  i++;}}
74
- function wppaOvlStartStop(){if(wppaOvlRunning){jQuery('#wppa-overlay-start-stop').html(wppaStart);wppaOvlRunning=false;}
75
- else{jQuery('#wppa-overlay-start-stop').html(wppaStop);wppaOvlRunning=true;wppaOvlRun();}}
76
- function wppaOvlRun(){wppaConsoleLog('wppaOvlRun, running='+wppaOvlRunning);if(!wppaOvlRunning)return;if(wppaOvlVideoPlaying||wppaOvlAudioPlaying){setTimeout('wppaOvlRun()',500);return;}
 
 
77
  var next;if(wppaOvlIdx>=(wppaOvlUrls.length-1))next=0;else next=wppaOvlIdx+1;wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaOvlShow(next);setTimeout('wppaOvlRun()',wppaOvlSlideSpeed);}
78
  function wppaOvlShowPrev(){wppaConsoleLog('wppaOvlShowPrev');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx<1){wppaOvlIdx=wppaOvlUrls.length;}
79
  wppaOvlShow(wppaOvlIdx-1);return false;}
80
  function wppaOvlShowNext(){wppaConsoleLog('wppaOvlShowNext');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx>=(wppaOvlUrls.length-1)){wppaOvlIdx=-1;}
81
  wppaOvlShow(wppaOvlIdx+1);return false;}
82
- function wppaOvlSize(speed){wppaConsoleLog('wppaOvlSize');if(jQuery('#wppa-overlay-bg').css('display')=='none'){wppaConsoleLog('Lb quitted');return;}
83
- if(wppaOvlMode!='normal'){wppaOvlShowFull();return;}
84
- if(!document.getElementById('wppa-overlay-txt')){setTimeout('wppaOvlSize( '+speed+' )',10);return;}
85
- var iw=jQuery(window).width();var ih=jQuery(window).height();var img=document.getElementById('wppa-overlay-img');var cw,nw,nh;if(wppaOvlIsVideo){cw=640;nw=640;nh=480;}
86
- else{cw=img.clientWidth;nw=img.naturalWidth;nh=img.naturalHeight;}
87
- var fakt1;var fakt2;var fakt;if(typeof(nw)=='undefined'){nw=img.clientWidth;nh=img.clientHeight;fakt1=(iw-100)/nw;fakt2=ih/nh;if(fakt1<fakt2)fakt=fakt1;else fakt=fakt2;if(true){nw=parseInt(nw*fakt);nh=parseInt(nh*fakt);}}
88
- else{fakt1=(iw-100)/nw;fakt2=ih/nh;if(fakt1<fakt2)fakt=fakt1;else fakt=fakt2;if(fakt<1.0){nw=parseInt(nw*fakt);nh=parseInt(nh*fakt);}}
89
- var mh;var tch=document.getElementById('wppa-overlay-txt').clientHeight;if(wppaOvlTxtHeight=='auto'){if(tch==0)tch=36;mh=ih-tch-52;}
90
- else{mh=ih-wppaOvlTxtHeight-52;}
91
- var mw=parseInt(mh*nw/nh);var pt=wppaOvlPadTop;var lft=parseInt((iw-mw)/2);var wid=mw;if(nh<mh){pt=wppaOvlPadTop+(mh-nh)/2;lft=parseInt((iw-nw)/2);wid=nw;}
92
- var cwid=wid+32;lft-=16;if(speed==0){jQuery('#wppa-overlay-img').css({width:wid,maxWidth:wid,visibility:'visible'});jQuery('#wppa-overlay-ic').css({width:cwid,left:lft,paddingTop:pt});jQuery('#wppa-overlay-qt-txt').css({top:(pt-1)});jQuery('#wppa-overlay-start-stop').css({top:(pt-1)});jQuery('#wppa-overlay-qt-img').css({top:pt});}
93
- else{jQuery('#wppa-overlay-img').stop().animate({width:wid,maxWidth:wid},speed);jQuery('#wppa-overlay-ic').stop().animate({width:cwid,left:lft,paddingTop:pt},speed);jQuery('#wppa-overlay-qt-txt').stop().animate({top:(pt-1)},speed);jQuery('#wppa-overlay-start-stop').stop().animate({top:(pt-1)},speed);jQuery('#wppa-overlay-qt-img').stop().animate({top:pt},speed);}
94
- if(document.getElementById('wppa-overlay-txt')){if(speed>10)jQuery('#wppa-overlay-txt').css({visibility:'hidden'});}
95
- setTimeout('wppaOvlSize2()',20);return true;}
96
- function wppaOvlSize2(){wppaConsoleLog('wppaOvlSize2');var elm=document.getElementById('wppa-overlay-img');if(!elm)return;var cw=elm.clientWidth;var txtwidth;if(wppaOvlRunning)txtwidth=cw+12;else txtwidth=cw-80;jQuery('#wppa-overlay-img').css({width:cw});jQuery('#wppa-overlay-ic').css({width:cw+32});jQuery('#wppa-overlay-txt').css({width:txtwidth+'px',visibility:'visible'});return true;}
97
- function wppaOvlHide(){wppaConsoleLog('wppaOvlHide');wppaStopAudio();jQuery('#wppa-overlay-ic').html('');jQuery('#wppa-overlay-ic').css({paddingTop:0});jQuery('#wppa-overlay-bg').fadeOut(300);jQuery(document).off('keydown',wppaOvlKeyboardHandler);wppaOvlFirst=true;wppaOvlRunning=false;wppaOvlMode='normal';jQuery('#wppa-overlay-sp').css({visibility:'hidden'});}
98
  function wppaOvlOnclick(event){switch(wppaOvlOnclickType){case'none':break;case'close':wppaOvlHide();break;case'browse':var x=event.screenX-window.screenX;if(x<jQuery(window).width()/2)wppaOvlShowPrev();else wppaOvlShowNext();break;default:alert('Unimplemented action: '+wppaOvlOnclickType);break;}
99
  return true;}
100
- function wppaInitOverlay(){wppaConsoleLog('wppaInitOverlay');var anchors=jQuery('a');var anchor;var i;var temp=[];wppaOvlFsPhotoId=0;wppaPhotoId=0;for(i=0;i<anchors.length;i++){anchor=anchors[i];if(jQuery(anchor).attr('data-rel')){temp=jQuery(anchor).attr('data-rel').split("[");}
101
  else if(anchor.rel){temp=anchor.rel.split("[");}
102
  else{temp[0]='';}
103
  if(temp[0]=='wppa'){wppaWppaOverlayActivated=true;jQuery(anchor).click(function(event){wppaOvlShow(this);event.preventDefault();});jQuery(anchor).on("touchstart",function(event){wppaOvlShow(this);});}}}
104
- function wppaOvlResize(){wppaConsoleLog('wppaOvlResize');setTimeout('wppaOvlSize( 10 )',50);setTimeout('wppaOvlSize( 10 )',100);setTimeout('wppaOvlSize( 10 )',150);setTimeout('wppaOvlSize( 10 )',1000);if(wppaOvlAudioStart&&!wppaOvlAudioPlaying){setTimeout('wppaOvlStartAudio()',1010);}}
105
  wppaConsoleLog('wppa-lightbox.js version '+wppaLightboxVersion+' loaded.','force');
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
 
7
+ var wppaLightboxVersion='6.2.14';var wppaNormsBtnOpac=1;var wppaIsVideo=false;var wppaHasAudio=false;var wppaOvlImgs=[];var wppaSavedContainerWidth;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(10);});function wppaOvlKeyboardHandler(e){var keycode;var escapeKey;if(e==null){keycode=event.keyCode;escapeKey=27;}else{keycode=e.keyCode;escapeKey=27;}
8
  var key=String.fromCharCode(keycode).toLowerCase();switch(keycode){case escapeKey:wppaStopVideo(mocc);wppaOvlHide();break;case 37:wppaOvlShowPrev();break;case 39:wppaOvlShowNext();break;}
9
  switch(key){case'p':wppaOvlShowPrev();break;case'n':wppaOvlShowNext();break;case's':wppaOvlStartStop();break;case'd':jQuery('#wppa-ovl-legenda-1').css('visibility','hidden');jQuery('#wppa-ovl-legenda-2').css('visibility','hidden');wppaShowLegenda='hidden';break;case'f':wppaOvlFull();break;}}
10
  function wppaOvlFull(){var oldMode=wppaOvlMode;wppaOvlStepMode();var elem=document.getElementById('wppa-overlay-ic');if(!elem)return;if(oldMode=='normal'){if(elem.requestFullscreen){elem.requestFullscreen();}else if(elem.mozRequestFullScreen){elem.mozRequestFullScreen();}else if(elem.webkitRequestFullscreen){elem.webkitRequestFullscreen();}
13
  jQuery('#wppa-ovl-legenda-1').html('');}
14
  function wppaOvlNorm(){wppaOvlMode='normal';if(document.cancelFullScreen){document.cancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}
15
  setTimeout('wppaOvlShow( '+wppaOvlIdx+' )',1000);}
16
+ function wppaOvlShow(arg){if(wppaOvlFirst){jQuery('#weaver-final').removeClass('wvr-hide-bang');jQuery('#wppa-overlay-bg').fadeTo(3,wppaOvlOpacity);jQuery(document).on('keydown',wppaOvlKeyboardHandler);var occ=0;while(occ<wppaTopMoc){occ++;wppaStopShow(occ);}}
17
+ jQuery('#wppa-overlay-bg').css({width:window.innerWidth,height:window.innerHeight,});if(wppaOvlFirst){setTimeout(function(){_wppaOvlShow(arg)},3);}
18
+ else{_wppaOvlShow(arg);}}
19
+ function _wppaOvlShow(arg){jQuery('#wppa-overlay-sp').css({left:(jQuery(window).width()/2)-16,top:(jQuery(window).height()/2)-16,visibility:'visible'});var href;if(parseInt(arg)==arg){if(arg!=-1){wppaOvlUrl=wppaOvlUrls[arg];wppaOvlTitle=wppaOvlTitles[arg];wppaOvlIdx=arg;wppaOvlVideoHtml=wppaOvlVideoHtmls[arg];wppaOvlAudioHtml=wppaOvlAudioHtmls[arg];wppaOvlVideoNaturalWidth=wppaOvlVideoNaturalWidths[arg];wppaOvlVideoNaturalHeight=wppaOvlVideoNaturalHeights[arg];}}
20
  else{wppaOvlIdx=-1;wppaOvlUrl=arg.href;if(jQuery(arg).attr('data-lbtitle')){wppaOvlTitle=wppaRepairScriptTags(jQuery(arg).attr('data-lbtitle'));}
21
  else{wppaOvlTitle=wppaRepairScriptTags(arg.title);}
22
  wppaOvlVideoHtml=jQuery(arg).attr('data-videohtml')?decodeURI(jQuery(arg).attr('data-videohtml')):'';wppaOvlAudioHtml=jQuery(arg).attr('data-audiohtml')?decodeURI(jQuery(arg).attr('data-audiohtml')):'';wppaOvlVideoNaturalWidth=jQuery(arg).attr('data-videonatwidth')?jQuery(arg).attr('data-videonatwidth'):'';wppaOvlVideoNaturalHeight=jQuery(arg).attr('data-videonatheight')?jQuery(arg).attr('data-videonatheight'):'';var rel;if(arg.rel){rel=arg.rel;}
23
  else if(jQuery(arg).attr('data-rel')){rel=jQuery(arg).attr('data-rel');}
24
  else{rel=false;}
25
+ var temp=rel.split('[');if(temp[1]){wppaOvlUrls=[];wppaOvlTitles=[];wppaOvlVideoHtmls=[];wppaOvlAudioHtmls=[];wppaOvlVideoNaturalWidths=[];wppaOvlVideoNaturalHeights=[];wppaOvlImgs=[];var setname=temp[1];var anchors=jQuery('a');var anchor;var i,j=0;wppaOvlIdx=-1;for(i=0;i<anchors.length;i++){anchor=anchors[i];if(jQuery(anchor).attr('data-rel')){temp=jQuery(anchor).attr('data-rel').split("[");}
26
  else{temp=false;}
27
  if(temp.length>1){if(temp[0]=='wppa'&&temp[1]==setname){wppaOvlUrls[j]=anchor.href;if(jQuery(anchor).attr('data-lbtitle')){wppaOvlTitles[j]=wppaRepairScriptTags(jQuery(anchor).attr('data-lbtitle'));}
28
  else{wppaOvlTitles[j]=wppaRepairScriptTags(anchor.title);}
29
+ wppaOvlVideoHtmls[j]=jQuery(anchor).attr('data-videohtml')?decodeURI(jQuery(anchor).attr('data-videohtml')):'';wppaOvlAudioHtmls[j]=jQuery(anchor).attr('data-audiohtml')?decodeURI(jQuery(anchor).attr('data-audiohtml')):'';wppaOvlVideoNaturalWidths[j]=jQuery(anchor).attr('data-videonatwidth')?jQuery(anchor).attr('data-videonatwidth'):'';wppaOvlVideoNaturalHeights[j]=jQuery(anchor).attr('data-videonatheight')?jQuery(anchor).attr('data-videonatheight'):'';wppaOvlImgs[j]=new Image();wppaOvlImgs[j].src=wppaOvlUrls[j];if(anchor.href==wppaOvlUrl){wppaOvlIdx=j;if(wppaOvlUrl.length>0){if(!wppaOvlImgs[j].complete){jQuery('#wppa-overlay-sp').css({visibility:'visible'});setTimeout(function(){_wppaOvlShow(arg)},100);return;}}}
30
+ j++;}}}}
31
  else{wppaOvlUrls=false;wppaOvlTitles=false;wppaOvlVideoHtmls=false;wppaOvlVideoNaturalWidths=false;wppaOvlVideoNaturalHeights=false;wppaOvlIdx=-1;}}
32
+ wppaPhotoId=wppaUrlToId(wppaOvlUrl);_bumpViewCount(wppaPhotoId);wppaIsVideo=wppaOvlVideoHtml!='';wppaHasAudio=wppaOvlAudioHtml!='';if(wppaOvlMode!='normal'){var html;if(wppaIsVideo){html='<div id="wppa-ovl-full-bg" style="position:fixed; width:'+jQuery(window).width()+'px; height:'+jQuery(window).height()+'px; left:0px; top:0px; text-align:center;" >'+'<video id="wppa-overlay-img" controls preload="metadata"'+
33
  (wppaOvlVideoStart?' autoplay':'')+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );"'+' onpause="wppaOvlVideoPlaying = false;"'+' onplay="wppaOvlVideoPlaying = true;"'+' style="border:none; width:'+jQuery(window).width()+'px; box-shadow:none; position:absolute;" >'+
34
  wppaOvlVideoHtml+'</video>'+'<div style="height: 20px; width: 100%; position:absolute; top:0; left:0;" onmouseover="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'visible\');" onmouseout="jQuery(\'#wppa-ovl-legenda-2\').css(\'visibility\',\'hidden\');wppaShowLegenda=\'hidden\';" >';if(wppaOvlShowLegenda){html+='<div id="wppa-ovl-legenda-2" style="position:fixed; left:0; top:0; background-color:'+(wppaOvlTheme=='black'?'#272727':'#a7a7a7')+'; color:'+(wppaOvlTheme=='black'?'#a7a7a7':'#272727')+'; visibility:'+wppaShowLegenda+';" >'+'Mode='+wppaOvlMode+'. '+(wppaOvlIsSingle?wppaOvlFullLegendaSingle:wppaOvlFullLegenda)+'</div>';}
35
  html+='</div>';'</div>';}
41
  html+='<img'+' id="wppa-norms-btn"'+' src="'+wppaImageDirectory+'norms.png"'+' style="height:32px;z-index:100092;position:fixed;top:0;right:0;opacity:'+wppaNormsBtnOpac+'"'+' onclick="wppaOvlNorm()"'+' ontouchstart="wppaOvlNorm()"'+' onmouseover="jQuery(this).fadeTo(600,1);"'+' onmouseout="jQuery(this).fadeTo(600,0);wppaNormsBtnOpac=0;"'+' >';if((!wppaIsVideo&&!wppaHasAudio)||wppaOvlFsPhotoId!=wppaPhotoId||wppaPhotoId==0){wppaStopVideo(0);wppaStopAudio();jQuery('#wppa-overlay-ic').html(html);}
42
  wppaOvlIsVideo=wppaIsVideo;setTimeout('wppaOvlShowFull()',10);if(wppaIsVideo||wppaHasAudio){setTimeout('wppaOvlUpdateFsId()',2000);}
43
  else{wppaOvlFsPhotoId=0;}
44
+ wppaOvlFirst=false;return false;}
45
+ else{wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaStopVideo(0);var txtcol=wppaOvlTheme=='black'?'#a7a7a7':'#272727';if(wppaOvlFontColor)txtcol=wppaOvlFontColor;var startstop=wppaOvlRunning?wppaStop:wppaStart;var showNav=(parseInt(arg)!=arg||arg==-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"'+' preload="metadata"'+
46
+ (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;'+'"'+' >'+
47
+ wppaOvlVideoHtml+'</video>';wppaOvlIsVideo=true;}
48
+ else{html+='<img'+' id="wppa-overlay-img"'+' ontouchstart="wppaTouchStart( event, \'wppa-overlay-img\', -1 );"'+' ontouchend="wppaTouchEnd( event );"'+' ontouchmove="wppaTouchMove( event );"'+' ontouchcancel="wppaTouchCancel( event );"'+' src="'+wppaOvlUrl+'"'+' 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;'+'"'+' />';if(wppaHasAudio){html+='<audio'+' id="wppa-overlay-audio"'+' class="wppa-overlay-audio"'+' data-from="wppa"'+' preload="metadata"'+' onpause="wppaOvlAudioPlaying = false;"'+' onplay="wppaOvlAudioPlaying = true;"'+' style="'+'width:100%;'+'position:absolute;'+'box-shadow:none;'+'left:0;'+'bottom:0;'+'padding:0 '+wppaOvlBorderWidth+'px;'+'margin:0;'+'background-color:transparent;'+'box-sizing:border-box;'+'"'+' controls'+' >'+
49
  wppaOvlAudioHtml+'</audio>';}
50
  wppaOvlIsVideo=false;}
51
+ html+='<img'+' id="wppa-overlay-qt-img"'+' src="'+wppaStopSymbolUrl+'"'+' style="'+'position:absolute;'+'z-index:100101;'+'right:'+wppaOvlBorderWidth+'px;'+'top:'+wppaOvlBorderWidth+'px;'+'box-shadow:none;'+'cursor:pointer;'+'height:'+wppaStopSymbolSize+'px;'+
52
+ (wppaStopSumbolBradius>0?'border-radius:'+wppaStopSumbolBradius+'px;':'')+
53
+ (showNav?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlHide()"'+' ontouchend="wppaOvlHide()"'+' onmouseover="jQuery(this).stop().fadeTo(200,0.8);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,0.8);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';if(wppaOvlShowStartStop){html+='<img'+' id="wppa-ovl-start-stop-btn"'+' src="'+(wppaOvlRunning?wppaPauseSymbolUrl:wppaStartSymbolUrl)+'"'+' style="'+'height:'+wppaStartPauseSymbolSize+'px;'+
54
+ (wppaStartPauseSymbolBradius>0?'border-radius:'+wppaStartPauseSymbolBradius+'px;':'')+'z-index:100101;'+'position:absolute;'+'top:50%;'+'margin-top:'+(-wppaStartPauseSymbolSize/2)+'px;'+'left:50%;'+'margin-left:'+(-wppaStartPauseSymbolSize/2)+'px;'+'box-shadow:none;'+
55
+ (showNav?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlStartStop()"'+' ontouchend="wppaOvlStartStop()"'+' onmouseover="jQuery(this).stop().fadeTo(200,0.8);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,0.8);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';}
56
+ var vl;var vr;if(wppaOvlIdx==-1){var vl='visibility:hidden;';var vr='visibility:hidden;';}
57
+ else{if(wppaOvlIdx!=0){vl='visibility:visible;';}
58
+ if(wppaOvlIdx!=(wppaOvlUrls.length-1)){vr='visibility:visible;';}}
59
+ html+='<img'+' id="wppa-ovl-prev-btn"'+' src="'+wppaImageDirectory+'prev-'+wppaOvlTheme+'.gif"'+' style="'+'position:absolute;'+'z-index:100101;'+'width:'+wppaLeftRightSymbolSize+'px;'+
60
+ (wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'left:1px;'+
61
+ vl+';'+'box-shadow:none;'+
62
+ (showNav?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowPrev()"'+' ontouchend="wppaOvlShowPrev()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';html+='<img'+' id="wppa-ovl-next-btn"'+' src="'+wppaImageDirectory+'next-'+wppaOvlTheme+'.gif"'+' style="'+'position:absolute;'+'z-index:100101;'+'width:'+wppaLeftRightSymbolSize+'px;'+
63
+ (wppaLeftRightSymbolBradius?'border-radius:'+wppaLeftRightSymbolBradius+'px;':'')+'top:50%;'+'margin-top:-'+(wppaLeftRightSymbolSize/2)+'px;'+'right:1px;'+
64
+ vr+';'+'box-shadow:none;'+
65
+ (showNav?'opacity:1;':'opacity:0;')+'"'+' onclick="wppaOvlShowNext()"'+' ontouchend="wppaOvlShowNext()"'+' onmouseover="jQuery(this).stop().fadeTo(200,1);"'+' onmouseout="jQuery(this).stop().fadeTo(200,0);"'+' ontouchstart="jQuery(this).stop().fadeTo(200,1);"'+' onload="jQuery(this).stop().fadeTo(5000,0);"'+' />';html+='</div>';wppaOvlIsSingle=(wppaOvlIdx==-1);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%;'+
66
+ (wppaOvlTxtHeight=='auto'?'max-height:200px;':'max-height:'+wppaOvlTxtHeight+'px;')+'overflow:auto;'+'box-shadow:none;'+'"'+' >'+
67
+ (showCounter?(wppaOvlIdx+1)+'/'+wppaOvlUrls.length+'<br />':'')+
68
+ wppaOvlTitle+'</div>';'</div>';jQuery('#wppa-overlay-ic').html(html);jQuery('#wppa-overlay-sp').css({visibility:'hidden'});wppaOvlResize();wppaOvlFirst=false;return false;}}
69
+ function wppaOvlSize(speed){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;}
70
+ if(wppaOvlMode!='normal'){wppaOvlShowFull();return;}
71
+ var iw=jQuery(window).width();var ih=jQuery(window).height();var cw,nw,nh;if(wppaOvlIsVideo){cw=640;nw=640;nh=480;}
72
+ else{cw=img.clientWidth;nw=img.naturalWidth;nh=img.naturalHeight;}
73
+ var fakt1;var fakt2;var fakt;if(typeof(nw)=='undefined'){nw=img.clientWidth;nh=img.clientHeight;fakt1=(iw-100)/nw;fakt2=ih/nh;if(fakt1<fakt2)fakt=fakt1;else fakt=fakt2;if(true){nw=parseInt(nw*fakt);nh=parseInt(nh*fakt);}}
74
+ else{fakt1=(iw-100)/nw;fakt2=ih/nh;if(fakt1<fakt2)fakt=fakt1;else fakt=fakt2;if(fakt<1.0){nw=parseInt(nw*fakt);nh=parseInt(nh*fakt);}}
75
+ var mh;var tch=jQuery('#wppa-overlay-txt').height();if(wppaOvlTxtHeight=='auto'){if(tch==0)tch=20+2*wppaOvlBorderWidth;mh=ih-tch-20-2*wppaOvlBorderWidth;}
76
+ else{mh=ih-wppaOvlTxtHeight-20-2*wppaOvlBorderWidth;}
77
+ var mw=parseInt(mh*nw/nh);var pt=wppaOvlPadTop;var lft=parseInt((iw-mw)/2);var wid=mw;if(nh<mh){pt=wppaOvlPadTop+(mh-nh)/2;lft=parseInt((iw-nw)/2);wid=nw;}
78
+ var done=wppaSavedImageWidth==wid;if(wid<=240){wid=240;nh=180;nw=240;done=false;}
79
+ wppaSavedImageWidth=wid;wppaSavedImageHeight=wid*nh/nw;wppaSavedMarginLeft=-(wid/2+wppaOvlBorderWidth);wppaSavedContainerWidth=wid+2*wppaOvlBorderWidth;wppaSavedContainerHeight=wppaSavedImageHeight+wppaOvlBorderWidth+jQuery('#wppa-overlay-txt-container').height()+20;wppaSavedMarginTop=-wppaSavedContainerHeight/2;jQuery('#wppa-overlay-img').animate({width:wppaSavedImageWidth,height:wppaSavedImageHeight,},speed);jQuery('#wppa-overlay-ic').animate({width:wppaSavedContainerWidth,marginLeft:wppaSavedMarginLeft,marginTop:wppaSavedMarginTop,},speed);if(!done){setTimeout(function(){wppaOvlSize(wppaOvlAnimSpeed)},speed+100);wppaConsoleLog('Not done '+wppaOvlIdx+' saved='+wppaSavedImageWidth+', wid='+wid+', cw='+cw+', nw='+nw+', img complete='+document.getElementById('wppa-overlay-img').complete,'force');}
80
+ else wppaConsoleLog('Done '+wppaOvlIdx,'force');return true;}
81
  function wppaOvlShowFull(){var img;var natWidth;var natHeight;if(wppaOvlIsVideo){img=document.getElementById('wppa-overlay-img');natWidth=wppaOvlVideoNaturalWidth;natHeight=wppaOvlVideoNaturalHeight;}
82
  else{img=document.getElementById('wppa-overlay-img');if(!img||!img.complete){setTimeout('wppaOvlShowFull()',10);return;}
83
  natWidth=img.naturalWidth;natHeight=img.naturalHeight;}
90
  imgHeight=natHeight;imgWidth=natWidth;Overflow='auto';break;}
91
  margLeft=parseInt(margLeft);margTop=parseInt(margTop);imgHeight=parseInt(imgHeight);imgWidth=parseInt(imgWidth);jQuery(img).css({height:imgHeight,width:imgWidth,marginLeft:margLeft,marginTop:margTop,left:0,top:0});jQuery(img).css({visibility:'visible'});jQuery('#wppa-ovl-full-bg').css({overflow:Overflow});jQuery('#wppa-ovl-full-bg').scrollTop(scrollTop);jQuery('#wppa-ovl-full-bg').scrollLeft(scrollLeft);jQuery('#wppa-overlay-sp').css({visibility:'hidden'});return true;}
92
  function wppaOvlUpdateFsId(){wppaOvlFsPhotoId=wppaPhotoId;}
93
+ function wppaOvlStartAudio(){var elm=document.getElementById('wppa-overlay-audio');if(elm){if(typeof(elm.play)=='function'){elm.play();}}}
94
  function wppaOvlStepMode(){wppaConsoleLog('StepMode from '+wppaOvlMode);var modes=new Array('normal','padded','stretched','clipped','realsize','padded');var i=0;while(i<modes.length){if(wppaOvlMode==modes[i]){wppaOvlMode=modes[i+1];wppaOvlShow(wppaOvlIdx);return;}
95
  i++;}}
96
+ function wppaOvlStartStop(){if(wppaOvlRunning){wppaOvlRunning=false;jQuery('#wppa-ovl-start-stop-btn').attr('src',wppaStartSymbolUrl);if(wppaOvlIdx!=-1){if(wppaOvlIdx!=0){jQuery('#wppa-ovl-prev-btn').css('visibility','visible');}
97
+ if(wppaOvlIdx!=(wppaOvlUrls.length-1)){jQuery('#wppa-ovl-next-btn').css('visibility','visible');}}}
98
+ else{jQuery('#wppa-ovl-start-stop-btn').attr('src',wppaPauseSymbolUrl);wppaOvlRunning=true;wppaOvlRun();}}
99
+ function wppaOvlRun(){if(!wppaOvlRunning)return;if(wppaOvlVideoPlaying||wppaOvlAudioPlaying){setTimeout('wppaOvlRun()',500);return;}
100
+ if(!wppaIsVideo){var elm=document.getElementById('wppa-overlay-img');if(elm){if(!elm.complete){wppaConsoleLog('Wait during run','force');setTimeout('wppaOvlRun()',500);return;}}}
101
  var next;if(wppaOvlIdx>=(wppaOvlUrls.length-1))next=0;else next=wppaOvlIdx+1;wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaOvlShow(next);setTimeout('wppaOvlRun()',wppaOvlSlideSpeed);}
102
  function wppaOvlShowPrev(){wppaConsoleLog('wppaOvlShowPrev');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx<1){wppaOvlIdx=wppaOvlUrls.length;}
103
  wppaOvlShow(wppaOvlIdx-1);return false;}
104
  function wppaOvlShowNext(){wppaConsoleLog('wppaOvlShowNext');wppaOvlFsPhotoId=0;wppaPhotoId=0;if(wppaOvlIsSingle)return false;if(wppaOvlIdx>=(wppaOvlUrls.length-1)){wppaOvlIdx=-1;}
105
  wppaOvlShow(wppaOvlIdx+1);return false;}
106
+ function wppaOvlHide(){wppaConsoleLog('wppaOvlHide');wppaStopAudio();jQuery('#wppa-overlay-ic').html('');jQuery('#wppa-overlay-bg').fadeOut(300);jQuery(document).off('keydown',wppaOvlKeyboardHandler);wppaOvlFirst=true;wppaOvlRunning=false;wppaOvlMode='normal';jQuery('#wppa-overlay-sp').css({visibility:'hidden'});}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  function wppaOvlOnclick(event){switch(wppaOvlOnclickType){case'none':break;case'close':wppaOvlHide();break;case'browse':var x=event.screenX-window.screenX;if(x<jQuery(window).width()/2)wppaOvlShowPrev();else wppaOvlShowNext();break;default:alert('Unimplemented action: '+wppaOvlOnclickType);break;}
108
  return true;}
109
+ function wppaInitOverlay(){wppaConsoleLog('wppaInitOverlay');var anchors=jQuery('a');var anchor;var i;var temp=[];wppaOvlFsPhotoId=0;wppaPhotoId=0;wppaSavedContainerWidth=240+2*wppaOvlBorderWidth;wppaSavedContainerHeight=180+3*wppaOvlBorderWidth+20+(wppaOvlTxtHeight=='auto'?50:wppaOvlTxtHeight);wppaSavedMarginLeft=-(120+wppaOvlBorderWidth);wppaSavedMarginTop=-(90+wppaOvlBorderWidth+10+(wppaOvlTxtHeight=='auto'?25:wppaOvlTxtHeight/2));wppaSavedImageWidth=240;wppaSavedImageHeight=180+wppaOvlBorderWidth;for(i=0;i<anchors.length;i++){anchor=anchors[i];if(jQuery(anchor).attr('data-rel')){temp=jQuery(anchor).attr('data-rel').split("[");}
110
  else if(anchor.rel){temp=anchor.rel.split("[");}
111
  else{temp[0]='';}
112
  if(temp[0]=='wppa'){wppaWppaOverlayActivated=true;jQuery(anchor).click(function(event){wppaOvlShow(this);event.preventDefault();});jQuery(anchor).on("touchstart",function(event){wppaOvlShow(this);});}}}
113
+ function wppaOvlResize(){wppaConsoleLog('wppaOvlResize','force');setTimeout('wppaOvlSize( '+wppaOvlAnimSpeed+' )',100);if(wppaOvlAudioStart&&!wppaOvlAudioPlaying){setTimeout('wppaOvlStartAudio()',1510);}}
114
  wppaConsoleLog('wppa-lightbox.js version '+wppaLightboxVersion+' loaded.','force');
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.3.6';
7
 
8
  // This is an entrypoint to load the slide data
9
  function wppaStoreSlideInfo(
@@ -199,13 +199,13 @@ function wppaStartStop( mocc, index ) {
199
  if ( _wppaSSRuns[mocc] ) {
200
  // Stop it
201
  _wppaStop( mocc );
202
- jQuery( '#wppa-startstop-icon-' + mocc ).attr( 'src', wppaImageDirectory + 'start' + wppaSsIconType );
203
  }
204
  else {
205
  // Start it
206
  _wppaStart( mocc, index );
207
  if ( index == -1 ) {
208
- jQuery( '#wppa-startstop-icon-' + mocc ).attr( 'src', wppaImageDirectory + 'pause' + wppaSsIconType );
209
  }
210
  }
211
  }
3
  // Contains slideshow modules
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
+ var wppaJsSlideshowVersion = '6.3.14';
7
 
8
  // This is an entrypoint to load the slide data
9
  function wppaStoreSlideInfo(
199
  if ( _wppaSSRuns[mocc] ) {
200
  // Stop it
201
  _wppaStop( mocc );
202
+ jQuery( '#wppa-startstop-icon-' + mocc ).attr( 'src', wppaStartSymbolUrl );
203
  }
204
  else {
205
  // Start it
206
  _wppaStart( mocc, index );
207
  if ( index == -1 ) {
208
+ jQuery( '#wppa-startstop-icon-' + mocc ).attr( 'src', wppaPauseSymbolUrl );
209
  }
210
  }
211
  }
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.3.6';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){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;}
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="'+wppaTrimAlt(name)+'" class="theimg theimg-'+mocc+' big" ';if(wppaSlideVideoStart&&wppaLightBox[mocc]==''){_wppaSlides[mocc][id]+=' autoplay ';}}
@@ -19,8 +19,8 @@ _wppaCommentHtml[mocc][id]=commenthtml;_wppaIptcHtml[mocc][id]=iptchtml;_wppaExi
19
  function wppaSpeed(mocc,faster){if(_wppaSSRuns[mocc]){_wppaSpeed(mocc,faster);}}
20
  function wppaStopShow(mocc){if(_wppaSSRuns[mocc]){_wppaStop(mocc);}}
21
  function wppaStartStop(mocc,index){if(_wppaIsBusy[mocc]){_wppaTP[mocc]=index;}
22
- else{if(_wppaSSRuns[mocc]){_wppaStop(mocc);jQuery('#wppa-startstop-icon-'+mocc).attr('src',wppaImageDirectory+'start'+wppaSsIconType);}
23
- else{_wppaStart(mocc,index);if(index==-1){jQuery('#wppa-startstop-icon-'+mocc).attr('src',wppaImageDirectory+'pause'+wppaSsIconType);}}}}
24
  function wppaBbb(mocc,where,act){if(!_wppaSSRuns[mocc]){_wppaBbb(mocc,where,act);}}
25
  function wppaUbb(mocc,where,act){_wppaUbb(mocc,where,act);}
26
  function wppaRateIt(mocc,value){_wppaRateIt(mocc,value);}
4
  // Dependancies: wppa.js and default wp jQuery library
5
  //
6
 
7
+ var wppaJsSlideshowVersion='6.3.14';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){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;}
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="'+wppaTrimAlt(name)+'" class="theimg theimg-'+mocc+' big" ';if(wppaSlideVideoStart&&wppaLightBox[mocc]==''){_wppaSlides[mocc][id]+=' autoplay ';}}
19
  function wppaSpeed(mocc,faster){if(_wppaSSRuns[mocc]){_wppaSpeed(mocc,faster);}}
20
  function wppaStopShow(mocc){if(_wppaSSRuns[mocc]){_wppaStop(mocc);}}
21
  function wppaStartStop(mocc,index){if(_wppaIsBusy[mocc]){_wppaTP[mocc]=index;}
22
+ else{if(_wppaSSRuns[mocc]){_wppaStop(mocc);jQuery('#wppa-startstop-icon-'+mocc).attr('src',wppaStartSymbolUrl);}
23
+ else{_wppaStart(mocc,index);if(index==-1){jQuery('#wppa-startstop-icon-'+mocc).attr('src',wppaPauseSymbolUrl);}}}}
24
  function wppaBbb(mocc,where,act){if(!_wppaSSRuns[mocc]){_wppaBbb(mocc,where,act);}}
25
  function wppaUbb(mocc,where,act){_wppaUbb(mocc,where,act);}
26
  function wppaRateIt(mocc,value){_wppaRateIt(mocc,value);}
js/wppa.js CHANGED
@@ -2,7 +2,7 @@
2
  //
3
  // conatins common vars and functions
4
  //
5
- var wppaJsVersion = '6.3.8';
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!!
@@ -141,7 +141,13 @@ var wppaPopupLinkType = '';
141
  var wppaPopupOnclick = [];
142
  var wppaThumbTargetBlank = false;
143
  var wppaRel = 'rel';
144
- var wppaSsIconType = '.jpg';
 
 
 
 
 
 
145
 
146
  // 'Internal' variables ( private )
147
  var _wppaId = [];
@@ -212,10 +218,16 @@ var wppaOvlVideoPlaying = false;
212
  var wppaOvlAudioPlaying = false;
213
  var wppaOvlShowLegenda = true;
214
  var wppaOvlShowStartStop = true;
 
 
 
 
 
 
 
215
 
216
  // The next lightbox var values become overwritten in wppa-non-admin.php -> wppa_load_footer()
217
  // Therefor they are placed here!
218
- var wppaOvlCloseTxt = 'CLOSE';
219
  var wppaOvlTxtHeight = 36; // 12 * ( n lines of text including the n/m line )
220
  var wppaOvlOpacity = 0.8;
221
  var wppaOvlOnclickType = 'none';
2
  //
3
  // conatins common vars and functions
4
  //
5
+ var wppaJsVersion = '6.3.14';
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!!
141
  var wppaPopupOnclick = [];
142
  var wppaThumbTargetBlank = false;
143
  var wppaRel = 'rel';
144
+ var wppaStartSymbolUrl = '';
145
+ var wppaPauseSymbolUrl = '';
146
+ var wppaStopSymbolUrl = '';
147
+ var wppaStartPauseSymbolSize = '64';
148
+ var wppaStartPauseSymbolBradius = '32';
149
+ var wppaStopSymbolSize = '48';
150
+ var wppaStopSumbolBradius = '24';
151
 
152
  // 'Internal' variables ( private )
153
  var _wppaId = [];
218
  var wppaOvlAudioPlaying = false;
219
  var wppaOvlShowLegenda = true;
220
  var wppaOvlShowStartStop = true;
221
+ var wppaOvlRadius = 0;
222
+ var wppaOvlBorderWidth = 16;
223
+ var wppaOvlLeftSymbolUrl;
224
+ var wppaOvlRightSymbolUrl;
225
+ var wppaLeftRightSymbolSize = 32;
226
+ var wppaLeftRightSymbolBradius = 4;
227
+
228
 
229
  // The next lightbox var values become overwritten in wppa-non-admin.php -> wppa_load_footer()
230
  // Therefor they are placed here!
 
231
  var wppaOvlTxtHeight = 36; // 12 * ( n lines of text including the n/m line )
232
  var wppaOvlOpacity = 0.8;
233
  var wppaOvlOnclickType = 'none';
js/wppa.min.js CHANGED
@@ -3,7 +3,7 @@
3
  // conatins common vars and functions
4
  //
5
 
6
- var wppaJsVersion='6.3.8';var wppaVersion='0';var wppaDebug=false;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 wppaSlower;var wppaFaster;var wppaNextP;var wppaPrevP;var wppaAvgRating;var wppaMyRating;var wppaAvgRat;var wppaMyRat;var wppaDislikeMsg;var wppaShowDislikeCount=false;var wppaNoDislikes='no dislikes';var wppa1Dislike='1 dislike';var wppaDislikes='dislikes';var wppaIncludingMine='including mine';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=true;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 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 wppaSsIconType='.jpg';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 __wppaOverruleRun=false;var wppaOvlUrls;var wppaOvlUrl;var wppaOvlTitles;var wppaOvlTitle;var wppaOvlIdx=-1;var wppaOvlFirst=true;var wppaOvlKbHandler='';var wppaOvlSizeHandler='';var wppaOvlPadTop=5;var wppaOvlIsSingle;var wppaOvlRunning=false;var wppaOvlVideoHtmls;var wppaOvlVideoHtml;var wppaOvlAudioHtmls;var wppaOvlAudioHtml;var wppaOvlVideoNaturalWidths;var wppaOvlVideoNaturalWidth;var wppaOvlVideoNaturalHeights;var wppaOvlVideoNaturalHeight;var wppaOvlMode='normal';var wppaOvlVideoPlaying=false;var wppaOvlAudioPlaying=false;var wppaOvlShowLegenda=true;var wppaOvlShowStartStop=true;var wppaOvlCloseTxt='CLOSE';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='';jQuery(document).ready(function(){var anyAutocol=false;for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);anyAutocol=true;}}
7
  _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);}}});}});jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax()){wppaCanAjaxRender=true;}
8
  if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
9
  wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
3
  // conatins common vars and functions
4
  //
5
 
6
+ var wppaJsVersion='6.3.14';var wppaVersion='0';var wppaDebug=false;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 wppaSlower;var wppaFaster;var wppaNextP;var wppaPrevP;var wppaAvgRating;var wppaMyRating;var wppaAvgRat;var wppaMyRat;var wppaDislikeMsg;var wppaShowDislikeCount=false;var wppaNoDislikes='no dislikes';var wppa1Dislike='1 dislike';var wppaDislikes='dislikes';var wppaIncludingMine='including mine';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=true;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 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 wppaStartSymbolUrl='';var wppaPauseSymbolUrl='';var wppaStopSymbolUrl='';var wppaStartPauseSymbolSize='64';var wppaStartPauseSymbolBradius='32';var wppaStopSymbolSize='48';var wppaStopSumbolBradius='24';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 __wppaOverruleRun=false;var wppaOvlUrls;var wppaOvlUrl;var wppaOvlTitles;var wppaOvlTitle;var wppaOvlIdx=-1;var wppaOvlFirst=true;var wppaOvlKbHandler='';var wppaOvlSizeHandler='';var wppaOvlPadTop=5;var wppaOvlIsSingle;var wppaOvlRunning=false;var wppaOvlVideoHtmls;var wppaOvlVideoHtml;var wppaOvlAudioHtmls;var wppaOvlAudioHtml;var wppaOvlVideoNaturalWidths;var wppaOvlVideoNaturalWidth;var wppaOvlVideoNaturalHeights;var wppaOvlVideoNaturalHeight;var wppaOvlMode='normal';var wppaOvlVideoPlaying=false;var wppaOvlAudioPlaying=false;var wppaOvlShowLegenda=true;var wppaOvlShowStartStop=true;var wppaOvlRadius=0;var wppaOvlBorderWidth=16;var wppaOvlLeftSymbolUrl;var wppaOvlRightSymbolUrl;var wppaLeftRightSymbolSize=32;var wppaLeftRightSymbolBradius=4;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='';jQuery(document).ready(function(){var anyAutocol=false;for(mocc=1;mocc<=wppaTopMoc;mocc++){if(wppaAutoColumnWidth[mocc]){wppaColWidth[mocc]=0;_wppaDoAutocol(mocc);anyAutocol=true;}}
7
  _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);}}});}});jQuery(document).ready(function(e){if(wppaAllowAjax&&jQuery.ajax()){wppaCanAjaxRender=true;}
8
  if(typeof(history.pushState)!='undefined'){var i=1;while(i<=wppaMaxOccur){wppaStartHtml[i]=jQuery('#wppa-container-'+i).html();i++;}
9
  wppaCanPushState=true;}});function wppaUpdateLightboxes(){if(typeof(wppaInitOverlay)=='function'){wppaInitOverlay();}
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto
5
- Version: 6.3.13
6
  Stable tag: 6.3.13
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
@@ -189,6 +189,24 @@ Oh, just Google on 'picture resizer' and you will find a bunch of free programs
189
 
190
  See for additional information: http://wppa.opajaap.nl/changelog/
191
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  = 6.3.13 =
193
 
194
  = Bug Fixes =
2
  Contributors: opajaap
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source&currency_code=USD&lc=US
4
  Tags: photo, album, gallery, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto
5
+ Version: 6.3.14
6
  Stable tag: 6.3.13
7
  Author: J.N. Breetvelt
8
  Author URI: http://www.opajaap.nl/
189
 
190
  See for additional information: http://wppa.opajaap.nl/changelog/
191
 
192
+ = 6.3.14 =
193
+
194
+ = Bug Fixes =
195
+
196
+ * The error messages for wrong setting input disappeared. Fixed.
197
+ * The album navigator widget vanished. Fixed.
198
+
199
+ = New Features =
200
+
201
+ * Alt thumbsize now also works for masonry style thumbnails, if the album is one real album.
202
+ The size is still an approximation, due to the implementation of filling the space.
203
+
204
+ = Other Changes =
205
+
206
+ * Changed defaults for Table VI-C11 to none, none.
207
+ * Lightbox has been face-lifted. See Table I-G3,4 and Table II-K.
208
+ * The recent patch for Windows 10 has been reverted. See https://wordpress.org/support/topic/front-end-uploader-not-working-in-explorer?replies=18
209
+
210
  = 6.3.13 =
211
 
212
  = Bug Fixes =
theme/wppa-theme.php CHANGED
@@ -3,11 +3,11 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the albums/photos/slideshow in a page or post
6
- * Version 6.2.8
7
  */
8
  function wppa_theme() {
9
 
10
- global $wppa_version; $wppa_version = '6-2-7-000'; // The version number of this file
11
  global $wppa;
12
  global $wppa_show_statistics; // Can be set to true by a custom page template
13
 
@@ -28,6 +28,14 @@ global $wppa_show_statistics; // Can be set to true by a custom page templa
28
 
29
  if ( wppa_page( 'albums' ) ) { // Page 'Albums' requested
30
 
 
 
 
 
 
 
 
 
31
  // Get the albums and the thumbs and the number of pages for each set
32
  $albums = wppa_get_albums(); // Get the albums
33
  $n_album_pages = wppa_get_npages( 'albums', $albums ); // Get the number of album pages
@@ -75,10 +83,7 @@ global $wppa_show_statistics; // Can be set to true by a custom page templa
75
  if ( $thumbs || $wanted_empty )
76
  if ( ! $wanted_empty || ! wppa_switch( 'thumbs_first' ) || wppa_get_curpage() == '1' )
77
  if ( ! $wanted_empty || wppa_switch( 'thumbs_first' ) || wppa_get_curpage() == $totpag ) {
78
-
79
- // Init
80
- $counter_thumbs = '0';
81
-
82
  // As covers
83
  if ( wppa_opt('wppa_thumbtype') == 'ascovers' ||
84
  wppa_opt('wppa_thumbtype') == 'ascovers-mcr' ) { // Do the thumbs As covers
@@ -106,7 +111,7 @@ global $wppa_show_statistics; // Can be set to true by a custom page templa
106
  // Init
107
  $relpage = wppa_switch( 'thumbs_first' ) ? $curpage : $curpage - $n_album_pages;
108
  $cont_width = wppa_get_container_width();
109
- $count_cols = ceil( $cont_width / ( wppa_opt( 'thumbsize' ) + wppa_opt( 'tn_margin' ) ) );
110
  $correction = wppa_opt( 'tn_margin' ) * ( $cont_width / $count_cols ) / 100;
111
 
112
  // Init the table
@@ -204,7 +209,7 @@ global $wppa_show_statistics; // Can be set to true by a custom page templa
204
  // Process the thumbnails
205
  $row_content = '';
206
  $row_width = 0;
207
- $target_row_height = wppa_opt( 'thumbsize' ) * 0.75 + $correction;
208
  $rw_count = 0;
209
  $tr_count = '1';
210
  $done_count = 0;
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the albums/photos/slideshow in a page or post
6
+ * Version 6.3.14
7
  */
8
  function wppa_theme() {
9
 
10
+ global $wppa_version; $wppa_version = '6-3-14-000'; // The version number of this file
11
  global $wppa;
12
  global $wppa_show_statistics; // Can be set to true by a custom page template
13
 
28
 
29
  if ( wppa_page( 'albums' ) ) { // Page 'Albums' requested
30
 
31
+ // Init for possible alt thumbsize on masonry
32
+ $counter_thumbs = '0';
33
+ $is_alt_thumbsize = false;
34
+ $alb_id = wppa( 'start_album' );
35
+ if ( wppa_is_int( $alb_id ) ) {
36
+ $is_alt_thumbsize = wppa_get_album_item( $alb_id, 'alt_thumbsize' ) == 'yes';
37
+ }
38
+
39
  // Get the albums and the thumbs and the number of pages for each set
40
  $albums = wppa_get_albums(); // Get the albums
41
  $n_album_pages = wppa_get_npages( 'albums', $albums ); // Get the number of album pages
83
  if ( $thumbs || $wanted_empty )
84
  if ( ! $wanted_empty || ! wppa_switch( 'thumbs_first' ) || wppa_get_curpage() == '1' )
85
  if ( ! $wanted_empty || wppa_switch( 'thumbs_first' ) || wppa_get_curpage() == $totpag ) {
86
+
 
 
 
87
  // As covers
88
  if ( wppa_opt('wppa_thumbtype') == 'ascovers' ||
89
  wppa_opt('wppa_thumbtype') == 'ascovers-mcr' ) { // Do the thumbs As covers
111
  // Init
112
  $relpage = wppa_switch( 'thumbs_first' ) ? $curpage : $curpage - $n_album_pages;
113
  $cont_width = wppa_get_container_width();
114
+ $count_cols = ceil( $cont_width / ( wppa_opt( $is_alt_thumbsize ? 'thumbsize_alt' : 'thumbsize' ) + wppa_opt( 'tn_margin' ) ) );
115
  $correction = wppa_opt( 'tn_margin' ) * ( $cont_width / $count_cols ) / 100;
116
 
117
  // Init the table
209
  // Process the thumbnails
210
  $row_content = '';
211
  $row_width = 0;
212
+ $target_row_height = wppa_opt( $is_alt_thumbsize ? 'thumbsize_alt' : 'thumbsize' ) * 0.75 + $correction;
213
  $rw_count = 0;
214
  $tr_count = '1';
215
  $done_count = 0;
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 6.3.12
6
  *
7
  */
8
 
@@ -1589,6 +1589,12 @@ global $wppa_session;
1589
  case 'wppa_lightbox_bordersize':
1590
  wppa_ajax_check_range( $value, false, '0', false, __( 'Lightbox Bordersize' , 'wp-photo-album-plus') );
1591
  break;
 
 
 
 
 
 
1592
  case 'wppa_comment_count':
1593
  wppa_ajax_check_range( $value, false, '2', '40', __( 'Number of Comment widget entries' , 'wp-photo-album-plus') );
1594
  break;
@@ -1663,6 +1669,19 @@ global $wppa_session;
1663
  case 'wppa_pagelinks_max':
1664
  wppa_ajax_check_range( $value, false, '0', false, __( 'Max Pagelinks' , 'wp-photo-album-plus') );
1665
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
1666
  case 'wppa_rating_clear':
1667
  $iret1 = $wpdb->query( 'TRUNCATE TABLE '.WPPA_RATING );
1668
  $iret2 = $wpdb->query( 'UPDATE '.WPPA_PHOTOS.' SET mean_rating="0", rating_count="0" WHERE id > -1' );
@@ -2240,7 +2259,7 @@ function wppa_ajax_check_range( $value, $fixed, $low, $high, $title ) {
2240
  if ( $low !== false && $value < $low ) wppa( 'error', true ); // Must be >= given min value
2241
  if ( $high !== false && $value > $high ) wppa( 'error' , true ); // Must be <= given max value
2242
 
2243
- if ( wppa( 'error' ) ) return; // Still no error, ok
2244
 
2245
  // Compose error message
2246
  if ( $low !== false && $high === false ) { // Only Minimum given
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 6.3.14
6
  *
7
  */
8
 
1589
  case 'wppa_lightbox_bordersize':
1590
  wppa_ajax_check_range( $value, false, '0', false, __( 'Lightbox Bordersize' , 'wp-photo-album-plus') );
1591
  break;
1592
+ case 'wppa_ovl_border_width':
1593
+ wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderwidth' , 'wp-photo-album-plus') );
1594
+ break;
1595
+ case 'wppa_ovl_border_radius':
1596
+ wppa_ajax_check_range( $value, false, '0', '16', __( 'Lightbox Borderradius' , 'wp-photo-album-plus') );
1597
+ break;
1598
  case 'wppa_comment_count':
1599
  wppa_ajax_check_range( $value, false, '2', '40', __( 'Number of Comment widget entries' , 'wp-photo-album-plus') );
1600
  break;
1669
  case 'wppa_pagelinks_max':
1670
  wppa_ajax_check_range( $value, false, '0', false, __( 'Max Pagelinks' , 'wp-photo-album-plus') );
1671
  break;
1672
+ case 'wppa_start_pause_symbol_size':
1673
+ wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol size', 'wp-photo-album-plus') );
1674
+ break;
1675
+ case 'wppa_start_pause_symbol_bradius':
1676
+ wppa_ajax_check_range( $value, false, '0', false, __('Start/pause symbol border radius', 'wp-photo-album-plus') );
1677
+ break;
1678
+ case 'wppa_stop_symbol_size':
1679
+ wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol size', 'wp-photo-album-plus') );
1680
+ break;
1681
+ case 'wppa_stop_symbol_bradius':
1682
+ wppa_ajax_check_range( $value, false, '0', false, __('Stop symbol border radius', 'wp-photo-album-plus') );
1683
+ break;
1684
+
1685
  case 'wppa_rating_clear':
1686
  $iret1 = $wpdb->query( 'TRUNCATE TABLE '.WPPA_RATING );
1687
  $iret2 = $wpdb->query( 'UPDATE '.WPPA_PHOTOS.' SET mean_rating="0", rating_count="0" WHERE id > -1' );
2259
  if ( $low !== false && $value < $low ) wppa( 'error', true ); // Must be >= given min value
2260
  if ( $high !== false && $value > $high ) wppa( 'error' , true ); // Must be <= given max value
2261
 
2262
+ if ( ! wppa( 'error' ) ) return; // Still no error, ok
2263
 
2264
  // Compose error message
2265
  if ( $low !== false && $high === false ) { // Only Minimum given
wppa-album-navigator-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * display album names linking to content
6
- * Version 6.3.11
7
  */
8
 
9
  class AlbumNavigatorWidget extends WP_Widget {
@@ -26,7 +26,7 @@ class AlbumNavigatorWidget extends WP_Widget {
26
  wppa_initialize_runtime();
27
 
28
  wppa( 'in_widget', 'albnav' );
29
- wppa_bumb_mocc();
30
 
31
  extract( $args );
32
 
@@ -187,7 +187,7 @@ class AlbumNavigatorWidget extends WP_Widget {
187
 
188
  } // class AlbumNavigatorWidget
189
  // register AlbumNavigatorWidget widget
190
- add_action('widgets_init', 'wppa_register_AlbumWidget' );
191
 
192
  function wppa_register_AlbumNavigatorWidget() {
193
  register_widget("AlbumNavigatorWidget");
3
  * Package: wp-photo-album-plus
4
  *
5
  * display album names linking to content
6
+ * Version 6.3.14
7
  */
8
 
9
  class AlbumNavigatorWidget extends WP_Widget {
26
  wppa_initialize_runtime();
27
 
28
  wppa( 'in_widget', 'albnav' );
29
+ wppa_bump_mocc();
30
 
31
  extract( $args );
32
 
187
 
188
  } // class AlbumNavigatorWidget
189
  // register AlbumNavigatorWidget widget
190
+ add_action('widgets_init', 'wppa_register_AlbumNavigatorWidget' );
191
 
192
  function wppa_register_AlbumNavigatorWidget() {
193
  register_widget("AlbumNavigatorWidget");
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 6.3.13
7
  *
8
  *
9
  */
@@ -1236,7 +1236,7 @@ global $wppa_locale;
1236
  ' >' .
1237
  '<img' .
1238
  ' src="' . wppa_get_imgdir() . 'twitter.png"' .
1239
- ' style="height:' . $s . 'px;"' .
1240
  ' alt="' . esc_attr( __( 'Share on Twitter' , 'wp-photo-album-plus') ) . '"' .
1241
  ' />' .
1242
  '</a>' .
@@ -1257,7 +1257,7 @@ global $wppa_locale;
1257
  ' >' .
1258
  '<img' .
1259
  ' src="' . wppa_get_imgdir() . 'google.png"' .
1260
- ' style="height:' . $s . 'px;"' .
1261
  ' alt="' . esc_attr( __( 'Share on Google+' , 'wp-photo-album-plus') ) . '"' .
1262
  ' />' .
1263
  '</a>' .
@@ -1281,7 +1281,7 @@ global $wppa_locale;
1281
  ' target="_blank"' .
1282
  ' >' .
1283
  '<img' .
1284
- ' src="' . wppa_get_imgdir() . 'pinterest.png" style="height:' . $s . 'px;"' .
1285
  ' alt="' . esc_attr( __( 'Share on Pinterest' , 'wp-photo-album-plus') ) . '"' .
1286
  ' />' .
1287
  '</a>' .
@@ -1788,11 +1788,12 @@ static $seqno;
1788
  $small = ( wppa_in_widget() == 'upload' || $mcr );
1789
 
1790
  // Ajax upload?
1791
- $ajax_upload = wppa_switch( 'ajax_upload' ) &&
1792
- wppa_browser_can_html5() &&
 
1793
  // WINDOWS 10 / Edge bug
1794
- ! strpos( $_SERVER["HTTP_USER_AGENT"], 'Edge' ) &&
1795
- ! strpos( $_SERVER["HTTP_USER_AGENT"], 'Windows NT 10.0' );
1796
 
1797
  // Create the return url
1798
  if ( $ajax_upload ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 6.3.14
7
  *
8
  *
9
  */
1236
  ' >' .
1237
  '<img' .
1238
  ' src="' . wppa_get_imgdir() . 'twitter.png"' .
1239
+ ' style="height:' . $s . 'px;vertical-align:top;"' .
1240
  ' alt="' . esc_attr( __( 'Share on Twitter' , 'wp-photo-album-plus') ) . '"' .
1241
  ' />' .
1242
  '</a>' .
1257
  ' >' .
1258
  '<img' .
1259
  ' src="' . wppa_get_imgdir() . 'google.png"' .
1260
+ ' style="height:' . $s . 'px;vertical-align:top;"' .
1261
  ' alt="' . esc_attr( __( 'Share on Google+' , 'wp-photo-album-plus') ) . '"' .
1262
  ' />' .
1263
  '</a>' .
1281
  ' target="_blank"' .
1282
  ' >' .
1283
  '<img' .
1284
+ ' src="' . wppa_get_imgdir() . 'pinterest.png" style="height:' . $s . 'px;vertical-align:top;"' .
1285
  ' alt="' . esc_attr( __( 'Share on Pinterest' , 'wp-photo-album-plus') ) . '"' .
1286
  ' />' .
1287
  '</a>' .
1788
  $small = ( wppa_in_widget() == 'upload' || $mcr );
1789
 
1790
  // Ajax upload?
1791
+ $ajax_upload = wppa_switch( 'ajax_upload' ) && wppa_browser_can_html5();
1792
+
1793
+ // &&
1794
  // WINDOWS 10 / Edge bug
1795
+ // ! strpos( $_SERVER["HTTP_USER_AGENT"], 'Edge' ) &&
1796
+ // ! strpos( $_SERVER["HTTP_USER_AGENT"], 'Windows NT 10.0' );
1797
 
1798
  // Create the return url
1799
  if ( $ajax_upload ) {
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.3.12
6
  *
7
  */
8
 
@@ -335,12 +335,16 @@ function wppa_errorlog() {
335
  }
336
 
337
  // get the url to the plugins image directory
338
- function wppa_get_imgdir( $file = '' ) {
339
 
340
  $result = WPPA_URL.'/images/';
341
  if ( is_ssl() ) $result = str_replace( 'http://', 'https://', $result );
342
  $result .= $file;
343
 
 
 
 
 
344
  return $result;
345
  }
346
 
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 6.3.14
6
  *
7
  */
8
 
335
  }
336
 
337
  // get the url to the plugins image directory
338
+ function wppa_get_imgdir( $file = '', $rel = false ) {
339
 
340
  $result = WPPA_URL.'/images/';
341
  if ( is_ssl() ) $result = str_replace( 'http://', 'https://', $result );
342
  $result .= $file;
343
 
344
+ // Can not use wppa_opt(). $wppa_opt is not initialized when called from wppa_set_defaults
345
+ if ( get_option( 'wppa_relative_urls' ) == 'yes' || $rel ) {
346
+ $result = str_replace( site_url(), '', $result );
347
+ }
348
  return $result;
349
  }
350
 
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various funcions
6
- * Version 6.3.12
7
  *
8
  */
9
 
@@ -668,7 +668,7 @@ global $wppa_session;
668
  }
669
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
670
  global $wppa_version;
671
- $expected_version = '6-2-7-000';
672
  if ( $wppa_version != $expected_version ) {
673
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
674
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various funcions
6
+ * Version 6.3.14
7
  *
8
  */
9
 
668
  }
669
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
670
  global $wppa_version;
671
+ $expected_version = '6-3-14-000';
672
  if ( $wppa_version != $expected_version ) {
673
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
674
  }
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.3.11
7
  *
8
  */
9
 
@@ -301,60 +301,125 @@ function wppa_load_footer() {
301
  global $wpdb;
302
  global $wppa_session;
303
 
 
 
 
 
 
304
  if ( wppa_opt( 'lightbox_name' ) == 'wppa' ) {
305
  $fontsize_lightbox = wppa_opt( 'fontsize_lightbox' ) ? wppa_opt( 'fontsize_lightbox' ) : '10';
306
  $d = wppa_switch('wppa_ovl_show_counter') ? 1 : 0;
307
  $ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
308
  $txtcol = wppa_opt( 'ovl_theme' ) == 'black' ? '#a7a7a7' : '#272727';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  echo '
310
- <!-- start WPPA+ Footer data -->
311
- <div id="wppa-overlay-bg" style="text-align:center; display:none; position:fixed; top:0; left:0; z-index:100090; width:100%; height:2048px; background-color:'.wppa_opt( 'ovl_bgcolor' ).';" onclick="wppaOvlOnclick(event)" >';
312
- if ( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ) {
 
 
 
 
 
313
  echo '
314
- <div id="wppa-ovl-legenda-1" onmouseover="jQuery(this).css(\'visibility\',\'visible\');" onmouseout="jQuery(this).css(\'visibility\',\'hidden\');" style="position:absolute; left:0; top:0; background-color:'.wppa_opt( 'ovl_theme' ).';color:'.$txtcol.'; visibility:visible;" >
315
- '.__( 'Press f for fullscreen.' , 'wp-photo-album-plus').'
316
- </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  }
318
- echo '
319
- <img' .
320
- ' id="wppa-fulls-btn"' .
321
- ' src="'.wppa_get_imgdir().'fulls.png"' .
322
- ' style="height:32px;z-index:100091;position:fixed;top:0;right:0;"' .
323
- ' onclick="wppaOvlFull()"' .
324
- ' ontouchstart="wppaOvlFull()"' .
325
- ' onmouseover="jQuery(this).fadeTo(600,1);"' .
326
- ' onmouseout="jQuery(this).fadeTo(600,0);"' .
327
- ' >';
328
- echo '
329
- </div>
330
- <div id="wppa-overlay-ic" style="position:fixed; top:0; padding-top:10px; z-index:100095; opacity:1; box-shadow:none;" >
331
- </div>
332
- <img id="wppa-overlay-sp" alt="spinner" style="position:fixed; top:200px; left:200px; z-index:100100; opacity:1; visibility:hidden; box-shadow:none;" src="'.wppa_get_imgdir().'loading.gif" />
333
- <script type="text/javascript">jQuery("#wppa-overlay-bg").css({height:window.innerHeight});
334
- wppaOvlTxtHeight = "'.$ovlh.'";
335
- wppaOvlCloseTxt = "'.__(wppa_opt( 'ovl_close_txt' ), 'wp-photo-album-plus').'";
336
- wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).';
337
- wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'";
338
- wppaOvlTheme = "'.wppa_opt( 'ovl_theme' ).'";
339
- wppaOvlAnimSpeed = '.wppa_opt( 'ovl_anim' ).';
340
- wppaOvlSlideSpeed = '.wppa_opt( 'ovl_slide' ).';
341
- wppaVer4WindowWidth = 800;
342
- wppaVer4WindowHeight = 600;
343
- wppaOvlShowCounter = '.( wppa_switch('wppa_ovl_show_counter') ? 'true' : 'false' ).';
344
- '.( wppa_opt( 'fontfamily_lightbox' ) ? 'wppaOvlFontFamily = "'.wppa_opt( 'fontfamily_lightbox' ).'"' : '').'
345
- wppaOvlFontSize = "'.$fontsize_lightbox.'";
346
- '.( wppa_opt( 'fontcolor_lightbox' ) ? 'wppaOvlFontColor = "'.wppa_opt( 'fontcolor_lightbox' ).'"' : '').'
347
- '.( wppa_opt( 'fontweight_lightbox' ) ? 'wppaOvlFontWeight = "'.wppa_opt( 'fontweight_lightbox' ).'"' : '').'
348
- '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'"' : '').'
349
- wppaOvlFullLegenda = "'.__('Keys: f = next mode; escape = exit; p = previous, n = next, s = start/stop, d = dismiss this notice.', 'wp-photo-album-plus').'";
350
- wppaOvlFullLegendaSingle = "'.__('Keys: f = next mode; escape = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
351
- wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
352
- wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
353
- wppaOvlShowLegenda = '.( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ? 'true' : 'false' ).';
354
- wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).';
355
- </script>
356
- ';
357
-
358
  echo '
359
  <script type="text/javascript">';
360
  if ( isset( $wppa_session['photo'] ) ) {
@@ -367,10 +432,11 @@ global $wppa_session;
367
  </script>
368
  <!-- end WPPA+ Footer data -->
369
  ';
370
- }
371
 
372
- // Debugging
373
  wppa_dbg_q('print');
 
 
374
  if ( wppa( 'debug' ) ) {
375
  $plugins = get_option('active_plugins');
376
  wppa_dbg_msg('Active Plugins');
@@ -494,7 +560,7 @@ global $wppa_dynamic_css_data;
494
  if ( strstr($_SERVER["HTTP_USER_AGENT"], 'Chrome') && wppa_switch('wppa_ovl_chrome_at_top') ) echo '
495
  <style type="text/css">
496
  #wppa-overlay-ic { padding-top: 5px !important; }
497
- #wppa-overlay-qt-txt, #wppa-overlay-qt-img { top: 5px !important; }
498
  </style>';
499
  }
500
 
@@ -663,7 +729,19 @@ global $wppa_init_js_data;
663
  wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
664
  wppaAudioHeight = '.wppa_get_audio_control_height().';
665
  wppaRel = "'.( wppa_opt( 'lightbox_name' ) == 'wppa' ? 'data-rel' : 'rel' ).'";
666
- wppaSsIconType = "' . wppa_opt( 'start_stop_icons_type' ) . '";
 
 
 
 
 
 
 
 
 
 
 
 
667
  ';
668
 
669
  // Open file
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 6.3.14
7
  *
8
  */
9
 
301
  global $wpdb;
302
  global $wppa_session;
303
 
304
+ echo '
305
+ <!-- start WPPA+ Footer data -->
306
+ ';
307
+
308
+ // Do they use our lightbox?
309
  if ( wppa_opt( 'lightbox_name' ) == 'wppa' ) {
310
  $fontsize_lightbox = wppa_opt( 'fontsize_lightbox' ) ? wppa_opt( 'fontsize_lightbox' ) : '10';
311
  $d = wppa_switch('wppa_ovl_show_counter') ? 1 : 0;
312
  $ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
313
  $txtcol = wppa_opt( 'ovl_theme' ) == 'black' ? '#a7a7a7' : '#272727';
314
+
315
+ // The lightbox overlay background
316
+ echo
317
+ '<div' .
318
+ ' id="wppa-overlay-bg"' .
319
+ ' style="' .
320
+ 'text-align:center;' .
321
+ 'display:none;' .
322
+ 'position:fixed;' .
323
+ 'top:0;' .
324
+ 'left:0;' .
325
+ 'z-index:100090;' .
326
+ 'width:100%;' .
327
+ 'height:2048px;' .
328
+ 'background-color:'.wppa_opt( 'ovl_bgcolor' ).';' .
329
+ '"' .
330
+ ' onclick="wppaOvlOnclick(event)"' .
331
+ ' >';
332
+
333
+ // Display legenda
334
+ if ( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ) {
335
+ echo
336
+ '<div' .
337
+ ' id="wppa-ovl-legenda-1"' .
338
+ ' onmouseover="jQuery(this).css(\'visibility\',\'visible\');"' .
339
+ ' onmouseout="jQuery(this).css(\'visibility\',\'hidden\');"' .
340
+ ' style="' .
341
+ 'position:absolute;' .
342
+ 'left:0;' .
343
+ 'top:0;' .
344
+ 'background-color:'.wppa_opt( 'ovl_theme' ).';' .
345
+ 'color:'.$txtcol.';' .
346
+ 'visibility:visible;' .
347
+ '"' .
348
+ ' >
349
+ '.__( 'Press f for fullscreen.' , 'wp-photo-album-plus').'
350
+ </div>';
351
+ }
352
+
353
+ // The fullscreen button
354
+ echo
355
+ '<img' .
356
+ ' id="wppa-fulls-btn"' .
357
+ ' src="'.wppa_get_imgdir('fulls.png').'"' .
358
+ ' style="height:32px;z-index:100091;position:fixed;top:0;right:0;"' .
359
+ ' onclick="wppaOvlFull()"' .
360
+ ' ontouchstart="wppaOvlFull()"' .
361
+ ' onmouseover="jQuery(this).fadeTo(600,1);"' .
362
+ ' onmouseout="jQuery(this).fadeTo(600,0);"' .
363
+ ' />';
364
+
365
+ // Close lightbox overlay background
366
+ echo
367
+ '</div>';
368
+
369
+ // The Lightbox Image container
370
+ echo
371
+ '<div'.
372
+ ' id="wppa-overlay-ic"'.
373
+ ' style="' .
374
+ 'position:fixed;' .
375
+ 'top:50%;' .
376
+ 'left:50%;' .
377
+ 'z-index:100095;' .
378
+ 'opacity:1;' .
379
+ 'box-shadow:none;' .
380
+ 'box-sizing:content-box;' .
381
+ '"' .
382
+ ' >' .
383
+ '</div>';
384
+
385
+ // The Spinner image
386
  echo '
387
+ <img' .
388
+ ' id="wppa-overlay-sp"' .
389
+ ' alt="spinner"' .
390
+ ' style="position:fixed; top:200px; left:200px; z-index:100100; opacity:1; visibility:hidden; box-shadow:none;"' .
391
+ ' src="'.wppa_get_imgdir().'loading.gif"' .
392
+ ' />';
393
+
394
+ // The init vars
395
  echo '
396
+ <script type="text/javascript">
397
+ jQuery("#wppa-overlay-bg").css({height:window.innerHeight});
398
+ wppaOvlTxtHeight = "'.$ovlh.'";
399
+ wppaOvlOpacity = '.(wppa_opt( 'ovl_opacity' )/100).';
400
+ wppaOvlOnclickType = "'.wppa_opt( 'ovl_onclick' ).'";
401
+ wppaOvlTheme = "'.wppa_opt( 'ovl_theme' ).'";
402
+ wppaOvlAnimSpeed = '.wppa_opt( 'ovl_anim' ).';
403
+ wppaOvlSlideSpeed = '.wppa_opt( 'ovl_slide' ).';
404
+ wppaVer4WindowWidth = 800;
405
+ wppaVer4WindowHeight = 600;
406
+ wppaOvlShowCounter = '.( wppa_switch('wppa_ovl_show_counter') ? 'true' : 'false' ).';
407
+ '.( wppa_opt( 'fontfamily_lightbox' ) ? 'wppaOvlFontFamily = "'.wppa_opt( 'fontfamily_lightbox' ).'"' : '').'
408
+ wppaOvlFontSize = "'.$fontsize_lightbox.'";
409
+ '.( wppa_opt( 'fontcolor_lightbox' ) ? 'wppaOvlFontColor = "'.wppa_opt( 'fontcolor_lightbox' ).'"' : '').'
410
+ '.( wppa_opt( 'fontweight_lightbox' ) ? 'wppaOvlFontWeight = "'.wppa_opt( 'fontweight_lightbox' ).'"' : '').'
411
+ '.( wppa_opt( 'fontsize_lightbox' ) ? 'wppaOvlLineHeight = "'.(wppa_opt( 'fontsize_lightbox' ) + '2').'"' : '').'
412
+ wppaOvlFullLegenda = "'.__('Keys: f = next mode; escape = exit; p = previous, n = next, s = start/stop, d = dismiss this notice.', 'wp-photo-album-plus').'";
413
+ wppaOvlFullLegendaSingle = "'.__('Keys: f = next mode; escape = exit; d = dismiss this notice.', 'wp-photo-album-plus').'";
414
+ wppaOvlVideoStart = '.( wppa_switch( 'ovl_video_start' ) ? 'true' : 'false' ).';
415
+ wppaOvlAudioStart = '.( wppa_switch( 'ovl_audio_start' ) ? 'true' : 'false' ).';
416
+ wppaOvlShowLegenda = '.( wppa_switch( 'ovl_show_legenda' ) && ! wppa( 'is_mobile' ) ? 'true' : 'false' ).';
417
+ wppaOvlShowStartStop = '.( wppa_switch( 'ovl_show_startstop' ) ? 'true' : 'false' ).';
418
+ </script>
419
+ ';
420
  }
421
+
422
+ // The photo views cache
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  echo '
424
  <script type="text/javascript">';
425
  if ( isset( $wppa_session['photo'] ) ) {
432
  </script>
433
  <!-- end WPPA+ Footer data -->
434
  ';
 
435
 
436
+ // Debugging, show queries
437
  wppa_dbg_q('print');
438
+
439
+ // Debugging, show active plugins
440
  if ( wppa( 'debug' ) ) {
441
  $plugins = get_option('active_plugins');
442
  wppa_dbg_msg('Active Plugins');
560
  if ( strstr($_SERVER["HTTP_USER_AGENT"], 'Chrome') && wppa_switch('wppa_ovl_chrome_at_top') ) echo '
561
  <style type="text/css">
562
  #wppa-overlay-ic { padding-top: 5px !important; }
563
+ #wppa-overlay-qt-img { top: 5px !important; }
564
  </style>';
565
  }
566
 
729
  wppaSlideAudioStart = '.( wppa_switch( 'start_slide_audio' ) ? 'true' : 'false' ).';
730
  wppaAudioHeight = '.wppa_get_audio_control_height().';
731
  wppaRel = "'.( wppa_opt( 'lightbox_name' ) == 'wppa' ? 'data-rel' : 'rel' ).'";
732
+ wppaStartSymbolUrl = "' . wppa_opt('start_symbol_url') . '";
733
+ wppaPauseSymbolUrl = "' . wppa_opt('pause_symbol_url') . '";
734
+ wppaStopSymbolUrl = "' . wppa_opt('stop_symbol_url') . '";
735
+ wppaStartPauseSymbolSize = "' . wppa_opt('start_pause_symbol_size') . '";
736
+ wppaStartPauseSymbolBradius = "' . wppa_opt('start_pause_symbol_bradius') . '";
737
+ wppaStopSymbolSize = "' . wppa_opt('stop_symbol_size') . '";
738
+ wppaStopSumbolBradius = "' . wppa_opt('stop_symbol_bradius') . '";
739
+ wppaOvlRadius = '.wppa_opt( 'ovl_border_radius' ).';
740
+ wppaOvlBorderWidth = '.wppa_opt( 'ovl_border_width' ).';
741
+ wppaOvlLeftSymbolUrl = "'.(wppa_opt('left_symbol_url') ? wppa_opt('left_symbol_url') : wppa_get_imgdir( 'prev-'.wppa_opt('ovl_theme').'.gif', true )).'";
742
+ wppaOvlRightSymbolUrl = "'.(wppa_opt('right_symbol_url') ? wppa_opt('right_symbol_url') : wppa_get_imgdir( 'next-'.wppa_opt('ovl_theme').'.gif', true )).'";
743
+ wppaLeftRightSymbolSize = '.wppa_opt('left_right_symbol_size').';
744
+ wppaLeftRightSymbolBradius = '.wppa_opt('left_right_symbol_bradius').';
745
  ';
746
 
747
  // Open file
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 6.3.13
7
  *
8
  */
9
 
@@ -1306,6 +1306,25 @@ global $wppa_tags;
1306
  $tags = 'lightbox,size,layout';
1307
  wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
1308
  echo '<script>'.$onchange.'</script>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1309
  }
1310
  wppa_setting_subheader( 'H', '1', __( 'Video related size settings' , 'wp-photo-album-plus') );
1311
  {
@@ -1662,28 +1681,28 @@ global $wppa_tags;
1662
  $name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
1663
  $desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
1664
  $help = esc_js(__('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus'));
1665
- $slug1 = 'wppa_show_ubb';
1666
- $slug2 = 'wppa_ubb_color';
1667
- $html1 = wppa_checkbox($slug1);
1668
- $opts = array( __('Black', 'wp-photo-album-plus'), __('Light gray', 'wp-photo-album-plus') );
1669
- $vals = array( '', 'c');
1670
- $html2 = wppa_select($slug2, $opts, $vals);
1671
  $clas = '';
1672
  $tags = 'slide,navi';
1673
- wppa_setting($slug1, '13.1', $name, $desc, $html1.$html2, $help, $clas, $tags);
1674
 
1675
  $name = __('Start/stop icons', 'wp-photo-album-plus');
1676
  $desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
1677
  $help = '';
1678
- $slug1 = 'wppa_show_start_stop_icons';
1679
- $slug2 = 'wppa_start_stop_icons_type';
1680
- $html1 = wppa_checkbox($slug1);
1681
- $opts = array( __('Black square', 'wp-photo-album-plus'), __('Blue square', 'wp-photo-album-plus'), __('Black round', 'wp-photo-album-plus') );
1682
- $vals = array( '.jpg', 'b.jpg', 'r.png' );
1683
- $html2 = wppa_select($slug2, $opts, $vals);
1684
  $clas = '';
1685
  $tags = 'slide,navi';
1686
- wppa_setting($slug1, '13.2', $name, $desc, $html1.$html2, $help, $clas, $tags);
1687
 
1688
  $name = __('Show custom box', 'wp-photo-album-plus');
1689
  $desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
@@ -2223,6 +2242,7 @@ global $wppa_tags;
2223
  }
2224
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
2225
  {
 
2226
  $name = __('Overlay Close label text', 'wp-photo-album-plus');
2227
  $desc = __('The text label for the cross exit symbol.', 'wp-photo-album-plus');
2228
  $help = __('This text may be multilingual according to the qTranslate short tags specs.', 'wp-photo-album-plus');
@@ -2231,6 +2251,7 @@ global $wppa_tags;
2231
  $clas = '';
2232
  $tags = 'lightbox,layout';
2233
  wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
 
2234
 
2235
  $name = __('Overlay theme color', 'wp-photo-album-plus');
2236
  $desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
@@ -2707,22 +2728,122 @@ global $wppa_tags;
2707
  $tags = 'meta';
2708
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
2709
 
2710
- for ( $i = '0'; $i < '10'; $i++ ) {
2711
- $name = sprintf(__('Name and visibility %s', 'wp-photo-album-plus'), $i);
2712
- $desc = sprintf(__('The caption for field %s and visibility at frontend.', 'wp-photo-album-plus'), $i);
2713
- $help = esc_js(sprintf(__('If you check the box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
2714
- $slug1 = 'wppa_custom_caption_'.$i;
2715
- $html1 = wppa_input($slug1, '300px');
2716
- $slug2 = 'wppa_custom_visible_'.$i;
2717
- $html2 = wppa_checkbox($slug2);
2718
- $clas = 'custfields';
2719
- $tags = 'meta';
2720
- wppa_setting(array($slug1,$slug2), '10.'.$i.'a,b', $name, $desc, $html1.$html2, $help, $clas, $tags);
 
2721
  }
 
 
 
 
 
 
 
 
 
 
2722
 
 
 
 
 
 
 
 
 
2723
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2724
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2725
  }
 
2726
  ?>
2727
  </tbody>
2728
  <tfoot style="font-weight: bold;" class="wppa_table_2">
@@ -8732,7 +8853,7 @@ global $wppa_tags;
8732
  return $tagcls;
8733
  }
8734
 
8735
- function wppa_input($slug, $width, $minwidth = '', $text = '', $onchange = '') {
8736
  global $wppa_opt;
8737
 
8738
  $tit = __('Slug =', 'wp-photo-album-plus').' '.$slug;
@@ -8743,6 +8864,7 @@ global $wppa_opt;
8743
  $html .= ' font-size: 11px; margin: 0px; padding: 0px;" type="text" id="'.$slug.'"';
8744
  if ($onchange != '') $html .= ' onchange="'.$onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
8745
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
 
8746
  $html .= ' value="'.$val.'" />';
8747
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.png" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
8748
  $html .= '<span style="float:left">'.$text.'</span>';
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 6.3.14
7
  *
8
  */
9
 
1306
  $tags = 'lightbox,size,layout';
1307
  wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
1308
  echo '<script>'.$onchange.'</script>';
1309
+
1310
+ $name = __('Border width', 'wp-photo-album-plus');
1311
+ $desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
1312
+ $help = '';
1313
+ $slug = 'wppa_ovl_border_width';
1314
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
1315
+ $clas = '';
1316
+ $tags = 'size,lightbox,layout';
1317
+ wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
1318
+
1319
+ $name = __('Border radius', 'wp-photo-album-plus');
1320
+ $desc = __('Border radius for lightbox display.', 'wp-photo-album-plus');
1321
+ $help = '';
1322
+ $slug = 'wppa_ovl_border_radius';
1323
+ $html = wppa_input($slug, '40px', '', __('pixels', 'wp-photo-album-plus'));
1324
+ $clas = '';
1325
+ $tags = 'size,lightbox,layout';
1326
+ wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
1327
+
1328
  }
1329
  wppa_setting_subheader( 'H', '1', __( 'Video related size settings' , 'wp-photo-album-plus') );
1330
  {
1681
  $name = __('Ugly Browse Buttons', 'wp-photo-album-plus');
1682
  $desc = __('Enable the ugly browsing buttons.', 'wp-photo-album-plus');
1683
  $help = esc_js(__('If checked, the fullsize image is covered by two browse buttons.', 'wp-photo-album-plus'));
1684
+ $slug = 'wppa_show_ubb';
1685
+ // $slug2 = 'wppa_ubb_color';
1686
+ $html = wppa_checkbox($slug);
1687
+ // $opts = array( __('Black', 'wp-photo-album-plus'), __('Light gray', 'wp-photo-album-plus') );
1688
+ // $vals = array( '', 'c');
1689
+ // $html2 = wppa_select($slug2, $opts, $vals);
1690
  $clas = '';
1691
  $tags = 'slide,navi';
1692
+ wppa_setting($slug, '13.1', $name, $desc, $html, $help, $clas, $tags);
1693
 
1694
  $name = __('Start/stop icons', 'wp-photo-album-plus');
1695
  $desc = __('Show start and stop icons at the center of the slide', 'wp-photo-album-plus');
1696
  $help = '';
1697
+ $slug = 'wppa_show_start_stop_icons';
1698
+ // $slug2 = 'wppa_start_stop_icons_type';
1699
+ $html = wppa_checkbox($slug);
1700
+ // $opts = array( __('Black square', 'wp-photo-album-plus'), __('Blue square', 'wp-photo-album-plus'), __('Black round', 'wp-photo-album-plus') );
1701
+ // $vals = array( '.jpg', 'b.jpg', 'r.png' );
1702
+ // $html2 = wppa_select($slug2, $opts, $vals);
1703
  $clas = '';
1704
  $tags = 'slide,navi';
1705
+ wppa_setting($slug, '13.2', $name, $desc, $html, $help, $clas, $tags);
1706
 
1707
  $name = __('Show custom box', 'wp-photo-album-plus');
1708
  $desc = __('Display the custom box in the slideshow', 'wp-photo-album-plus');
2242
  }
2243
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
2244
  {
2245
+ /*
2246
  $name = __('Overlay Close label text', 'wp-photo-album-plus');
2247
  $desc = __('The text label for the cross exit symbol.', 'wp-photo-album-plus');
2248
  $help = __('This text may be multilingual according to the qTranslate short tags specs.', 'wp-photo-album-plus');
2251
  $clas = '';
2252
  $tags = 'lightbox,layout';
2253
  wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
2254
+ */
2255
 
2256
  $name = __('Overlay theme color', 'wp-photo-album-plus');
2257
  $desc = __('The color of the image border and text background.', 'wp-photo-album-plus');
2728
  $tags = 'meta';
2729
  wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
2730
 
2731
+ for ( $i = '0'; $i < '10'; $i++ ) {
2732
+ $name = sprintf(__('Name and visibility %s', 'wp-photo-album-plus'), $i);
2733
+ $desc = sprintf(__('The caption for field %s and visibility at frontend.', 'wp-photo-album-plus'), $i);
2734
+ $help = esc_js(sprintf(__('If you check the box, the value of this field is displayable in photo descriptions at the frontend with keyword w#c%s', 'wp-photo-album-plus'), $i));
2735
+ $slug1 = 'wppa_custom_caption_'.$i;
2736
+ $html1 = wppa_input($slug1, '300px');
2737
+ $slug2 = 'wppa_custom_visible_'.$i;
2738
+ $html2 = wppa_checkbox($slug2);
2739
+ $clas = 'custfields';
2740
+ $tags = 'meta';
2741
+ wppa_setting(array($slug1,$slug2), '10.'.$i.'a,b', $name, $desc, $html1.$html2, $help, $clas, $tags);
2742
+ }
2743
  }
2744
+ wppa_setting_subheader( 'K', '1', __( 'Navigation symbols for slideshows and lighbox' , 'wp-photo-album-plus') );
2745
+ {
2746
+ $name = __('Start symbol url', 'wp-photo-album-plus');
2747
+ $desc = __('Supply the url of an image for the start symbol', 'wp-photo-album-plus');
2748
+ $help = ' ';
2749
+ $slug = 'wppa_start_symbol_url';
2750
+ $html = wppa_input($slug, '350px');
2751
+ $clas = '';
2752
+ $tags = 'slide,lightbox,layout';
2753
+ wppa_setting($slug, '1', $name, $desc, $html, $help, $clas, $tags);
2754
 
2755
+ $name = __('Pause symbol url', 'wp-photo-album-plus');
2756
+ $desc = __('Supply the url of an image for the pause symbol', 'wp-photo-album-plus');
2757
+ $help = ' ';
2758
+ $slug = 'wppa_pause_symbol_url';
2759
+ $html = wppa_input($slug, '350px');
2760
+ $clas = '';
2761
+ $tags = 'slide,lightbox,layout';
2762
+ wppa_setting($slug, '2', $name, $desc, $html, $help, $clas, $tags);
2763
 
2764
+ $name = __('Stop symbol url', 'wp-photo-album-plus');
2765
+ $desc = __('Supply the url of an image for the stop symbol', 'wp-photo-album-plus');
2766
+ $help = ' ';
2767
+ $slug = 'wppa_stop_symbol_url';
2768
+ $html = wppa_input($slug, '350px');
2769
+ $clas = '';
2770
+ $tags = 'slide,lightbox,layout';
2771
+ wppa_setting($slug, '3', $name, $desc, $html, $help, $clas, $tags);
2772
+
2773
+ $name = __('Left (prev) symbol url', 'wp-photo-album-plus');
2774
+ $desc = __('Supply the url of an image for the left symbol, if not default', 'wp-photo-album-plus');
2775
+ $help = '';
2776
+ $slug = 'wppa_left_symbol_url';
2777
+ $html = wppa_input($slug, '350px', '', '', '', wppa_get_imgdir( 'prev-'.wppa_opt('ovl_theme').'.gif', true ));
2778
+ $clas = '';
2779
+ $tags = 'slide,lightbox,layout';
2780
+ wppa_setting($slug, '4', $name, $desc, $html, $help, $clas, $tags);
2781
+
2782
+ $name = __('Right (next) symbol url', 'wp-photo-album-plus');
2783
+ $desc = __('Supply the url of an image for the right symbol, if not default', 'wp-photo-album-plus');
2784
+ $help = '';
2785
+ $slug = 'wppa_left_symbol_url';
2786
+ $html = wppa_input($slug, '350px', '', '', '', wppa_get_imgdir( 'next-'.wppa_opt('ovl_theme').'.gif', true ));
2787
+ $clas = '';
2788
+ $tags = 'slide,lightbox,layout';
2789
+ wppa_setting($slug, '5', $name, $desc, $html, $help, $clas, $tags);
2790
 
2791
+ $name = __('Start/pause symbol size', 'wp-photo-album-plus');
2792
+ $desc = __('The size of the start/pause symbols.', 'wp-photo-album-plus');
2793
+ $help = '';
2794
+ $slug = 'wppa_start_pause_symbol_size';
2795
+ $html = wppa_input($slug, '30px');
2796
+ $clas = '';
2797
+ $tags = 'slide,lightbox,layout';
2798
+ wppa_setting($slug, '6', $name, $desc, $html, $help, $clas, $tags);
2799
+
2800
+ $name = __('Start/pause symbol border radius', 'wp-photo-album-plus');
2801
+ $desc = __('The border radius if the symbol is round', 'wp-photo-album-plus');
2802
+ $help = '';
2803
+ $slug = 'wppa_start_pause_symbol_bradius';
2804
+ $html = wppa_input($slug, '30px');
2805
+ $clas = '';
2806
+ $tags = 'slide,lightbox,layout';
2807
+ wppa_setting($slug, '7', $name, $desc, $html, $help, $clas, $tags);
2808
+
2809
+ $name = __('Stop symbol size', 'wp-photo-album-plus');
2810
+ $desc = __('The size of the stop symbols.', 'wp-photo-album-plus');
2811
+ $help = '';
2812
+ $slug = 'wppa_stop_symbol_size';
2813
+ $html = wppa_input($slug, '30px');
2814
+ $clas = '';
2815
+ $tags = 'slide,lightbox,layout';
2816
+ wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
2817
+
2818
+ $name = __('Stop symbol border radius', 'wp-photo-album-plus');
2819
+ $desc = __('The border radius if the symbol is round', 'wp-photo-album-plus');
2820
+ $help = '';
2821
+ $slug = 'wppa_stop_symbol_bradius';
2822
+ $html = wppa_input($slug, '30px');
2823
+ $clas = '';
2824
+ $tags = 'slide,lightbox,layout';
2825
+ wppa_setting($slug, '9', $name, $desc, $html, $help, $clas, $tags);
2826
+
2827
+ $name = __('Left/right symbol size', 'wp-photo-album-plus');
2828
+ $desc = __('The size of the stop symbols.', 'wp-photo-album-plus');
2829
+ $help = '';
2830
+ $slug = 'wppa_left_right_symbol_size';
2831
+ $html = wppa_input($slug, '30px');
2832
+ $clas = '';
2833
+ $tags = 'slide,lightbox,layout';
2834
+ wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
2835
+
2836
+ $name = __('Left/right symbol border radius', 'wp-photo-album-plus');
2837
+ $desc = __('The border radius', 'wp-photo-album-plus');
2838
+ $help = '';
2839
+ $slug = 'wppa_left_right_symbol_bradius';
2840
+ $html = wppa_input($slug, '30px');
2841
+ $clas = '';
2842
+ $tags = 'slide,lightbox,layout';
2843
+ wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
2844
+
2845
  }
2846
+
2847
  ?>
2848
  </tbody>
2849
  <tfoot style="font-weight: bold;" class="wppa_table_2">
8853
  return $tagcls;
8854
  }
8855
 
8856
+ function wppa_input($slug, $width, $minwidth = '', $text = '', $onchange = '', $placeholder = '') {
8857
  global $wppa_opt;
8858
 
8859
  $tit = __('Slug =', 'wp-photo-album-plus').' '.$slug;
8864
  $html .= ' font-size: 11px; margin: 0px; padding: 0px;" type="text" id="'.$slug.'"';
8865
  if ($onchange != '') $html .= ' onchange="'.$onchange.';wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
8866
  else $html .= ' onchange="wppaAjaxUpdateOptionValue(\''.$slug.'\', this)"';
8867
+ if ( $placeholder ) $html .= ' placeholder="'.$placeholder.'"';
8868
  $html .= ' value="'.$val.'" />';
8869
  $html .= '<img id="img_'.$slug.'" src="'.wppa_get_imgdir().'star.png" title="'.__('Setting unmodified', 'wp-photo-album-plus').'" style="padding:0 4px; float:left; height:16px; width:16px;" />';
8870
  $html .= '<span style="float:left">'.$text.'</span>';
wppa-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
- * Version 6.3.13
7
  *
8
  */
9
 
@@ -631,6 +631,8 @@ Hide Camera info
631
  // G Overlay
632
  'wppa_ovl_txt_lines' => 'auto', // 1
633
  'wppa_magnifier' => 'magnifier-small.png', // 2
 
 
634
 
635
  // H Video
636
  'wppa_video_width' => '640',
@@ -677,7 +679,7 @@ Hide Camera info
677
  'wppa_show_bbb' => 'no', // 13
678
  'wppa_show_ubb' => 'no',
679
  'wppa_show_start_stop_icons' => 'no',
680
- 'wppa_start_stop_icons_type' => '.jpg',
681
  'wppa_custom_on' => 'no', // 14
682
  'wppa_custom_content' => '<div style="color:red; font-size:24px; font-weight:bold; text-align:center;">Hello world!</div><div style="text-align:center;" >You can change this text in Table II-B15</div>', // 15
683
  'wppa_show_slideshownumbar' => 'no', // 16
@@ -743,7 +745,7 @@ Hide Camera info
743
  'wppa_ubb_color' => '',
744
  'wppa_show_albwidget_tooltip' => 'yes',
745
  // F Overlay
746
- 'wppa_ovl_close_txt' => 'Close',
747
  'wppa_ovl_theme' => 'black',
748
  'wppa_ovl_bgcolor' => 'black',
749
  'wppa_ovl_slide_name' => 'no',
@@ -820,7 +822,21 @@ Hide Camera info
820
  'wppa_custom_caption_9' => '',
821
  'wppa_custom_visible_9' => 'no',
822
 
823
- 'wppa_close_text' => 'Close',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
824
 
825
 
826
  // Table III: Backgrounds
@@ -1123,7 +1139,7 @@ Hide Camera info
1123
  'wppa_widget_sm_linkpage_oc' => '1',
1124
 
1125
  'wppa_cover_sublinks' => 'none',
1126
- 'wppa_cover_sublinks_display' => 'list',
1127
 
1128
  // Table VII: Security
1129
  // B
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the setup stuff
6
+ * Version 6.3.14
7
  *
8
  */
9
 
631
  // G Overlay
632
  'wppa_ovl_txt_lines' => 'auto', // 1
633
  'wppa_magnifier' => 'magnifier-small.png', // 2
634
+ 'wppa_ovl_border_width' => '8',
635
+ 'wppa_ovl_border_radius' => '12',
636
 
637
  // H Video
638
  'wppa_video_width' => '640',
679
  'wppa_show_bbb' => 'no', // 13
680
  'wppa_show_ubb' => 'no',
681
  'wppa_show_start_stop_icons' => 'no',
682
+ // 'wppa_start_stop_icons_type' => '.jpg',
683
  'wppa_custom_on' => 'no', // 14
684
  'wppa_custom_content' => '<div style="color:red; font-size:24px; font-weight:bold; text-align:center;">Hello world!</div><div style="text-align:center;" >You can change this text in Table II-B15</div>', // 15
685
  'wppa_show_slideshownumbar' => 'no', // 16
745
  'wppa_ubb_color' => '',
746
  'wppa_show_albwidget_tooltip' => 'yes',
747
  // F Overlay
748
+ // 'wppa_ovl_close_txt' => 'Close',
749
  'wppa_ovl_theme' => 'black',
750
  'wppa_ovl_bgcolor' => 'black',
751
  'wppa_ovl_slide_name' => 'no',
822
  'wppa_custom_caption_9' => '',
823
  'wppa_custom_visible_9' => 'no',
824
 
825
+ // Lightbox/slideshow symbols and borders
826
+ 'wppa_start_symbol_url' => wppa_get_imgdir( 'start.png', true ),
827
+ 'wppa_pause_symbol_url' => wppa_get_imgdir( 'pause.png', true ),
828
+ 'wppa_stop_symbol_url' => wppa_get_imgdir( 'stop.png', true ),
829
+ 'wppa_left_symbol_url' => '',
830
+ 'wppa_right_symbol_url' => '',
831
+ 'wppa_start_pause_symbol_size' => '48',
832
+ 'wppa_start_pause_symbol_bradius' => '24',
833
+ 'wppa_stop_symbol_size' => '48',
834
+ 'wppa_stop_symbol_bradius' => '24',
835
+ 'wppa_left_right_symbol_size' => '32',
836
+ 'wppa_left_right_symbol_bradius' => '4',
837
+
838
+
839
+ 'wppa_close_text' => 'Close', // frontend upload/edit etc
840
 
841
 
842
  // Table III: Backgrounds
1139
  'wppa_widget_sm_linkpage_oc' => '1',
1140
 
1141
  'wppa_cover_sublinks' => 'none',
1142
+ 'wppa_cover_sublinks_display' => 'none',
1143
 
1144
  // Table VII: Security
1145
  // B
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.3.11
7
  *
8
  */
9
 
@@ -347,10 +347,26 @@ function wppa_slide_frame() {
347
  if ( ( wppa_switch( 'show_ubb' ) && ! wppa_in_widget() ) ||
348
  ( wppa_switch( 'show_ubb_widget' ) && wppa_in_widget() ) ) {
349
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
350
  wppa_out( '<img' .
351
  ' id="ubb-'.wppa( 'mocc' ).'-l"' .
352
  ' class="ubb ubb-l ubb-'.wppa( 'mocc' ).'"' .
353
- ' src="'.wppa_get_imgdir().'ubbl'.wppa_opt('ubb_color').'.png"' .
354
  ' alt="ubbl"' .
355
  ' style="' .
356
  'background-color:transparent;' .
@@ -358,19 +374,23 @@ function wppa_slide_frame() {
358
  'z-index:183;' .
359
  'position:absolute;' .
360
  'top:50%;' .
361
- 'margin-top:-50px;' .
362
  'left:0;' .
363
  'box-shadow:none;' .
364
  'cursor:pointer;' .
 
 
365
  '"' .
366
  ' onmouseover="wppaUbb('.wppa( 'mocc' ).',\'l\',\'show\')"' .
 
367
  ' onmouseout="wppaUbb('.wppa( 'mocc' ).',\'l\',\'hide\')"' .
368
  ' onclick="wppaUbb('.wppa( 'mocc' ).',\'l\',\'click\')"' .
 
369
  ' />' .
370
  '<img' .
371
  ' id="ubb-'.wppa( 'mocc' ).'-r"' .
372
  ' class="ubb ubb-r ubb-'.wppa( 'mocc' ).'"' .
373
- ' src="'.wppa_get_imgdir().'ubbr'.wppa_opt('ubb_color').'.png"' .
374
  ' alt="ubbr"' .
375
  ' style="' .
376
  'background-color:transparent;' .
@@ -378,14 +398,18 @@ function wppa_slide_frame() {
378
  'z-index:183;' .
379
  'position:absolute;' .
380
  'top:50%;' .
381
- 'margin-top:-50px;' .
382
  'right:0;' .
383
  'box-shadow:none;' .
384
  'cursor:pointer;' .
 
 
385
  '"' .
386
  ' onmouseover="wppaUbb('.wppa( 'mocc' ).',\'r\',\'show\')"' .
 
387
  ' onmouseout="wppaUbb('.wppa( 'mocc' ).',\'r\',\'hide\')"' .
388
  ' onclick="wppaUbb('.wppa( 'mocc' ).',\'r\',\'click\')"' .
 
389
  ' />'
390
  );
391
  }
@@ -1051,7 +1075,7 @@ function wppa_startstop_icons() {
1051
  if ( ! wppa_switch( 'show_start_stop_icons' ) ) {
1052
  return;
1053
  }
1054
-
1055
  $type = wppa_opt( 'start_stop_icons_type' );
1056
 
1057
  // Set type dependant dimensions
@@ -1061,8 +1085,10 @@ function wppa_startstop_icons() {
1061
  $curv = '36';
1062
  break;
1063
  default:
1064
- $size = '64';
1065
- $curv = '6';
 
 
1066
  }
1067
 
1068
  // Scale down for widgets
@@ -1070,11 +1096,11 @@ function wppa_startstop_icons() {
1070
  $size /= '2';
1071
  $curv /= '2';
1072
  }
1073
-
1074
  // Create and output the html
1075
  wppa_out( '<img' .
1076
  ' id="wppa-startstop-icon-' . wppa( 'mocc' ) . '"' .
1077
- ' src="' . wppa_get_imgdir( 'start' . $type ) . '"' .
1078
  ' alt="start stop"' .
1079
  ' style="' .
1080
  'position:absolute;' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
+ * Version 6.3.14
7
  *
8
  */
9
 
347
  if ( ( wppa_switch( 'show_ubb' ) && ! wppa_in_widget() ) ||
348
  ( wppa_switch( 'show_ubb_widget' ) && wppa_in_widget() ) ) {
349
 
350
+ /*
351
+ wppaOvlLeftSymbolUrl = "'.(wppa_opt('left_symbol_url') ? wppa_opt('left_symbol_url') : wppa_get_imgdir( 'prev-'.wppa_opt('ovl_theme').'.gif', true )).'";
352
+ wppaOvlRightSymbolUrl = "'.(wppa_opt('right_symbol_url') ? wppa_opt('right_symbol_url') : wppa_get_imgdir( 'next-'.wppa_opt('ovl_theme').'.gif', true )).'";
353
+ wppaLeftRightSymbolSize = '.wppa_opt('left_right_symbol_size').';
354
+ wppaLeftRightSymbolBradius = '.wppa_opt('left_right_symbol_bradius').';
355
+
356
+ ' onclick="wppaOvlShowPrev()"' +
357
+ ' ontouchend="wppaOvlShowPrev()"' +
358
+ ' onmouseover="jQuery(this).stop().fadeTo(200,1);"' +
359
+ ' onmouseout="jQuery(this).stop().fadeTo(200,0);"' +
360
+ ' ontouchstart="jQuery(this).stop().fadeTo(200,1);"' +
361
+ ' onload="jQuery(this).stop().fadeTo(5000,0);"' +
362
+
363
+ */
364
+
365
+
366
  wppa_out( '<img' .
367
  ' id="ubb-'.wppa( 'mocc' ).'-l"' .
368
  ' class="ubb ubb-l ubb-'.wppa( 'mocc' ).'"' .
369
+ ' src="'.(wppa_opt('left_symbol_url') ? wppa_opt('left_symbol_url') : wppa_get_imgdir( 'prev-'.wppa_opt('ovl_theme').'.gif', true )).'"' .
370
  ' alt="ubbl"' .
371
  ' style="' .
372
  'background-color:transparent;' .
374
  'z-index:183;' .
375
  'position:absolute;' .
376
  'top:50%;' .
377
+ 'margin-top:-' . ( wppa_opt('left_right_symbol_size') / 2 ) . 'px;' .
378
  'left:0;' .
379
  'box-shadow:none;' .
380
  'cursor:pointer;' .
381
+ 'width:' . wppa_opt('left_right_symbol_size') . 'px;' .
382
+ 'border-radius:' . wppa_opt('left_right_symbol_bradius') . 'px;' .
383
  '"' .
384
  ' onmouseover="wppaUbb('.wppa( 'mocc' ).',\'l\',\'show\')"' .
385
+ ' ontouchstart="wppaUbb('.wppa( 'mocc' ).',\'l\',\'show\')"' .
386
  ' onmouseout="wppaUbb('.wppa( 'mocc' ).',\'l\',\'hide\')"' .
387
  ' onclick="wppaUbb('.wppa( 'mocc' ).',\'l\',\'click\')"' .
388
+ ' ontouchend="wppaUbb('.wppa( 'mocc' ).',\'l\',\'click\')"' .
389
  ' />' .
390
  '<img' .
391
  ' id="ubb-'.wppa( 'mocc' ).'-r"' .
392
  ' class="ubb ubb-r ubb-'.wppa( 'mocc' ).'"' .
393
+ ' src="'.(wppa_opt('right_symbol_url') ? wppa_opt('right_symbol_url') : wppa_get_imgdir( 'next-'.wppa_opt('ovl_theme').'.gif', true )).'"' .
394
  ' alt="ubbr"' .
395
  ' style="' .
396
  'background-color:transparent;' .
398
  'z-index:183;' .
399
  'position:absolute;' .
400
  'top:50%;' .
401
+ 'margin-top:-' . ( wppa_opt('left_right_symbol_size') / 2 ) . 'px;' .
402
  'right:0;' .
403
  'box-shadow:none;' .
404
  'cursor:pointer;' .
405
+ 'width:' . wppa_opt('left_right_symbol_size') . 'px;' .
406
+ 'border-radius:' . wppa_opt('left_right_symbol_bradius') . 'px;' .
407
  '"' .
408
  ' onmouseover="wppaUbb('.wppa( 'mocc' ).',\'r\',\'show\')"' .
409
+ ' ontouchstart="wppaUbb('.wppa( 'mocc' ).',\'r\',\'show\')"' .
410
  ' onmouseout="wppaUbb('.wppa( 'mocc' ).',\'r\',\'hide\')"' .
411
  ' onclick="wppaUbb('.wppa( 'mocc' ).',\'r\',\'click\')"' .
412
+ ' ontouchend="wppaUbb('.wppa( 'mocc' ).',\'r\',\'click\')"' .
413
  ' />'
414
  );
415
  }
1075
  if ( ! wppa_switch( 'show_start_stop_icons' ) ) {
1076
  return;
1077
  }
1078
+ /*
1079
  $type = wppa_opt( 'start_stop_icons_type' );
1080
 
1081
  // Set type dependant dimensions
1085
  $curv = '36';
1086
  break;
1087
  default:
1088
+ */
1089
+ $size = wppa_opt( 'start_pause_symbol_size' );
1090
+ $curv = wppa_opt( 'start_pause_symbol_bradius' );
1091
+ /*
1092
  }
1093
 
1094
  // Scale down for widgets
1096
  $size /= '2';
1097
  $curv /= '2';
1098
  }
1099
+ */
1100
  // Create and output the html
1101
  wppa_out( '<img' .
1102
  ' id="wppa-startstop-icon-' . wppa( 'mocc' ) . '"' .
1103
+ ' src="' . ( wppa_opt( 'wppa_start_symbol_url' ) ? wppa_opt( 'wppa_start_symbol_url' ) : wppa_get_imgdir( 'start.png' ) ) . '"' .
1104
  ' alt="start stop"' .
1105
  ' style="' .
1106
  'position:absolute;' .
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 6.3.11
7
  *
8
  */
9
 
@@ -734,7 +734,25 @@ global $wppa_opt;
734
  'wppa_ovl_show_startstop',
735
  'wppa_ovl_show_legenda',
736
  'wppa_lightbox_name',
737
- 'wppa_start_stop_icons_type',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
738
 
739
 
740
  );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 6.3.14
7
  *
8
  */
9
 
734
  'wppa_ovl_show_startstop',
735
  'wppa_ovl_show_legenda',
736
  'wppa_lightbox_name',
737
+ 'wppa_start_symbol_url',
738
+ 'wppa_pause_symbol_url',
739
+ 'wppa_stop_symbol_url',
740
+ 'wppa_start_pause_symbol_size',
741
+ 'wppa_start_pause_symbol_bradius',
742
+ 'wppa_stop_symbol_size',
743
+ 'wppa_stop_symbol_bradius',
744
+ 'wppa_left_symbol_url',
745
+ 'wppa_right_symbol_url',
746
+ 'wppa_left_right_symbol_size',
747
+ 'wppa_left_right_symbol_bradius',
748
+ 'wppa_ovl_border_width',
749
+ 'wppa_ovl_border_radius',
750
+ 'wppa_ovl_anim',
751
+ 'wppa_ovl_slide',
752
+
753
+
754
+
755
+
756
 
757
 
758
  );
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.3.13
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/
@@ -29,12 +29,12 @@ global $wpdb;
29
  /* when new options are added and when the wppa_setup() routine
30
  /* must be called right after update for any other reason.
31
  */
32
- global $wppa_revno; $wppa_revno = '6313';
33
 
34
  /* This is the api interface version number
35
  /* It is incremented at any code change.
36
  */
37
- global $wppa_api_version; $wppa_api_version = '6-3-13-000';
38
 
39
  /* start timers */
40
  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.3.14
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/
29
  /* when new options are added and when the wppa_setup() routine
30
  /* must be called right after update for any other reason.
31
  */
32
+ global $wppa_revno; $wppa_revno = '6314';
33
 
34
  /* This is the api interface version number
35
  /* It is incremented at any code change.
36
  */
37
+ global $wppa_api_version; $wppa_api_version = '6-3-14-000';
38
 
39
  /* start timers */
40
  global $wppa_starttime; $wppa_starttime = microtime(true);