WP Photo Album Plus - Version 8.0.01.002

Version Description

= 8.0.00 =

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

Release Info

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

Code changes from version 8.0.01.001 to 8.0.01.002

Files changed (3) hide show
  1. wppa-links.php +8 -8
  2. wppa-settings-autosave.php +58 -54
  3. wppa.php +2 -2
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 8.0.00.023
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -265,7 +265,7 @@ function wppa_get_slideshow_url( $id, $page = '', $pid = '', $occ = '' ) {
265
  $occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'occur' );
266
  $w = wppa_in_widget() ? 'w' : '';
267
  }
268
- $link = wppa_get_permalink( $page ) . 'wppa-album=' . $id . '&wppa-slide' . '&wppa-' . $w . 'occur=' . $occur; // slide=true changed in slide
269
  if ( $pid ) $link .= '&wppa-photo=' . $pid;
270
  if ( wppa( 'is_upldr' ) ) $link .= '&wppa-upldr=' . wppa( 'is_upldr' );
271
  // can be extended for other special cases, see wppa_thumb_default() in wppa-functions.php
@@ -286,7 +286,7 @@ function wppa_get_slideshow_url_ajax($id, $page = '') {
286
  if ($id) {
287
  $occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'mocc' );
288
  $w = wppa_in_widget() ? 'w' : '';
289
- $link = wppa_get_ajaxlink($page).'wppa-album='.$id.'&wppa-slide'.'&wppa-'.$w.'occur='.$occur; // slide=true changed in slide
290
  if ( wppa( 'is_upldr' ) ) $link .= '&wppa-upldr='.wppa( 'is_upldr' );
291
  // can be extended for other special cases, see wppa_thumb_default() in wppa-functions.php
292
  }
@@ -294,7 +294,7 @@ function wppa_get_slideshow_url_ajax($id, $page = '') {
294
  $link = wppa_get_ajaxlink( $page ) .
295
  '&wppa-calendar=' . wppa( 'calendar' ) .
296
  '&wppa-caldate=' . wppa( 'caldate' ) .
297
- '&wppa-slide' .
298
  ( wppa( 'start_album' ) ? '& wppa-album=' . wppa( 'start_album' ) : '' ) .
299
  '&wppa-occur=' . wppa( 'mocc' );
300
  }
