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.3.01.009 |
Comparing to | |
See all releases |
Code changes from version 8.3.01.008 to 8.3.01.009
- changelog.txt +2 -0
- readme.txt +1 -1
- wppa-album-admin-autosave.php +15 -15
- wppa-boxes-html.php +2 -2
- wppa-edit-email.php +2 -2
- wppa-edit-sequence.php +2 -2
- wppa-edit-tags.php +3 -3
- wppa-export.php +3 -4
- wppa-filter.php +3 -3
- wppa-import.php +3 -3
- wppa-input.php +2 -1
- wppa-listtable.php +3 -2
- wppa-non-admin.php +2 -2
- wppa-photo-admin-autosave.php +6 -6
- wppa-scripts.php +4 -4
- wppa-setting-functions.php +5 -5
- wppa-settings-autosave.php +8 -8
- wppa-statistics.php +9 -2
- wppa-upload.php +2 -2
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -7,6 +7,8 @@ WP Photo Album Plus Changelog
|
|
7 |
* Many textual corrections.
|
8 |
* Pagination of admin pages made like the wp style, with the addition of page size selection at the top.
|
9 |
Admin page sizes are no longer in the settings page, but user individually remembered by transient options.
|
|
|
|
|
10 |
|
11 |
= 8.2.09 =
|
12 |
|
7 |
* Many textual corrections.
|
8 |
* Pagination of admin pages made like the wp style, with the addition of page size selection at the top.
|
9 |
Admin page sizes are no longer in the settings page, but user individually remembered by transient options.
|
10 |
+
* Frontend download revised. No more zips, but always a proper download dialog. Use New style to enable pdf doqnloads.
|
11 |
+
* Placed a few items to the photo preview area - like status - in photo admin for convenience.
|
12 |
|
13 |
= 8.2.09 =
|
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: 6.1
|
7 |
Requires PHP: 5.5
|
8 |
-
Stable tag: 8.
|
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: 6.1
|
7 |
Requires PHP: 5.5
|
8 |
+
Stable tag: 8.3.01.009
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
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.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -457,8 +457,8 @@ global $wppa_revno;
|
|
457 |
}
|
458 |
|
459 |
// Local js functions
|
460 |
-
$the_js = 'jQuery(document).ready(function(){wppaGetCoverPreview('.$id.', "cover-preview-"+'.$id.'
|
461 |
-
wppa_add_inline_script( 'wppa-admin', $the_js,
|
462 |
|
463 |
/* The actual page lay-out starts here */
|
464 |
|
@@ -3013,15 +3013,15 @@ global $wpdb;
|
|
3013 |
// Open sub albums by clicking the open button if it was before (cookie), and if it is visible (!)
|
3014 |
if ( wppa_get_cookie( 'alb-arrow-' . $id ) == 'on' ) {
|
3015 |
$the_js = '
|
3016 |
-
|
3017 |
-
|
3018 |
-
|
3019 |
-
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
}
|
3026 |
}
|
3027 |
|
@@ -3489,10 +3489,10 @@ global $wpdb;
|
|
3489 |
wppa_echo( $result );
|
3490 |
|
3491 |
if ( $is_descending && $albumorder_col == 'a_order' ) {
|
3492 |
-
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbSeqnoDesc
|
3493 |
}
|
3494 |
else {
|
3495 |
-
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbSeqnoDesc
|
3496 |
}
|
3497 |
|
3498 |
$result = '
|
@@ -3500,7 +3500,7 @@ global $wpdb;
|
|
3500 |
<div id="wppa-progbar" style="width:100%;height:12px">';
|
3501 |
|
3502 |
$c = count( $albums );
|
3503 |
-
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbumCount
|
3504 |
|
3505 |
$l = 100 / $c;
|
3506 |
$i = 0;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
457 |
}
|
458 |
|
459 |
// Local js functions
|
460 |
+
$the_js = 'jQuery(document).ready(function(){wppaGetCoverPreview('.$id.', "cover-preview-"+'.$id.')});';
|
461 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, false );
|
462 |
|
463 |
/* The actual page lay-out starts here */
|
464 |
|
3013 |
// Open sub albums by clicking the open button if it was before (cookie), and if it is visible (!)
|
3014 |
if ( wppa_get_cookie( 'alb-arrow-' . $id ) == 'on' ) {
|
3015 |
$the_js = '
|
3016 |
+
jQuery(document).ready(function(){
|
3017 |
+
if (jQuery("#alb-'.$id.'").css("display")!=="none") {
|
3018 |
+
jQuery("#alb-arrow-on-'.$id.'").trigger("click");
|
3019 |
+
}
|
3020 |
+
else {
|
3021 |
+
wppa_setCookie("alb-arrow-'.$id.'","off",365);
|
3022 |
+
}
|
3023 |
+
});';
|
3024 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
3025 |
}
|
3026 |
}
|
3027 |
|
3489 |
wppa_echo( $result );
|
3490 |
|
3491 |
if ( $is_descending && $albumorder_col == 'a_order' ) {
|
3492 |
+
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbSeqnoDesc=true;', false );
|
3493 |
}
|
3494 |
else {
|
3495 |
+
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbSeqnoDesc=false;', false );
|
3496 |
}
|
3497 |
|
3498 |
$result = '
|
3500 |
<div id="wppa-progbar" style="width:100%;height:12px">';
|
3501 |
|
3502 |
$c = count( $albums );
|
3503 |
+
wppa_add_inline_script( 'wppa-admin', 'var wppaAlbumCount='.$c.';', false );
|
3504 |
|
3505 |
$l = 100 / $c;
|
3506 |
$i = 0;
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1736,7 +1736,7 @@ function wppa_get_multitag_html( $nperline = '2', $seltags = '' ) {
|
|
1736 |
}
|
1737 |
}
|
1738 |
';
|
1739 |
-
wppa_add_inline_script( 'wppa', $the_js );
|
1740 |
|
1741 |
$qtag = wppa_get( 'tag', '', 'text' );
|
1742 |
$andor = $or_only ? 'or' : 'and'; // default
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
1736 |
}
|
1737 |
}
|
1738 |
';
|
1739 |
+
wppa_add_inline_script( 'wppa', $the_js, true );
|
1740 |
|
1741 |
$qtag = wppa_get( 'tag', '', 'text' );
|
1742 |
$andor = $or_only ? 'or' : 'and'; // default
|
wppa-edit-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all comments
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -73,7 +73,7 @@ global $wpdb;
|
|
73 |
});
|
74 |
}
|
75 |
}';
|
76 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
77 |
|
78 |
// Open page
|
79 |
wppa_echo( '
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all comments
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
73 |
});
|
74 |
}
|
75 |
}';
|
76 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
77 |
|
78 |
// Open page
|
79 |
wppa_echo( '
|
wppa-edit-sequence.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -53,5 +53,5 @@ function _wppa_edit_sequence() {
|
|
53 |
alert(\'Please select an album first\');
|
54 |
}
|
55 |
}';
|
56 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
57 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
53 |
alert(\'Please select an album first\');
|
54 |
}
|
55 |
}';
|
56 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
57 |
}
|
wppa-edit-tags.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.3.01.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -108,8 +108,8 @@ function _wppa_edit_tags() {
|
|
108 |
|
109 |
wppa_echo( $result );
|
110 |
|
111 |
-
$the_js = 'jQuery(document).ready(function(){setTimeout(function(){wppaAjaxUpdateTogo(\'wppa_edit_tag\')},
|
112 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
113 |
}
|
114 |
|
115 |
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.3.01.009
|
6 |
*
|
7 |
*/
|
8 |
|
108 |
|
109 |
wppa_echo( $result );
|
110 |
|
111 |
+
$the_js = 'jQuery(document).ready(function(){setTimeout(function(){wppaAjaxUpdateTogo(\'wppa_edit_tag\')},1000)});';
|
112 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, false );
|
113 |
}
|
114 |
|
115 |
|
wppa-export.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the export functions
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -55,9 +55,8 @@ global $wppa_try_continue;
|
|
55 |
jQuery("#wppaClearZips").val("' . __( 'Working...', 'wp-photo-album-plus' ) . '");
|
56 |
jQuery("#wppaClearZips").prop("disabled", true);
|
57 |
wppaAjaxDeleteExportZips();
|
58 |
-
}
|
59 |
-
';
|
60 |
-
wp_add_inline_script( 'wppa-admin', $the_js );
|
61 |
|
62 |
$albums = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
63 |
foreach( array_keys( $albums ) as $key ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the export functions
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
55 |
jQuery("#wppaClearZips").val("' . __( 'Working...', 'wp-photo-album-plus' ) . '");
|
56 |
jQuery("#wppaClearZips").prop("disabled", true);
|
57 |
wppaAjaxDeleteExportZips();
|
58 |
+
}';
|
59 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
|
|
60 |
|
61 |
$albums = $wpdb->get_results( "SELECT * FROM $wpdb->wppa_albums ORDER BY name", ARRAY_A );
|
62 |
foreach( array_keys( $albums ) as $key ) {
|
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.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -112,8 +112,8 @@ global $wppa_current_shortcode_atts;
|
|
112 |
if ( $nice ) {
|
113 |
$the_js = 'jQuery(document).ready(function(){
|
114 |
if ( jQuery().niceScroll )
|
115 |
-
jQuery("#wppa-div-' . $seqno . '").niceScroll(".wppa-divnicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});
|
116 |
-
wppa_add_inline_script( 'wppa', $the_js );
|
117 |
}
|
118 |
|
119 |
return $result;
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* get the albums via shortcode handler
|
6 |
+
* Version: 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
112 |
if ( $nice ) {
|
113 |
$the_js = 'jQuery(document).ready(function(){
|
114 |
if ( jQuery().niceScroll )
|
115 |
+
jQuery("#wppa-div-' . $seqno . '").niceScroll(".wppa-divnicewrap",{' . wppa_opt( 'nicescroll_opts' ) . '});});';
|
116 |
+
wppa_add_inline_script( 'wppa', $the_js, true );
|
117 |
}
|
118 |
|
119 |
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.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1597,7 +1597,7 @@ global $wppa_session;
|
|
1597 |
jQuery( "#wppa-spinner" ).css( "display", "none" );
|
1598 |
}';
|
1599 |
|
1600 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
1601 |
|
1602 |
// The submit button
|
1603 |
wppa_echo( '<p>' );
|
@@ -1693,7 +1693,7 @@ global $wppa_session;
|
|
1693 |
if ( wppa( 'continue' ) ) {
|
1694 |
wppa_warning_message( __( 'Trying to continue...', 'wp-photo-album-plus' ) );
|
1695 |
$the_js = 'document.location=\'' . get_admin_url() . 'admin.php?page=wppa_import_photos&continue=1&nonce=' . wp_create_nonce( 'dirimport' ) . '\';';
|
1696 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
1697 |
}
|
1698 |
|
1699 |
wppa_echo( '<br><br>' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
1597 |
jQuery( "#wppa-spinner" ).css( "display", "none" );
|
1598 |
}';
|
1599 |
|
1600 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
1601 |
|
1602 |
// The submit button
|
1603 |
wppa_echo( '<p>' );
|
1693 |
if ( wppa( 'continue' ) ) {
|
1694 |
wppa_warning_message( __( 'Trying to continue...', 'wp-photo-album-plus' ) );
|
1695 |
$the_js = 'document.location=\'' . get_admin_url() . 'admin.php?page=wppa_import_photos&continue=1&nonce=' . wp_create_nonce( 'dirimport' ) . '\';';
|
1696 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, false );
|
1697 |
}
|
1698 |
|
1699 |
wppa_echo( '<br><br>' );
|
wppa-input.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains functions for sanitizing and formatting user input
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -144,6 +144,7 @@ function wppa_get_get_filter( $name ) {
|
|
144 |
|
145 |
// Searchstring
|
146 |
case 'searchstring':
|
|
|
147 |
$result = 'src';
|
148 |
break;
|
149 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains functions for sanitizing and formatting user input
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
144 |
|
145 |
// Searchstring
|
146 |
case 'searchstring':
|
147 |
+
case 's':
|
148 |
$result = 'src';
|
149 |
break;
|
150 |
|
wppa-listtable.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Copy of wp version
|
6 |
* Modified by OpaJaap
|
7 |
-
* Version 8.3.01.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -744,8 +744,9 @@ class WPPA_List_Table {
|
|
744 |
}
|
745 |
$html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
|
746 |
$page_links[] = $total_pages_before . sprintf(
|
|
|
747 |
/* translators: 1: Current page, 2: Total pages. */
|
748 |
-
_x( '%1$s of %2$s', '
|
749 |
$html_current_page,
|
750 |
$html_total_pages
|
751 |
) . $total_pages_after;
|
4 |
*
|
5 |
* Copy of wp version
|
6 |
* Modified by OpaJaap
|
7 |
+
* Version 8.3.01.009
|
8 |
*
|
9 |
*/
|
10 |
|
744 |
}
|
745 |
$html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
|
746 |
$page_links[] = $total_pages_before . sprintf(
|
747 |
+
|
748 |
/* translators: 1: Current page, 2: Total pages. */
|
749 |
+
_x( '%1$s of %2$s', 'wp-photo-album-plus' ),
|
750 |
$html_current_page,
|
751 |
$html_total_pages
|
752 |
) . $total_pages_after;
|
wppa-non-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -381,7 +381,7 @@ global $wppa_locale;
|
|
381 |
}(document, \'script\', \'facebook-jssdk\'));';
|
382 |
|
383 |
wppa_echo( $the_html );
|
384 |
-
wppa_add_inline_script( 'wppa', $the_js );
|
385 |
}
|
386 |
}
|
387 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the non admin stuff
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
381 |
}(document, \'script\', \'facebook-jssdk\'));';
|
382 |
|
383 |
wppa_echo( $the_html );
|
384 |
+
wppa_add_inline_script( 'wppa', $the_js, false );
|
385 |
}
|
386 |
}
|
387 |
|
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.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -314,7 +314,7 @@ global $wpdb;
|
|
314 |
|
315 |
// Horizon
|
316 |
wppa_echo( '<div id="wppa-horizon"><hr></div>' );
|
317 |
-
wppa_add_inline_script( 'wppa-admin', 'wppaDragHorizon(document.getElementById("wppa-horizon"))' );
|
318 |
|
319 |
// Albun name if moderate
|
320 |
static $modalbum;
|
@@ -2747,7 +2747,7 @@ global $wpdb;
|
|
2747 |
jQuery("#wppa-photoadmin-tab-'.$id.'").trigger("click");
|
2748 |
});';
|
2749 |
}
|
2750 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
2751 |
|
2752 |
wppa_echo( '
|
2753 |
<div class="clear"></div>
|
@@ -3347,7 +3347,7 @@ function wppa_album_photos_bulk( $album ) {
|
|
3347 |
</tr>';
|
3348 |
wppa_echo( $result );
|
3349 |
|
3350 |
-
wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('
|
3351 |
}
|
3352 |
|
3353 |
$result = '
|
@@ -3396,10 +3396,10 @@ global $wpdb;
|
|
3396 |
$is_p_order = strpos( $photoorder, 'p_order' ) !== false;
|
3397 |
|
3398 |
if ( $is_descending && $is_p_order ) {
|
3399 |
-
wppa_add_inline_script( 'wppa-admin', 'var wppaSeqnoDesc
|
3400 |
}
|
3401 |
else {
|
3402 |
-
wppa_add_inline_script( 'wppa-admin', 'var wppaSeqnoDesc
|
3403 |
}
|
3404 |
|
3405 |
$photos = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
314 |
|
315 |
// Horizon
|
316 |
wppa_echo( '<div id="wppa-horizon"><hr></div>' );
|
317 |
+
wppa_add_inline_script( 'wppa-admin', 'wppaDragHorizon(document.getElementById("wppa-horizon"));', false );
|
318 |
|
319 |
// Albun name if moderate
|
320 |
static $modalbum;
|
2747 |
jQuery("#wppa-photoadmin-tab-'.$id.'").trigger("click");
|
2748 |
});';
|
2749 |
}
|
2750 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
2751 |
|
2752 |
wppa_echo( '
|
2753 |
<div class="clear"></div>
|
3347 |
</tr>';
|
3348 |
wppa_echo( $result );
|
3349 |
|
3350 |
+
wppa_add_inline_script( 'wppa-admin', 'wppaPhotoStatusChange('.$id.');', false );
|
3351 |
}
|
3352 |
|
3353 |
$result = '
|
3396 |
$is_p_order = strpos( $photoorder, 'p_order' ) !== false;
|
3397 |
|
3398 |
if ( $is_descending && $is_p_order ) {
|
3399 |
+
wppa_add_inline_script( 'wppa-admin', 'var wppaSeqnoDesc=true;', false );
|
3400 |
}
|
3401 |
else {
|
3402 |
+
wppa_add_inline_script( 'wppa-admin', 'var wppaSeqnoDesc=false;', false );
|
3403 |
}
|
3404 |
|
3405 |
$photos = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
wppa-scripts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
-
* Version 8.3.01.
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
@@ -683,10 +683,10 @@ global $wppa_opt;
|
|
683 |
if ( wppa_is_nice( 'window' ) ) {
|
684 |
$the_js = '
|
685 |
jQuery("document").ready(function(){
|
686 |
-
if (
|
687 |
-
jQuery("body").niceScroll({'
|
688 |
});';
|
689 |
-
wppa_add_inline_script( 'wppa', $the_js );
|
690 |
}
|
691 |
|
692 |
// Pinterest
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
+
* Version 8.3.01.009
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
683 |
if ( wppa_is_nice( 'window' ) ) {
|
684 |
$the_js = '
|
685 |
jQuery("document").ready(function(){
|
686 |
+
if (jQuery().niceScroll)
|
687 |
+
jQuery("body").niceScroll({'.wppa_opt( 'nicescroll_opts' ).'});
|
688 |
});';
|
689 |
+
wppa_add_inline_script( 'wppa', $the_js, true );
|
690 |
}
|
691 |
|
692 |
// Pinterest
|
wppa-setting-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -600,8 +600,8 @@ function wppa_togo_field( $slug ) {
|
|
600 |
$is_cron = wppa_get_option($slug.'_user', '' ) == 'cron-job';
|
601 |
$result = '<span id="'.$slug.'_togo" >' . $togo . '</span>';
|
602 |
if ( $togo || $is_cron ) {
|
603 |
-
$the_js = 'jQuery(document).ready(function(){setTimeout(function(){wppaAjaxUpdateTogo(\''.$slug.'\')}, 1000)})';
|
604 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
605 |
}
|
606 |
return $result;
|
607 |
}
|
@@ -898,7 +898,7 @@ global $wppa_cur_subtab_id;
|
|
898 |
jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").attr("data-inactive","1");
|
899 |
}
|
900 |
});';
|
901 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
902 |
|
903 |
wppa_echo( '
|
904 |
<div
|
@@ -948,7 +948,7 @@ global $wppa_cur_subtab;
|
|
948 |
jQuery(\'#' . $wppa_cur_subtab . '-cm\').show();
|
949 |
}
|
950 |
});';
|
951 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
952 |
|
953 |
$result = '
|
954 |
<div
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
600 |
$is_cron = wppa_get_option($slug.'_user', '' ) == 'cron-job';
|
601 |
$result = '<span id="'.$slug.'_togo" >' . $togo . '</span>';
|
602 |
if ( $togo || $is_cron ) {
|
603 |
+
$the_js = 'jQuery(document).ready(function(){setTimeout(function(){wppaAjaxUpdateTogo(\''.$slug.'\')}, 1000)});';
|
604 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, false );
|
605 |
}
|
606 |
return $result;
|
607 |
}
|
898 |
jQuery(".wppa-tabdesc-' . $wppa_cur_subtab . '").attr("data-inactive","1");
|
899 |
}
|
900 |
});';
|
901 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
902 |
|
903 |
wppa_echo( '
|
904 |
<div
|
948 |
jQuery(\'#' . $wppa_cur_subtab . '-cm\').show();
|
949 |
}
|
950 |
});';
|
951 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
952 |
|
953 |
$result = '
|
954 |
<div
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -650,10 +650,10 @@ global $wppa_subtab_names;
|
|
650 |
jQuery( "#"+clas+"-cm" ).hide();
|
651 |
}
|
652 |
function wppaCheckFontPreview() {
|
653 |
-
var font = document.getElementById("textual_watermark_font").value
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
jQuery("#wm-font-preview").attr("src", fsrc);
|
658 |
jQuery("#wm-type-preview").attr("src", tsrc);
|
659 |
}
|
@@ -678,7 +678,7 @@ global $wppa_subtab_names;
|
|
678 |
) .
|
679 |
( $tab == 'watermark' ? 'jQuery(document).ready(function(){wppaCheckFontPreview();});' : '' );
|
680 |
|
681 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
682 |
}
|
683 |
|
684 |
// Open the content area
|
@@ -1244,7 +1244,7 @@ global $wppa_subtab_names;
|
|
1244 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1245 |
|
1246 |
wppa_setting_box_footer_new();
|
1247 |
-
wppa_add_inline_script( 'wppa-admin', 'wppaAjaxGetSpinnerHtml(
|
1248 |
}
|
1249 |
// Multimedia icon and stubfile specifications
|
1250 |
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 |
' <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' );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
650 |
jQuery( "#"+clas+"-cm" ).hide();
|
651 |
}
|
652 |
function wppaCheckFontPreview() {
|
653 |
+
var font = document.getElementById("textual_watermark_font").value,
|
654 |
+
type = document.getElementById("textual_watermark_type").value,
|
655 |
+
fsrc = wppaFontDirectory+"wmf"+font+"-"+type+".png",
|
656 |
+
tsrc = wppaFontDirectory+"wmf"+type+"-"+font+".png";
|
657 |
jQuery("#wm-font-preview").attr("src", fsrc);
|
658 |
jQuery("#wm-type-preview").attr("src", tsrc);
|
659 |
}
|
678 |
) .
|
679 |
( $tab == 'watermark' ? 'jQuery(document).ready(function(){wppaCheckFontPreview();});' : '' );
|
680 |
|
681 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
682 |
}
|
683 |
|
684 |
// Open the content area
|
1244 |
wppa_setting_new($slug, '9', $name, $desc, $html, $help);
|
1245 |
|
1246 |
wppa_setting_box_footer_new();
|
1247 |
+
wppa_add_inline_script( 'wppa-admin', 'wppaAjaxGetSpinnerHtml("normal","wppa-spin-pre-1");wppaAjaxGetSpinnerHtml("lightbox","wppa-spin-pre-2");', false );
|
1248 |
}
|
1249 |
// Multimedia icon and stubfile specifications
|
1250 |
if ( wppa_switch( 'enable_audio' ) || wppa_switch( 'enable_video' ) || wppa_switch( 'enable_pdf' ) )
|
3647 |
$html = wppa_select( $slug, $opts, $vals, $onchange ) .
|
3648 |
' <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, false );
|
3651 |
|
3652 |
$name = __('Border width', 'wp-photo-album-plus' );
|
3653 |
$desc = __('Border width for lightbox display.', 'wp-photo-album-plus' );
|
wppa-statistics.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Functions for counts etc
|
6 |
* Common use front and admin
|
7 |
-
* Version 8.3.01.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -733,10 +733,17 @@ static $admin;
|
|
733 |
static $login;
|
734 |
|
735 |
// Validate arg
|
736 |
-
if ( ! wppa_is_int( $id ) || $id < '0'
|
737 |
wppa_log( 'err', 'Invalid arg in wppa_is_photo_visible: '.serialize($id) );
|
738 |
return false;
|
739 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
740 |
|
741 |
// Get usefull data
|
742 |
$status = wppa_get_photo_item( $id, 'status' );
|
4 |
*
|
5 |
* Functions for counts etc
|
6 |
* Common use front and admin
|
7 |
+
* Version 8.3.01.009
|
8 |
*
|
9 |
*/
|
10 |
|
733 |
static $login;
|
734 |
|
735 |
// Validate arg
|
736 |
+
if ( ! wppa_is_int( $id ) || $id < '0' ) {
|
737 |
wppa_log( 'err', 'Invalid arg in wppa_is_photo_visible: '.serialize($id) );
|
738 |
return false;
|
739 |
}
|
740 |
+
|
741 |
+
// Does photo still exist?
|
742 |
+
if ( ! wppa_photo_exists( $id ) ) {
|
743 |
+
|
744 |
+
// No, no problem, not exists => not visible
|
745 |
+
return false;
|
746 |
+
}
|
747 |
|
748 |
// Get usefull data
|
749 |
$status = wppa_get_photo_item( $id, 'status' );
|
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.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -279,7 +279,7 @@ global $upload_album;
|
|
279 |
}
|
280 |
}';
|
281 |
|
282 |
-
wppa_add_inline_script( 'wppa-admin', $the_js );
|
283 |
|
284 |
$result .= '
|
285 |
<p>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the upload pages and functions
|
6 |
+
* Version 8.3.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
279 |
}
|
280 |
}';
|
281 |
|
282 |
+
wppa_add_inline_script( 'wppa-admin', $the_js, true );
|
283 |
|
284 |
$result .= '
|
285 |
<p>
|
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.3.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/
|
@@ -23,7 +23,7 @@ global $wpdb;
|
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA Version */
|
26 |
-
global $wppa_version; $wppa_version = '8.3.01.
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js 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: 8.3.01.009
|
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/
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA Version */
|
26 |
+
global $wppa_version; $wppa_version = '8.3.01.009'; // WPPA software version
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js data */
|