Version Description
= 8.1.08 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.1.09.007 |
Comparing to | |
See all releases |
Code changes from version 8.1.09.006 to 8.1.09.007
- changelog.txt +3 -1
- readme.txt +1 -1
- wppa-ajax.php +3 -1
- wppa-boxes-html.php +8 -4
- wppa-date-time.php +3 -1
- wppa-functions.php +4 -2
- wppa-settings-autosave.php +50 -46
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -2,11 +2,13 @@ WP Photo Album Plus Changelog
|
|
2 |
|
3 |
= 8.1.09 =
|
4 |
|
5 |
-
*
|
6 |
* You can now limit frontend album creation to one or more userroles. See Advanced settings -> Admin -> I -> Item 2
|
7 |
* You can now select where to have the thumbnail popups, always, on pc only (i.e. not on mobile) or nowhere. See Basic settings -> Thumbnails -> III -> Item 6: Thumb popup
|
8 |
* Hiding the photodescription on a slideshow when empty did not work. Fixed.
|
9 |
* Next ugly browse button in slideshow did not work properly on mobile devices. Fixed.
|
|
|
|
|
10 |
|
11 |
= 8.1.08 =
|
12 |
|
2 |
|
3 |
= 8.1.09 =
|
4 |
|
5 |
+
* size="auto,500" i.e. responsive with maximum did not work as the maximum was not working. Fixed.
|
6 |
* You can now limit frontend album creation to one or more userroles. See Advanced settings -> Admin -> I -> Item 2
|
7 |
* You can now select where to have the thumbnail popups, always, on pc only (i.e. not on mobile) or nowhere. See Basic settings -> Thumbnails -> III -> Item 6: Thumb popup
|
8 |
* Hiding the photodescription on a slideshow when empty did not work. Fixed.
|
9 |
* Next ugly browse button in slideshow did not work properly on mobile devices. Fixed.
|
10 |
+
* Fixed date formatting issue in calendar on exif date slideshow breadcrumb.
|
11 |
+
* Nicescroller did not work on contest display. Fixed.
|
12 |
|
13 |
= 8.1.08 =
|
14 |
|
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.9
|
7 |
Requires PHP: 5.5
|
8 |
-
Stable tag: 8.1.
|
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.9
|
7 |
Requires PHP: 5.5
|
8 |
+
Stable tag: 8.1.09.007
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 8.1.09.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -4170,5 +4170,7 @@ function wppa_split_html_js( $text ) {
|
|
4170 |
}
|
4171 |
}
|
4172 |
|
|
|
|
|
4173 |
return array( 'html' => $html, 'js' => $js );
|
4174 |
}
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 8.1.09.007
|
6 |
*
|
7 |
*/
|
8 |
|
4170 |
}
|
4171 |
}
|
4172 |
|
4173 |
+
$js = str_replace( "\n", "", $js );
|
4174 |
+
|
4175 |
return array( 'html' => $html, 'js' => $js );
|
4176 |
}
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -138,9 +138,13 @@ function wppa_contest_box() {
|
|
138 |
|
139 |
// Nicescroller
|
140 |
if ( $nice ) {
|
141 |
-
|
142 |
-
|
143 |
-
|
|
|
|
|
|
|
|
|
144 |
|
145 |
// Close the box
|
146 |
$result .= '</div>';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 8.1.09.007
|
7 |
*
|
8 |
*/
|
9 |
|
138 |
|
139 |
// Nicescroller
|
140 |
if ( $nice ) {
|
141 |
+
wppa_js( '
|
142 |
+
jQuery(document).ready(function(){
|
143 |
+
if ( jQuery().niceScroll )
|
144 |
+
jQuery(".wppa-thumb-area").niceScroll(".wppa-nicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
145 |
+
});' );
|
146 |
+
$result .= '</div>'; // close .wppa-nicewrap div
|
147 |
+
} // Nicescroller
|
148 |
|
149 |
// Close the box
|
150 |
$result .= '</div>';
|
wppa-date-time.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* date and time related functions
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -313,6 +313,8 @@ function wppa_exif_date_to_wp_date( $exif_date ) {
|
|
313 |
$result = str_replace( 'd', $date->format( 'd' ), $result );
|
314 |
$result = str_replace( 'M', $date->format( 'M' ), $result );
|
315 |
$result = str_replace( 'D', $date->format( 'D' ), $result );
|
|
|
|
|
316 |
}
|
317 |
else {
|
318 |
$result = '';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* date and time related functions
|
6 |
+
* Version 8.1.09.007
|
7 |
*
|
8 |
*/
|
9 |
|
313 |
$result = str_replace( 'd', $date->format( 'd' ), $result );
|
314 |
$result = str_replace( 'M', $date->format( 'M' ), $result );
|
315 |
$result = str_replace( 'D', $date->format( 'D' ), $result );
|
316 |
+
$result = str_replace( 'j', $date->format( 'j' ), $result );
|
317 |
+
$result = str_replace( 'F', $date->format( 'F' ), $result );
|
318 |
}
|
319 |
else {
|
320 |
$result = '';
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3005,8 +3005,10 @@ static $user;
|
|
3005 |
$result .= $filename."'";
|
3006 |
|
3007 |
// Remove excessive spaces and make sure there are no linebreaks in the result that would screw up Javascript.
|
3008 |
-
|
|
|
3009 |
|
|
|
3010 |
}
|
3011 |
|
3012 |
function wppa_get_slide_desc( $id ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.1.09.007
|
7 |
*
|
8 |
*/
|
9 |
|
3005 |
$result .= $filename."'";
|
3006 |
|
3007 |
// Remove excessive spaces and make sure there are no linebreaks in the result that would screw up Javascript.
|
3008 |
+
$result = wppa_compress_html( $result );
|
3009 |
+
$result = str_replace( ["\r\n", "\n"], [" ", " "], $result );
|
3010 |
|
3011 |
+
return $result;
|
3012 |
}
|
3013 |
|
3014 |
function wppa_get_slide_desc( $id ) {
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -6883,53 +6883,57 @@ global $wppa_subtab_names;
|
|
6883 |
'black',
|
6884 |
);
|
6885 |
|
6886 |
-
|
6887 |
-
|
6888 |
-
|
6889 |
-
|
6890 |
-
|
6891 |
-
|
6892 |
-
|
6893 |
-
|
6894 |
-
|
6895 |
-
|
6896 |
-
|
6897 |
-
|
6898 |
-
|
6899 |
-
|
6900 |
-
|
6901 |
-
|
6902 |
-
|
6903 |
-
|
6904 |
-
|
6905 |
-
|
6906 |
-
|
6907 |
-
|
6908 |
-
|
6909 |
-
|
6910 |
-
|
6911 |
-
|
6912 |
-
|
6913 |
-
|
6914 |
-
$desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus' );
|
6915 |
-
$help = ' ';
|
6916 |
-
$slug = 'wppa_new_label_url';
|
6917 |
-
$html = wppa_input($slug, '300px');
|
6918 |
-
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6919 |
|
6920 |
-
|
6921 |
-
|
6922 |
-
|
6923 |
-
|
6924 |
-
|
6925 |
-
|
|
|
6926 |
|
6927 |
-
|
6928 |
-
|
6929 |
-
|
6930 |
-
|
6931 |
-
|
6932 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6933 |
|
6934 |
$name = __('Limit LasTen New', 'wp-photo-album-plus' );
|
6935 |
$desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', 'wp-photo-album-plus' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.1.09.007
|
7 |
*
|
8 |
*/
|
9 |
|
6883 |
'black',
|
6884 |
);
|
6885 |
|
6886 |
+
if ( wppa_switch( 'new_mod_label_is_text' ) ) {
|
6887 |
+
$name = __('New label', 'wp-photo-album-plus' );
|
6888 |
+
$desc = __('Specify the "New" indicator details.', 'wp-photo-album-plus' );
|
6889 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6890 |
+
$slug1 = 'wppa_new_label_text';
|
6891 |
+
$slug2 = 'wppa_new_label_color';
|
6892 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6893 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6894 |
+
wppa_setting_new($slug1, '6', $name, $desc, $html1.' '.$html2, $help);
|
6895 |
+
|
6896 |
+
$name = __('Modified label', 'wp-photo-album-plus' );
|
6897 |
+
$desc = __('Specify the "Modified" indicator details.', 'wp-photo-album-plus' );
|
6898 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6899 |
+
$slug1 = 'wppa_mod_label_text';
|
6900 |
+
$slug2 = 'wppa_mod_label_color';
|
6901 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6902 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6903 |
+
wppa_setting_new($slug1, '7', $name, $desc, $html1.' '.$html2, $help);
|
6904 |
+
|
6905 |
+
$name = __('First label', 'wp-photo-album-plus' );
|
6906 |
+
$desc = __('Specify the "First" indicator details.', 'wp-photo-album-plus' );
|
6907 |
+
$help = __('If you use qTranslate, the text may be multilingual.', 'wp-photo-album-plus' );
|
6908 |
+
$slug1 = 'wppa_first_label_text';
|
6909 |
+
$slug2 = 'wppa_first_label_color';
|
6910 |
+
$html1 = '<span style="float:left">'.__('Text', 'wp-photo-album-plus' ).': </span>'.wppa_input($slug1, '150px');
|
6911 |
+
$html2 = '<span style="float:left">'.__('Color', 'wp-photo-album-plus' ).': </span>'.wppa_select($slug2, $opts, $vals);
|
6912 |
+
wppa_setting_new($slug1, '7a', $name, $desc, $html1.' '.$html2, $help);
|
6913 |
+
}
|
|
|
|
|
|
|
|
|
|
|
6914 |
|
6915 |
+
else {
|
6916 |
+
$name = __('New label', 'wp-photo-album-plus' );
|
6917 |
+
$desc = __('Specify the "New" indicator url.', 'wp-photo-album-plus' );
|
6918 |
+
$help = ' ';
|
6919 |
+
$slug = 'wppa_new_label_url';
|
6920 |
+
$html = wppa_input($slug, '300px');
|
6921 |
+
wppa_setting_new($slug, '8', $name, $desc, $html, $help);
|
6922 |
|
6923 |
+
$name = __('Modified label', 'wp-photo-album-plus' );
|
6924 |
+
$desc = __('Specify the "Modified" indicator url.', 'wp-photo-album-plus' );
|
6925 |
+
$help = ' ';
|
6926 |
+
$slug = 'wppa_mod_label_url';
|
6927 |
+
$html = wppa_input($slug, '300px');
|
6928 |
+
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
6929 |
+
|
6930 |
+
$name = __('First label', 'wp-photo-album-plus' );
|
6931 |
+
$desc = __('Specify the "First" indicator url.', 'wp-photo-album-plus' );
|
6932 |
+
$help = ' ';
|
6933 |
+
$slug = 'wppa_first_label_url';
|
6934 |
+
$html = wppa_input($slug, '300px');
|
6935 |
+
wppa_setting_new($slug, '9a', $name, $desc, $html, $help);
|
6936 |
+
}
|
6937 |
|
6938 |
$name = __('Limit LasTen New', 'wp-photo-album-plus' );
|
6939 |
$desc = __('Limits the LasTen photos to those that are \'New\', or newly modified.', '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.1.09.
|
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.09.
|
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.09.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 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_api_version;
|
27 |
+
$wppa_api_version = '8.1.09.007'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|