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.1.09.006 |
Comparing to | |
See all releases |
Code changes from version 8.1.09.005 to 8.1.09.006
- changelog.txt +2 -0
- wppa-boxes-html.php +58 -86
- wppa-functions.php +8 -2
- wppa-slideshow.php +34 -32
- wppa-wrappers.php +21 -23
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -5,6 +5,8 @@ WP Photo Album Plus Changelog
|
|
5 |
* siae="auto,500" i.e. responsive with maximum did not work as the maximum was not working. Fixed.
|
6 |
* You can now limit frontend album creation to one or more userroles. See Advanced settings -> Admin -> I -> Item 2
|
7 |
* You can now select where to have the thumbnail popups, always, on pc only (i.e. not on mobile) or nowhere. See Basic settings -> Thumbnails -> III -> Item 6: Thumb popup
|
|
|
|
|
8 |
|
9 |
= 8.1.08 =
|
10 |
|
5 |
* siae="auto,500" i.e. responsive with maximum did not work as the maximum was not working. Fixed.
|
6 |
* You can now limit frontend album creation to one or more userroles. See Advanced settings -> Admin -> I -> Item 2
|
7 |
* You can now select where to have the thumbnail popups, always, on pc only (i.e. not on mobile) or nowhere. See Basic settings -> Thumbnails -> III -> Item 6: Thumb popup
|
8 |
+
* Hiding the photodescription on a slideshow when empty did not work. Fixed.
|
9 |
+
* Next ugly browse button in slideshow did not work properly on mobile devices. Fixed.
|
10 |
|
11 |
= 8.1.08 =
|
12 |
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -2567,49 +2567,40 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
|
|
2567 |
$t = $mcr ? 'mcr-' : '';
|
2568 |
|
2569 |
// The links
|
|
|
2570 |
$result .= '
|
2571 |
<div style="clear:both"></div>
|
2572 |
-
<a
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
jQuery( \'#wppa-
|
2577 |
-
jQuery( \'#wppa-
|
2578 |
-
jQuery( \'#
|
2579 |
-
|
2580 |
-
|
2581 |
-
jQuery( \'#_wppa-cr-'.str_replace('.','-',$alb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2582 |
-
window.dispatchEvent(new Event(\'resize\'));
|
2583 |
-
"
|
2584 |
-
style="float:left;cursor:pointer"
|
2585 |
-
> ' .
|
2586 |
( $alb ? __( 'Create Sub Album', 'wp-photo-album-plus' ) : __( 'Create Album', 'wp-photo-album-plus' ) ) . '
|
2587 |
</a>
|
2588 |
-
<a
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
jQuery( \'#wppa-
|
2593 |
-
jQuery( \'#wppa-
|
2594 |
-
jQuery( \'#
|
2595 |
-
|
2596 |
-
|
2597 |
-
jQuery( \'#_wppa-cr-'.str_replace('.','-',$alb).'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2598 |
-
window.dispatchEvent(new Event(\'resize\'));
|
2599 |
-
"
|
2600 |
-
style="float:right;cursor:pointer;display:none;padding-right:6px;"
|
2601 |
-
>' .
|
2602 |
__( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
|
2603 |
</a>';
|
2604 |
|
2605 |
// The create form
|
2606 |
$result .= '
|
2607 |
<div
|
2608 |
-
id="wppa-create-'.$t.
|
2609 |
style="width:100%;text-align:center;display:none;"
|
2610 |
>
|
2611 |
<form
|
2612 |
-
id="wppa-creform-'.
|
2613 |
action="#"
|
2614 |
method="post"
|
2615 |
>' .
|
@@ -2939,60 +2930,40 @@ static $albums_granted;
|
|
2939 |
|
2940 |
// Make the HTML
|
2941 |
$t = $mcr ? 'mcr-' : '';
|
|
|
2942 |
|
2943 |
$result .= '
|
2944 |
-
<a
|
2945 |
-
|
2946 |
-
|
2947 |
-
|
2948 |
-
jQuery( \'#wppa-
|
2949 |
-
jQuery( \'#wppa-
|
2950 |
-
jQuery( \'#
|
2951 |
-
jQuery( \'#wppa-ea-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2952 |
-
jQuery( \'#wppa-cats-' . str_replace('.','-',$yalb) . '-' . $mocc . '\' ).css( \'display\',\'none\' );
|
2953 |
-
jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2954 |
window.dispatchEvent(new Event(\'resize\'));
|
2955 |
-
"
|
2956 |
-
style="float:left; cursor:pointer"
|
2957 |
>' .
|
2958 |
__( 'Upload Photo', 'wp-photo-album-plus' ) . '
|
2959 |
</a>
|
2960 |
-
<a
|
2961 |
-
|
2962 |
-
|
2963 |
-
|
2964 |
-
jQuery( \'#wppa-
|
2965 |
-
jQuery( \'#wppa-
|
2966 |
-
jQuery( \'#
|
2967 |
-
jQuery( \'#wppa-ea-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2968 |
-
jQuery( \'#wppa-cats-' . str_replace('.','-',$yalb) . '-' . $mocc . '\' ).css( \'display\',\'block\' );
|
2969 |
-
jQuery( \'#_wppa-up-'.str_replace('.','-',$yalb).'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2970 |
window.dispatchEvent(new Event(\'resize\'));
|
2971 |
-
"
|
2972 |
-
style="float:right; cursor:pointer;display:none;padding-right:6px">' .
|
2973 |
__( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
|
2974 |
</a>
|
2975 |
-
<div
|
2976 |
-
id="wppa-
|
2977 |
-
style="width:100%;text-align:center;display:none; clear:both;"
|
2978 |
-
>
|
2979 |
-
<form
|
2980 |
-
id="wppa-uplform-' . $yalb . '-' . $mocc . '"
|
2981 |
-
action="' . $returnurl . '"
|
2982 |
-
method="post"
|
2983 |
-
enctype="multipart/form-data"
|
2984 |
-
>' .
|
2985 |
wppa_nonce_field( 'wppa-check', 'wppa-nonce', false, $yalb );
|
2986 |
|
2987 |
// Single Album given
|
2988 |
if ( wppa_is_int( $alb ) ) {
|
2989 |
$result .= '
|
2990 |
-
<input
|
2991 |
-
type="hidden"
|
2992 |
-
id="wppa-upload-album-' . $mocc . '-' . $seqno . '"
|
2993 |
-
name="wppa-upload-album"
|
2994 |
-
value="' . $alb . '"
|
2995 |
-
/>';
|
2996 |
|
2997 |
$head = '';
|
2998 |
$body = '';
|
@@ -3687,27 +3658,28 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
|
|
3687 |
$returnurl = trim( $returnurl, '?' );
|
3688 |
|
3689 |
$returnurl = wppa_encrypt_url( $returnurl );
|
|
|
3690 |
|
3691 |
$result = '
|
3692 |
<div style="clear:both;"></div>
|
3693 |
-
<a id="wppa-ea-'.
|
3694 |
-
'jQuery( \'#wppa-fe-div-'.
|
3695 |
-
'jQuery( \'#wppa-ea-'.
|
3696 |
-
'jQuery( \'#wppa-cr-'.
|
3697 |
-
'jQuery( \'#wppa-up-'.
|
3698 |
-
'jQuery( \'#wppa-cats-' .
|
3699 |
-
'jQuery( \'#_wppa-ea-'.
|
3700 |
'_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )' . // Trigger autocol
|
3701 |
'" style="float:left; cursor:pointer">
|
3702 |
'.__( 'Edit Album Info', 'wp-photo-album-plus' ).'
|
3703 |
</a>
|
3704 |
-
<a id="_wppa-ea-'.
|
3705 |
-
'jQuery( \'#wppa-fe-div-'.
|
3706 |
-
'jQuery( \'#wppa-cr-'.
|
3707 |
-
'jQuery( \'#wppa-up-'.
|
3708 |
-
'jQuery( \'#wppa-ea-'.
|
3709 |
-
'jQuery( \'#wppa-cats-' .
|
3710 |
-
'jQuery( \'#_wppa-ea-'.
|
3711 |
'_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )'. // Trigger autocol
|
3712 |
'" style="float:right; cursor:pointer;display:none;padding-right:6px;">
|
3713 |
' . __( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) .
|
@@ -3733,7 +3705,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
|
|
3733 |
$desc = esc_textarea( $desc );
|
3734 |
|
3735 |
$result .=
|
3736 |
-
'<div id="wppa-fe-div-'.
|
3737 |
'<form action="#" method="post" >' .
|
3738 |
'<input' .
|
3739 |
' type="hidden"' .
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 8.1.09.006
|
7 |
*
|
8 |
*/
|
9 |
|
2567 |
$t = $mcr ? 'mcr-' : '';
|
2568 |
|
2569 |
// The links
|
2570 |
+
$a = str_replace('.','-',$alb);
|
2571 |
$result .= '
|
2572 |
<div style="clear:both"></div>
|
2573 |
+
<a id="wppa-cr-' . $a . '-' . $mocc . '" class="wppa-create-' . $where . ' wppa-album-cover-link" onclick="
|
2574 |
+
jQuery( \'#wppa-create-'.$t.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2575 |
+
jQuery( \'#wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2576 |
+
jQuery( \'#wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2577 |
+
jQuery( \'#wppa-ea-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2578 |
+
jQuery( \'#wppa-cats-' . $a . '-' . $mocc . '\' ).css( \'display\',\'none\' );
|
2579 |
+
jQuery( \'#_wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2580 |
+
window.dispatchEvent(new Event(\'resize\'))"
|
2581 |
+
style="float:left;cursor:pointer"> ' .
|
|
|
|
|
|
|
|
|
|
|
2582 |
( $alb ? __( 'Create Sub Album', 'wp-photo-album-plus' ) : __( 'Create Album', 'wp-photo-album-plus' ) ) . '
|
2583 |
</a>
|
2584 |
+
<a id="_wppa-cr-' . $a . '-' . $mocc . '" class="wppa-create-' . $where . ' wppa-album-cover-link" onclick="
|
2585 |
+
jQuery( \'#wppa-create-'.$t.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2586 |
+
jQuery( \'#wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2587 |
+
jQuery( \'#wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2588 |
+
jQuery( \'#wppa-ea-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2589 |
+
jQuery( \'#wppa-cats-' . $a . '-' . $mocc . '\' ).css( \'display\',\'block\' );
|
2590 |
+
jQuery( \'#_wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2591 |
+
window.dispatchEvent(new Event(\'resize\'))"
|
2592 |
+
style="float:right;cursor:pointer;display:none;padding-right:6px;">' .
|
|
|
|
|
|
|
|
|
|
|
2593 |
__( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
|
2594 |
</a>';
|
2595 |
|
2596 |
// The create form
|
2597 |
$result .= '
|
2598 |
<div
|
2599 |
+
id="wppa-create-'.$t.$a.'-'.$mocc.'"
|
2600 |
style="width:100%;text-align:center;display:none;"
|
2601 |
>
|
2602 |
<form
|
2603 |
+
id="wppa-creform-'.$a.'-'.$mocc.'"
|
2604 |
action="#"
|
2605 |
method="post"
|
2606 |
>' .
|
2930 |
|
2931 |
// Make the HTML
|
2932 |
$t = $mcr ? 'mcr-' : '';
|
2933 |
+
$a = str_replace( '.', '-', $yalb );
|
2934 |
|
2935 |
$result .= '
|
2936 |
+
<a id="wppa-up-' . $a . '-' . $mocc . '" class="wppa-upload-'.$where.' wppa-album-cover-link" onclick="
|
2937 |
+
jQuery( \'#wppa-file-'.$t.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2938 |
+
jQuery( \'#wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2939 |
+
jQuery( \'#wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2940 |
+
jQuery( \'#wppa-ea-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2941 |
+
jQuery( \'#wppa-cats-' . $a . '-' . $mocc . '\' ).css( \'display\',\'none\' );
|
2942 |
+
jQuery( \'#_wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
|
|
|
|
|
|
2943 |
window.dispatchEvent(new Event(\'resize\'));
|
2944 |
+
" style="float:left; cursor:pointer"
|
|
|
2945 |
>' .
|
2946 |
__( 'Upload Photo', 'wp-photo-album-plus' ) . '
|
2947 |
</a>
|
2948 |
+
<a id="_wppa-up-' . $a . '-' . $mocc . '" class="wppa-upload-'.$where.' wppa-album-cover-link" onclick="
|
2949 |
+
jQuery( \'#wppa-file-'.$t.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
2950 |
+
jQuery( \'#wppa-cr-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2951 |
+
jQuery( \'#wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2952 |
+
jQuery( \'#wppa-ea-'.$a.'-'.$mocc.'\' ).css( \'display\',\'block\' );
|
2953 |
+
jQuery( \'#wppa-cats-' . $a . '-' . $mocc . '\' ).css( \'display\',\'block\' );
|
2954 |
+
jQuery( \'#_wppa-up-'.$a.'-'.$mocc.'\' ).css( \'display\',\'none\' );
|
|
|
|
|
|
|
2955 |
window.dispatchEvent(new Event(\'resize\'));
|
2956 |
+
" style="float:right; cursor:pointer;display:none;padding-right:6px">' .
|
|
|
2957 |
__( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) . '
|
2958 |
</a>
|
2959 |
+
<div id="wppa-file-' . $t . $a . '-' . $mocc . '" style="width:100%;text-align:center;display:none; clear:both" >
|
2960 |
+
<form id="wppa-uplform-' . $yalb . '-' . $mocc . '" action="' . $returnurl . '" method="post" enctype="multipart/form-data" >' .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2961 |
wppa_nonce_field( 'wppa-check', 'wppa-nonce', false, $yalb );
|
2962 |
|
2963 |
// Single Album given
|
2964 |
if ( wppa_is_int( $alb ) ) {
|
2965 |
$result .= '
|
2966 |
+
<input type="hidden" id="wppa-upload-album-' . $mocc . '-' . $seqno . '" name="wppa-upload-album" value="' . $alb . '" />';
|
|
|
|
|
|
|
|
|
|
|
2967 |
|
2968 |
$head = '';
|
2969 |
$body = '';
|
3658 |
$returnurl = trim( $returnurl, '?' );
|
3659 |
|
3660 |
$returnurl = wppa_encrypt_url( $returnurl );
|
3661 |
+
$a = str_replace( '.', '-', $alb );
|
3662 |
|
3663 |
$result = '
|
3664 |
<div style="clear:both;"></div>
|
3665 |
+
<a id="wppa-ea-'.$a.'-'.wppa( 'mocc' ).'" class="wppa-aedit-'.$where.' wppa-album-'.$where.'-link" onclick="'.
|
3666 |
+
'jQuery( \'#wppa-fe-div-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Open the Edit form
|
3667 |
+
'jQuery( \'#wppa-ea-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'none\' );'. // Hide the Edit link
|
3668 |
+
'jQuery( \'#wppa-cr-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'none\' );'. // Hide the Create libk
|
3669 |
+
'jQuery( \'#wppa-up-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'none\' );'. // Hide the upload link
|
3670 |
+
'jQuery( \'#wppa-cats-' . $a . '-' . wppa( 'mocc' ) . '\' ).css( \'display\',\'none\' );'. // Hide catogory
|
3671 |
+
'jQuery( \'#_wppa-ea-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show backlink
|
3672 |
'_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )' . // Trigger autocol
|
3673 |
'" style="float:left; cursor:pointer">
|
3674 |
'.__( 'Edit Album Info', 'wp-photo-album-plus' ).'
|
3675 |
</a>
|
3676 |
+
<a id="_wppa-ea-'.$a.'-'.wppa( 'mocc' ).'" class="wppa-aedit-'.$where.' wppa-album-'.$where.'-link" onclick="'.
|
3677 |
+
'jQuery( \'#wppa-fe-div-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'none\' );'. // Hide the Edit form
|
3678 |
+
'jQuery( \'#wppa-cr-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show the Create link
|
3679 |
+
'jQuery( \'#wppa-up-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show the Upload link
|
3680 |
+
'jQuery( \'#wppa-ea-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'block\' );'. // Show the Edit link
|
3681 |
+
'jQuery( \'#wppa-cats-' . $a . '-' . wppa( 'mocc' ) . '\' ).css( \'display\',\'block\' );'. // Show catogory
|
3682 |
+
'jQuery( \'#_wppa-ea-'.$a.'-'.wppa( 'mocc' ).'\' ).css( \'display\',\'none\' );'. // Hide backlink
|
3683 |
'_wppaDoAutocol( ' . wppa( 'mocc' ) . ' )'. // Trigger autocol
|
3684 |
'" style="float:right; cursor:pointer;display:none;padding-right:6px;">
|
3685 |
' . __( wppa_opt( 'close_text' ), 'wp-photo-album-plus' ) .
|
3705 |
$desc = esc_textarea( $desc );
|
3706 |
|
3707 |
$result .=
|
3708 |
+
'<div id="wppa-fe-div-'.$a.'-'.wppa( 'mocc' ).'" style="display:none">' .
|
3709 |
'<form action="#" method="post" >' .
|
3710 |
'<input' .
|
3711 |
' type="hidden"' .
|
wppa-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
-
* Version 8.1.09.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -2805,7 +2805,13 @@ static $user;
|
|
2805 |
}
|
2806 |
|
2807 |
// Make photo desc, filtered
|
2808 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
2809 |
|
2810 |
// Edit photo link
|
2811 |
$editlink = '';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various functions
|
6 |
+
* Version 8.1.09.006
|
7 |
*
|
8 |
*/
|
9 |
|
2805 |
}
|
2806 |
|
2807 |
// Make photo desc, filtered
|
2808 |
+
$d = wppa_get_slide_desc( $id );
|
2809 |
+
if ( $d == ' ' ) {
|
2810 |
+
$desc = '';
|
2811 |
+
}
|
2812 |
+
else {
|
2813 |
+
$desc = '<span class="sdd-' . wppa( 'mocc' ) . '" >' . $d . '</span>';
|
2814 |
+
}
|
2815 |
|
2816 |
// Edit photo link
|
2817 |
$editlink = '';
|
wppa-slideshow.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
*
|
7 |
-
* Version 8.1.09.
|
8 |
*
|
9 |
*/
|
10 |
|
@@ -425,9 +425,11 @@ function wppa_slide_frame() {
|
|
425 |
if ( is_feed() ) return;
|
426 |
if ( wppa( 'is_filmonly' ) ) return;
|
427 |
|
|
|
|
|
428 |
if ( wppa_switch( 'slide_pause') ) {
|
429 |
-
$pause = ' onmouseover="wppaSlidePause['.
|
430 |
-
' onmouseout="wppaSlidePause['.
|
431 |
}
|
432 |
else $pause = '';
|
433 |
|
@@ -439,7 +441,7 @@ function wppa_slide_frame() {
|
|
439 |
'</noscript>' );
|
440 |
|
441 |
wppa_out( '<div' .
|
442 |
-
' id="slide_frame-'.
|
443 |
$pause .
|
444 |
' class="slide-frame"' .
|
445 |
' style="overflow:hidden;' . wppa_get_slide_frame_style() . '"' .
|
@@ -448,8 +450,8 @@ function wppa_slide_frame() {
|
|
448 |
$auto = wppa( 'auto_colwidth' );
|
449 |
|
450 |
wppa_out( '<div' .
|
451 |
-
' id="theslide0-' .
|
452 |
-
' class="theslide theslide-' .
|
453 |
' style="' .
|
454 |
( $auto ? 'width:100%;' : 'width:' . wppa( 'slideframewidth' ) . 'px;' ) .
|
455 |
'margin:auto;' .
|
@@ -457,8 +459,8 @@ function wppa_slide_frame() {
|
|
457 |
' >' .
|
458 |
'</div>' .
|
459 |
'<div' .
|
460 |
-
' id="theslide1-' .
|
461 |
-
' class="theslide theslide-' .
|
462 |
' style="' .
|
463 |
( $auto ? 'width:100%;' : 'width:' . wppa( 'slideframewidth' ) . 'px;' ) .
|
464 |
'margin:auto;' .
|
@@ -481,8 +483,8 @@ function wppa_slide_frame() {
|
|
481 |
$h -= wppa_get_audio_control_height();
|
482 |
|
483 |
wppa_out( '<img' .
|
484 |
-
' id="bbb-' .
|
485 |
-
' class="bbb-l bbb-' .
|
486 |
' src="' . wppa_get_imgdir() . 'bbbl.png"' .
|
487 |
' alt="bbbl"' .
|
488 |
' style="' .
|
@@ -497,13 +499,13 @@ function wppa_slide_frame() {
|
|
497 |
'box-shadow:none;' .
|
498 |
'cursor:default;' .
|
499 |
'"' .
|
500 |
-
' onmouseover="function x(){if(wppaBbb)wppaBbb('.
|
501 |
-
' onmouseout="wppaBbb('.
|
502 |
-
' onclick="wppaBbb('.
|
503 |
' />' .
|
504 |
'<img' .
|
505 |
-
' id="bbb-' .
|
506 |
-
' class="bbb-r bbb-' .
|
507 |
' src="' . wppa_get_imgdir() . 'bbbr.png"' .
|
508 |
' alt="bbbr"' .
|
509 |
' style="' .
|
@@ -518,9 +520,9 @@ function wppa_slide_frame() {
|
|
518 |
'box-shadow:none;' .
|
519 |
'cursor:default;' .
|
520 |
'"' .
|
521 |
-
' onmouseover="function x(){if(wppaBbb)wppaBbb('.
|
522 |
-
' onmouseout="wppaBbb('.
|
523 |
-
' onclick="wppaBbb('.
|
524 |
' />'
|
525 |
);
|
526 |
}
|
@@ -532,8 +534,8 @@ function wppa_slide_frame() {
|
|
532 |
$iconsize = wppa_icon_size( '48px;', 1 );
|
533 |
$margin = wppa_icon_size( '48px;', 1, 0.5 );
|
534 |
wppa_out( '<div' .
|
535 |
-
' id="ubb-l-'.
|
536 |
-
' class="wppa-ubb ubb ubb-l ubb-'.
|
537 |
' style="' .
|
538 |
'background-color:transparent;' .
|
539 |
'border:none;' .
|
@@ -546,17 +548,17 @@ function wppa_slide_frame() {
|
|
546 |
'cursor:pointer;' .
|
547 |
'width:' . $iconsize . ';' .
|
548 |
'"' .
|
549 |
-
' onmouseover="wppaUbb('.
|
550 |
-
' ontouchstart="wppaUbb('.
|
551 |
-
' onmouseout="wppaUbb('.
|
552 |
-
' ontouchend="wppaUbb('.
|
553 |
-
' onclick="wppaUbb('.
|
554 |
' >' .
|
555 |
wppa_get_svghtml( 'Prev-Button', $iconsize, false, true ) .
|
556 |
'</div>' .
|
557 |
'<div' .
|
558 |
-
' id="ubb-r-'.
|
559 |
-
' class="wppa-ubb ubb ubb-r ubb-'.
|
560 |
' style="' .
|
561 |
'background-color:transparent;' .
|
562 |
'border:none;' .
|
@@ -569,11 +571,11 @@ function wppa_slide_frame() {
|
|
569 |
'cursor:pointer;' .
|
570 |
'width:' . $iconsize . ';' .
|
571 |
'"' .
|
572 |
-
' onmouseover="wppaUbb('.
|
573 |
-
' ontouchstart="wppaUbb('.
|
574 |
-
' onmouseout="wppaUbb('.
|
575 |
-
'
|
576 |
-
'
|
577 |
' >' .
|
578 |
wppa_get_svghtml( 'Next-Button', $iconsize, false, true ) .
|
579 |
'</div>'
|
4 |
*
|
5 |
* Contains all the slideshow high level functions
|
6 |
*
|
7 |
+
* Version 8.1.09.006
|
8 |
*
|
9 |
*/
|
10 |
|
425 |
if ( is_feed() ) return;
|
426 |
if ( wppa( 'is_filmonly' ) ) return;
|
427 |
|
428 |
+
$mocc = wppa( 'mocc' );
|
429 |
+
|
430 |
if ( wppa_switch( 'slide_pause') ) {
|
431 |
+
$pause = ' onmouseover="wppaSlidePause[' . $mocc . '] = \''.__('Paused', 'wp-photo-album-plus' ).'\'"' .
|
432 |
+
' onmouseout="wppaSlidePause[' . $mocc . '] = false"';
|
433 |
}
|
434 |
else $pause = '';
|
435 |
|
441 |
'</noscript>' );
|
442 |
|
443 |
wppa_out( '<div' .
|
444 |
+
' id="slide_frame-' . $mocc . '"' .
|
445 |
$pause .
|
446 |
' class="slide-frame"' .
|
447 |
' style="overflow:hidden;' . wppa_get_slide_frame_style() . '"' .
|
450 |
$auto = wppa( 'auto_colwidth' );
|
451 |
|
452 |
wppa_out( '<div' .
|
453 |
+
' id="theslide0-' . $mocc . '"' .
|
454 |
+
' class="theslide theslide-' . $mocc . '"' .
|
455 |
' style="' .
|
456 |
( $auto ? 'width:100%;' : 'width:' . wppa( 'slideframewidth' ) . 'px;' ) .
|
457 |
'margin:auto;' .
|
459 |
' >' .
|
460 |
'</div>' .
|
461 |
'<div' .
|
462 |
+
' id="theslide1-' . $mocc . '"' .
|
463 |
+
' class="theslide theslide-' . $mocc . '"' .
|
464 |
' style="' .
|
465 |
( $auto ? 'width:100%;' : 'width:' . wppa( 'slideframewidth' ) . 'px;' ) .
|
466 |
'margin:auto;' .
|
483 |
$h -= wppa_get_audio_control_height();
|
484 |
|
485 |
wppa_out( '<img' .
|
486 |
+
' id="bbb-' . $mocc . '-l"' .
|
487 |
+
' class="bbb-l bbb-' . $mocc . '"' .
|
488 |
' src="' . wppa_get_imgdir() . 'bbbl.png"' .
|
489 |
' alt="bbbl"' .
|
490 |
' style="' .
|
499 |
'box-shadow:none;' .
|
500 |
'cursor:default;' .
|
501 |
'"' .
|
502 |
+
' onmouseover="function x(){if(wppaBbb)wppaBbb(' . $mocc . ',\'l\',\'show\')}"' .
|
503 |
+
' onmouseout="wppaBbb(' . $mocc . ',\'l\',\'hide\')"' .
|
504 |
+
' onclick="wppaBbb(' . $mocc . ',\'l\',\'click\')"' .
|
505 |
' />' .
|
506 |
'<img' .
|
507 |
+
' id="bbb-' . $mocc . '-r"' .
|
508 |
+
' class="bbb-r bbb-' . $mocc . '"' .
|
509 |
' src="' . wppa_get_imgdir() . 'bbbr.png"' .
|
510 |
' alt="bbbr"' .
|
511 |
' style="' .
|
520 |
'box-shadow:none;' .
|
521 |
'cursor:default;' .
|
522 |
'"' .
|
523 |
+
' onmouseover="function x(){if(wppaBbb)wppaBbb(' . $mocc . ',\'r\',\'show\')}"' .
|
524 |
+
' onmouseout="wppaBbb(' . $mocc . ',\'r\',\'hide\')"' .
|
525 |
+
' onclick="wppaBbb(' . $mocc . ',\'r\',\'click\')"' .
|
526 |
' />'
|
527 |
);
|
528 |
}
|
534 |
$iconsize = wppa_icon_size( '48px;', 1 );
|
535 |
$margin = wppa_icon_size( '48px;', 1, 0.5 );
|
536 |
wppa_out( '<div' .
|
537 |
+
' id="ubb-l-' . $mocc . '"' .
|
538 |
+
' class="wppa-ubb ubb ubb-l ubb-' . $mocc . '"' .
|
539 |
' style="' .
|
540 |
'background-color:transparent;' .
|
541 |
'border:none;' .
|
548 |
'cursor:pointer;' .
|
549 |
'width:' . $iconsize . ';' .
|
550 |
'"' .
|
551 |
+
' onmouseover="wppaUbb(' . $mocc . ',\'l\',\'show\')"' .
|
552 |
+
' ontouchstart="wppaUbb(' . $mocc . ',\'l\',\'show\')"' .
|
553 |
+
' onmouseout="wppaUbb(' . $mocc . ',\'l\',\'hide\')"' .
|
554 |
+
' ontouchend="wppaUbb(' . $mocc . ',\'l\',\'hide\')"' .
|
555 |
+
' onclick="wppaUbb(' . $mocc . ',\'l\',\'click\')"' .
|
556 |
' >' .
|
557 |
wppa_get_svghtml( 'Prev-Button', $iconsize, false, true ) .
|
558 |
'</div>' .
|
559 |
'<div' .
|
560 |
+
' id="ubb-r-' . $mocc . '"' .
|
561 |
+
' class="wppa-ubb ubb ubb-r ubb-' . $mocc . '"' .
|
562 |
' style="' .
|
563 |
'background-color:transparent;' .
|
564 |
'border:none;' .
|
571 |
'cursor:pointer;' .
|
572 |
'width:' . $iconsize . ';' .
|
573 |
'"' .
|
574 |
+
' onmouseover="wppaUbb(' . $mocc . ',\'r\',\'show\')"' .
|
575 |
+
' ontouchstart="wppaUbb(' . $mocc . ',\'r\',\'show\')"' .
|
576 |
+
' onmouseout="wppaUbb(' . $mocc . ',\'r\',\'hide\')"' .
|
577 |
+
' ontouchend="wppaUbb(' . $mocc . ',\'r\',\'hide\')"' .
|
578 |
+
' onclick="wppaUbb(' . $mocc . ',\'r\',\'click\')"' .
|
579 |
' >' .
|
580 |
wppa_get_svghtml( 'Next-Button', $iconsize, false, true ) .
|
581 |
'</div>'
|
wppa-wrappers.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
-
* Version 8.1.09.
|
9 |
*
|
10 |
*/
|
11 |
|
@@ -741,6 +741,7 @@ static $allowed_tags;
|
|
741 |
'data-alt' => true,
|
742 |
'ontouchstart' => true,
|
743 |
'ontouchend' => true,
|
|
|
744 |
);
|
745 |
|
746 |
$allowed_tags =
|
@@ -937,34 +938,31 @@ static $allowed_tags;
|
|
937 |
$html = $temp['html'];
|
938 |
$js = $temp['js'];
|
939 |
|
940 |
-
/* Start debugging
|
941 |
$before = $html;
|
942 |
$before = str_replace( ['" >',';"','; ', '&', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
|
943 |
$after = wp_kses( $before, $t, $p );
|
944 |
$after = str_replace( ['&'], ['&'], $after );
|
945 |
-
if ( $before != $after ) {
|
946 |
-
$found = true;
|
947 |
-
while ( $found ) {
|
948 |
-
$taglen = strpos($before, '>');
|
949 |
-
$bef = substr($before,0,$taglen);
|
950 |
-
$aft = substr($after,0,$taglen);
|
951 |
-
if ( $taglen && $bef == $aft ) {
|
952 |
-
$before = substr($before,$taglen+1);
|
953 |
-
$after = substr($after,$taglen+1);
|
954 |
-
}
|
955 |
-
else {
|
956 |
-
$found = false;
|
957 |
-
}
|
958 |
-
}
|
959 |
|
960 |
-
|
|
|
|
|
|
|
961 |
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
968 |
}
|
969 |
/* End debugging */
|
970 |
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
+
* Version 8.1.09.006
|
9 |
*
|
10 |
*/
|
11 |
|
741 |
'data-alt' => true,
|
742 |
'ontouchstart' => true,
|
743 |
'ontouchend' => true,
|
744 |
+
'rel' => true,
|
745 |
);
|
746 |
|
747 |
$allowed_tags =
|
938 |
$html = $temp['html'];
|
939 |
$js = $temp['js'];
|
940 |
|
941 |
+
/* Start debugging
|
942 |
$before = $html;
|
943 |
$before = str_replace( ['" >',';"','; ', '&', 'style=" ', '"/>', ' style=""', ';;'], ['">','"',';', '&', 'style="', '" />', '', ';'], $before );
|
944 |
$after = wp_kses( $before, $t, $p );
|
945 |
$after = str_replace( ['&'], ['&'], $after );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
946 |
|
947 |
+
$before_a = explode( '>', $before );
|
948 |
+
$after_a = explode( '>', $after );
|
949 |
+
|
950 |
+
foreach( array_keys( $before_a ) as $key ) {
|
951 |
|
952 |
+
$bef = $before_a[$key];
|
953 |
+
$aft = isset( $after_a[$key] ) ? $after_a[$key] : '';
|
954 |
+
|
955 |
+
if ( $bef != $aft ) {
|
956 |
+
|
957 |
+
$data = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 );
|
958 |
+
|
959 |
+
wppa_dump( 'From: ' . basename( $data[0]['file'] ) . ':' . $data[0]['line'] . ' ' . $data[0]['function'] . ' - ' . basename( $data[1]['file'] ) . ':' . $data[1]['line'] . ' ' . $data[1]['function'] );
|
960 |
+
wppa_dump( '---' );
|
961 |
+
wppa_dump( 'Before: ' . $bef );
|
962 |
+
wppa_dump( '---' );
|
963 |
+
wppa_dump( 'After : ' . $aft );
|
964 |
+
wppa_dump( '===' );
|
965 |
+
}
|
966 |
}
|
967 |
/* End debugging */
|
968 |
|
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.1.09.
|
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.1.09.
|
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.1.09.006
|
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.1.09.006'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|