WP Photo Album Plus - Version 8.1.01.002

Version Description

= 8.0.10 =

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

Code changes from version 8.1.01.001 to 8.1.01.002

changelog.txt CHANGED
@@ -2,11 +2,14 @@ WP Photo Album Plus Changelog
2
 
3
  = 8.1.01 =
4
 
5
- * Lightbox on slide images did not always show the full list of items. Fixed.
6
  * You can now also send emails on backend uploads/imports. See: Advanced settings -> Email -> I -> Item 2: Mail on upload.
7
- Works only when frontend upload mailing is activated.
 
 
8
  * Fixed a nicescroller issue.
9
  * Html tags were stripped when changing album or photo descriptions. Fixed.
 
10
 
11
  = 8.1.00 =
12
 
2
 
3
  = 8.1.01 =
4
 
5
+ * Lightbox on slide images did not always show the full list of items. Fixed. ?
6
  * You can now also send emails on backend uploads/imports. See: Advanced settings -> Email -> I -> Item 2: Mail on upload.
7
+ Works only when frontend upload mailing is activated.
8
+ Mails are sent after 15 minutes.
9
+ You can also specify if preview thumbnails should be included.
10
  * Fixed a nicescroller issue.
11
  * Html tags were stripped when changing album or photo descriptions. Fixed.
12
+ * Slideshow widgets did not start when cached. Fixed.
13
 
14
  = 8.1.00 =
15
 
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.1.00.008
7
  *
8
  */
9
 
@@ -498,7 +498,7 @@ global $wppa_revno;
498
  }
499
  }';
500
 
501
- wp_add_inline_script( 'wppa-admin', $the_js );
502
 
503
  // The header
504
  echo '
@@ -1768,7 +1768,7 @@ global $wppa_revno;
1768
  var href = "' . get_admin_url() . 'admin.php?page=wppa_admin_menu&wppa-nonce="+nonce+"&tab=edit&edit-id="+id;
1769
  document.location.href=href;
1770
  };';
1771
- wp_add_inline_script( 'wppa-admin', $the_js );
1772
 
1773
  ?>
1774
 
@@ -2645,7 +2645,7 @@ global $wpdb;
2645
  }
2646
  }';
2647
 
2648
- wp_add_inline_script( 'wppa-admin', $the_js );
2649
 
2650
  wppa_album_table_pagination( $page, $count );
2651
  wppa_album_admin_footer();
@@ -2923,7 +2923,7 @@ global $wpdb;
2923
  wppa_setCookie("alb-arrow-'.$id.'","off",365);
2924
  }
2925
  });';
2926
- wp_add_inline_script( 'wppa-admin', $the_js );
2927
  }
2928
  }
2929
 
@@ -3435,7 +3435,7 @@ global $wpdb;
3435
  jQuery( "#wppa-album-seqno-" + album ).html( spinnerhtml );
3436
  }';
3437
 
3438
- wp_add_inline_script( 'wppa-admin', $the_js );
3439
 
3440
  ?>
3441
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
498
  }
499
  }';
500
 
501
+ wppa_add_inline_script( 'wppa-admin', $the_js );
502
 
503
  // The header
504
  echo '
1768
  var href = "' . get_admin_url() . 'admin.php?page=wppa_admin_menu&wppa-nonce="+nonce+"&tab=edit&edit-id="+id;
1769
  document.location.href=href;
1770
  };';
1771
+ wppa_add_inline_script( 'wppa-admin', $the_js );
1772
 
1773
  ?>
1774
 
2645
  }
2646
  }';
2647
 
2648
+ wppa_add_inline_script( 'wppa-admin', $the_js );
2649
 
2650
  wppa_album_table_pagination( $page, $count );
2651
  wppa_album_admin_footer();
2923
  wppa_setCookie("alb-arrow-'.$id.'","off",365);
2924
  }
2925
  });';
2926
+ wppa_add_inline_script( 'wppa-admin', $the_js );
2927
  }
2928
  }
2929
 
3435
  jQuery( "#wppa-album-seqno-" + album ).html( spinnerhtml );
