Version Description
= 7.6.10 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.6.10.003 |
Comparing to | |
See all releases |
Code changes from version 7.6.10.002 to 7.6.10.003
- changelog.txt +1 -0
- wppa-ajax.php +7 -1
- wppa-defaults.php +2 -1
- wppa-links.php +2 -1
- wppa-non-admin.php +3 -3
- wppa-settings-autosave.php +14 -3
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -6,6 +6,7 @@ WP Photo Album Plus Changelog
|
|
6 |
* Fixed childlist for certain album ids.
|
7 |
* New setting: Table IX-A19: CSV file separator. You can now select ; vs , for csv import and export.
|
8 |
* Overall performance improvement.
|
|
|
9 |
|
10 |
= 7.6.09 =
|
11 |
|
6 |
* Fixed childlist for certain album ids.
|
7 |
* New setting: Table IX-A19: CSV file separator. You can now select ; vs , for csv import and export.
|
8 |
* Overall performance improvement.
|
9 |
+
* New setting: Table VII-C11: Album download link restricted. Restricts the album download link on covers (Table VI-C2) to admin and superusers.
|
10 |
|
11 |
= 7.6.09 =
|
12 |
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 7.6.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -619,6 +619,12 @@ global $wppa;
|
|
619 |
wppa_exit();
|
620 |
}
|
621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
// Validate args
|
623 |
$alb = wppa_decrypt_album( $_REQUEST['album-id'] );
|
624 |
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 7.6.10.003
|
6 |
*
|
7 |
*/
|
8 |
|
619 |
wppa_exit();
|
620 |
}
|
621 |
|
622 |
+
// Restricted and not admin?
|
623 |
+
if ( wppa_switch( 'download_album_is_restricted' ) && ! wppa_user_is( 'administrator' ) ) {
|
624 |
+
echo '||ER||' . __( 'This feature is restricted to administrators', 'wp-photo-album-plus' );
|
625 |
+
wppa_exit();
|
626 |
+
}
|
627 |
+
|
628 |
// Validate args
|
629 |
$alb = wppa_decrypt_album( $_REQUEST['album-id'] );
|
630 |
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 7.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1080,6 +1080,7 @@ horizrailenabled:false,";
|
|
1080 |
'wppa_reup_is_restricted' => 'yes',
|
1081 |
'wppa_newtags_is_restricted' => 'no',
|
1082 |
'wppa_admin_separate' => 'no',
|
|
|
1083 |
|
1084 |
'wppa_newphoto_name_method' => 'filename',
|
1085 |
'wppa_default_coverimage_name' => 'Coverphoto',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 7.6.10.003
|
7 |
*
|
8 |
*/
|
9 |
|
1080 |
'wppa_reup_is_restricted' => 'yes',
|
1081 |
'wppa_newtags_is_restricted' => 'no',
|
1082 |
'wppa_admin_separate' => 'no',
|
1083 |
+
'wppa_download_album_is_restricted' => 'no',
|
1084 |
|
1085 |
'wppa_newphoto_name_method' => 'filename',
|
1086 |
'wppa_default_coverimage_name' => 'Coverphoto',
|
wppa-links.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
-
* Version 7.6.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -1607,6 +1607,7 @@ global $previous_page_last_id;
|
|
1607 |
function wppa_album_download_link( $albumid ) {
|
1608 |
|
1609 |
if ( ! wppa_switch( 'allow_download_album' ) ) return; // Not enabled
|
|
|
1610 |
|
1611 |
$result =
|
1612 |
'<div style="clear:both;" ></div>' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Frontend links
|
6 |
+
* Version 7.6.10.003
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
1607 |
function wppa_album_download_link( $albumid ) {
|
1608 |
|
1609 |
if ( ! wppa_switch( 'allow_download_album' ) ) return; // Not enabled
|
1610 |
+
if ( wppa_switch( 'download_album_is_restricted' ) && ! wppa_user_is( 'administrator' ) ) return; // restricted to admin
|
1611 |
|
1612 |
$result =
|
1613 |
'<div style="clear:both;" ></div>' .
|
wppa-non-admin.php
CHANGED
@@ -464,21 +464,21 @@ global $wppa_session;
|
|
464 |
style="position:fixed;left:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
465 |
class="wppa-preload"
|
466 |
title="Preload preveious image"
|
467 |
-
alt="
|
468 |
/>
|
469 |
<img
|
470 |
id="wppa-pre-next"
|
471 |
style="position:fixed;right:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
472 |
class="wppa-preload"
|
473 |
title="Preload next image"
|
474 |
-
alt="
|
475 |
/>
|
476 |
<img
|
477 |
id="wppa-pre-curr"
|
478 |
style="position:fixed;left:0;top:0;z-index:200011;visibility:hidden;"
|
479 |
class="wppa-preload-curr"
|
480 |
title="Preload current image"
|
481 |
-
alt="
|
482 |
/>';
|
483 |
|
484 |
// The Spinner image
|
464 |
style="position:fixed;left:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
465 |
class="wppa-preload"
|
466 |
title="Preload preveious image"
|
467 |
+
alt=""
|
468 |
/>
|
469 |
<img
|
470 |
id="wppa-pre-next"
|
471 |
style="position:fixed;right:0;top:50%;width:100px;z-index:200011;visibility:hidden;"
|
472 |
class="wppa-preload"
|
473 |
title="Preload next image"
|
474 |
+
alt=""
|
475 |
/>
|
476 |
<img
|
477 |
id="wppa-pre-curr"
|
478 |
style="position:fixed;left:0;top:0;z-index:200011;visibility:hidden;"
|
479 |
class="wppa-preload-curr"
|
480 |
title="Preload current image"
|
481 |
+
alt=""
|
482 |
/>';
|
483 |
|
484 |
// The Spinner image
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 7.6.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -7690,6 +7690,17 @@ global $wppa_supported_camara_brands;
|
|
7690 |
$tags = 'access,system';
|
7691 |
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
7692 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7693 |
wppa_setting_subheader('D', '2', __('Miscellaneous limiting settings', 'wp-photo-album-plus'));
|
7694 |
|
7695 |
$name = __('Owners only', 'wp-photo-album-plus');
|
@@ -9316,10 +9327,10 @@ global $wppa_supported_camara_brands;
|
|
9316 |
$clas = '';
|
9317 |
$tags = 'system';
|
9318 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
9319 |
-
|
9320 |
$name = __('CSV file separator', 'wp-photo-album-plus');
|
9321 |
$desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
|
9322 |
-
$help = __('This separator is used both during import and export', 'wp-photo-album-plus');
|
9323 |
$slug = 'wppa_csv_sep';
|
9324 |
$opts = array( 'comma (,)', 'semicolon (;)' );
|
9325 |
$vals = array( ',', ';' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 7.6.10.003
|
7 |
*
|
8 |
*/
|
9 |
|
7690 |
$tags = 'access,system';
|
7691 |
wppa_setting($slug, '10', $name, $desc, $html, $help, $clas, $tags);
|
7692 |
|
7693 |
+
$name = __('Album download link restricted', 'wp-photo-album-plus');
|
7694 |
+
$desc = __('The album download link on covers shows only to admin', 'wp-photo-album-plus');
|
7695 |
+
$help = '';
|
7696 |
+
$slug = 'wppa_download_album_is_restricted';
|
7697 |
+
$html1 = wppa_checkbox($slug);
|
7698 |
+
$html2 = '';
|
7699 |
+
$html = array( $html1, $html2 );
|
7700 |
+
$clas = '';
|
7701 |
+
$tags = 'access,system';
|
7702 |
+
wppa_setting($slug, '11', $name, $desc, $html, $help, $clas, $tags);
|
7703 |
+
|
7704 |
wppa_setting_subheader('D', '2', __('Miscellaneous limiting settings', 'wp-photo-album-plus'));
|
7705 |
|
7706 |
$name = __('Owners only', 'wp-photo-album-plus');
|
9327 |
$clas = '';
|
9328 |
$tags = 'system';
|
9329 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
9330 |
+
|
9331 |
$name = __('CSV file separator', 'wp-photo-album-plus');
|
9332 |
$desc = __('Select the separator to be used for csv file data', 'wp-photo-album-plus');
|
9333 |
+
$help = __('This separator is used both during import and export', 'wp-photo-album-plus');
|
9334 |
$slug = 'wppa_csv_sep';
|
9335 |
$opts = array( 'comma (,)', 'semicolon (;)' );
|
9336 |
$vals = array( ',', ';' );
|
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.6.10.
|
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 = '7610'; // WPPA db version
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.6.10.
|
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.6.10.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 = '7610'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.6.10.003'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|