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.010 |
Comparing to | |
See all releases |
Code changes from version 8.3.01.009 to 8.3.01.010
- readme.txt +1 -1
- wppa-admin-functions.php +2 -2
- wppa-album-covers.php +28 -28
- wppa-boxes-html.php +9 -9
- wppa-listtable.php +2 -2
- wppa.php +2 -2
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.3.01.
|
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.010
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1182,7 +1182,7 @@ function wppa_admin_pagination( $pagesize, $current, $total_items, $url, $which
|
|
1182 |
$output .= $total_pages_before . sprintf(
|
1183 |
|
1184 |
/* translators: 1: Current page, 2: Total pages. */
|
1185 |
-
|
1186 |
$html_current_page,
|
1187 |
$html_total_pages
|
1188 |
) . '</span></span>';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 8.3.01.010
|
7 |
*
|
8 |
*/
|
9 |
|
1182 |
$output .= $total_pages_before . sprintf(
|
1183 |
|
1184 |
/* translators: 1: Current page, 2: Total pages. */
|
1185 |
+
__( '%1$s of %2$s', 'wp-photo-album-plus' ),
|
1186 |
$html_current_page,
|
1187 |
$html_total_pages
|
1188 |
) . '</span></span>';
|
wppa-album-covers.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
-
* Version 8.3.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -999,57 +999,57 @@ global $wpdb;
|
|
999 |
wppa_cache_photo( 'add', $thumbs ); // Save rsult in 2nd level cache
|
1000 |
|
1001 |
if ( $thumbs ) foreach ( $thumbs as $thumb ) {
|
1002 |
-
$
|
1003 |
-
$title = wppa_get_lbtitle( 'cover', $
|
1004 |
-
if ( wppa_is_video( $
|
1005 |
-
$siz['0'] = wppa_get_videox( $
|
1006 |
-
$siz['1'] = wppa_get_videoy( $
|
1007 |
}
|
1008 |
else {
|
1009 |
-
$siz['0'] = wppa_get_photox( $
|
1010 |
-
$siz['1'] = wppa_get_photoy( $
|
1011 |
}
|
1012 |
-
$link = wppa_get_photo_url( $
|
1013 |
-
$is_video = wppa_is_video( $
|
1014 |
-
$has_audio = wppa_has_audio( $
|
1015 |
-
$is_pdf = wppa_is_pdf( $
|
1016 |
|
1017 |
// Open the anchor tag for lightbox
|
1018 |
wppa_out( "\n\t" .
|
1019 |
'<a' .
|
1020 |
-
' data-id="' . wppa_encrypt_photo( $
|
1021 |
' href="' . $link . '"' .
|
1022 |
' style="border:0;color:transparent;"' .
|
1023 |
-
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $
|
1024 |
-
' data-videonatwidth="'.wppa_get_videox( $
|
1025 |
-
' data-videonatheight="'.wppa_get_videoy( $
|
1026 |
-
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $
|
1027 |
-
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $
|
1028 |
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $albumid . ']"' .
|
1029 |
' ' . 'data-lbtitle' . '="' . $title . '"' .
|
1030 |
-
wppa_get_lb_panorama_full_html( $
|
1031 |
-
' data-alt="' . esc_attr( wppa_get_imgalt( $
|
1032 |
' style="cursor:' . wppa_wait() . ';"' .
|
1033 |
' onclick="return false;"' .
|
1034 |
' >' );
|
1035 |
|
1036 |
// the cover image
|
1037 |
-
if ( $
|
1038 |
-
if ( wppa_is_video( $
|
1039 |
wppa_out(
|
1040 |
-
'<video preload="metadata" class="image wppa-img" id="i-' . $
|
1041 |
-
wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $
|
1042 |
'" style="' . $imgattr . '" ' .
|
1043 |
$events . ' >' .
|
1044 |
-
wppa_get_video_body( $
|
1045 |
);
|
1046 |
}
|
1047 |
else {
|
1048 |
wppa_out(
|
1049 |
-
'<img class="image wppa-img" id="i-' . $
|
1050 |
-
wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $
|
1051 |
'" src="' . $src . '" style="' . $imgattr . '" ' .
|
1052 |
-
$events . ' ' . wppa_get_imgalt( $
|
1053 |
);
|
1054 |
}
|
1055 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Functions for album covers
|
6 |
+
* Version 8.3.01.010
|
7 |
*
|
8 |
*/
|
9 |
|
999 |
wppa_cache_photo( 'add', $thumbs ); // Save rsult in 2nd level cache
|
1000 |
|
1001 |
if ( $thumbs ) foreach ( $thumbs as $thumb ) {
|
1002 |
+
$tid = $thumb['id'];
|
1003 |
+
$title = wppa_get_lbtitle( 'cover', $tid );
|
1004 |
+
if ( wppa_is_video( $tid ) ) {
|
1005 |
+
$siz['0'] = wppa_get_videox( $tid );
|
1006 |
+
$siz['1'] = wppa_get_videoy( $tid );
|
1007 |
}
|
1008 |
else {
|
1009 |
+
$siz['0'] = wppa_get_photox( $tid );
|
1010 |
+
$siz['1'] = wppa_get_photoy( $tid );
|
1011 |
}
|
1012 |
+
$link = wppa_get_photo_url( $tid, true, '', $siz['0'], $siz['1'] );
|
1013 |
+
$is_video = wppa_is_video( $tid );
|
1014 |
+
$has_audio = wppa_has_audio( $tid );
|
1015 |
+
$is_pdf = wppa_is_pdf( $tid );
|
1016 |
|
1017 |
// Open the anchor tag for lightbox
|
1018 |
wppa_out( "\n\t" .
|
1019 |
'<a' .
|
1020 |
+
' data-id="' . wppa_encrypt_photo( $tid ) . '"' .
|
1021 |
' href="' . $link . '"' .
|
1022 |
' style="border:0;color:transparent;"' .
|
1023 |
+
( $is_video ? ' data-videohtml="' . esc_attr( wppa_get_video_body( $tid ) ) . '"' .
|
1024 |
+
' data-videonatwidth="'.wppa_get_videox( $tid ).'"' .
|
1025 |
+
' data-videonatheight="'.wppa_get_videoy( $tid ).'"' : '' ) .
|
1026 |
+
( $has_audio ? ' data-audiohtml="' . esc_attr( wppa_get_audio_body( $tid ) ) . '"' : '' ) .
|
1027 |
+
( $is_pdf ? ' data-pdfhtml="' . esc_attr( wppa_get_pdf_html( $tid ) ) .'"' : '' ) .
|
1028 |
' data-rel="wppa[alw-' . wppa( 'mocc' ) . '-' . $albumid . ']"' .
|
1029 |
' ' . 'data-lbtitle' . '="' . $title . '"' .
|
1030 |
+
wppa_get_lb_panorama_full_html( $tid ) .
|
1031 |
+
' data-alt="' . esc_attr( wppa_get_imgalt( $tid, true ) ) . '"' .
|
1032 |
' style="cursor:' . wppa_wait() . ';"' .
|
1033 |
' onclick="return false;"' .
|
1034 |
' >' );
|
1035 |
|
1036 |
// the cover image
|
1037 |
+
if ( $tid == $id ) {
|
1038 |
+
if ( wppa_is_video( $tid ) ) {
|
1039 |
wppa_out(
|
1040 |
+
'<video preload="metadata" class="image wppa-img" id="i-' . $tid . '-' .
|
1041 |
+
wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $tid ) .
|
1042 |
'" style="' . $imgattr . '" ' .
|
1043 |
$events . ' >' .
|
1044 |
+
wppa_get_video_body( $tid ) . '</video>'
|
1045 |
);
|
1046 |
}
|
1047 |
else {
|
1048 |
wppa_out(
|
1049 |
+
'<img class="image wppa-img" id="i-' . $tid . '-' .
|
1050 |
+
wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $tid ) .
|
1051 |
'" src="' . $src . '" style="' . $imgattr . '" ' .
|
1052 |
+
$events . ' ' . wppa_get_imgalt( $tid ) . ' />'
|
1053 |
);
|
1054 |
}
|
1055 |
}
|
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 |
|
@@ -581,7 +581,7 @@ global $wppa_session;
|
|
581 |
if ( wppa_browser_can_html5() ) {
|
582 |
$form_core = '<!-- wppa form html5 -->
|
583 |
<label>
|
584 |
-
<span class="screen-reader-text" >' .
|
585 |
<input
|
586 |
type="search"
|
587 |
class="search-field"
|
@@ -593,7 +593,7 @@ global $wppa_session;
|
|
593 |
<input
|
594 |
type="submit"
|
595 |
class="search-submit"
|
596 |
-
value="'.
|
597 |
/>';
|
598 |
} else {
|
599 |
$form_core = '<!-- wppa form html4 -->
|
@@ -602,7 +602,7 @@ global $wppa_session;
|
|
602 |
class="screen-reader-text"
|
603 |
for="wppa_s-'.$mocc.'"
|
604 |
>' .
|
605 |
-
|
606 |
</label>
|
607 |
<input
|
608 |
type="text"
|
@@ -613,7 +613,7 @@ global $wppa_session;
|
|
613 |
<input
|
614 |
type="submit"
|
615 |
id="searchsubmit"
|
616 |
-
value="' .
|
617 |
/>
|
618 |
</div>';
|
619 |
}
|
@@ -632,17 +632,17 @@ global $wppa_session;
|
|
632 |
if ( 'html5' == $format ) {
|
633 |
$form_core = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
|
634 |
<label>
|
635 |
-
<span class="screen-reader-text">' .
|
636 |
<input type="search" class="search-field" placeholder="' . esc_attr( wppa_opt( 'search_placeholder' ) ) . '" value="' . get_search_query() . '" name="s" />
|
637 |
</label>
|
638 |
-
<input type="submit" class="search-submit" value="'.
|
639 |
</form>';
|
640 |
} else {
|
641 |
$form_core = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url( home_url( '/' ) ) . '">
|
642 |
<div>
|
643 |
-
<label class="screen-reader-text" for="s">' .
|
644 |
<input type="text" value="' . get_search_query() . '" name="s" id="s" />
|
645 |
-
<input type="submit" id="searchsubmit" value="'.
|
646 |
</div>
|
647 |
</form>';
|
648 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 8.3.01.010
|
7 |
*
|
8 |
*/
|
9 |
|
581 |
if ( wppa_browser_can_html5() ) {
|
582 |
$form_core = '<!-- wppa form html5 -->
|
583 |
<label>
|
584 |
+
<span class="screen-reader-text" >' . esc_html__( 'Search for:', 'wp-photo-album-plus' ) . '</span>
|
585 |
<input
|
586 |
type="search"
|
587 |
class="search-field"
|
593 |
<input
|
594 |
type="submit"
|
595 |
class="search-submit"
|
596 |
+
value="'. esc_attr__( 'Search', 'wp-photo-album-plus' ) .'"
|
597 |
/>';
|
598 |
} else {
|
599 |
$form_core = '<!-- wppa form html4 -->
|
602 |
class="screen-reader-text"
|
603 |
for="wppa_s-'.$mocc.'"
|
604 |
>' .
|
605 |
+
esc_html__( 'Search for:', 'wp-photo-album-plus' ) . '
|
606 |
</label>
|
607 |
<input
|
608 |
type="text"
|
613 |
<input
|
614 |
type="submit"
|
615 |
id="searchsubmit"
|
616 |
+
value="' . esc_attr__( 'Search', 'wp-photo-album-plus' ) . '"
|
617 |
/>
|
618 |
</div>';
|
619 |
}
|
632 |
if ( 'html5' == $format ) {
|
633 |
$form_core = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
|
634 |
<label>
|
635 |
+
<span class="screen-reader-text">' . esc_html__( 'Search for:', 'wp-photo-album-plus' ) . '</span>
|
636 |
<input type="search" class="search-field" placeholder="' . esc_attr( wppa_opt( 'search_placeholder' ) ) . '" value="' . get_search_query() . '" name="s" />
|
637 |
</label>
|
638 |
+
<input type="submit" class="search-submit" value="' . esc_attr__( 'Search', 'wp-photo-album-plus' ) .'" />
|
639 |
</form>';
|
640 |
} else {
|
641 |
$form_core = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url( home_url( '/' ) ) . '">
|
642 |
<div>
|
643 |
+
<label class="screen-reader-text" for="s">' . esc_html__( 'Search for:', 'wp-photo-album-plus' ) . '</label>
|
644 |
<input type="text" value="' . get_search_query() . '" name="s" id="s" />
|
645 |
+
<input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'wp-photo-album-plus' ) .'" />
|
646 |
</div>
|
647 |
</form>';
|
648 |
}
|
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 |
|
@@ -746,7 +746,7 @@ class WPPA_List_Table {
|
|
746 |
$page_links[] = $total_pages_before . sprintf(
|
747 |
|
748 |
/* translators: 1: Current page, 2: Total pages. */
|
749 |
-
|
750 |
$html_current_page,
|
751 |
$html_total_pages
|
752 |
) . $total_pages_after;
|
4 |
*
|
5 |
* Copy of wp version
|
6 |
* Modified by OpaJaap
|
7 |
+
* Version 8.3.01.010
|
8 |
*
|
9 |
*/
|
10 |
|
746 |
$page_links[] = $total_pages_before . sprintf(
|
747 |
|
748 |
/* translators: 1: Current page, 2: Total pages. */
|
749 |
+
__( '%1$s of %2$s', 'wp-photo-album-plus' ),
|
750 |
$html_current_page,
|
751 |
$html_total_pages
|
752 |
) . $total_pages_after;
|
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.010
|
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.010'; // WPPA software version
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js data */
|