WP Photo Album Plus - Version 8.0.08.008

Version Description

= 8.0.07 =

  • This version addresses various bug fixes, feature requests and security fixes.
Download this release

Release Info

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

Code changes from version 8.0.08.007 to 8.0.08.008

changelog.txt CHANGED
@@ -2,7 +2,7 @@ WP Photo Album Plus Changelog
2
 
3
  = 8.0.08 =
4
 
5
- * Improved smartness of caching. On changing photos, albums, adding comments and ratings, only the affected cachefiles will be cleared.
6
  * Fixed film thumbnail titles.
7
  * Calendars (non real) did no longer work. Fixed.
8
  * Fixed erroneously stripped tags in descriptions.
2
 
3
  = 8.0.08 =
4
 
5
+ * Improved smartness of caching. On changing photos, albums, adding comments and ratings etc., only the affected cachefiles will be cleared.
6
  * Fixed film thumbnail titles.
7
  * Calendars (non real) did no longer work. Fixed.
8
  * Fixed erroneously stripped tags in descriptions.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, f
5
  Requires at least: 3.9
6
  Tested up to: 5.8
7
  Requires PHP: 5.5
8
- Stable tag: 8.0.07.018
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
5
  Requires at least: 3.9
6
  Tested up to: 5.8
7
  Requires PHP: 5.5
8
+ Stable tag: 8.0.08.008
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
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 8.0.07.017
7
  */
8
  function wppa_theme() {
9
 
10
- global $wppa_version; $wppa_version = '8.0.07.017'; // 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
  global $wppa_empty_content;
@@ -493,56 +493,26 @@ function wppa_get_extra_url() {
493
 
494
  $extra_url = '';
495
 
496
- // cover
497
- if ( wppa_get_get( 'cover' ) ) $ic = wppa_get_get( 'cover' );
498
- else {
499
- if ( wppa( 'is_cover' ) == '1' ) $ic = '1'; else $ic = '0';
500
- }
501
- $extra_url .= 'wppa-cover='.$ic;
502
-
503
  // occur
504
- $occur = wppa_in_widget() ? wppa_get_get('woccur') : wppa_get_get('occur');
505
- $ref_occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'occur' );
 
 
 
 
 
506
 
507
  // album
508
- if ( ( $occur == $ref_occur || wppa( 'ajax' ) ) && wppa_get_get('album') ) {
509
- $alb = wppa_get_get( 'album' );
510
- }
511
- elseif ( wppa( 'start_album' ) ) {
512
- $alb = wppa( 'start_album' );
513
- }
514
- else {
515
- $alb = '0';
516
- }
517
- $extra_url .= '&wppa-album='.$alb;
518
 
519
  // slide or photo
520
- if ( wppa( 'is_slide' ) ) {
521
- $extra_url .= '&wppa-slide=1';
522
- }
523
- elseif ( wppa_get_get( 'photo' ) ) {
524
- $extra_url .= '&wppa-photo=' . wppa_get_get( 'photo' );
525
- }
526
 
527
- // occur
528
- if ( ! wppa( 'ajax' ) ) {
529
- $occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'occur' );
530
- $w = wppa_in_widget() ? 'w' : '';
531
- $extra_url .= '&wppa-' . $w . 'occur=' . $occur;
532
- }
533
- else {
534
- if ( wppa_get_get( 'occur' ) ) {
535
- $occur = wppa_get_get( 'occur' );
536
- $extra_url .= '&wppa-occur=' . strval( intval( $occur ) );
537
- }
538
- elseif ( wppa_get_get( 'woccur' ) ) {
539
- $occur = wppa_get_get( 'woccur' );
540
- $extra_url .= '&wppa-woccur=' . strval( intval( $occur ) );
541
- }
542
- else {
543
- $extra_url .= '&wppa-occur=' . wppa( 'occur' ); // Should never get here?
544
- }
545
- }
546
 
547
  // Topten?