3436
  }';
3437
 
3438
+ wppa_add_inline_script( 'wppa-admin', $the_js );
3439
 
3440
  ?>
3441
 
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.1.00.009
7
  *
8
  */
9
 
@@ -1731,7 +1731,7 @@ function wppa_get_multitag_html( $nperline = '2', $seltags = '' ) {
1731
  }
1732
  }
1733
  ';
1734
- wp_add_inline_script( 'wppa', $the_js );
1735
 
1736
  $qtag = wppa_get( 'tag', '', 'text' );
1737
  $andor = $or_only ? 'or' : 'and'; // default
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
1731
  }
1732
  }
1733
  ';
1734
+ wppa_add_inline_script( 'wppa', $the_js );
1735
 
1736
  $qtag = wppa_get( 'tag', '', 'text' );
1737
  $andor = $or_only ? 'or' : 'and'; // default
wppa-common-functions.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
- * Version 8.1.00.008
6
  *
7
  */
8
 
2
  /* wppa-common-functions.php
3
  *
4
  * Functions used in admin and in themes
5
+ * Version 8.1.01.002
6
  *
7
  */
8
 
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.1.01.001
7
  *
8
  */
9
 
@@ -1169,6 +1169,7 @@ horizrailenabled:false,";
1169
  'wppa_newalbumnotify' => 'no',
1170
  'wppa_feuploadnotify' => 'no',
1171
  'wppa_beuploadnotify' => 'no',
 
1172
  'wppa_commentnotify' => 'no',
1173
  'wppa_commentnotify_limit' => 'no',
1174
  'wppa_moderatephoto' => 'no',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
1169
  'wppa_newalbumnotify' => 'no',
1170
  'wppa_feuploadnotify' => 'no',
1171
  'wppa_beuploadnotify' => 'no',
1172
+ 'wppa_show_email_thumbs' => 'yes',
1173
  'wppa_commentnotify' => 'no',
1174
  'wppa_commentnotify_limit' => 'no',
1175
  'wppa_moderatephoto' => 'no',
wppa-filter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
- * Version 8.1.00.004
7
  *
8
  */
9
 
@@ -103,7 +103,7 @@ global $wppa_current_shortcode_atts;
103
 
104
  if ( $nices ) {
105
  $the_js = 'jQuery(document).ready(function(){jQuery("#wppa-div-' . $seqno . '").niceScroll(".wppa-divnicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});' . '});';
106
- wp_add_inline_script( 'wppa', $the_js );
107
  }
108
 
109
  return $result;
3
  * Package: wp-photo-album-plus
4
  *
5
  * get the albums via shortcode handler
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
103
 
104
  if ( $nices ) {
105
  $the_js = 'jQuery(document).ready(function(){jQuery("#wppa-div-' . $seqno . '").niceScroll(".wppa-divnicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});' . '});';
106
+ wppa_add_inline_script( 'wppa', $the_js );
107
  }
108
 
109
  return $result;
wppa-import.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
- * Version 8.1.01.001
7
  *
8
  */
9
 
@@ -2105,7 +2105,7 @@ global $wppa_session;
2105
  $id = wppa_insert_photo( $unsanitized_path_name, $alb, stripslashes( $name ), stripslashes( $desc ), $porder, $id, stripslashes( $linkurl ), stripslashes( $linktitle ) );
2106
  if ( $id ) {
2107
  if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
2108
- wppa_schedule_mailinglist( 'feuploadnotify', $alb, $id, 0, '', 0, 300 );
2109
  }
