Version Description
= 8.0.03 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.0.03.004 |
Comparing to | |
See all releases |
Code changes from version 8.0.03.003 to 8.0.03.004
- changelog.txt +9 -7
- wppa-boxes-html.php +2 -1
- wppa-common-functions.php +2 -2
- wppa-functions.php +4 -4
- wppa-picture.php +2 -2
- wppa-scripts.php +25 -51
- wppa-settings-autosave.php +4 -2
- wppa-utils.php +6 -2
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -4,20 +4,22 @@ WP Photo Album Plus Changelog
|
|
4 |
|
5 |
* Extended alternate ajax methods and fixed certain links.
|
6 |
If frontend ajax links do not work, you can select different ajax methods on Advanced settings -> System -> I Item 5: Ajax method. ('Normal' is default).
|
7 |
-
Classic is like pre ver 8 method 'Ajax non admin' ticked, Backend method is like pre ver 8 'Ajax non admin' unticked (uses admin-ajax).
|
8 |
|
9 |
If frontend upload does not work (give errors) set Advanced settings -> Users -> I Item 5.1: Upload Ajax method to 'extern' (like classic) or to 'backend' (uses admin-ajax). ('normal' is default).
|
10 |
|
11 |
Note on upload. If you want users to upload to sites that have a site password, i.e. where users do not need to login with their name, treat them as non logged in.
|
12 |
To allow uploads in this case: tick the box in Advanced settings -> Users -> I Item 32: Upload logout, and make sure the owners of the albums allowed to upload to are set to ---public---.
|
13 |
-
If you do not use the widget or the upload shortcode but let them upload using the album cover link, make sure empty albums are not skipped, to allow the first upload.
|
14 |
See Basic settings -> Albums -> II Item 7: Skip empty albums.
|
15 |
|
16 |
-
* Plugin All in One SEO tampers the internal wppa occurrance counters because it renders the page before the actual page building.
|
17 |
This results in certain links not working like the link from an image in a widget to a landing page, because the landing shortcode is no longer the first occurrance.
|
18 |
Provided a fix for this by resetting the counters at the end of the the process that builds the page header.
|
19 |
|
20 |
* When both defer javascript was active and the shortcode was cached, reponsiveness was no longer fully supported. Fixed.
|
|
|
|
|
21 |
|
22 |
= 8.0.02 =
|
23 |
|
@@ -27,10 +29,10 @@ See Advanced settings -> Users -> I Item 32: Upload logout, and Advanced setting
|
|
27 |
Added an admin notice about this if applicable.
|
28 |
* Fixed frontend upload issues.
|
29 |
* Added option Advanced settings -> System -> I Item 5: Ajax method.
|
30 |
-
In vertsion 8 the official way to use Ajax at the frontend as documented in the Developers manual was implemented.
|
31 |
-
Unfortunately this method appears not to work on every site, so i added a selectionbox with 4 options.
|
32 |
If certain links at the frontend do not work, try one of the alternate methods.
|
33 |
-
If frontend upload does not work properly when the progressbar (i.e. ajax upload) is on,
|
34 |
try one of the alternate methods listed in Advanced settings -> Users -> I: Item 5.1: Upload Ajax method
|
35 |
|
36 |
= 8.0.01 =
|
@@ -57,7 +59,7 @@ Ajax is always activated, because there can no longer be conflicts due to inacce
|
|
57 |
[wppa type="photo" photo="#last,12"] or [wppa type="photo" album="12" photo="#last"]. Fixed. Works also for type="mphoto" and type="xphoto".
|
58 |
* Fixed a slideshow filmstrip layout issue for theme twentytwentyone.
|
59 |
* The max simultaneous ajax requests during resequencing photos is now limited to 10. This prevents db errors due to too many open db instances.
|
60 |
-
* Caching system is simplified. Just on or off. In widgets: checkbox; in shortcodes: '', '0', 'off' or 'no' means no caching; anything else means caching on.
|
61 |
Although the fact that there are separate cachefiles for logged-in and logged-out visitors, make sure you do nat cache widgets or shortcodes that may display user dependant content.
|
62 |
|
63 |
= 7.7.07 =
|
4 |
|
5 |
* Extended alternate ajax methods and fixed certain links.
|
6 |
If frontend ajax links do not work, you can select different ajax methods on Advanced settings -> System -> I Item 5: Ajax method. ('Normal' is default).
|
7 |
+
Classic is like pre ver 8 method 'Ajax non admin' ticked, Backend method is like pre ver 8 'Ajax non admin' unticked (uses admin-ajax).
|
8 |
|
9 |
If frontend upload does not work (give errors) set Advanced settings -> Users -> I Item 5.1: Upload Ajax method to 'extern' (like classic) or to 'backend' (uses admin-ajax). ('normal' is default).
|
10 |
|
11 |
Note on upload. If you want users to upload to sites that have a site password, i.e. where users do not need to login with their name, treat them as non logged in.
|
12 |
To allow uploads in this case: tick the box in Advanced settings -> Users -> I Item 32: Upload logout, and make sure the owners of the albums allowed to upload to are set to ---public---.
|
13 |
+
If you do not use the widget or the upload shortcode but let them upload using the album cover link, make sure empty albums are not skipped, to allow the first upload.
|
14 |
See Basic settings -> Albums -> II Item 7: Skip empty albums.
|
15 |
|
16 |
+
* Plugin All in One SEO tampers the internal wppa occurrance counters because it renders the page before the actual page building.
|
17 |
This results in certain links not working like the link from an image in a widget to a landing page, because the landing shortcode is no longer the first occurrance.
|
18 |
Provided a fix for this by resetting the counters at the end of the the process that builds the page header.
|
19 |
|
20 |
* When both defer javascript was active and the shortcode was cached, reponsiveness was no longer fully supported. Fixed.
|
21 |
+
* Switching off manual control on a spheric panorama caused a js error resulting in not displaying the image. Fixed.
|
22 |
+
* The documentation site https://wppa.nl now shows the version 8 settings.
|
23 |
|
24 |
= 8.0.02 =
|
25 |
|
29 |
Added an admin notice about this if applicable.
|
30 |
* Fixed frontend upload issues.
|
31 |
* Added option Advanced settings -> System -> I Item 5: Ajax method.
|
32 |
+
In vertsion 8 the official way to use Ajax at the frontend as documented in the Developers manual was implemented.
|
33 |
+
Unfortunately this method appears not to work on every site, so i added a selectionbox with 4 options.
|
34 |
If certain links at the frontend do not work, try one of the alternate methods.
|
35 |
+
If frontend upload does not work properly when the progressbar (i.e. ajax upload) is on,
|
36 |
try one of the alternate methods listed in Advanced settings -> Users -> I: Item 5.1: Upload Ajax method
|
37 |
|
38 |
= 8.0.01 =
|
59 |
[wppa type="photo" photo="#last,12"] or [wppa type="photo" album="12" photo="#last"]. Fixed. Works also for type="mphoto" and type="xphoto".
|
60 |
* Fixed a slideshow filmstrip layout issue for theme twentytwentyone.
|
61 |
* The max simultaneous ajax requests during resequencing photos is now limited to 10. This prevents db errors due to too many open db instances.
|
62 |
+
* Caching system is simplified. Just on or off. In widgets: checkbox; in shortcodes: '', '0', 'off' or 'no' means no caching; anything else means caching on.
|
63 |
Although the fact that there are separate cachefiles for logged-in and logged-out visitors, make sure you do nat cache widgets or shortcodes that may display user dependant content.
|
64 |
|
65 |
= 7.7.07 =
|
wppa-boxes-html.php
CHANGED
@@ -3083,7 +3083,6 @@ static $albums_granted;
|
|
3083 |
|
3084 |
$one_only = wppa_switch( 'upload_one_only' ) && ! wppa_user_is( 'administrator' );
|
3085 |
$multiple = ! $one_only;
|
3086 |
-
if ( $one_only ) $max = '1';
|
3087 |
$on_camera = wppa_switch( 'camera_connect' );
|
3088 |
$may_video = wppa_switch( 'user_upload_video_on' );
|
3089 |
$may_audio = wppa_switch( 'user_upload_audio_on' );
|
@@ -3095,6 +3094,8 @@ static $albums_granted;
|
|
3095 |
$may_video = false;
|
3096 |
$may_audio = false;
|
3097 |
}
|
|
|
|
|
3098 |
|
3099 |
$accept = '.jpg,.gif,.png';
|
3100 |
if ( $may_video ) {
|
3083 |
|
3084 |
$one_only = wppa_switch( 'upload_one_only' ) && ! wppa_user_is( 'administrator' );
|
3085 |
$multiple = ! $one_only;
|
|
|
3086 |
$on_camera = wppa_switch( 'camera_connect' );
|
3087 |
$may_video = wppa_switch( 'user_upload_video_on' );
|
3088 |
$may_audio = wppa_switch( 'user_upload_audio_on' );
|
3094 |
$may_video = false;
|
3095 |
$may_audio = false;
|
3096 |
}
|
3097 |
+
|
3098 |
+
if ( $one_only ) $max = '1';
|
3099 |
|
3100 |
$accept = '.jpg,.gif,.png';
|
3101 |
if ( $may_video ) {
|
wppa-common-functions.php
CHANGED
@@ -1300,8 +1300,8 @@ static $result_cache;
|
|
1300 |
function wppa_allow_user_uploads( $album = false ) {
|
1301 |
global $wpdb;
|
1302 |
|
1303 |
-
if ( ! is_user_logged_in() && wppa_switch( 'upload_logout' ) ) {
|
1304 |
-
return '
|
1305 |
}
|
1306 |
|
1307 |
// PHASE 1 // TEST FOR TREE LIMIT
|
1300 |
function wppa_allow_user_uploads( $album = false ) {
|
1301 |
global $wpdb;
|
1302 |
|
1303 |
+
if ( ! is_user_logged_in() && ! wppa_switch( 'upload_logout' ) ) {
|
1304 |
+
return '0';
|
1305 |
}
|
1306 |
|
1307 |
// PHASE 1 // TEST FOR TREE LIMIT
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.0.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3760,7 +3760,7 @@ global $blog_id;
|
|
3760 |
if ( wppa_page( 'oneofone' ) ) wppa( 'portrait_only', true );
|
3761 |
|
3762 |
// Javascript occurrence dependant stuff
|
3763 |
-
wppa_js( '/* START OCCURRANCE ' . wppa( 'mocc' ) . '
|
3764 |
// wppa( 'auto_colwidth' ) is set by the filter or by wppa_albums in case called directly
|
3765 |
// script or call has precedence over option setting
|
3766 |
// so: if set by script or call: auto, else if set by option: auto
|
@@ -3884,8 +3884,8 @@ global $blog_id;
|
|
3884 |
$lbkey = ''; // results in omitting the anchor tag
|
3885 |
break;
|
3886 |
}
|
3887 |
-
wppa_js( 'wppaLightBox[' . wppa( 'mocc' ) . '] = "' . $lbkey . '";'
|
3888 |
-
|
3889 |
|
3890 |
wppa_js( 'wppaLightboxSingle[' . wppa( 'mocc' ) . '] = ' . ( wppa_opt( 'slideshow_linktype' ) == 'lightboxsingle' ? 'true': 'false' ) . ';' );
|
3891 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.0.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
3760 |
if ( wppa_page( 'oneofone' ) ) wppa( 'portrait_only', true );
|
3761 |
|
3762 |
// Javascript occurrence dependant stuff
|
3763 |
+
wppa_js( '/* START OCCURRANCE ' . wppa( 'mocc' ) . ' */;' );
|
3764 |
// wppa( 'auto_colwidth' ) is set by the filter or by wppa_albums in case called directly
|
3765 |
// script or call has precedence over option setting
|
3766 |
// so: if set by script or call: auto, else if set by option: auto
|
3884 |
$lbkey = ''; // results in omitting the anchor tag
|
3885 |
break;
|
3886 |
}
|
3887 |
+
wppa_js( 'wppaLightBox[' . wppa( 'mocc' ) . '] = "' . $lbkey . '";' );
|
3888 |
+
// 'wppaConsoleLog("mocc:' . wppa( 'mocc' ) . ' lbkey:"+wppaLightBox[' . wppa( 'mocc' ) . '] );' );
|
3889 |
|
3890 |
wppa_js( 'wppaLightboxSingle[' . wppa( 'mocc' ) . '] = ' . ( wppa_opt( 'slideshow_linktype' ) == 'lightboxsingle' ? 'true': 'false' ) . ';' );
|
3891 |
}
|
wppa-picture.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Make the picture html
|
6 |
-
* Version 8.0.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -658,7 +658,7 @@ function wppa_get_spheric_pan_html( $args ) {
|
|
658 |
backgroundColor :"' . wppa_opt( 'ovl_theme' ) . '",
|
659 |
borderRadius :' . wppa_opt( 'ovl_border_radius' ) . ',
|
660 |
padding :' . wppa_opt( 'ovl_border_width' ) . ',
|
661 |
-
enableManual :' . $manual . ',
|
662 |
vtime :0,
|
663 |
};
|
664 |
jQuery(document).ready(function(){wppaDoSphericPan(' . $mocc . ', data' . $mocc . ')});' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Make the picture html
|
6 |
+
* Version 8.0.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
658 |
backgroundColor :"' . wppa_opt( 'ovl_theme' ) . '",
|
659 |
borderRadius :' . wppa_opt( 'ovl_border_radius' ) . ',
|
660 |
padding :' . wppa_opt( 'ovl_border_width' ) . ',
|
661 |
+
enableManual :' . ( $manual ? 'true' : 'false' ) . ',
|
662 |
vtime :0,
|
663 |
};
|
664 |
jQuery(document).ready(function(){wppaDoSphericPan(' . $mocc . ', data' . $mocc . ')});' .
|
wppa-scripts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
-
* Version 8.0.03.
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
@@ -30,73 +30,26 @@ global $wpdb;
|
|
30 |
wppaFullFrameDelta = [],
|
31 |
wppaAutoColumnWidth = [],
|
32 |
wppaAutoColumnFrac = [],
|
33 |
-
wppaSlideShowTimeOut = 2500,
|
34 |
wppaFadeInAfterFadeOut = false,
|
35 |
-
wppaTextFrameDelta = 0,
|
36 |
-
wppaBoxDelta = 0,
|
37 |
wppaPreambule = [],
|
38 |
-
wppaHideWhenEmpty = false,
|
39 |
wppaThumbnailPitch = [],
|
40 |
wppaFilmStripLength = [],
|
41 |
wppaFilmStripMargin = [],
|
42 |
wppaFilmStripAreaDelta = [],
|
43 |
-
wppaFilmShowGlue = false,
|
44 |
wppaIsMini = [],
|
45 |
wppaPortraitOnly = [],
|
46 |
-
wppaMiniTreshold = 300,
|
47 |
-
wppaRatingOnce = true,
|
48 |
-
wppaBGcolorNumbar = "transparent",
|
49 |
-
wppaBcolorNumbar = "transparent",
|
50 |
-
wppaBGcolorNumbarActive = "transparent",
|
51 |
-
wppaBcolorNumbarActive = "transparent",
|
52 |
-
wppaFontFamilyNumbar = "",
|
53 |
-
wppaFontSizeNumbar = "",
|
54 |
-
wppaFontColorNumbar = "",
|
55 |
-
wppaFontWeightNumbar = "",
|
56 |
-
wppaFontFamilyNumbarActive = "",
|
57 |
-
wppaFontSizeNumbarActive = "",
|
58 |
-
wppaFontColorNumbarActive = "",
|
59 |
-
wppaFontWeightNumbarActive = "",
|
60 |
-
wppaNumbarMax = "10",
|
61 |
-
wppaNextOnCallback = false,
|
62 |
-
wppaStarOpacity = 0.2,
|
63 |
wppaLightBox = [],
|
64 |
-
wppaEmailRequired = "required",
|
65 |
-
wppaSlideBorderWidth = 0,
|
66 |
wppaSlideInitRunning = [],
|
67 |
-
wppaAnimationType = "fadeover",
|
68 |
wppaSlidePause = [],
|
69 |
wppaSlideBlank = [],
|
70 |
-
wppaRatingMax = 5,
|
71 |
-
wppaRatingDisplayType = "graphic",
|
72 |
-
wppaRatingPrec = 2,
|
73 |
wppaFilmPageSize = [],
|
74 |
wppaAspectRatio = [],
|
75 |
wppaFullSize = [],
|
76 |
-
wppaStretch = false,
|
77 |
-
wppaThumbSpaceAuto = false,
|
78 |
-
wppaMinThumbSpace = 4,
|
79 |
-
wppaMagnifierCursor = "",
|
80 |
-
wppaArtMonkyLink = "none",
|
81 |
-
wppaAutoOpenComments = false,
|
82 |
-
wppaUpdateAddressLine = false,
|
83 |
-
wppaSlideSwipe = true,
|
84 |
wppaLightboxSingle = [],
|
85 |
-
wppaMaxCoverWidth = 300,
|
86 |
wppaSiteUrl = "' . site_url() . '",
|
87 |
-
wppaSlideToFullpopup = false,
|
88 |
-
wppaComAltSize = 75,
|
89 |
-
wppaBumpViewCount = true,
|
90 |
-
wppaBumpClickCount = false,
|
91 |
-
wppaFotomoto = false,
|
92 |
-
wppaArtMonkeyButton = true,
|
93 |
-
wppaShortQargs = false,
|
94 |
-
wppaOvlHires = false,
|
95 |
wppaMasonryCols = [],
|
96 |
wppaVideoPlaying = [],
|
97 |
wppaAudioPlaying = [],
|
98 |
-
wppaSlideVideoStart = false,
|
99 |
-
wppaSlideAudioStart = false,
|
100 |
wppaHis = 0,
|
101 |
wppaStartHtml = [],
|
102 |
wppaCanAjaxRender = false,
|
@@ -207,7 +160,6 @@ global $wpdb;
|
|
207 |
wppaTfMargin = 4,
|
208 |
wppaZoomData = [],
|
209 |
wppaSphericData = [],
|
210 |
-
wppaFsPolicy = "lightbox",
|
211 |
wppaOvlTxtHeight = 36,
|
212 |
wppaOvlOpacity = 0.8,
|
213 |
wppaOvlOnclickType = "none",
|
@@ -350,7 +302,7 @@ global $wpdb;
|
|
350 |
wppaGlobalFsIconSize = "'.wppa_opt( 'nav_icon_size_global_fs' ) . '",
|
351 |
wppaFsFillcolor = "'.wppa_opt( 'fs_svg_color' ) . '",
|
352 |
wppaFsBgcolor = "'.wppa_opt( 'fs_svg_bg_color' ) . '",
|
353 |
-
wppaFsPolicy = "'.wppa_opt( 'fs_policy' ) . '",
|
354 |
wppaNiceScroll = ' . ( wppa_switch( 'nicescroll' ) && ! wppa_is_mobile() ? 'true' : 'false' ) . ',
|
355 |
wppaVersion = "'.$wppa_api_version.'",
|
356 |
wppaDebug = '.( wppa_switch( 'allow_debug' ) ? 'true' : 'false' ) . ',
|
@@ -454,7 +406,7 @@ global $wpdb;
|
|
454 |
$d = wppa_switch( 'ovl_show_counter') ? 1 : 0;
|
455 |
$ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
|
456 |
$lb_global = '';
|
457 |
-
if ( wppa_switch( 'lightbox_global' ) ) {
|
458 |
if ( wppa_switch( 'lightbox_global_set' ) ) {
|
459 |
$lb_global = 'wppa[single]';
|
460 |
}
|
@@ -663,6 +615,28 @@ function wppa_js( $txt ) {
|
|
663 |
global $wppa_js_page_data;
|
664 |
global $wppa_script_open;
|
665 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
if ( ! wppa_is_defer() || wppa_is_caching() ) {
|
667 |
wppa_out( '
|
668 |
<script>' . $txt . '</script>' );
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
+
* Version 8.0.03.004
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
30 |
wppaFullFrameDelta = [],
|
31 |
wppaAutoColumnWidth = [],
|
32 |
wppaAutoColumnFrac = [],
|
|
|
33 |
wppaFadeInAfterFadeOut = false,
|
|
|
|
|
34 |
wppaPreambule = [],
|
|
|
35 |
wppaThumbnailPitch = [],
|
36 |
wppaFilmStripLength = [],
|
37 |
wppaFilmStripMargin = [],
|
38 |
wppaFilmStripAreaDelta = [],
|
|
|
39 |
wppaIsMini = [],
|
40 |
wppaPortraitOnly = [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
wppaLightBox = [],
|
|
|
|
|
42 |
wppaSlideInitRunning = [],
|
|
|
43 |
wppaSlidePause = [],
|
44 |
wppaSlideBlank = [],
|
|
|
|
|
|
|
45 |
wppaFilmPageSize = [],
|
46 |
wppaAspectRatio = [],
|
47 |
wppaFullSize = [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
wppaLightboxSingle = [],
|
|
|
49 |
wppaSiteUrl = "' . site_url() . '",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
wppaMasonryCols = [],
|
51 |
wppaVideoPlaying = [],
|
52 |
wppaAudioPlaying = [],
|
|
|
|
|
53 |
wppaHis = 0,
|
54 |
wppaStartHtml = [],
|
55 |
wppaCanAjaxRender = false,
|
160 |
wppaTfMargin = 4,
|
161 |
wppaZoomData = [],
|
162 |
wppaSphericData = [],
|
|
|
163 |
wppaOvlTxtHeight = 36,
|
164 |
wppaOvlOpacity = 0.8,
|
165 |
wppaOvlOnclickType = "none",
|
302 |
wppaGlobalFsIconSize = "'.wppa_opt( 'nav_icon_size_global_fs' ) . '",
|
303 |
wppaFsFillcolor = "'.wppa_opt( 'fs_svg_color' ) . '",
|
304 |
wppaFsBgcolor = "'.wppa_opt( 'fs_svg_bg_color' ) . '",
|
305 |
+
wppaFsPolicy = "' . ( is_admin() ? 'none' : wppa_opt( 'fs_policy' ) ) . '",
|
306 |
wppaNiceScroll = ' . ( wppa_switch( 'nicescroll' ) && ! wppa_is_mobile() ? 'true' : 'false' ) . ',
|
307 |
wppaVersion = "'.$wppa_api_version.'",
|
308 |
wppaDebug = '.( wppa_switch( 'allow_debug' ) ? 'true' : 'false' ) . ',
|
406 |
$d = wppa_switch( 'ovl_show_counter') ? 1 : 0;
|
407 |
$ovlh = wppa_opt( 'ovl_txt_lines' ) == 'auto' ? 'auto' : ((wppa_opt( 'ovl_txt_lines' ) + $d) * ($fontsize_lightbox + 2));
|
408 |
$lb_global = '';
|
409 |
+
if ( wppa_switch( 'lightbox_global' ) && ! is_admin() ) {
|
410 |
if ( wppa_switch( 'lightbox_global_set' ) ) {
|
411 |
$lb_global = 'wppa[single]';
|
412 |
}
|
615 |
global $wppa_js_page_data;
|
616 |
global $wppa_script_open;
|
617 |
|
618 |
+
// Validate input
|
619 |
+
if ( wppa_switch( 'allow_debug' ) ) {
|
620 |
+
$i = 0;
|
621 |
+
$arr = array( '[' => 0, ']' => 0, '(' => 0, ')' => 0, '{' => 0, '}' => 0 );
|
622 |
+
$t = array_keys( $arr );
|
623 |
+
while ( $i < strlen( $txt ) ) {
|
624 |
+
$c = substr( $txt, $i, 1 );
|
625 |
+
if ( in_array( $c, $t ) ) $arr[$c]++;
|
626 |
+
$i++;
|
627 |
+
}
|
628 |
+
for ( $i = 0; $i < 6; $i += 2 ) {
|
629 |
+
if ( $arr[$t[$i]] != $arr[$t[$i + 1]] ) {
|
630 |
+
wppa_log( 'err', 'Unmatched ' . $t[$i] . ' - ' . $t[$i + 1] . ' in ' . $txt . ' (wppa_js)', true );
|
631 |
+
}
|
632 |
+
}
|
633 |
+
if ( substr( $txt, -1 ) != ';' ) {
|
634 |
+
wppa_log( 'err', 'Missing ; in ' . $txt . ' (wppa_js)', true );
|
635 |
+
$txt .= ';';
|
636 |
+
}
|
637 |
+
}
|
638 |
+
|
639 |
+
// Do it
|
640 |
if ( ! wppa_is_defer() || wppa_is_caching() ) {
|
641 |
wppa_out( '
|
642 |
<script>' . $txt . '</script>' );
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.0.03.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -30,6 +30,8 @@ global $wppa_subtab_names;
|
|
30 |
|
31 |
// Start test area
|
32 |
|
|
|
|
|
33 |
// End test area
|
34 |
|
35 |
// Initialize
|
@@ -5801,7 +5803,7 @@ global $wppa_subtab_names;
|
|
5801 |
$slug = 'wppa_ajax_upload';
|
5802 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
5803 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5804 |
-
|
5805 |
$name = __('Upload Ajax method', 'wp-photo-album-plus');
|
5806 |
$desc = __('Select the ajax method for frontend uploads', 'wp-photo-album-plus');
|
5807 |
$help = __('Change to backend or extern only when normal fails', 'wp-photo-album-plus');
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.0.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
30 |
|
31 |
// Start test area
|
32 |
|
33 |
+
if ( is_file( dirname( __FILE__ ) . '/wppatestcode.php' ) ) include 'wppatestcode.php';
|
34 |
+
|
35 |
// End test area
|
36 |
|
37 |
// Initialize
|
5803 |
$slug = 'wppa_ajax_upload';
|
5804 |
$html = wppa_checkbox($slug, 'wppaRefreshAfter();');
|
5805 |
wppa_setting_new($slug, '5', $name, $desc, $html, $help);
|
5806 |
+
|
5807 |
$name = __('Upload Ajax method', 'wp-photo-album-plus');
|
5808 |
$desc = __('Select the ajax method for frontend uploads', 'wp-photo-album-plus');
|
5809 |
$help = __('Change to backend or extern only when normal fails', 'wp-photo-album-plus');
|
wppa-utils.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
-
* Version 8.0.03.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -4894,7 +4894,11 @@ function wppa_icon_size( $default = '', $type = 0, $factor = 1 ) {
|
|
4894 |
// See if a photo is a panorama
|
4895 |
function wppa_is_panorama( $id ) {
|
4896 |
|
4897 |
-
|
|
|
|
|
|
|
|
|
4898 |
}
|
4899 |
|
4900 |
// See if a remote file exists
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains low-level utility routines
|
6 |
+
* Version 8.0.03.004
|
7 |
*
|
8 |
*/
|
9 |
|
4894 |
// See if a photo is a panorama
|
4895 |
function wppa_is_panorama( $id ) {
|
4896 |
|
4897 |
+
$result = wppa_get_photo_item( $id, 'panorama' );
|
4898 |
+
if ( $result == '1' && ! wppa_switch( 'enable_panorama' ) ) {
|
4899 |
+
$result = '';
|
4900 |
+
}
|
4901 |
+
return $result;
|
4902 |
}
|
4903 |
|
4904 |
// See if a remote file exists
|
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.0.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 = '8.0.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: 8.0.03.004
|
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.0.03.004'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|