548
  if ( wppa( 'is_topten' ) ) $extra_url .= '&wppa-topten='.wppa( 'topten_count' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * display the albums/photos/slideshow in a page or post
6
+ * Version 8.0.08.008
7
  */
8
  function wppa_theme() {
9
 
10
+ global $wppa_version; $wppa_version = '8.0.08.008'; // 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
  global $wppa_empty_content;
493
 
494
  $extra_url = '';
495
 
 
 
 
 
 
 
 
496
  // occur
497
+ $occur = wppa_get( 'occur', wppa( 'mocc' ) );
498
+ $extra_url .= '&wppa-occur=' . $occur;
499
+
500
+ // cover
501
+ $cover = wppa_get( 'cover', wppa( 'is_cover' ) );
502
+ if ( ! $cover ) $cover = '0';
503
+ $extra_url .= '&wppa-cover='.$cover;
504
 
505
  // album
506
+ $album = wppa_get( 'album', wppa( 'start_album' ) );
507
+ if ( $album ) $extra_url .= '&wppa-album='.$album;
 
 
 
 
 
 
 
 
508
 
509
  // slide or photo
510
+ $slide = wppa_get( 'slide', wppa( 'is_slide' ) );
511
+ if ( $slide ) $extra_url .= '&wppa-slide=1';
 
 
 
 
512
 
513
+ // Photo
514
+ $photo = wppa_get( 'photo', wppa( 'start_photo' ) );
515
+ if ( $photo ) $extra_url .= '&wppa-photo=' . wppa_get( 'photo' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
516
 
517
  // Topten?
518
  if ( wppa( 'is_topten' ) ) $extra_url .= '&wppa-topten='.wppa( 'topten_count' );
wppa-album-admin-autosave.php CHANGED
@@ -633,7 +633,7 @@ global $wppa_revno;
633
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'a_order\', this )"
634
  value="' . esc_attr( $a_order ) . '"
635
  style="width:50px;"
636
- />&nbsp';
637
  if ( wppa_opt( 'list_albums_by' ) != '1' && $a_order != '0' ) {
638
  echo
639
  '<small class="description" style="color:red" >' .
633
  onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'a_order\', this )"
634
  value="' . esc_attr( $a_order ) . '"
635
  style="width:50px;"
636
+ />&nbsp;';
637
  if ( wppa_opt( 'list_albums_by' ) != '1' && $a_order != '0' ) {
638
  echo
639
  '<small class="description" style="color:red" >' .
wppa-functions.php CHANGED
@@ -951,7 +951,7 @@ global $other_deps;
951
  }
952
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
953
  global $wppa_version;
954
- $expected_version = '8.0.07.017';
955
  if ( $wppa_version != $expected_version ) {
956
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
957
  }
951
  }
952
  else wppa_out( '<span style="color:red">ERROR: Missing function wppa_theme(), check the installation of WPPA+. Remove customized wppa_theme.php</span>' );
953
  global $wppa_version;
954
+ $expected_version = '8.0.08.008';
955
  if ( $wppa_version != $expected_version ) {
956
  wppa_dbg_msg( 'WARNING: customized wppa-theme.php is out of rev. Expected version: ' . $expected_version . ' found: ' . $wppa_version, 'red' );
957
  }
wppa-setting-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.07.005
7
  *
8
  */
9
 
@@ -958,7 +958,7 @@ global $wppa_cur_subtab;
958
  class="wppa-setting-content ' . $wppa_cur_subtab . '"
959
  style="display:none;"
960
  >
961
- <table class="widefat wppa-table wppa-setting-table">
962
 
963
  <colgroup>';
964
  foreach( $cols as $size ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.08.008
7
  *
8
  */
9
 
958
  class="wppa-setting-content ' . $wppa_cur_subtab . '"
959
  style="display:none;"
960
  >
961
+ <table class="widefat wppa-table wppa-setting-table striped" >
962
 
963
  <colgroup>';
964
  foreach( $cols as $size ) {
wppa-slideshow.php CHANGED
@@ -1071,7 +1071,7 @@ global $wpdb;
1071
  ' class="wppa-rating-label"' .
1072
  '>' .
1073
  $myrat_label .
1074
- '</span>&nbsp';
1075
  }
1076
 
1077
  // Show dislike icon?
1071
  ' class="wppa-rating-label"' .
1072
  '>' .
1073
  $myrat_label .
1074
+ '</span>&nbsp;';
1075
  }
1076
 
1077
  // Show dislike icon?
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: 8.0.08.007
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/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.0.08.007'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
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: 8.0.08.008
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/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.0.08.008'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30