@@ -348,7 +348,7 @@ function wppa_convert_from_pretty( $uri ) {
348
  $deltauri = 'wppa-photo=';
349
  break;
350
  case 'sd':
351
- $deltauri = 'wppa-slide';
352
  break;
353
  case 'cv':
354
  $deltauri = 'wppa-cover=';
@@ -658,7 +658,7 @@ function wppa_convert_to_pretty( $xuri, $no_names = false, $overrule = false ) {
658
  foreach ( $args as $arg ) {
659
  $t = explode('=', $arg);
660
  $code = $t['0'];
661
- if ( isset($t['1']) ) $val = $t['1']; else $val = false;
662
  if ( in_array( $code, $support ) ) {
663
  $newuri .= '/';
664
  switch ( $code ) {
@@ -1046,7 +1046,7 @@ function wppa_get_slide_callback_url( $id ) {
1046
  if ( wppa( 'start_album' ) ) $url .= 'wppa-album=' . wppa( 'start_album' ) . '&';
1047
  else $url .= 'wppa-album=0&';
1048
  $url .= 'wppa-cover=0&';
1049
- $url .= 'wppa-slide&';
1050
  if ( wppa( 'is_single' ) ) $url .= 'wppa-single=1&';
1051
  if ( wppa_in_widget() ) $url .= 'wppa-woccur=' . wppa( 'widget_occur' ) . '&';
1052
  else $url .= 'wppa-occur=' . wppa( 'occur' ) . '&';
@@ -2236,7 +2236,7 @@ global $wppa_locale;
2236
  }
2237
 
2238
  if ( wppa( 'is_filmonly' ) ) $url .= 'wppa-filmonly=1&';
2239
- if ( wppa( 'is_slide' ) ) $url .= 'wppa-slide&';
2240
  if ( wppa( 'is_slideonly' ) ) $url .= 'wppa-slideonly=1&';
2241
  if ( wppa( 'is_cover' ) ) $url .= 'wppa-cover=1&';// else $url .= 'wppa-cover=0&';
2242
  if ( wppa( 'start_photo' ) ) $url .= 'wppa-photo=' . wppa( 'start_photo' ) . '&';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 8.0.01.002
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
265
  $occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'occur' );
266
  $w = wppa_in_widget() ? 'w' : '';
267
  }
268
+ $link = wppa_get_permalink( $page ) . 'wppa-album=' . $id . '&wppa-slide=1' . '&wppa-' . $w . 'occur=' . $occur; // slide=true changed in slide
269
  if ( $pid ) $link .= '&wppa-photo=' . $pid;
270
  if ( wppa( 'is_upldr' ) ) $link .= '&wppa-upldr=' . wppa( 'is_upldr' );
271
  // can be extended for other special cases, see wppa_thumb_default() in wppa-functions.php
286
  if ($id) {
287
  $occur = wppa_in_widget() ? wppa( 'widget_occur' ) : wppa( 'mocc' );
288
  $w = wppa_in_widget() ? 'w' : '';
289
+ $link = wppa_get_ajaxlink($page).'wppa-album='.$id.'&wppa-slide=1'.'&wppa-'.$w.'occur='.$occur; // slide=true changed in slide
290
  if ( wppa( 'is_upldr' ) ) $link .= '&wppa-upldr='.wppa( 'is_upldr' );
291
  // can be extended for other special cases, see wppa_thumb_default() in wppa-functions.php
292
  }
294
  $link = wppa_get_ajaxlink( $page ) .
295
  '&wppa-calendar=' . wppa( 'calendar' ) .
296
  '&wppa-caldate=' . wppa( 'caldate' ) .
297
+ '&wppa-slide=1' .
298
  ( wppa( 'start_album' ) ? '& wppa-album=' . wppa( 'start_album' ) : '' ) .
299
  '&wppa-occur=' . wppa( 'mocc' );
300
  }
348
  $deltauri = 'wppa-photo=';
349
  break;
350
  case 'sd':
351
+ $deltauri = 'wppa-slide=';
352
  break;
353
  case 'cv':
354
  $deltauri = 'wppa-cover=';
658
  foreach ( $args as $arg ) {
659
  $t = explode('=', $arg);
660
  $code = $t['0'];
661
+ if ( isset($t['1']) ) $val = $t['1']; else $val = '1';
662
  if ( in_array( $code, $support ) ) {
663
  $newuri .= '/';
664
  switch ( $code ) {
1046
  if ( wppa( 'start_album' ) ) $url .= 'wppa-album=' . wppa( 'start_album' ) . '&';
1047
  else $url .= 'wppa-album=0&';
1048
  $url .= 'wppa-cover=0&';
1049
+ $url .= 'wppa-slide=1&';
1050
  if ( wppa( 'is_single' ) ) $url .= 'wppa-single=1&';
1051
  if ( wppa_in_widget() ) $url .= 'wppa-woccur=' . wppa( 'widget_occur' ) . '&';
1052
  else $url .= 'wppa-occur=' . wppa( 'occur' ) . '&';
2236
  }
2237
 
2238
  if ( wppa( 'is_filmonly' ) ) $url .= 'wppa-filmonly=1&';
2239
+ if ( wppa( 'is_slide' ) ) $url .= 'wppa-slide=1&';
2240
  if ( wppa( 'is_slideonly' ) ) $url .= 'wppa-slideonly=1&';
2241
  if ( wppa( 'is_cover' ) ) $url .= 'wppa-cover=1&';// else $url .= 'wppa-cover=0&';
2242
  if ( wppa( 'start_photo' ) ) $url .= 'wppa-photo=' . wppa( 'start_photo' ) . '&';
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.019
7
  *
8
  */
9
 
@@ -7671,65 +7671,69 @@ global $wppa_subtab_names;
7671
  $slug = 'wppa_upload_edit';
7672
  $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('Classic', 'wp-photo-album-plus'), __('New style', 'wp-photo-album-plus') );
7673
  $vals = array( '-none-', 'classic', 'new' );
7674
- $html = wppa_select($slug, $opts, $vals);
7675
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
7676
 
7677
- $name = __('Fe Edit users', 'wp-photo-album-plus');
7678
- $desc = __('The criteria the user must meet to edit photo info', 'wp-photo-album-plus');
7679
- $help = '';
7680
- $slug = 'wppa_upload_edit_users';
7681
- $opts = array( __('Admin and superuser', 'wp-photo-album-plus'), __('Owner, admin and superuser', 'wp-photo-album-plus' ) );
7682
- $vals = array( 'admin', 'owner' );
7683
- $html = wppa_select($slug, $opts, $vals);
7684
- wppa_setting_new($slug, '2', $name, $desc, $html, $help);
7685
 
7686
- $name = __('Fe Edit period', 'wp-photo-album-plus');
7687
- $desc = __('The time since upload the user can edit photo info', 'wp-photo-album-plus');
7688
- $help = __('Frontend Edit should be set in order to have effect', 'wp-photo-album-plus');
7689
- $help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
7690
- $slug = 'wppa_upload_edit_period';
7691
- $opts = array( __('15 minutes', 'wp-photo-album-plus'),
7692
- __('one hour', 'wp-photo-album-plus'),
7693
- __('three hours', 'wp-photo-album-plus'),
7694
- __('one day', 'wp-photo-album-plus'),
7695
- __('for ever', 'wp-photo-album-plus'),
7696
- );
7697
- $vals = array( 900, 3600, 10800, 86400, 0 );
7698
- $html = wppa_select($slug, $opts, $vals);
7699
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
7700
 
7701
- $name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
7702
- $desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
7703
- $help = __('This setting has effect when Frontend Edit is set to \'Classic\' only.', 'wp-photo-album-plus');
7704
- $slug = 'wppa_upload_edit_theme_css';
7705
- $html = wppa_checkbox($slug);
7706
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
7707
 
7708
- $name = __('Fe Edit New Items', 'wp-photo-album-plus');
7709
- $desc = __('The items that are fe editable', 'wp-photo-album-plus');
7710
- $help = wppa_see_also( 'custom', '2' );
7711
- $slug1 = 'wppa_fe_edit_name';
7712
- $slug2 = 'wppa_fe_edit_desc';
7713
- $slug3 = 'wppa_fe_edit_tags';
7714
- $html1 = ' <span style="float:left" >'.__('Name', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug1);
7715
- $html2 = ' <span style="float:left" >'.__('Description', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug2);
7716
- $html3 = ' <span style="float:left" >'.__('Tags', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug3);
7717
- $html = array($html1.$html2.$html3);
7718
- wppa_setting_new($slug1, '5', $name, $desc, $html, $help);
7719
-
7720
- $name = __('Fe Edit Button text', 'wp-photo-album-plus');
7721
- $desc = __('The text on the Edit button.', 'wp-photo-album-plus');
7722
- $help = '';
7723
- $slug = 'wppa_fe_edit_button';
7724
- $html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
7725
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7726
 
7727
- $name = __('Fe Edit Dialog caption', 'wp-photo-album-plus');
7728
- $desc = __('The text on the header of the popup.', 'wp-photo-album-plus');
7729
- $help = '';
7730
- $slug = 'wppa_fe_edit_caption';
7731
- $html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
7732
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7733
 
7734
  $name = __('Frontend Delete', 'wp-photo-album-plus');
7735
  $desc = __('Allow the uploader to delete the photo', 'wp-photo-album-plus');
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.01.002
7
  *
8
  */
9
 
7671
  $slug = 'wppa_upload_edit';
7672
  $opts = array( __('--- none ---', 'wp-photo-album-plus'), __('Classic', 'wp-photo-album-plus'), __('New style', 'wp-photo-album-plus') );
7673
  $vals = array( '-none-', 'classic', 'new' );
7674
+ $html = wppa_select($slug, $opts, $vals, 'wppaRefreshAfter();' );
7675
  wppa_setting_new($slug, '1', $name, $desc, $html, $help);
7676
 
7677
+ if ( wppa_opt( 'upload_edit' ) != '-none-' ) {
 
 
 
 
 
 
 
7678
 
7679
+ $name = __('Fe Edit users', 'wp-photo-album-plus');
7680
+ $desc = __('The criteria the user must meet to edit photo info', 'wp-photo-album-plus');
7681
+ $help = '';
7682
+ $slug = 'wppa_upload_edit_users';
7683
+ $opts = array( __('Admin and superuser', 'wp-photo-album-plus'), __('Owner, admin and superuser', 'wp-photo-album-plus' ) );
7684
+ $vals = array( 'admin', 'owner' );
7685
+ $html = wppa_select($slug, $opts, $vals);
7686
+ wppa_setting_new($slug, '2', $name, $desc, $html, $help);
 
 
 
 
 
 
7687
 
7688
+ $name = __('Fe Edit period', 'wp-photo-album-plus');
7689
+ $desc = __('The time since upload the user can edit photo info', 'wp-photo-album-plus');
7690
+ $help = __('Frontend Edit should be set in order to have effect', 'wp-photo-album-plus');
7691
+ $help .= '. ' . __('This limit does not apply for administrators and superusers', 'wp-photo-album-plus');
7692
+ $slug = 'wppa_upload_edit_period';
7693
+ $opts = array( __('15 minutes', 'wp-photo-album-plus'),
7694
+ __('one hour', 'wp-photo-album-plus'),
7695
+ __('three hours', 'wp-photo-album-plus'),
7696
+ __('one day', 'wp-photo-album-plus'),
7697
+ __('for ever', 'wp-photo-album-plus'),
7698
+ );
7699
+ $vals = array( 900, 3600, 10800, 86400, 0 );
7700
+ $html = wppa_select($slug, $opts, $vals);
7701
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
7702
 
7703
+ $name = __('Fe Edit Theme CSS', 'wp-photo-album-plus');
7704
+ $desc = __('The front-end edit photo dialog uses the theme CSS.', 'wp-photo-album-plus');
7705
+ $help = __('This setting has effect when Frontend Edit is set to \'Classic\' only.', 'wp-photo-album-plus');
7706
+ $slug = 'wppa_upload_edit_theme_css';
7707
+ $html = wppa_checkbox($slug);
7708
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
 
 
 
 
 
 
 
 
 
 
 
 
7709
 
7710
+ $name = __('Fe Edit New Items', 'wp-photo-album-plus');
7711
+ $desc = __('The items that are fe editable', 'wp-photo-album-plus');
7712
+ $help = wppa_see_also( 'custom', '2' );
7713
+ $slug1 = 'wppa_fe_edit_name';
7714
+ $slug2 = 'wppa_fe_edit_desc';
7715
+ $slug3 = 'wppa_fe_edit_tags';
7716
+ $html1 = ' <span style="float:left" >'.__('Name', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug1);
7717
+ $html2 = ' <span style="float:left" >'.__('Description', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug2);
7718
+ $html3 = ' <span style="float:left" >'.__('Tags', 'wp-photo-album-plus').':</span>'.wppa_checkbox($slug3);
7719
+ $html = array($html1.$html2.$html3);
7720
+ wppa_setting_new($slug1, '5', $name, $desc, $html, $help);
7721
+
7722
+ $name = __('Fe Edit Button text', 'wp-photo-album-plus');
7723
+ $desc = __('The text on the Edit button.', 'wp-photo-album-plus');
7724
+ $help = '';
7725
+ $slug = 'wppa_fe_edit_button';
7726
+ $html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
7727
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
7728
+
7729
+ $name = __('Fe Edit Dialog caption', 'wp-photo-album-plus');
7730
+ $desc = __('The text on the header of the popup.', 'wp-photo-album-plus');
7731
+ $help = '';
7732
+ $slug = 'wppa_fe_edit_caption';
7733
+ $html = wppa_edit($slug, wppa_get_option( $slug ), '300px');
7734
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
7735
+
7736
+ }
7737
 
7738
  $name = __('Frontend Delete', 'wp-photo-album-plus');
7739
  $desc = __('Allow the uploader to delete the photo', 'wp-photo-album-plus');
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.01.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_api_version;
27
- $wppa_api_version = '8.0.01.001'; // 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.01.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_api_version;
27
+ $wppa_api_version = '8.0.01.002'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30