2110
  if ( wppa( 'ajax' ) ) {
2111
  wppa( 'ajax_import_files_done', true );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the import pages and functions
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
2105
  $id = wppa_insert_photo( $unsanitized_path_name, $alb, stripslashes( $name ), stripslashes( $desc ), $porder, $id, stripslashes( $linkurl ), stripslashes( $linktitle ) );
2106
  if ( $id ) {
2107
  if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
2108
+ wppa_schedule_mailinglist( 'feuploadnotify', $alb, $id, 0, '', 0, 900 );
2109
  }
2110
  if ( wppa( 'ajax' ) ) {
2111
  wppa( 'ajax_import_files_done', true );
wppa-mailing.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Contains mailing functions
6
  *
7
- * Version 8.1.01.001
8
  *
9
  */
10
 
@@ -1001,18 +1001,22 @@ function wppa_send_mail( $args ) {
1001
  <td>
1002
  <h3>' . $subj . '</h3>
1003
  </td>
1004
- </tr>
1005
- <tr>';
1006
- if ( ! empty( $photos ) ) {
1007
  $message_part_1 .= '
1008
  <tr>
1009
  <td style="max-width:1024px" >';
 
1010
  foreach( $photo as $p ) {
1011
  $message_part_1 .= '
1012
  <img
1013
  src="' . wppa_get_thumb_url($p) . '" ' . wppa_get_imgalt($p) . '
1014
  style="margin:auto 4px;float:left;"
1015
  />';
 
 
 
 
1016
  }
1017
  $message_part_1 .= '
1018
  </td>
4
  *
5
  * Contains mailing functions
6
  *
7
+ * Version 8.1.01.002
8
  *
9
  */
10
 
1001
  <td>
1002
  <h3>' . $subj . '</h3>
1003
  </td>
1004
+ </tr>';
1005
+ if ( ! empty( $photos ) && wppa_switch( 'show_email_thumbs' ) ) {
 
1006
  $message_part_1 .= '
1007
  <tr>
1008
  <td style="max-width:1024px" >';
1009
+ $i = 0;
1010
  foreach( $photo as $p ) {
1011
  $message_part_1 .= '
1012
  <img
1013
  src="' . wppa_get_thumb_url($p) . '" ' . wppa_get_imgalt($p) . '
1014
  style="margin:auto 4px;float:left;"
1015
  />';
1016
+ $i++;
1017
+ if ( 0 == ( $i % 5 ) ) {
1018
+ $message_part_1 .= '</td></tr><tr><td>';
1019
+ }
1020
  }
1021
  $message_part_1 .= '
1022
  </td>
wppa-maintenance.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
- * Version 8.1.00.009
7
  *
8
  */
9
 
@@ -1587,7 +1587,7 @@ global $wppa_log_file;
1587
 
1588
  // Activate nicescroller on wrapper
1589
  // $the_js = 'if (jQuery("#wppa-maintenance-list").niceScroll) {jQuery(document).ready(function(){jQuery("#wppa-maintenance-list").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});});};';
1590
- // wp_add_inline_script( 'wppa-admin', $the_js );
1591
 
1592
  return htmlspecialchars( $header ) . '|' . $result;
1593
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains (not yet, but in the future maybe) all the maintenance routines
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
1587
 
1588
  // Activate nicescroller on wrapper
1589
  // $the_js = 'if (jQuery("#wppa-maintenance-list").niceScroll) {jQuery(document).ready(function(){jQuery("#wppa-maintenance-list").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});});};';
1590
+ // wppa_add_inline_script( 'wppa-admin', $the_js );
1591
 
1592
  return htmlspecialchars( $header ) . '|' . $result;
1593
  }
wppa-photo-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
- * Version 8.1.00.008
7
  *
8
  */
9
 
@@ -467,7 +467,7 @@ function wppaToggleExif( id, count ) {
467
  }
468
  }";
469
 
470
- wp_add_inline_script( 'wppa-admin', $the_js );
471
 
472
  $mvt = esc_attr( __( 'Move video', 'wp-photo-album-plus' ) );
473
  $mpt = esc_attr( __( 'Move photo', 'wp-photo-album-plus' ) );
@@ -481,7 +481,7 @@ function wppaToggleExif( id, count ) {
481
  // Horizon
482
  wppa_echo( '<div id="wppa-horizon"><hr /></div>', 'post' );
483
 
484
- wp_add_inline_script( 'wppa-admin', 'wppaDragHorizon(document.getElementById("wppa-horizon"))' );
485
 
486
  // Albun name if moderate
487
  static $modalbum;
@@ -1710,7 +1710,7 @@ function wppaToggleExif( id, count ) {
1710
  }
1711
 
1712
  $the_js = 'jQuery(document).ready(function(){wppaCropper[' . $id . '].setAspectRatio(' . $value . ');});';
1713
- wp_add_inline_script( 'wppa-admin', $the_js );
1714
 
1715
  wppa_echo(
1716
  '</td>' .
@@ -1780,7 +1780,7 @@ function wppaToggleExif( id, count ) {
1780
  wppaTryMagick( "' . $id . '", \'crop\', value );
1781
  };
1782
  });';
1783
- wp_add_inline_script( 'wppa-admin', $the_js );
1784
 
1785
  wppa_echo(
1786
  '</div>' .
@@ -2332,7 +2332,7 @@ function wppaToggleExif( id, count ) {
2332
  }
2333
  }
2334
 
2335
- wp_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$id.');' );
2336
 
2337
  wppa_echo(
2338
  '<div style="clear:both"></div>' .
@@ -2565,7 +2565,7 @@ function wppaTryMove( id, video ) {
2565
  }
2566
  }';
2567
 
2568
- wp_add_inline_script( 'wppa-admin', $the_js );
2569
 
2570
  ?>
2571
  <form action="<?php wppa_echo( $link.'&wppa-page='.$page.'#manage-photos', 'post' ) ?>" method="post">
@@ -2862,7 +2862,7 @@ function wppaTryMove( id, video ) {
2862
  <!-- Remark -->
2863
  <td id="remark-<?php wppa_echo( $photo['id'], 'post' ) ?>" style="width:25%">
2864
  <?php _e( 'Not modified' , 'wp-photo-album-plus') ?>
2865
- <?php wp_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$photo['id'].');' ); ?>
2866
  </td>
2867
  </tr>
2868
  <?php } ?>
3
  * Package: wp-photo-album-plus
4
  *
5
  * edit and delete photos
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
467
  }
468
  }";
