Version Description
= 7.7.03 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.7.03.005 |
Comparing to | |
See all releases |
Code changes from version 7.7.03.003 to 7.7.03.005
- changelog.txt +8 -3
- img/Pencil.png +0 -0
- img/music.png +0 -0
- img/transparent.png +0 -0
- readme.txt +1 -1
- wppa-ajax.php +4 -3
- wppa-defaults.php +14 -1
- wppa-functions.php +18 -8
- wppa-mailing.php +5 -4
- wppa-picture.php +7 -2
- wppa-settings-autosave.php +29 -1
- wppa-setup.php +8 -1
- wppa-source.php +7 -1
- wppa-utils.php +13 -3
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -7,7 +7,12 @@ WP Photo Album Plus Changelog
|
|
7 |
* Description did not show up on sidebar slideshows when activated. Fixed.
|
8 |
* If rating is set to one button vote, the number of votes will show up under the thumbnails rather than the average calue.
|
9 |
* After successfully applying a watermark, the admin page will be now reloaded to show the changes.
|
10 |
-
* Fixed a layout issue on audio controls on thumbnails.
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
= 7.7.02 =
|
13 |
|
@@ -16,9 +21,9 @@ WP Photo Album Plus Changelog
|
|
16 |
* On the Album Admin page you can now also enter an album id to edit the album directly without the need to locate the album in the albumtable.
|
17 |
* Overruling display options as introduced in 7.7.01 not always worked correctly. Fixed.
|
18 |
* When the number of frontend uploads was set independant of albums, frontend upload did not took into account that a deleted photo may be replaced by a different one. Fixed.
|
19 |
-
* New setting: Table IV-E21: Contest comment visibility. The policy to display comments on the contest display.
|
20 |
Possible options are: 'None', 'Commenter', 'Commenter and photo owner', 'Every visitor'. Note: Admin always sees the comments.
|
21 |
-
* On the album admin page one can now specify a max upload per user for the entire tree of albums below the current album (inclusive).
|
22 |
This upload limit superseeds all other frontend upload limits.
|
23 |
|
24 |
= 7.7.01 =
|
7 |
* Description did not show up on sidebar slideshows when activated. Fixed.
|
8 |
* If rating is set to one button vote, the number of votes will show up under the thumbnails rather than the average calue.
|
9 |
* After successfully applying a watermark, the admin page will be now reloaded to show the changes.
|
10 |
+
* Fixed a layout issue on audio controls on thumbnails and single images.
|
11 |
+
* Table IV-B11: Run nl2br or wpautop on description now also works on single photos with description.
|
12 |
+
* Re-uploading an image file with audio did not replace the source file. Fixed.
|
13 |
+
* Re-uploading an image file that had been modified by imagick did not replace the source file. Fixed.
|
14 |
+
* New setting: Table IX-B15.0: Use audiostub. You can now switch off the use of an audio stub image.
|
15 |
+
* New settings: Table IX-M20 and 21. You can now set the sitename and the from email address to be used in emails sent by wppa.
|
16 |
|
17 |
= 7.7.02 =
|
18 |
|
21 |
* On the Album Admin page you can now also enter an album id to edit the album directly without the need to locate the album in the albumtable.
|
22 |
* Overruling display options as introduced in 7.7.01 not always worked correctly. Fixed.
|
23 |
* When the number of frontend uploads was set independant of albums, frontend upload did not took into account that a deleted photo may be replaced by a different one. Fixed.
|
24 |
+
* New setting: Table IV-E21: Contest comment visibility. The policy to display comments on the contest display.
|
25 |
Possible options are: 'None', 'Commenter', 'Commenter and photo owner', 'Every visitor'. Note: Admin always sees the comments.
|
26 |
+
* On the album admin page one can now specify a max upload per user for the entire tree of albums below the current album (inclusive).
|
27 |
This upload limit superseeds all other frontend upload limits.
|
28 |
|
29 |
= 7.7.01 =
|
img/Pencil.png
ADDED
Binary file
|
img/music.png
ADDED
Binary file
|
img/transparent.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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 |
Requires at least: 3.9
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.5
|
8 |
Stable tag: 7.7.02.006
|
9 |
License: GPLv2 or later
|
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 |
Requires at least: 3.9
|
6 |
+
Tested up to: 5.7
|
7 |
Requires PHP: 5.5
|
8 |
Stable tag: 7.7.02.006
|
9 |
License: GPLv2 or later
|
wppa-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
-
* Version 7.7.03.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -2689,8 +2689,9 @@ global $wppa;
|
|
2689 |
wppa_exit();
|
2690 |
}
|
2691 |
|
2692 |
-
//
|
2693 |
-
$filename = wppa_get_photo_item( $photo, 'filename' );
|
|
|
2694 |
// If very old, no filename, take new name
|
2695 |
if ( ! $filename ) {
|
2696 |
$filename = sanitize_file_name( $_FILES['photo']['name'] );
|
2 |
/* wppa-ajax.php
|
3 |
*
|
4 |
* Functions used in ajax requests
|
5 |
+
* Version 7.7.03.004
|
6 |
*
|
7 |
*/
|
8 |
|
2689 |
wppa_exit();
|
2690 |
}
|
2691 |
|
2692 |
+
// Make new source filename
|
2693 |
+
$filename = wppa_fix_poster_ext( wppa_get_photo_item( $photo, 'filename' ), $photo );
|
2694 |
+
|
2695 |
// If very old, no filename, take new name
|
2696 |
if ( ! $filename ) {
|
2697 |
$filename = sanitize_file_name( $_FILES['photo']['name'] );
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -58,6 +58,16 @@ smoothscroll:true,
|
|
58 |
cursorborder:'2px solid transparent',
|
59 |
horizrailenabled:false,";
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
$wppa_defaults = array ( 'wppa_revision' => '100',
|
63 |
'wppa_prevrev' => '100',
|
@@ -645,6 +655,8 @@ horizrailenabled:false,";
|
|
645 |
'wppa_comment_email_required' => 'required',
|
646 |
'wppa_commentprevious' => 'no',
|
647 |
'wppa_commentapproved' => 'no',
|
|
|
|
|
648 |
'wppa_commentapproved_text' => '',
|
649 |
'wppa_commentapproved_subj' => '',
|
650 |
'wppa_commentnotify_added' => 'yes',
|
@@ -1016,6 +1028,7 @@ horizrailenabled:false,";
|
|
1016 |
'wppa_add_shortcode_to_post' => 'no',
|
1017 |
'wppa_shortcode_to_add' => '[wppa type="album" album="#related,desc"]',
|
1018 |
'wppa_import_preview' => 'yes',
|
|
|
1019 |
'wppa_audiostub_upload' => '',
|
1020 |
'wppa_documentstub_upload' => '',
|
1021 |
'wppa_audiostub' => '',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 7.7.03.005
|
7 |
*
|
8 |
*/
|
9 |
|
58 |
cursorborder:'2px solid transparent',
|
59 |
horizrailenabled:false,";
|
60 |
|
61 |
+
// Site name for emails
|
62 |
+
$site = home_url();
|
63 |
+
$site = str_replace( 'https://www.', '', $site );
|
64 |
+
$site = str_replace( 'http://www.', '', $site );
|
65 |
+
$site = str_replace( 'https://', '', $site );
|
66 |
+
$site = str_replace( 'http://', '', $site );
|
67 |
+
$spos = strpos( $site, '/' );
|
68 |
+
if ( $spos > '2' ) {
|
69 |
+
$site = substr( $site, 0, $spos );
|
70 |
+
}
|
71 |
|
72 |
$wppa_defaults = array ( 'wppa_revision' => '100',
|
73 |
'wppa_prevrev' => '100',
|
655 |
'wppa_comment_email_required' => 'required',
|
656 |
'wppa_commentprevious' => 'no',
|
657 |
'wppa_commentapproved' => 'no',
|
658 |
+
'wppa_email_from_site' => str_replace(''', '', get_bloginfo('name') ),
|
659 |
+
'wppa_email_from_email' => 'noreply@' . $site,
|
660 |
'wppa_commentapproved_text' => '',
|
661 |
'wppa_commentapproved_subj' => '',
|
662 |
'wppa_commentnotify_added' => 'yes',
|
1028 |
'wppa_add_shortcode_to_post' => 'no',
|
1029 |
'wppa_shortcode_to_add' => '[wppa type="album" album="#related,desc"]',
|
1030 |
'wppa_import_preview' => 'yes',
|
1031 |
+
'wppa_use_audiostub' => 'yes',
|
1032 |
'wppa_audiostub_upload' => '',
|
1033 |
'wppa_documentstub_upload' => '',
|
1034 |
'wppa_audiostub' => '',
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 7.7.03.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3189,7 +3189,7 @@ global $wpdb;
|
|
3189 |
|
3190 |
$result = '';
|
3191 |
$perc = '';
|
3192 |
-
if ( $type == 'thumb' || $type=='film' ) {
|
3193 |
if ( wppa_switch( 'use_thumb_opacity' ) || wppa_switch( 'use_thumb_popup' ) ) {
|
3194 |
|
3195 |
if ( wppa_switch( 'use_thumb_opacity' ) ) {
|
@@ -3287,18 +3287,19 @@ global $wpdb;
|
|
3287 |
$videohtml = '';
|
3288 |
}
|
3289 |
|
|
|
3290 |
$result .= 'wppaPopUp( ' .
|
3291 |
wppa( 'mocc' ) .
|
3292 |
', this, ' .
|
3293 |
'\''.wppa_encrypt_photo($id) .'\''.
|
3294 |
', \'' .
|
3295 |
-
$name .
|
3296 |
'\', \'' .
|
3297 |
-
$desc .
|
3298 |
'\', \'' .
|
3299 |
-
$rating .
|
3300 |
'\', \'' .
|
3301 |
-
$ncom .
|
3302 |
'\', \'' .
|
3303 |
esc_js( $videohtml ) .
|
3304 |
'\', \'' .
|
@@ -4555,8 +4556,17 @@ function wppa_smx_photo( $stype ) {
|
|
4555 |
// The subext if any
|
4556 |
if ( $stype == 'm' || $stype == 'x' ) {
|
4557 |
|
4558 |
-
// The
|
4559 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4560 |
|
4561 |
// The rating, only on xphoto when enabled in II-B7
|
4562 |
if ( $stype == 'x' && wppa_switch( 'rating_on' ) ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 7.7.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
3189 |
|
3190 |
$result = '';
|
3191 |
$perc = '';
|
3192 |
+
if ( $type == 'thumb' || $type == 'film' ) {
|
3193 |
if ( wppa_switch( 'use_thumb_opacity' ) || wppa_switch( 'use_thumb_popup' ) ) {
|
3194 |
|
3195 |
if ( wppa_switch( 'use_thumb_opacity' ) ) {
|
3287 |
$videohtml = '';
|
3288 |
}
|
3289 |
|
3290 |
+
$alb = wppa_get_photo_item( $id, 'album' );
|
3291 |
$result .= 'wppaPopUp( ' .
|
3292 |
wppa( 'mocc' ) .
|
3293 |
', this, ' .
|
3294 |
'\''.wppa_encrypt_photo($id) .'\''.
|
3295 |
', \'' .
|
3296 |
+
( wppa_is_item_displayable( $alb, 'name', 'popup_text_name' ) ? $name : '' ) .
|
3297 |
'\', \'' .
|
3298 |
+
( wppa_is_item_displayable( $alb, 'description', 'popup_text_desc' ) ? $desc : '' ) .
|
3299 |
'\', \'' .
|
3300 |
+
( wppa_is_item_displayable( $alb, 'name', 'popup_text_rating' ) ? $rating : '' ) .
|
3301 |
'\', \'' .
|
3302 |
+
( wppa_is_item_displayable( $alb, 'name', 'popup_text_ncomments' ) ? $ncom : '' ) .
|
3303 |
'\', \'' .
|
3304 |
esc_js( $videohtml ) .
|
3305 |
'\', \'' .
|
4556 |
// The subext if any
|
4557 |
if ( $stype == 'm' || $stype == 'x' ) {
|
4558 |
|
4559 |
+
// The description
|
4560 |
+
$desc = wppa_get_photo_desc( $id );
|
4561 |
+
|
4562 |
+
// Run wpautop on description?
|
4563 |
+
if ( wppa_opt( 'wpautop_on_desc' ) == 'wpautop' ) {
|
4564 |
+
$desc = wpautop( $desc );
|
4565 |
+
}
|
4566 |
+
elseif ( wppa_opt( 'wpautop_on_desc' ) == 'nl2br' ) {
|
4567 |
+
$desc = nl2br( $desc );
|
4568 |
+
}
|
4569 |
+
wppa_out( '<p class="wp-caption-text">' . $desc . '</p>' );
|
4570 |
|
4571 |
// The rating, only on xphoto when enabled in II-B7
|
4572 |
if ( $stype == 'x' && wppa_switch( 'rating_on' ) ) {
|
wppa-mailing.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
-
* Version 7.7.03.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -914,6 +914,7 @@ function wppa_send_mail( $args ) {
|
|
914 |
$message_part_2 = '';
|
915 |
$message_part_3 = '';
|
916 |
|
|
|
917 |
$site = home_url();
|
918 |
$site = str_replace( 'https://www.', '', $site );
|
919 |
$site = str_replace( 'http://www.', '', $site );
|
@@ -923,8 +924,8 @@ function wppa_send_mail( $args ) {
|
|
923 |
if ( $spos > '2' ) {
|
924 |
$site = substr( $site, 0, $spos );
|
925 |
}
|
926 |
-
|
927 |
-
$headers = array( 'From:
|
928 |
'Content-Type: text/html; charset=UTF-8'
|
929 |
);
|
930 |
|
@@ -992,7 +993,7 @@ function wppa_send_mail( $args ) {
|
|
992 |
'</body>' .
|
993 |
'</html>';
|
994 |
|
995 |
-
$subject = '['.str_replace(''', '',
|
996 |
$message = $message_part_1 . $message_part_2 . $message_part_3;
|
997 |
$message_for_hash = $message_part_1 . $message_part_2;
|
998 |
|
4 |
*
|
5 |
* Contains mailing functions
|
6 |
*
|
7 |
+
* Version 7.7.03.005
|
8 |
*
|
9 |
*/
|
10 |
|
914 |
$message_part_2 = '';
|
915 |
$message_part_3 = '';
|
916 |
|
917 |
+
/*
|
918 |
$site = home_url();
|
919 |
$site = str_replace( 'https://www.', '', $site );
|
920 |
$site = str_replace( 'http://www.', '', $site );
|
924 |
if ( $spos > '2' ) {
|
925 |
$site = substr( $site, 0, $spos );
|
926 |
}
|
927 |
+
*/
|
928 |
+
$headers = array( 'From: ' . wppa_opt( 'email_from_email' ),
|
929 |
'Content-Type: text/html; charset=UTF-8'
|
930 |
);
|
931 |
|
993 |
'</body>' .
|
994 |
'</html>';
|
995 |
|
996 |
+
$subject = '['.str_replace(''', '', wppa_opt('email_from_site') ).'] '.$subj;
|
997 |
$message = $message_part_1 . $message_part_2 . $message_part_3;
|
998 |
$message_for_hash = $message_part_1 . $message_part_2;
|
999 |
|
wppa-picture.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Make the picture html
|
6 |
-
* Version 7.7.03.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -156,6 +156,10 @@ function wppa_get_picture_html( $args ) {
|
|
156 |
return false;
|
157 |
}
|
158 |
|
|
|
|
|
|
|
|
|
159 |
if ( $link && $link['is_lightbox'] ) {
|
160 |
$title = wppa_zoom_in( $id );
|
161 |
}
|
@@ -314,7 +318,8 @@ function wppa_get_picture_html( $args ) {
|
|
314 |
case 'xphoto':
|
315 |
$style = 'margin:0;' .
|
316 |
'padding:0;' .
|
317 |
-
'bottom:0;'
|
|
|
318 |
$class = 'size-medium wppa-' . $type . ' wppa-' . $type . '-' . wppa( 'mocc' );
|
319 |
break;
|
320 |
default:
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Make the picture html
|
6 |
+
* Version 7.7.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
156 |
return false;
|
157 |
}
|
158 |
|
159 |
+
if ( wppa_has_audio( $id ) ) {
|
160 |
+
$style .= 'min-height:' . wppa_get_audio_control_height() . 'px;';
|
161 |
+
}
|
162 |
+
|
163 |
if ( $link && $link['is_lightbox'] ) {
|
164 |
$title = wppa_zoom_in( $id );
|
165 |
}
|
318 |
case 'xphoto':
|
319 |
$style = 'margin:0;' .
|
320 |
'padding:0;' .
|
321 |
+
'bottom:0;' .
|
322 |
+
'left:0;';
|
323 |
$class = 'size-medium wppa-' . $type . ' wppa-' . $type . '-' . wppa( 'mocc' );
|
324 |
break;
|
325 |
default:
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -9577,6 +9577,15 @@ global $wppa_supported_camara_brands;
|
|
9577 |
$tags = 'system';
|
9578 |
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
9579 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9580 |
$name = __('Upload audiostub', 'wp-photo-album-plus');
|
9581 |
$desc = __('Upload a new audio stub file', 'wp-photo-album-plus');
|
9582 |
$help = __('This MUST be a .jpg image file', 'wp-photo-album-plus');
|
@@ -11731,6 +11740,25 @@ global $wppa_supported_camara_brands;
|
|
11731 |
$tags = 'comment,mail';
|
11732 |
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
11733 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11734 |
$name = __( 'No admin email', 'wp-photo-album-plus' );
|
11735 |
$desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
|
11736 |
$help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 7.7.03.005
|
7 |
*
|
8 |
*/
|
9 |
|
9577 |
$tags = 'system';
|
9578 |
wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
|
9579 |
|
9580 |
+
$name = __('Use audiostub', 'wp-photo-album-plus');
|
9581 |
+
$desc = __('Show a dummy image on audio items that have no photo', 'wp-photo-album-plus');
|
9582 |
+
$help = '';
|
9583 |
+
$slug = 'wppa_use_audiostub';
|
9584 |
+
$html = wppa_checkbox($slug);
|
9585 |
+
$clas = '';
|
9586 |
+
$tags = 'audio';
|
9587 |
+
wppa_setting($slug, '15.0', $name, $desc, $html, $help, $clas, $tags);
|
9588 |
+
|
9589 |
$name = __('Upload audiostub', 'wp-photo-album-plus');
|
9590 |
$desc = __('Upload a new audio stub file', 'wp-photo-album-plus');
|
9591 |
$help = __('This MUST be a .jpg image file', 'wp-photo-album-plus');
|
11740 |
$tags = 'comment,mail';
|
11741 |
wppa_setting($slug, '8', $name, $desc, $html, $help, $clas, $tags);
|
11742 |
|
11743 |
+
$name = __('From site', 'wp-photo-album-plus');
|
11744 |
+
$desc = __('Enter the subject header', 'wp-photo-album-plus');
|
11745 |
+
$help = sprintf( __('This text will be placed between brackets like: %s', 'wp-photo-album-plus'), '['.str_replace(''', '', get_bloginfo('name') ).']');
|
11746 |
+
$slug = 'wppa_email_from_site';
|
11747 |
+
$html = wppa_input($slug,'90%');
|
11748 |
+
$clas = '';
|
11749 |
+
$tags = 'mail';
|
11750 |
+
wppa_setting($slug, '20', $name, $desc, $html, $help, $clas, $tags);
|
11751 |
+
|
11752 |
+
$name = __('From email', 'wp-photo-album-plus');
|
11753 |
+
$desc = __('Enter the from email address you want to be used', 'wp-photo-album-plus');
|
11754 |
+
$help = __('Be aware of the fact that an email plugin may overrule this setting.', 'wp-photo-album-plus') . '<br />' .
|
11755 |
+
__('Make sure this email address exists.', 'wp-photo-album-plus');
|
11756 |
+
$slug = 'wppa_email_from_email';
|
11757 |
+
$html = wppa_input($slug,'90%');
|
11758 |
+
$clas = '';
|
11759 |
+
$tags = 'mail';
|
11760 |
+
wppa_setting($slug, '21', $name, $desc, $html, $help, $clas, $tags);
|
11761 |
+
|
11762 |
$name = __( 'No admin email', 'wp-photo-album-plus' );
|
11763 |
$desc = __( 'Do not send emails on adminbistrator actions', 'wp-photo-album-plus' );
|
11764 |
$help = __( 'When admin adds an album, a photo or a comment, no notification emails will be sent', 'wp-photo-album-plus' );
|
wppa-setup.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the setup stuff
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -693,6 +693,13 @@ global $wppa_error;
|
|
693 |
wppa_copy( $fromfile, $tofile );
|
694 |
}
|
695 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
696 |
// Copy documentstub.png, the default documentstub
|
697 |
$fromfile = WPPA_PATH . '/img/documentstub.png';
|
698 |
$tofile = WPPA_UPLOAD_PATH . '/documentstub.png';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the setup stuff
|
6 |
+
* Version 7.7.03.005
|
7 |
*
|
8 |
*/
|
9 |
|
693 |
wppa_copy( $fromfile, $tofile );
|
694 |
}
|
695 |
|
696 |
+
// Copy transparent.png
|
697 |
+
$fromfile = WPPA_PATH . '/img/transparent.png';
|
698 |
+
$tofile = WPPA_UPLOAD_PATH . '/transparent.png';
|
699 |
+
if ( ! wppa_is_file( $tofile ) ) {
|
700 |
+
wppa_copy( $fromfile, $tofile );
|
701 |
+
}
|
702 |
+
|
703 |
// Copy documentstub.png, the default documentstub
|
704 |
$fromfile = WPPA_PATH . '/img/documentstub.png';
|
705 |
$tofile = WPPA_UPLOAD_PATH . '/documentstub.png';
|
wppa-source.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains photo source file management routines
|
6 |
-
* Version 7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -46,6 +46,12 @@ function wppa_save_source( $file, $name, $alb, $always = false ) {
|
|
46 |
$dest = $albdir . '/' . wppa_sanitize_file_name( $name );
|
47 |
if ( $file != $dest ) {
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
wppa_copy( $file, $dest );
|
50 |
|
51 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains photo source file management routines
|
6 |
+
* Version 7.7.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
46 |
$dest = $albdir . '/' . wppa_sanitize_file_name( $name );
|
47 |
if ( $file != $dest ) {
|
48 |
|
49 |
+
// Delete possible old o1 file
|
50 |
+
$o1 = wppa_strip_ext( $dest ) . '-o1.' . wppa_get_ext( $dest );
|
51 |
+
if ( wppa_is_file( $o1 ) ) {
|
52 |
+
wppa_unlink( $o1 );
|
53 |
+
}
|
54 |
+
|
55 |
wppa_copy( $file, $dest );
|
56 |
|
57 |
}
|
wppa-utils.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3170,12 +3170,22 @@ function wppa_fix_poster_ext( $fileorurl, $id ) {
|
|
3170 |
|
3171 |
// Url ?
|
3172 |
if ( strpos( $fileorurl, 'http://' ) !== false || strpos( $fileorurl, 'https://' ) !== false ) {
|
3173 |
-
|
|
|
|
|
|
|
|
|
|
|
3174 |
}
|
3175 |
|
3176 |
// File
|
3177 |
else {
|
3178 |
-
|
|
|
|
|
|
|
|
|
|
|
3179 |
}
|
3180 |
}
|
3181 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
+
* Version 7.7.03.005
|
7 |
*
|
8 |
*/
|
9 |
|
3170 |
|
3171 |
// Url ?
|
3172 |
if ( strpos( $fileorurl, 'http://' ) !== false || strpos( $fileorurl, 'https://' ) !== false ) {
|
3173 |
+
if ( wppa_switch( 'use_audiostub' ) ) {
|
3174 |
+
return WPPA_UPLOAD_URL . '/'. 'audiostub.jpg';
|
3175 |
+
}
|
3176 |
+
else {
|
3177 |
+
return WPPA_UPLOAD_URL . '/'. 'transparent.png';
|
3178 |
+
}
|
3179 |
}
|
3180 |
|
3181 |
// File
|
3182 |
else {
|
3183 |
+
if ( wppa_switch( 'use_audiostub' ) ) {
|
3184 |
+
return WPPA_UPLOAD_PATH . '/' . 'audiostub.jpg';
|
3185 |
+
}
|
3186 |
+
else {
|
3187 |
+
return WPPA_UPLOAD_PATH . '/' . 'transparent.png';
|
3188 |
+
}
|
3189 |
}
|
3190 |
}
|
3191 |
|
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.7.03.
|
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 = '7.7.03.
|
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: 7.7.03.005
|
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 = '7.7.03.005'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|