WP Photo Album Plus - Version 7.2.10.010

Version Description

= 7.2.10 =

  • This version addresses various bug fixes and feature requests.

= 7.2.09 =

  • This version addresses various bug fixes and feature requests.

= 7.2.08 =

  • This version addresses various bug fixes.

= 7.2.07 =

  • This version addresses various bug fixes.

= 7.2.06 =

  • This version addresses various bug fixes and feature requests.
  • This version addresses various security issues.

= 7.2.05 =

  • This version addresses various bug fixes and feature requests.
  • This version addresses various security issues.

= 7.2.04 =

  • This version addresses various bug fixes and feature requests.

= 7.2.03 =

  • This version addresses various bug fixes and feature requests.

= 7.2.02 =

  • This version addresses various bug fixes and feature requests.

= 7.2.01 =

  • This version addresses various bug fixes and feature requests.

= 7.2.00 =

  • This version addresses various bug fixes and feature requests.

= 7.1.11 =

  • This version addresses various bug fixes and feature requests.

= 7.1.10 =

  • This version addresses various bug fixes and feature requests.

= 7.1.09 =

  • This version addresses various bug fixes and feature requests.

= 7.1.08 =

  • This version addresses various bug fixes and feature requests.

= 7.1.07 =

  • This version addresses various bug fixes and feature requests.

= 7.1.06 =

  • This version addresses various bug fixes and feature requests.

= 7.1.05 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.04 =

  • This version addresses various bug fixes.

= 7.1.03 =

  • This version addresses various security issues.
  • This version addresses various bug fixes.

= 7.1.02 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.1.01 =

  • This version addresses various bug fixes and feature requests.

= 7.1.00 =

  • This version addresses various bug fixes and feature requests.
  • The Photo Album -> Upload Photos and Import Photos admin pages have been substantially improved. Read the changelog for details.

= 7.0.11 =

  • This version addresses various bug fixes and feature requests.

= 7.0.11 =

  • This version addresses various bug fixes

= 7.0.10 =

  • This version addresses various bug fixes

= 7.0.09 =

  • This version addresses various security issues.
  • This version addresses various bug fixes and feature requests.

= 7.0.08 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.07 =

  • This version addresses various security issues.
  • This version addresses various bug fixes

= 7.0.06 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.05 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 7.0.04 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.03 =

  • This version addresses various minor bug fixes and feature requests.

= 7.0.02 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 7.0.01 =

  • This version addresses various minor bug fixes and feature requests.

= 7.0.00 =

  • Shortcode generators for Gutenberg added.
  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.
  • To prevent spamming and give the users the opportunity to decide when they want us to email them, the mailing system has been revised. Configure Table IX-M to enable various mailing lists, and use the WPPA+ Notify widget for full user flexibility.

= 6.9.21 =

  • This version addresses various bug fixes
  • This version addresses various security issues.

= 6.9.20 =

  • This version addresses various bug fixes

= 6.9.19 =

  • This version addresses various minor bug fixes

= 6.9.18 =

  • This version addresses various minor bug fixes

= 6.9.17 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.16 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.15 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.14 =

  • This version addresses various minor bug fixes and feature requests.
  • This version addresses various security issues.

= 6.9.13 =

  • Security release.

= 6.9.12 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.11 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.10 =

  • This version addresses various minor bug fixes and performance improvements.

= 6.9.09 =

  • Panorama support phase III.

= 6.9.08 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase II.

= 6.9.07 =

  • This version addresses various minor bug fixes and feature requests.
  • Panorama support phase I.

= 6.9.06 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.05 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.04 =

  • This version addresses various minor bug fixes and feature requests.
  • Local CDN functionality has been added.

= 6.9.03 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.02 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.01 =

  • This version addresses various minor bug fixes and feature requests.

= 6.9.00 =

  • This version includes the code for the privacy policy requirements.

= 6.8.09

  • This version addresses various bug fixes and code edits.

= 6.8.08 =

  • This version addresses various minor bug fixes and feature requests.
  • This version offers substantial performance improvements when the box in Table IV-A13: Defer Javascript is ticked. This setting is now recommended and set ticked as the default.
  • For more info on performance improvements and compatibility with optimizers: see the changelog.txt