469
 
470
+ wppa_add_inline_script( 'wppa-admin', $the_js );
471
 
472
  $mvt = esc_attr( __( 'Move video', 'wp-photo-album-plus' ) );
473
  $mpt = esc_attr( __( 'Move photo', 'wp-photo-album-plus' ) );
481
  // Horizon
482
  wppa_echo( '<div id="wppa-horizon"><hr /></div>', 'post' );
483
 
484
+ wppa_add_inline_script( 'wppa-admin', 'wppaDragHorizon(document.getElementById("wppa-horizon"))' );
485
 
486
  // Albun name if moderate
487
  static $modalbum;
1710
  }
1711
 
1712
  $the_js = 'jQuery(document).ready(function(){wppaCropper[' . $id . '].setAspectRatio(' . $value . ');});';
1713
+ wppa_add_inline_script( 'wppa-admin', $the_js );
1714
 
1715
  wppa_echo(
1716
  '</td>' .
1780
  wppaTryMagick( "' . $id . '", \'crop\', value );
1781
  };
1782
  });';
1783
+ wppa_add_inline_script( 'wppa-admin', $the_js );
1784
 
1785
  wppa_echo(
1786
  '</div>' .
2332
  }
2333
  }
2334
 
2335
+ wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$id.');' );
2336
 
2337
  wppa_echo(
2338
  '<div style="clear:both"></div>' .
2565
  }
2566
  }';
2567
 
2568
+ wppa_add_inline_script( 'wppa-admin', $the_js );
2569
 
2570
  ?>
2571
  <form action="<?php wppa_echo( $link.'&wppa-page='.$page.'#manage-photos', 'post' ) ?>" method="post">
2862
  <!-- Remark -->
2863
  <td id="remark-<?php wppa_echo( $photo['id'], 'post' ) ?>" style="width:25%">
2864
  <?php _e( 'Not modified' , 'wp-photo-album-plus') ?>
2865
+ <?php wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$photo['id'].');' ); ?>
2866
  </td>
