Version Description
= 7.4.01 =
- This version addresses various bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.4.01.003 |
Comparing to | |
See all releases |
Code changes from version 7.4.01.002 to 7.4.01.003
- changelog.txt +4 -0
- readme.txt +1 -1
- wppa-ajax.php +11 -0
- wppa-filter.php +18 -1
- wppa-init.php +1 -1
- wppa-links.php +9 -1
- wppa-settings-autosave.php +3 -3
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -5,6 +5,10 @@ WP Photo Album Plus Changelog
|
|
5 |
* New setting Table IV-A35.1: Request info dialog text. Requesting info now opens a dialog box that asks the user to specify his request.
|
6 |
* New setting Table IV-A36: Use Gallery not Album. Changes all 'album' into 'gallery' in all texts.
|
7 |
* New setting Table IV-A27.2: Admins choice me only. Shows the link to the current users zipfile only.
|
|
|
|
|
|
|
|
|
8 |
|
9 |
= 7.4.00 =
|
10 |
|
5 |
* New setting Table IV-A35.1: Request info dialog text. Requesting info now opens a dialog box that asks the user to specify his request.
|
6 |
* New setting Table IV-A36: Use Gallery not Album. Changes all 'album' into 'gallery' in all texts.
|
7 |
* New setting Table IV-A27.2: Admins choice me only. Shows the link to the current users zipfile only.
|
8 |
+
* New shortcode attribute login="yes" or login="admin".
|
9 |
+
The wppa shortcode is only processed when the user is logged in or the user is and admin or wppa superuser.
|
10 |
+
* Runtime modifyable settings now also work on ajax links generated when the settings were active.
|
11 |
+
This means that a shortcode with the delay attribute inside a [wppa_set] wrapper now also obeys the runtme modifyable settings.
|
12 |
|
13 |
= 7.4.00 =
|
14 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: opajaap
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
|
5 |
-
Version: 7.4.01.
|
6 |
Stable tag: 7.4.00.005
|
7 |
Author: J.N. Breetvelt
|
8 |
Author URI: http://www.opajaap.nl/
|
2 |
Contributors: opajaap
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=OpaJaap@OpaJaap.nl&item_name=WP-Photo-Album-Plus&item_number=Support-Open-Source¤cy_code=USD&lc=US
|
4 |
Tags: photo, album, slideshow, video, audio, lightbox, iptc, exif, cloudinary, fotomoto, imagemagick, pdf
|
5 |
+
Version: 7.4.01.003
|
6 |
Stable tag: 7.4.00.005
|
7 |
Author: J.N. Breetvelt
|
8 |
Author URI: http://www.opajaap.nl/
|
wppa-ajax.php
CHANGED
@@ -15,6 +15,7 @@ function wppa_ajax_callback() {
|
|
15 |
global $wpdb;
|
16 |
global $wppa_session;
|
17 |
global $wppa_log_file;
|
|
|
18 |
|
19 |
wppa( 'ajax', true );
|
20 |
wppa( 'error', '0' );
|
@@ -62,6 +63,16 @@ global $wppa_log_file;
|
|
62 |
wppa_log( 'Ajx', 'Args = ' . $args );
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
switch ( $wppa_action ) {
|
66 |
case 'mailinglist':
|
67 |
|
15 |
global $wpdb;
|
16 |
global $wppa_session;
|
17 |
global $wppa_log_file;
|
18 |
+
global $wppa_opt;
|
19 |
|
20 |
wppa( 'ajax', true );
|
21 |
wppa( 'error', '0' );
|
63 |
wppa_log( 'Ajx', 'Args = ' . $args );
|
64 |
}
|
65 |
|
66 |
+
// Any runtime modifyable settings?
|
67 |
+
foreach( array_keys( $_GET ) as $key ) {
|
68 |
+
$value = $_GET[$key];
|
69 |
+
if ( substr( $key, 0, 5 ) == 'wppa_' ) {
|
70 |
+
if ( isset( $wppa_opt[$key] ) ) {
|
71 |
+
$wppa_opt[$key] = $value;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
switch ( $wppa_action ) {
|
77 |
case 'mailinglist':
|
78 |
|
wppa-filter.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* get the albums via shortcode handler
|
6 |
-
* Version 7.4.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -129,8 +129,17 @@ global $wppa_revno;
|
|
129 |
'year' => '',
|
130 |
'month' => '',
|
131 |
'cache' => '',
|
|
|
132 |
), $xatts );
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
// Sanitize input
|
135 |
if ( $atts['alt'] && $atss['alt'] != 'none' ) $atts['alt'] = strval( intval( $atts['alt'] ) );
|
136 |
foreach ( array_keys( $atts ) as $key ) {
|
@@ -573,6 +582,11 @@ function wppa_add_filters() {
|
|
573 |
function wppa_set_shortcodes( $xatts, $content = '' ) {
|
574 |
global $wppa;
|
575 |
global $wppa_opt;
|
|
|
|
|
|
|
|
|
|
|
576 |
|
577 |
$atts = shortcode_atts( array(
|
578 |
'name' => '',
|
@@ -591,12 +605,14 @@ global $wppa_opt;
|
|
591 |
$wppa_opt = false;
|
592 |
wppa_initialize_runtime();
|
593 |
wppa_reset_occurrance();
|
|
|
594 |
}
|
595 |
|
596 |
// Option?
|
597 |
elseif ( substr( $atts['name'], 0, 5 ) == 'wppa_' ) {
|
598 |
if ( isset( $wppa_opt[$atts['name']] ) ) {
|
599 |
$wppa_opt[$atts['name']] = $atts['value'];
|
|
|
600 |
}
|
601 |
else {
|
602 |
wppa_dbg_msg( $atts['name'] . ' is not an option value.', 'red', 'force' );
|
@@ -605,6 +621,7 @@ global $wppa_opt;
|
|
605 |
else {
|
606 |
if ( isset( $wppa[$atts['name']] ) ) {
|
607 |
$wppa[$atts['name']] = $atts['value'];
|
|
|
608 |
}
|
609 |
else {
|
610 |
wppa_dbg_msg( $atts['name'] . ' is not a runtime value.', 'red', 'force' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* get the albums via shortcode handler
|
6 |
+
* Version 7.4.01
|
7 |
*
|
8 |
*/
|
9 |
|
129 |
'year' => '',
|
130 |
'month' => '',
|
131 |
'cache' => '',
|
132 |
+
'login' => '',
|
133 |
), $xatts );
|
134 |
|
135 |
+
// Login requested?
|
136 |
+
if ( $atts['login'] == 'yes' && ! is_user_logged_in() ) {
|
137 |
+
return '';
|
138 |
+
}
|
139 |
+
if ( $atts['login'] == 'admin' && ! wppa_user_is( 'administrator' ) ) {
|
140 |
+
return '';
|
141 |
+
}
|
142 |
+
|
143 |
// Sanitize input
|
144 |
if ( $atts['alt'] && $atss['alt'] != 'none' ) $atts['alt'] = strval( intval( $atts['alt'] ) );
|
145 |
foreach ( array_keys( $atts ) as $key ) {
|
582 |
function wppa_set_shortcodes( $xatts, $content = '' ) {
|
583 |
global $wppa;
|
584 |
global $wppa_opt;
|
585 |
+
global $wppa_runtime_settings;
|
586 |
+
|
587 |
+
if ( ! $wppa_runtime_settings ) {
|
588 |
+
$wppa_runtime_settings = array();
|
589 |
+
}
|
590 |
|
591 |
$atts = shortcode_atts( array(
|
592 |
'name' => '',
|
605 |
$wppa_opt = false;
|
606 |
wppa_initialize_runtime();
|
607 |
wppa_reset_occurrance();
|
608 |
+
$wppa_runtime_settings = array();
|
609 |
}
|
610 |
|
611 |
// Option?
|
612 |
elseif ( substr( $atts['name'], 0, 5 ) == 'wppa_' ) {
|
613 |
if ( isset( $wppa_opt[$atts['name']] ) ) {
|
614 |
$wppa_opt[$atts['name']] = $atts['value'];
|
615 |
+
$wppa_runtime_settings[$atts['name']] = $atts['value'];
|
616 |
}
|
617 |
else {
|
618 |
wppa_dbg_msg( $atts['name'] . ' is not an option value.', 'red', 'force' );
|
621 |
else {
|
622 |
if ( isset( $wppa[$atts['name']] ) ) {
|
623 |
$wppa[$atts['name']] = $atts['value'];
|
624 |
+
$wppa_runtime_settings[$atts['name']] = $atts['value'];
|
625 |
}
|
626 |
else {
|
627 |
wppa_dbg_msg( $atts['name'] . ' is not a runtime value.', 'red', 'force' );
|
wppa-init.php
CHANGED
@@ -463,7 +463,7 @@ global $thegallery;
|
|
463 |
$Album = __( 'Album', 'wp-photo-album-plus' );
|
464 |
$Albums = __( 'Albums', 'wp-photo-album-plus' );
|
465 |
$Gallery = __( 'Gallery', 'wp-photo-album-plus' );
|
466 |
-
$Galleries = __( '
|
467 |
$thealbum = __( 'the album', 'wp-photo-album-plus' );
|
468 |
$thegallery = __( 'the gallery', 'wp-photo-album-plus' );
|
469 |
|
463 |
$Album = __( 'Album', 'wp-photo-album-plus' );
|
464 |
$Albums = __( 'Albums', 'wp-photo-album-plus' );
|
465 |
$Gallery = __( 'Gallery', 'wp-photo-album-plus' );
|
466 |
+
$Galleries = __( 'Galleries', 'wp-photo-album-plus' );
|
467 |
$thealbum = __( 'the album', 'wp-photo-album-plus' );
|
468 |
$thegallery = __( 'the gallery', 'wp-photo-album-plus' );
|
469 |
|
wppa-links.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
-
* Version 7.4.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -112,6 +112,7 @@ global $wppa_locale;
|
|
112 |
function wppa_get_ajaxlink( $key = '', $deltamoccur = '0' ) {
|
113 |
global $wppa_lang;
|
114 |
global $wppa_locale;
|
|
|
115 |
|
116 |
if ( ! $key && is_search() ) $key = wppa_opt( 'search_linkpage' );
|
117 |
|
@@ -174,6 +175,13 @@ global $wppa_locale;
|
|
174 |
else $al .= '&wppalocale=' . $wppa_locale;
|
175 |
}
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
return $al.'&';
|
178 |
}
|
179 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
+
* Version 7.4.01
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
112 |
function wppa_get_ajaxlink( $key = '', $deltamoccur = '0' ) {
|
113 |
global $wppa_lang;
|
114 |
global $wppa_locale;
|
115 |
+
global $wppa_runtime_settings;
|
116 |
|
117 |
if ( ! $key && is_search() ) $key = wppa_opt( 'search_linkpage' );
|
118 |
|
175 |
else $al .= '&wppalocale=' . $wppa_locale;
|
176 |
}
|
177 |
|
178 |
+
if ( is_array( $wppa_runtime_settings ) ) {
|
179 |
+
foreach( array_keys( $wppa_runtime_settings ) as $key ) {
|
180 |
+
$value = $wppa_runtime_settings[$key];
|
181 |
+
$al .= '&' . $key . '=' . $value;
|
182 |
+
}
|
183 |
+
}
|
184 |
+
|
185 |
return $al.'&';
|
186 |
}
|
187 |
|
wppa-settings-autosave.php
CHANGED
@@ -4542,13 +4542,13 @@ global $wppa_supported_camara_brands;
|
|
4542 |
$desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
|
4543 |
$help = '';
|
4544 |
$slug = 'wppa_request_info_text';
|
4545 |
-
$html = wppa_input($slug,
|
4546 |
$clas = '';
|
4547 |
$tags = 'system';
|
4548 |
wppa_setting($slug, '35.1', $name, $desc, $html, $help, $clas, $tags);
|
4549 |
|
4550 |
-
$name = __('Gallery not
|
4551 |
-
$desc = __('Use the name Gallery rather than
|
4552 |
$help = '';
|
4553 |
$slug = 'wppa_album_use_gallery';
|
4554 |
$html = wppa_checkbox($slug);
|
4542 |
$desc = __('The text to display in the dialog box', 'wp-photo-album-plus');
|
4543 |
$help = '';
|
4544 |
$slug = 'wppa_request_info_text';
|
4545 |
+
$html = wppa_input($slug, '90%');
|
4546 |
$clas = '';
|
4547 |
$tags = 'system';
|
4548 |
wppa_setting($slug, '35.1', $name, $desc, $html, $help, $clas, $tags);
|
4549 |
|
4550 |
+
$name = __('Gallery not A<b></b>lbum', 'wp-photo-album-plus');
|
4551 |
+
$desc = __('Use the name Gallery rather than A<b></b>lbum', 'wp-photo-album-plus');
|
4552 |
$help = '';
|
4553 |
$slug = 'wppa_album_use_gallery';
|
4554 |
$html = wppa_checkbox($slug);
|
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.4.01.
|
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 = '7400'; // WPPA db version
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.4.01.
|
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.4.01.003
|
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 = '7400'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.4.01.003'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|