WP Photo Album Plus - Version 7.5.10.002

Version Description

= 7.5.09 =

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

Release Info

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

Code changes from version 7.5.10.001 to 7.5.10.002

changelog.txt CHANGED
@@ -3,6 +3,8 @@ WP Photo Album Plus Changelog
3
  = 7.5.10 =
4
 
5
  * Searching on numbers on the album admin screen now also returns real search results besides the already implemented list of ids.
 
 
6
 
7
  = 7.5.09 =
8
 
3
  = 7.5.10 =
4
 
5
  * Searching on numbers on the album admin screen now also returns real search results besides the already implemented list of ids.
6
+ * Slideshow filmstrips now aways use the thumbnail files, regardless of selected aspect ratio or cdn service.
7
+ * Extended options for slidehow animation time in Table IV-B6.
8
 
9
  = 7.5.09 =
10
 
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.5.08
7
  *
8
  */
9
 
@@ -4713,8 +4713,8 @@ global $wppa_supported_camara_brands;
4713
  $help = (__('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus'));
4714
  $help .= '<br />'.(__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus'));
4715
  $slug = 'wppa_animation_speed';
4716
- $options = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.');
4717
- $values = array('10', '200', '400', '800', '1200', '2000', '4000');
4718
  $html = wppa_select($slug, $options, $values);
4719
  $clas = 'wppa_ss';
4720
  $tags = 'slide';
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.5.10
7
  *
8
  */
9
 
4713
  $help = (__('Specify the animation speed to be used in slideshows.', 'wp-photo-album-plus'));
4714
  $help .= '<br />'.(__('This is the time it takes a photo to fade in or out.', 'wp-photo-album-plus'));
4715
  $slug = 'wppa_animation_speed';
4716
+ $options = array(__('--- off ---', 'wp-photo-album-plus'), '200 ms.', '400 ms.', '800 ms.', '1.2 s.', '2 s.', '4 s.', '6 s.', '8 s.', '10 s.');
4717
+ $values = array('10', '200', '400', '800', '1200', '2000', '4000', '6000', '8000', '10000');
4718
  $html = wppa_select($slug, $options, $values);
4719
  $clas = 'wppa_ss';
4720
  $tags = 'slide';
wppa-thumbnails.php CHANGED
@@ -5,7 +5,7 @@
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
- * Version 7.5.05
9
  *
10
  */
11
 
@@ -1849,7 +1849,7 @@ function wppa_do_filmthumb( $id, $idx, $do_for_feed = false, $glue = false ) {
1849
  $imgwidth = $imgattr_a['width'];
1850
  $imgheight = $imgattr_a['height'];
1851
  $cursor = $imgattr_a['cursor'];
1852
- $url = wppa_get_thumb_url( $thumb['id'], true, '', $imgwidth, $imgheight );
1853
  $furl = wppa_switch( 'lb_hres' ) ? wppa_get_hires_url( $thumb['id'] ) : wppa_get_photo_url( $thumb['id'] );
1854
  $events = wppa_get_imgevents( 'film', $thumb['id'], 'nopopup', $idx );
1855
  $thumbname = wppa_get_photo_name( $thumb['id'] );
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
+ * Version 7.5.10
9
  *
10
  */
11
 
1849
  $imgwidth = $imgattr_a['width'];
1850
  $imgheight = $imgattr_a['height'];
1851
  $cursor = $imgattr_a['cursor'];
1852
+ $url = wppa_get_thumb_url( $thumb['id'], true, '', $imgwidth, $imgheight, true );
1853
  $furl = wppa_switch( 'lb_hres' ) ? wppa_get_hires_url( $thumb['id'] ) : wppa_get_photo_url( $thumb['id'] );
1854
  $events = wppa_get_imgevents( 'film', $thumb['id'], 'nopopup', $idx );
1855
  $thumbname = wppa_get_photo_name( $thumb['id'] );
wppa-utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
- * Version 7.5.08
7
  *
8
  */
9
 
@@ -33,6 +33,11 @@ global $blog_id;
33
 
34
  $thumb = wppa_cache_thumb( $id );
35
 
 
 
 
 
 
36
  // If in the cloud...
37
  $is_old = wppa_too_old_for_cloud( $id );
38
  if ( wppa_cdn( 'front' ) &&
@@ -45,32 +50,29 @@ global $blog_id;
45
  // Only when size is given !! To prevent download of the fullsize image
46
  if ( $x && $y ) {
47
 
48
- // Only when default thumb aspect
49
- if ( wppa_opt( 'thumb_aspect' ) == '0:0:none' ) {
50
- switch ( wppa_cdn( 'front' ) ) {
51
- case 'local':
52
- $url = wppa_cdn_url( $id, $x, $y );
53
- if ( $url ) {
54
- return $url;
55
- }
56
- break;
57
-
58
- case 'cloudinary':
59
- $transform = explode( ':', wppa_opt( 'thumb_aspect' ) );
60
- $t = 'limit';
61
- if ( $transform['2'] == 'clip' ) $t = 'fill';
62
- if ( $transform['2'] == 'padd' ) $t = 'pad,b_black';
63
- $q = wppa_opt( 'jpeg_quality' );
64
- $sizespec = ( $x && $y ) ? 'w_'.$x.',h_'.$y.',c_'.$t.',q_'.$q.'/' : '';
65
- $prefix = ( is_multisite() && ! WPPA_MULTISITE_GLOBAL ) ? $blog_id.'-' : '';
66
- $s = is_ssl() ? 's' : '';
67
- $url = 'http'.$s.'://res.cloudinary.com/'.wppa_get_option('wppa_cdn_cloud_name').'/image/upload/'.$sizespec.$prefix.$thumb['id'].'.'.$thumb['ext'];
68
  return $url;
69
- break;
 
70
 
71
- default:
72
- break;
73
- }
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
  }
76
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains low-level utility routines
6
+ * Version 7.5.10
7
  *
8
  */
9
 
33
 
34
  $thumb = wppa_cache_thumb( $id );
35
 
36
+ // If thumbratio not default, do not use the cdn version
37
+ if ( wppa_opt( 'thumb_aspect' ) != '0:0:none' ) {
38
+ $use_thumbfile = true;
39
+ }
40
+
41
  // If in the cloud...
42
  $is_old = wppa_too_old_for_cloud( $id );
43
  if ( wppa_cdn( 'front' ) &&
50
  // Only when size is given !! To prevent download of the fullsize image
51
  if ( $x && $y ) {
52
 
53
+ switch ( wppa_cdn( 'front' ) ) {
54
+ case 'local':
55
+ $url = wppa_cdn_url( $id, $x, $y );
56
+ if ( $url ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  return $url;
58
+ }
59
+ break;
60
 
61
+ case 'cloudinary':
62
+ $transform = explode( ':', wppa_opt( 'thumb_aspect' ) );
63
+ $t = 'limit';
64
+ if ( $transform['2'] == 'clip' ) $t = 'fill';
65
+ if ( $transform['2'] == 'padd' ) $t = 'pad,b_black';
66
+ $q = wppa_opt( 'jpeg_quality' );
67
+ $sizespec = ( $x && $y ) ? 'w_'.$x.',h_'.$y.',c_'.$t.',q_'.$q.'/' : '';
68
+ $prefix = ( is_multisite() && ! WPPA_MULTISITE_GLOBAL ) ? $blog_id.'-' : '';
69
+ $s = is_ssl() ? 's' : '';
70
+ $url = 'http'.$s.'://res.cloudinary.com/'.wppa_get_option('wppa_cdn_cloud_name').'/image/upload/'.$sizespec.$prefix.$thumb['id'].'.'.$thumb['ext'];
71
+ return $url;
72
+ break;
73
+
74
+ default:
75
+ break;
76
  }
77
  }
78
  }
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.5.10.001
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_revno; $wppa_revno = '7510'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.5.10.001'; // WPPA software version
28
 
29
  /* Init page js data */
30
  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.5.10.002
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_revno; $wppa_revno = '7510'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.5.10.002'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';