2867
  </tr>
2868
  <?php } ?>
wppa-scripts.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
- * Version 8.1.00.009
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
@@ -641,7 +641,7 @@ global $wppa_script_open;
641
  }
642
 
643
  // Do it
644
- if ( ! wppa_is_defer() || wppa_is_caching() ) {
645
  wppa_out( '<script>' . $txt . '</script>' );
646
  return;
647
  }
4
  *
5
  * This file contains all functions for activating javascript
6
  *
7
+ * Version 8.1.01.002
8
  */
9
 
10
  // Place all wppa related js declarations in the header, both admin and frontend
641
  }
642
 
643
  // Do it
644
+ if ( ! wppa_is_defer() || wppa_is_caching() || wppa( 'in_widget' ) ) {
645
  wppa_out( '<script>' . $txt . '</script>' );
646
  return;
647
  }
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.1.01.001
7
  *
8
  */
9
 
@@ -690,7 +690,7 @@ global $wppa_subtab_names;
690
  ) .
691
  ( $tab == 'watermark' ? 'jQuery(document).ready(function(){wppaCheckFontPreview();});' : '' );
692
 
693
- wp_add_inline_script( 'wppa-admin', $the_js );
694
  }
695
 
696
  // Open the content area
@@ -1250,7 +1250,7 @@ global $wppa_subtab_names;
1250
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1251
 
1252
  wppa_setting_box_footer_new();
1253
- wp_add_inline_script( 'wppa-admin', 'wppaAjaxGetSpinnerHtml( "normal", "wppa-spin-pre-1" );wppaAjaxGetSpinnerHtml( "lightbox", "wppa-spin-pre-2" )' );
1254
  }
1255
  // Multimedia icon and stubfile specifications
1256
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
@@ -3647,7 +3647,7 @@ global $wppa_subtab_names;
3647
  $html = wppa_select( $slug, $opts, $vals, $onchange ) .
3648
  '&nbsp;&nbsp;<img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
3649
  wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3650
- wp_add_inline_script( 'wppa-admin', $onchange );
3651
 
3652
  $name = __('Border width', 'wp-photo-album-plus');
3653
  $desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
@@ -6025,9 +6025,11 @@ global $wppa_subtab_names;
6025
  $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
6026
  $slug1 = 'wppa_feuploadnotify';
6027
  $slug2 = 'wppa_beuploadnotify';
 
6028
  $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
6029
  $html = wppa_checkbox($slug1, 'wppaRefreshAfter();' ) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
6030
- ( wppa_switch('feuploadnotify') ? wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'backemd also', 'wp-photo-album-plus' ) . '</span>' : '' );
 
6031
  wppa_setting_new($slug1, '2', $name, $desc, $html, $help);
6032
 
6033
  $name = __('Mail on comment', 'wp-photo-album-plus');
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.1.01.002
7
  *
8
  */
9
 
690
  ) .
691
  ( $tab == 'watermark' ? 'jQuery(document).ready(function(){wppaCheckFontPreview();});' : '' );
692
 
693
+ wppa_add_inline_script( 'wppa-admin', $the_js );
694
  }
695
 
696
  // Open the content area
1250
  wppa_setting_new($slug, '9', $name, $desc, $html, $help);
1251
 
1252
  wppa_setting_box_footer_new();
1253
+ wppa_add_inline_script( 'wppa-admin', 'wppaAjaxGetSpinnerHtml( "normal", "wppa-spin-pre-1" );wppaAjaxGetSpinnerHtml( "lightbox", "wppa-spin-pre-2" )' );
1254
  }
1255
  // Multimedia icon and stubfile specifications
1256
  if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
3647
  $html = wppa_select( $slug, $opts, $vals, $onchange ) .
3648
  '&nbsp;&nbsp;<img id="wppa-cursor" src="'.wppa_get_imgdir().wppa_opt( substr( $slug, 5 ) ).'" />';
3649
  wppa_setting_new($slug, '14', $name, $desc, $html, $help);
3650
+ wppa_add_inline_script( 'wppa-admin', $onchange );
3651
 