= 6.8.07 =

  • This version addresses various minor bug fixes and enhancements, and a new widget: Statistics.

= 6.8.06 =

  • This version addresses various minor bug fixes and improved cache handling.

= 6.8.05 =

  • This version addresses various minor bug fixes and feture requests.

= 6.8.04 =

  • This version addresses various display issues and a few fixes of bugs that seldom affected the plugins behaviour.
Download this release

Release Info

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

Code changes from version 7.2.10.009 to 7.2.10.010

changelog.txt CHANGED
@@ -10,6 +10,7 @@ In this case the pagelinks were missing. Fixed.
10
* New shorcode attribute values for type="calendar". The new values are 'realtimestamp', 'realmodified' and 'realexifdtm' for the attribute calendar="",
11
so you can now have a 'real look' calendar using shortcode: [wppa type="calendar" calendar="realexifdtm"], optionally add the album="" attribute.
12
Note: Only numeric albums or numeric album enumerations are supported. E.g. album="7" or album="1.5..8.19", meaning albums 1,5,6,7,8 and 19.
13
* New shortcode argument for all calendar types: parent="x" where x is a single album id. When using parent="" it overrules the album="" argument.
14
* New option switch Table IV-F13: Comment needs vote. If ticked, a user must give a rating to get his comment published.
15
Note: This feature overrules other comment moderation settings.
10
* New shorcode attribute values for type="calendar". The new values are 'realtimestamp', 'realmodified' and 'realexifdtm' for the attribute calendar="",
11
so you can now have a 'real look' calendar using shortcode: [wppa type="calendar" calendar="realexifdtm"], optionally add the album="" attribute.
12
Note: Only numeric albums or numeric album enumerations are supported. E.g. album="7" or album="1.5..8.19", meaning albums 1,5,6,7,8 and 19.
13
+ * New setting: Table VI-C12: Real calendar link. May be lightbox (default) or slideshow. The slideshow will be dispalyed below the calendar.
14
* New shortcode argument for all calendar types: parent="x" where x is a single album id. When using parent="" it overrules the album="" argument.
15
* New option switch Table IV-F13: Comment needs vote. If ticked, a user must give a rating to get his comment published.
16
Note: This feature overrules other comment moderation settings.
wppa-boxes-html.php CHANGED
@@ -3717,15 +3717,15 @@ global $wpdb;
3717
}
3718
}
3719
elseif ( $comment['status'] == 'pending' && stripslashes( $comment['user'] ) == wppa( 'comment_user' ) ) {
3720
-
3721
if ( wppa( 'comneedsvote' ) && ! current_user_can( 'wppa_moderate' ) ) {
3722
- $result .=
3723
'<br /><span style="color:red;" >' .
3724
htmlentities( __( "Please also give the photo a rating. Your comment will be discarded if you do not. After rating, you can refresh the page or press the Update button to get your comment approved." , 'wp-photo-album-plus' ) ) .
3725
'</span>';
3726
}
3727
else {
3728
- $result .=
3729
'<br /><span style="color:red; font-size:9px;" >' .
3730
__( 'Awaiting moderation', 'wp-photo-album-plus' ) .
3731
'</span>';
@@ -4969,6 +4969,19 @@ function wppa_real_calendar_box() {
4969
'</div>' );
4970
4971
wppa_container( 'close' );
4972
}
4973
4974
// The real calendar html
@@ -5254,54 +5267,54 @@ global $wpdb;
5254
// There are count($thumbs) items this day
5255
if ( count( $thumbs ) ) {
5256
5257
- $imgtitle = sprintf( __( 'Zoom in to see %d items', 'wp-photo-album-plus' ), count( $thumbs ) );
5258
- $cell_content = '';
5259
- foreach ( $thumbs as $thumb ) {
5260
- $id = $thumb['id'];
5261
- $title = wppa_get_lbtitle( 'cover', $id );
5262
- if ( wppa_is_video( $id ) ) {
5263
- $siz['0'] = wppa_get_videox( $id );
5264
- $siz['1'] = wppa_get_videoy( $id );
5265
- }
5266
- else {
5267
- $siz['0'] = wppa_get_photox( $id );
5268
- $siz['1'] = wppa_get_photoy( $id );
5269
- }
5270
- $link = wppa_get_photo_url( $id, true, '', $siz['0'], $siz['1'] );
5271
- $is_video = wppa_is_video( $id );
5272
- $has_audio = wppa_has_audio( $id );
5273
- $is_pdf = wppa_is_pdf( $id );
5274
-
5275
- // Open the anchor tag for lightbox
5276
- $cell_content .= '
5277
- <a
5278
- data-id="' . wppa_encrypt_photo( $id ) . '"
5279
- href="' . $link . '"
5280
- style="border:0;color:transparent;"' .
5281
- ( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"
5282
- data-videonatwidth="' . wppa_get_videox( $id ) . '"
5283
- data-videonatheight="' . wppa_get_videoy( $id ) . '"' : '' ) .
5284
- ( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
5285
- ( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
5286
- ' ' . wppa( 'rel' ) . '="' . wppa_opt( 'lightbox_name' ) . '[alw-' . wppa( 'mocc' ) . '-' . $year . '-' . $month . '-'. $cell_number . ']"' .
5287
- ' ' . wppa( 'lbtitle' ) . '="' . $title . '"' .
5288
- wppa_get_lb_panorama_full_html( $id ) . '
5289
- data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"
5290
- style="cursor:' . wppa_wait() . ';"
5291
- onclick="return false;"
5292
- >';
5293
-
5294
- // the display image
5295
- $imgattr = 'max-width:100%;max-height:100%;';
5296
- if ( $id == $thumbs['0']['id'] ) {
5297
- if ( wppa_is_video( $thumb['id'] ) ) {
5298
$cell_content .=
5299
'<video preload="metadata"
5300
- class="thumb wppa-img" id="i-' . $thumb['id'] . '-' . wppa( 'mocc' ) . '"
5301
title="' . esc_attr( $imgtitle ) . '"
5302
style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"
5303
>' .
5304
- wppa_get_video_body( $thumb['id'] ) .
5305
'</video>'
5306
;
5307
}
@@ -5309,19 +5322,96 @@ global $wpdb;
5309
$cell_content .=
5310
'<img
5311
class="thumb wppa-img"
5312
- id="i-' . $thumb['id'] . '-' . wppa( 'mocc' ) . '"
5313
title="' . esc_attr( $imgtitle ) . '"
5314
src="' . wppa_get_thumb_url( $id ) . '"
5315
style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
5316
- wppa_get_imgalt( $thumb['id'] ) . '
5317
/>';
5318
}
5319
- }
5320
5321
- // Close the lightbox anchor tag
5322
- $cell_content .=
5323
- '</a>';
5324
}
5325
}
5326
else {
5327
$cell_content = $current_day;
@@ -5414,7 +5504,10 @@ global $wpdb;
5414
static $cache;
5415
5416
$albums = str_replace( '.', ',', wppa_expand_enum( wppa( 'start_album' ) ) );
5417
5418
switch ( wppa( 'calendar' ) ) {
5419
case 'realexifdtm':
5420
@@ -5442,23 +5535,11 @@ static $cache;
5442
$y = $t[0];
5443
$m = strval( intval( $t[1] ) );
5444
5445
- if ( $y > $year ) {
5446
- return true;
5447
- }
5448
- if ( $y < $year ) {
5449
- return false;
5450
- }
5451
- if ( ! $month ) {
5452
- return false;
5453
- }
5454
- if ( $m > $month ) {
5455
- return true;
5456
- }
5457
- return false;
5458
}
5459
break;
5460
5461
case 'realtimestamp':
5462
if ( isset( $cache[wppa('mocc')][wppa('calendar')] ) ) {
5463
$first = $cache[wppa('mocc')][wppa('calendar')];
5464
}
@@ -5473,8 +5554,12 @@ static $cache;
5473
WHERE album > 0
5474
ORDER BY timestamp LIMIT 1" );
5475
}
5476
}
5477
- $cache[wppa('mocc')][wppa('calendar')] = $first;
5478
break;
5479
5480
case 'realmodified';
@@ -5493,32 +5578,37 @@ static $cache;
5493
WHERE album > 0
5494
ORDER BY modified LIMIT 1" );
5495
}
5496
}
5497
- $cache[wppa('mocc')][wppa('calendar')] = $first;
5498
break;
5499
5500
default:
5501
return false;
5502
break;
5503
-
5504
}
5505
5506
- $y = wppa_local_date( 'Y', time() );
5507
if ( $y > $year ) {
5508
- return true;
5509
}
5510
- if ( $y < $year ) {
5511
- return false;
5512
}
5513
- if ( ! $month ) {
5514
- return false;
5515
}
5516
- $m = wppa_local_date( 'm', time() );
5517
- if ( $m > $month ) {
5518
- return true;
5519
}
5520
5521
- return false;
5522
}
5523
5524
// Stereo settings box
3717
}
3718
}
3719
elseif ( $comment['status'] == 'pending' && stripslashes( $comment['user'] ) == wppa( 'comment_user' ) ) {
3720
+
3721
if ( wppa( 'comneedsvote' ) && ! current_user_can( 'wppa_moderate' ) ) {
3722
+ $result .=
3723
'<br /><span style="color:red;" >' .
3724
htmlentities( __( "Please also give the photo a rating. Your comment will be discarded if you do not. After rating, you can refresh the page or press the Update button to get your comment approved." , 'wp-photo-album-plus' ) ) .
3725
'</span>';
3726
}
3727
else {
3728
+ $result .=
3729
'<br /><span style="color:red; font-size:9px;" >' .
3730
__( 'Awaiting moderation', 'wp-photo-album-plus' ) .
3731
'</span>';
4969
'</div>' );
4970
4971
wppa_container( 'close' );
4972
+
4973
+ // The Display container. Required for displaying the slideshow
4974
+ // The display container ocurrance is one higher than the calendar occurrance.
4975
+ if ( wppa_opt( 'real_calendar_linktype' ) == 'slide' ) {
4976
+
4977
+ // Bump occurrances.
4978
+ wppa( 'occur', wppa( 'occur' ) + '1' );
4979
+ wppa( 'mocc', wppa( 'mocc' ) + '1' );
4980
+
4981
+ // The box
4982
+ wppa_container( 'open' );
4983
+ wppa_container( 'close' );
4984
+ }
4985
}
4986
4987
// The real calendar html
5267
// There are count($thumbs) items this day
5268
if ( count( $thumbs ) ) {
5269
5270
+ $thisday = wppa_local_date( get_option( 'date_format' ), wppa_local_strtotime( $year . '-' . $month . '-' . $current_day . '-12' ) );
5271
+ $imgtitle =
5272
+ sprintf( __( 'Zoom in to see %d items of %s', 'wp-photo-album-plus' ),
5273
+ count( $thumbs ),
5274
+ $thisday
5275
+ );
5276
+
5277
+ switch( wppa_opt( 'real_calendar_linktype' ) ) {
5278
+
5279
+ case 'slide':
5280
+
5281
+ // Start slideshow case
5282
+ $secsinday = 24 * 60 * 60;
5283
+ if ( wppa( 'calendar' ) == 'realexifdtm' ) {
5284
+ $day = sprintf( '%4d:%02d:%02d', $year, $month, $current_day );
5285
+ }
5286
+ else {
5287
+ $day = wppa_local_strtotime( $year . '-' . $month . '-' . $current_day . '-12' ) / $secsinday;
5288
+ }
5289
+ $ajaxurl = wppa_encrypt_url(
5290
+ wppa_get_ajaxlink( '', '1' ) .
5291
+ 'wppa-calendar='.substr( wppa( 'calendar' ), '4' ) . '&' .
5292
+ 'wppa-caldate=' . $day . '&' .
5293
+ ( $albums ? 'wppa-albums=' . $albums . '&' : '' ) .
5294
+ 'wppa-vt=1&' .
5295
+ 'wppa-slide=1&' .
5296
+ 'wppa-occur=' . ( $mocc + '1' )
5297
+ );
5298
+ $id = $thumbs['0']['id'];
5299
+
5300
+ // The cell content
5301
+ $cell_content = '
5302
+ <a
5303
+ data-id="' . wppa_encrypt_photo( $id ) . '"
5304
+ onclick="wppaDoAjaxRender(' . ( $mocc + 1 ) . ', \'' . $ajaxurl . '\' );"
5305
+ >';
5306
+
5307
+ // the display image
5308
+ $imgattr = 'max-width:100%;max-height:100%;cursor:pointer;';
5309
+ $id = $thumbs['0']['id'];
5310
+ if ( wppa_is_video( $id ) ) {
5311
$cell_content .=
5312
'<video preload="metadata"
5313
+ class="thumb wppa-img" id="i-' . $id . '-' . $mocc . '"
5314
title="' . esc_attr( $imgtitle ) . '"
5315
style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"
5316
>' .
5317
+ wppa_get_video_body( $id ) .
5318
'</video>'
5319
;
5320
}
5322
$cell_content .=
5323
'<img
5324
class="thumb wppa-img"
5325
+ id="i-' . $id . '-' . $mocc . '"
5326
title="' . esc_attr( $imgtitle ) . '"
5327
src="' . wppa_get_thumb_url( $id ) . '"
5328
style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
5329
+ wppa_get_imgalt( $id ) . '
5330
/>';
5331
}
5332
5333
+ $cell_content .= '
5334
+ </a>';
5335
+
5336
+ // End slideshow case
5337
+ break;
5338
+
5339
+ //case 'lightbox':
5340
+ default:
5341
+
5342
+ // Start lightbox case; this is the default
5343
+ $cell_content = '';
5344
+ foreach ( $thumbs as $thumb ) {
5345
+ $id = $thumb['id'];
5346
+ $title = wppa_get_lbtitle( 'cover', $id );
5347
+ if ( wppa_is_video( $id ) ) {
5348
+ $siz['0'] = wppa_get_videox( $id );
5349
+ $siz['1'] = wppa_get_videoy( $id );
5350
+ }
5351
+ else {
5352
+ $siz['0'] = wppa_get_photox( $id );
5353
+ $siz['1'] = wppa_get_photoy( $id );
5354
+ }
5355
+ $link = wppa_get_photo_url( $id, true, '', $siz['0'], $siz['1'] );
5356
+ $is_video = wppa_is_video( $id );
5357
+ $has_audio = wppa_has_audio( $id );
5358
+ $is_pdf = wppa_is_pdf( $id );
5359
+
5360
+ // Open the anchor tag for lightbox
5361
+ $cell_content .= '
5362
+ <a
5363
+ data-id="' . wppa_encrypt_photo( $id ) . '"
5364
+ href="' . $link . '"
5365
+ style="border:0;color:transparent;"' .
5366
+ ( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $id ) ) . '"
5367
+ data-videonatwidth="' . wppa_get_videox( $id ) . '"
5368
+ data-videonatheight="' . wppa_get_videoy( $id ) . '"' : '' ) .
5369
+ ( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $id ) ) . '"' : '' ) .
5370
+ ( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $id ) ) .'"' : '' ) .
5371
+ ' ' . wppa( 'rel' ) . '="' . wppa_opt( 'lightbox_name' ) . '[alw-' . wppa( 'mocc' ) . '-' . $year . '-' . $month . '-'. $cell_number . ']"' .
5372
+ ' ' . wppa( 'lbtitle' ) . '="' . $title . '"' .
5373
+ wppa_get_lb_panorama_full_html( $id ) . '
5374
+ data-alt="' . esc_attr( wppa_get_imgalt( $id, true ) ) . '"
5375
+ style="cursor:' . wppa_wait() . ';"
5376
+ onclick="return false;"
5377
+ >';
5378
+
5379
+ // the display image
5380
+ $imgattr = 'max-width:100%;max-height:100%;';
5381
+ if ( $id == $thumbs['0']['id'] ) {
5382
+ if ( wppa_is_video( $thumb['id'] ) ) {
5383
+ $cell_content .=
5384
+ '<video preload="metadata"
5385
+ class="thumb wppa-img" id="i-' . $thumb['id'] . '-' . wppa( 'mocc' ) . '"
5386
+ title="' . esc_attr( $imgtitle ) . '"
5387
+ style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"
5388
+ >' .
5389
+ wppa_get_video_body( $thumb['id'] ) .
5390
+ '</video>'
5391
+ ;
5392
+ }
5393
+ else {
5394
+ $cell_content .=
5395
+ '<img
5396
+ class="thumb wppa-img"
5397
+ id="i-' . $thumb['id'] . '-' . wppa( 'mocc' ) . '"
5398
+ title="' . esc_attr( $imgtitle ) . '"
5399
+ src="' . wppa_get_thumb_url( $id ) . '"
5400
+ style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
5401
+ wppa_get_imgalt( $thumb['id'] ) . '
5402
+ />';
5403
+ }
5404
+ }
5405
+
5406
+ // Close the lightbox anchor tag
5407
+ $cell_content .=
5408
+ '</a>';
5409
+ }
5410
+ // End lightbox case
5411
+ break;
5412
}
5413
+
5414
+
5415
}
5416
else {
5417
$cell_content = $current_day;
5504
static $cache;
5505
5506
$albums = str_replace( '.', ',', wppa_expand_enum( wppa( 'start_album' ) ) );
5507
+ $y = 0;
5508
+ $m = 0;
5509
5510
+ // Find year and month of the first item
5511
switch ( wppa( 'calendar' ) ) {
5512
case 'realexifdtm':
5513
5535
$y = $t[0];
5536
$m = strval( intval( $t[1] ) );
5537
5538
}
5539
break;
5540
5541
case 'realtimestamp':
5542
+
5543
if ( isset( $cache[wppa('mocc')][wppa('calendar')] ) ) {
5544
$first = $cache[wppa('mocc')][wppa('calendar')];
5545
}
5554
WHERE album > 0
5555
ORDER BY timestamp LIMIT 1" );
5556
}
5557
+ $cache[wppa('mocc')][wppa('calendar')] = $first;
5558
+ }
5559
+ if ( $first ) {
5560
+ $y = wppa_local_date( 'Y', $first );
5561
+ $m = wppa_local_date( 'n', $first );
5562
}
5563
break;
5564
5565
case 'realmodified';
5578
WHERE album > 0
5579
ORDER BY modified LIMIT 1" );
5580
}
5581
+ $cache[wppa('mocc')][wppa('calendar')] = $first;
5582
+ }
5583
+ if ( $first ) {
5584
+ $y = wppa_local_date( 'Y', $first );
5585
+ $m = wppa_local_date( 'n', $first );
5586
}
5587
break;
5588
5589
default:
5590
return false;
5591
break;
5592
}
5593
5594
+ // Do the actual compare
5595
if ( $y > $year ) {
5596
+ $result = true;
5597
}
5598
+ elseif ( $y < $year ) {
5599
+ $result = false;
5600
}
5601
+ elseif ( ! $month ) {
5602
+ $result = false;
5603
}
5604
+ elseif ( $m > $month ) {
5605
+ $result = true;
5606
+ }
5607
+ else {
5608
+ $result = false;
5609
}
5610
5611
+ return $result;
5612
}
5613
5614
// Stereo settings box
wppa-links.php CHANGED
@@ -3,8 +3,7 @@
3
* Package: wp-photo-album-plus
4
*
5
* Frontend links
6
- * Version 7.2.08
7
- *
8
*/
9
10
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -119,7 +118,7 @@ global $wppa_lang;
119
// See if this call is from an ajax operation or...
120
if ( wppa( 'ajax' ) ) {
121
if ( wppa_get_get( 'size' ) ) $al .= '&amp;wppa-size=' . wppa_get_get( 'size' );
122
- if ( wppa_get_get( 'moccur' ) ) $al .= '&amp;wppa-moccur=' . wppa_get_get( 'moccur' );
123
if ( is_numeric( $key ) && $key > '0' ) {
124
$al .= '&amp;page_id='.$key;
125
}
3
* Package: wp-photo-album-plus
4
*
5
* Frontend links
6
+ * Version 7.2.10
7
*/
8
9
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
118
// See if this call is from an ajax operation or...
119
if ( wppa( 'ajax' ) ) {
120
if ( wppa_get_get( 'size' ) ) $al .= '&amp;wppa-size=' . wppa_get_get( 'size' );
121
+ if ( wppa_get_get( 'moccur' ) ) $al .= '&amp;wppa-moccur=' . ( wppa_get_get( 'moccur' ) + $deltamoccur );
122
if ( is_numeric( $key ) && $key > '0' ) {
123
$al .= '&amp;page_id='.$key;
124
}
wppa-settings-autosave.php CHANGED
@@ -6771,6 +6771,35 @@ global $wppa_supported_camara_brands;
6771
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
6772
}
6773
6774
?>
6775
</tbody>
6776
<tfoot style="font-weight: bold;" class="wppa_table_6">
6771
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
6772
}
6773
6774
+ {
6775
+ $name = __('Real calendar link', 'wp-photo-album-plus');
6776
+ $desc = __('Select the linktype and page the real calendar day image should link to', 'wp-photo-album-plus');
6777
+ $help = '';
6778
+ $slug1 = 'wppa_real_calendar_linktype';
6779
+ $slug2 = ''; //'wppa_real_calendar_linkpage';
6780
+ $slug3 = '';
6781
+ $slug4 = '';
6782
+ $slug = array($slug1, $slug2, $slug3, $slug4);
6783
+ $opts = array(
6784
+ __('Slideshow', 'wp-photo-album-plus'),
6785
+ __('Lightbox', 'wp-photo-album-plus'),
6786
+ );
6787
+ $vals = array(
6788
+ 'slide',
6789
+ 'lightbox',
6790
+ );
6791
+ $onchange = '';
6792
+ $html1 = wppa_select($slug1, $opts, $vals, $onchange, $clas);
6793
+ $html2 = ''; //wppa_select($slug2, $options_page_auto, $values_page, $onchange, $clas);
6794
+ $slug3 = '';
6795
+ $slug4 = '';
6796
+ $html = array($html1, $html2, $html3, $html4);
6797
+ $clas = '';
6798
+ $tags = 'link';
6799
+ wppa_setting($slug, '12', $name, $desc, $html, $help, $clas, $tags);
6800
+
6801
+ }
6802
+
6803
?>
6804
</tbody>
6805
<tfoot style="font-weight: bold;" class="wppa_table_6">
wppa-setup.php CHANGED
@@ -1546,6 +1546,7 @@ cursorborder:'2px solid transparent',";
1546
1547
'wppa_cover_sublinks' => 'none',
1548
'wppa_cover_sublinks_display' => 'none',
1549
1550
// Table VII: Security
1551
// B
1546
1547
'wppa_cover_sublinks' => 'none',
1548
'wppa_cover_sublinks_display' => 'none',
1549
+ 'wppa_real_calendar_linktype' => 'lightbox',
1550
1551
// Table VII: Security
1552
// B
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: 7.2.10.009
6
* Author: J.N. Breetvelt a.k.a. OpaJaap
7
* Author URI: http://wppa.opajaap.nl/
8
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -23,7 +23,7 @@ global $wp_version;
23
24
/* WPPA GLOBALS */
25
global $wppa_revno; $wppa_revno = '7210'; // WPPA db version
26
- global $wppa_api_version; $wppa_api_version = '7.2.10.009'; // WPPA software version
27
28
/* Init page js data */
29
global $wppa_js_page_data; $wppa_js_page_data = '';
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: 7.2.10.010
6
* Author: J.N. Breetvelt a.k.a. OpaJaap
7
* Author URI: http://wppa.opajaap.nl/
8
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
23
24
/* WPPA GLOBALS */
25
global $wppa_revno; $wppa_revno = '7210'; // WPPA db version
26
+ global $wppa_api_version; $wppa_api_version = '7.2.10.010'; // WPPA software version
27
28
/* Init page js data */
29
global $wppa_js_page_data; $wppa_js_page_data = '';