WP Photo Album Plus - Version 7.5.10.006

Version Description

= 7.5.10 =

  • 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.006
Comparing to
See all releases

Code changes from version 7.5.10.004 to 7.5.10.006

changelog.txt CHANGED
@@ -7,6 +7,8 @@ WP Photo Album Plus Changelog
7
  * Extended options for slidehow animation time in Table IV-B6.
8
  * Fixed a imagick command that could cause unwanted padding in thumbnail creation.
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
 
 
10
 
11
  = 7.5.09 =
12
 
7
  * Extended options for slidehow animation time in Table IV-B6.
8
  * Fixed a imagick command that could cause unwanted padding in thumbnail creation.
9
  * The availebility of ImagMagick is now detected and activated automatically on opening the settings page the first time after install/update if it was not already done manually.
10
+ * New setting Table I-F15: Character sizing.
11
+ You can specify 'linear' (default) or 'quadratic' for the formula that determines the relation between the number of items and the size of the tagcloud text.
12
 
13
  = 7.5.09 =
14
 
wppa-ajax.php CHANGED
@@ -455,6 +455,8 @@ global $wppa_opt;
455
  wppa_log('dbg', 'Bypassed nonce');
456
  }
457
  else {
 
 
458
  if ( ! wp_verify_nonce( $nonce, 'wppa-nonce-'.$mocc ) ) {
459
  wppa_secfail( '70' );
460
  }
455
  wppa_log('dbg', 'Bypassed nonce');
456
  }
457
  else {
458
+ wppa_log('obs', 'Expected nonce = '.wp_create_nonce('wppa-nonce-'.$mocc).', supplied nonce = '.$nonce);
459
+ wppa_log('obs', var_export($_REQUEST,true));
460
  if ( ! wp_verify_nonce( $nonce, 'wppa-nonce-'.$mocc ) ) {
461
  wppa_secfail( '70' );
462
  }
wppa-boxes-html.php CHANGED
@@ -359,7 +359,7 @@ global $wppa_session;
359
 
360
  // If still no luck, use wp default
361
  if ( ! $form_core ) {
362
-
363
  $format = current_theme_supports( 'html5', 'search-form' ) ? 'html5' : 'xhtml';
364
  $format = apply_filters( 'search_form_format', $format );
365
 
@@ -1317,7 +1317,9 @@ function wppa_get_tagcloud_html( $seltags = '', $minsize = '8', $maxsize = '24'
1317
  foreach ( $tags as $tag ) { // Find largest percentage
1318
  if ( $tag['fraction'] > $top ) $top = $tag['fraction'];
1319
  }
1320
- if ( $top ) $factor = ( $maxsize - $minsize ) / $top;
 
 
1321
  else $factor = '1.0';
1322
  $selarr = $seltags ? explode( ',', $seltags ) : array();
1323
  foreach ( $tags as $tag ) {
@@ -1326,7 +1328,15 @@ function wppa_get_tagcloud_html( $seltags = '', $minsize = '8', $maxsize = '24'
1326
  $href = wppa_encrypt_url( $href );
1327
  $title = sprintf( '%d photos - %s%%', $tag['count'], $tag['fraction'] * '100' );
1328
  $name = $tag['tag'];
1329
- $size = floor( $minsize + $tag['fraction'] * $factor );
 
 
 
 
 
 
 
 
1330
  $result .= '<a' .
1331
  ' href="' . $href . '"' .
1332
  ' title="' . $title . '"' .
359
 
360
  // If still no luck, use wp default
361
  if ( ! $form_core ) {
362
+
363
  $format = current_theme_supports( 'html5', 'search-form' ) ? 'html5' : 'xhtml';
364
  $format = apply_filters( 'search_form_format', $format );
365
 
1317
  foreach ( $tags as $tag ) { // Find largest percentage
1318
  if ( $tag['fraction'] > $top ) $top = $tag['fraction'];
1319
  }
1320
+ if ( $top ) {
1321
+ $factor = ( $maxsize - $minsize ) / $top;
1322
+ }
1323
  else $factor = '1.0';
1324
  $selarr = $seltags ? explode( ',', $seltags ) : array();
1325
  foreach ( $tags as $tag ) {
1328
  $href = wppa_encrypt_url( $href );
1329
  $title = sprintf( '%d photos - %s%%', $tag['count'], $tag['fraction'] * '100' );
1330
  $name = $tag['tag'];
1331
+ if ( wppa_opt( 'tagcloud_formula' ) == 'quadratic' ) {
1332
+ $x = $minsize + $tag['fraction'] * $factor;
1333
+ $s = $minsize;
1334
+ $l = $maxsize;
1335
+ $size = round(sqrt(($x-$s)/($l-$s))*($l-$s)+$s);
1336
+ }
1337
+ else {
1338
+ $size = round( $minsize + $tag['fraction'] * $factor );
1339
+ }
1340
  $result .= '<a' .
1341
  ' href="' . $href . '"' .
1342
  ' title="' . $title . '"' .
wppa-defaults.php CHANGED
@@ -161,6 +161,7 @@ horizrailenabled:false,";
161
  'wppa_related_count' => '10',
162
  'wppa_tagcloud_min' => '8',
163
  'wppa_tagcloud_max' => '24',
 
164
 
165
  // G Overlay
166
  'wppa_ovl_txt_lines' => 'auto', // 1
161
  'wppa_related_count' => '10',
162
  'wppa_tagcloud_min' => '8',
163
  'wppa_tagcloud_max' => '24',
164
+ 'wppa_tagcloud_formula' => 'linear',
165
 
166
  // G Overlay
167
  'wppa_ovl_txt_lines' => 'auto', // 1
wppa-settings-autosave.php CHANGED
@@ -1641,6 +1641,18 @@ global $wppa_supported_camara_brands;
1641
  $clas = '';
1642
  $tags = 'layout,size,widget';
1643
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
 
 
 
 
 
 
 
 
 
 
 
 
1644
  }
1645
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related size settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
1646
  {
1641
  $clas = '';
1642
  $tags = 'layout,size,widget';
1643
  wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
1644
+
1645
+ $name = __('Character sizing', 'wp-photo-album-plus');
1646
+ $desc = __('Formula to decide fontsizes', 'wp-photo-album-plus');
1647
+ $help = '';
1648
+ $slug = 'wppa_tagcloud_formula';
1649
+ $opts = array('linear', 'quadratic');
1650
+ $vals = array('linear', 'quadratic');
1651
+ $html = wppa_select($slug, $opts, $vals);
1652
+ $clas = '';
1653
+ $tags = 'layout,size,widget';
1654
+ wppa_setting($slug, '15', $name, $desc, $html, $help, $clas, $tags);
1655
+
1656
  }
1657
  wppa_setting_subheader( 'G', '1', __( 'Lightbox related size settings. These settings have effect only when Table IX-J3 is set to wppa' , 'wp-photo-album-plus') );
1658
  {
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.004
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.004'; // 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.006
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.006'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';