3652
  $name = __('Border width', 'wp-photo-album-plus');
3653
  $desc = __('Border width for lightbox display.', 'wp-photo-album-plus');
6025
  $help = (__('When moderation is required, the mails will be sent after approval', 'wp-photo-album-plus'));
6026
  $slug1 = 'wppa_feuploadnotify';
6027
  $slug2 = 'wppa_beuploadnotify';
6028
+ $slug3 = 'wppa_show_email_thumbs';
6029
  $subs = count( wppa_index_string_to_array( wppa_get_option( 'wppa_mailinglist_feuploadnotify', '' ) ) );
6030
  $html = wppa_checkbox($slug1, 'wppaRefreshAfter();' ) . '<span style="float:left" >&nbsp;' . sprintf( __( '%d subscribers', 'wp-photo-album-plus' ), $subs ) . '&nbsp;</span>' .
6031
+ ( wppa_switch('feuploadnotify') ? wppa_checkbox($slug2) . '<span style="float:left" >&nbsp;' . __( 'backend also', 'wp-photo-album-plus' ) . '&nbsp;</span>' : '' ) .
6032
+ wppa_checkbox($slug3) . '<span style="float:left" >&nbsp;' . __( 'show thumbnails', 'wp-photo-album-plus' ) . '</span>';
6033
  wppa_setting_new($slug1, '2', $name, $desc, $html, $help);
6034
 
6035
  $name = __('Mail on comment', 'wp-photo-album-plus');
wppa-upload-common.php CHANGED
@@ -178,7 +178,7 @@ global $wppa_supported_document_extensions;
178
  if ( $id ) {
179
  wppa_upload_post_process( $the_type, $album, $id, $from );
180
  if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
181
- wppa_schedule_mailinglist( 'feuploadnotify', $album, $id, 0, '', 0, 300 );
182
  }
183
 
184
  return true;; // Yes we uploaded a file
178
  if ( $id ) {
179
  wppa_upload_post_process( $the_type, $album, $id, $from );
180
  if ( wppa_switch( 'wppa_beuploadnotify' ) ) {
181
+ wppa_schedule_mailinglist( 'feuploadnotify', $album, $id, 0, '', 0, 900 );
182
  }
183
 
184
  return true;; // Yes we uploaded a file
wppa-upload.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
- * Version 8.1.00.001
7
  *
8
  */
9
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the upload pages and functions
6
+ * Version 8.1.00.002
7
  *
8
  */
9
 
wppa-wrappers.php CHANGED
@@ -5,7 +5,7 @@
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
- * Version 8.1.01.001
9
  *
10
  */
11
 
@@ -868,9 +868,11 @@ static $allowed_tags;
868
 
869
  if ( $return ) {
870
  return wp_kses( $html, $t, $p );
 
871
  }
872
  else {
873
  echo wp_kses( $html, $t, $p );
 
874
  }
875
 
876
  }
@@ -880,3 +882,14 @@ add_filter( 'safe_style_css', function( $styles ) {
880
  $styles[] = 'visibility';
881
  return $styles;
882
  } );
 
 
 
 
 
 
 
 
 
 
 
5
  * Contains wrappers for standard php functions
6
  * For security and bug reasons
7
  *
8
+ * Version 8.1.01.002
9
  *
10
  */
11
 
868
 
869
  if ( $return ) {
870
  return wp_kses( $html, $t, $p );
871
+ // return $html;
872
  }
873
  else {
874
  echo wp_kses( $html, $t, $p );
875
+ // echo $html;
876
  }
877
 
878
  }
882
  $styles[] = 'visibility';
883
  return $styles;
884
  } );
885
+
886
+ function wppa_add_inline_script( $where, $script ) {
887
+
888
+ $debug = false;
889
+ if ( $debug ) {
890
+ echo '<script>' . $script . '</script>';
891
+ }
892
+ else {
893
+ wp_add_inline_script( $where, $script );
894
+ }
895
+ }
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.1.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.1.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.1.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.1.01.002'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30