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.004 |
Comparing to | |
See all releases |
Code changes from version 8.3.01.003 to 8.3.01.004
- changelog.txt +2 -2
- wppa-admin-functions.php +13 -8
- wppa-admin-styles.css +16 -12
- wppa-album-admin-autosave.php +15 -11
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -5,8 +5,8 @@ WP Photo Album Plus Changelog
|
|
5 |
* Maintenance release
|
6 |
* It is now properly detected when an album owner no longer exists.
|
7 |
* Many textual corrections.
|
8 |
-
* Pagination of admin pages made like the wp style, with the addition of page size selection.
|
9 |
-
Admin page sizes are no longer in the settings page, but individually remembered by transient options.
|
10 |
|
11 |
= 8.2.09 =
|
12 |
|
5 |
* Maintenance release
|
6 |
* It is now properly detected when an album owner no longer exists.
|
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 |
|
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 |
|
@@ -1083,15 +1083,19 @@ function wppa_admin_pagination( $pagesize, $current, $total_items, $url, $which
|
|
1083 |
}
|
1084 |
|
1085 |
// Init
|
|
|
1086 |
$output = '';
|
1087 |
$link = $url . '&paged=';
|
1088 |
$total_pages = $pagesize ? ceil( $total_items / $pagesize ) : '1';
|
1089 |
|
1090 |
// Overall wrapper
|
1091 |
-
$st = $which == 'bottom' ? 'style="display:block"' : 'style="display:inline"';
|
1092 |
-
$output .= '
|
1093 |
-
<div class="tablenav" ' . $st . '>
|
1094 |
-
|
|
|
|
|
|
|
1095 |
|
1096 |
$output .= '
|
1097 |
<span class="displaying-num">' .
|
@@ -1216,8 +1220,7 @@ function wppa_admin_pagination( $pagesize, $current, $total_items, $url, $which
|
|
1216 |
if ( $which == 'top' ) {
|
1217 |
$output .= ' ' .
|
1218 |
__( 'Pagesize', 'wp-photo-album-plus' ) . '
|
1219 |
-
<select
|
1220 |
-
style="margin-top:-2px;"
|
1221 |
onchange="jQuery( \'#wppa-admin-spinner\' ).show();document.location.href=\''.$link.'1&wppa-pagesize=\'+this.value;">
|
1222 |
<option value="20"' . ( $pagesize == '20' ? ' selected' : '' ) . '>20</option>
|
1223 |
<option value="50"' . ( $pagesize == '50' ? ' selected' : '' ) . '>50</option>
|
@@ -1229,7 +1232,9 @@ function wppa_admin_pagination( $pagesize, $current, $total_items, $url, $which
|
|
1229 |
}
|
1230 |
|
1231 |
// Close overall wrapper
|
1232 |
-
$output .= '</span></div
|
|
|
|
|
1233 |
|
1234 |
// Done
|
1235 |
if ( $return ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 8.3.01.004
|
7 |
*
|
8 |
*/
|
9 |
|
1083 |
}
|
1084 |
|
1085 |
// Init
|
1086 |
+
if ( $which != 'top' ) $which = 'bottom';
|
1087 |
$output = '';
|
1088 |
$link = $url . '&paged=';
|
1089 |
$total_pages = $pagesize ? ceil( $total_items / $pagesize ) : '1';
|
1090 |
|
1091 |
// Overall wrapper
|
1092 |
+
// $st = $which == 'bottom' ? 'style="display:block"' : 'style="display:inline"';
|
1093 |
+
// $output .= '
|
1094 |
+
// <div class="wppa-tablenav" ' . $st . '>
|
1095 |
+
if ( $which == 'bottom' ) $output .= '<div class="test" style="line-height:2.1em;margin-top:6px;">';
|
1096 |
+
|
1097 |
+
$output .= '
|
1098 |
+
<div class="wppa-admin-pagination">';
|
1099 |
|
1100 |
$output .= '
|
1101 |
<span class="displaying-num">' .
|
1220 |
if ( $which == 'top' ) {
|
1221 |
$output .= ' ' .
|
1222 |
__( 'Pagesize', 'wp-photo-album-plus' ) . '
|
1223 |
+
<select style="vertical-align:top"
|
|
|
1224 |
onchange="jQuery( \'#wppa-admin-spinner\' ).show();document.location.href=\''.$link.'1&wppa-pagesize=\'+this.value;">
|
1225 |
<option value="20"' . ( $pagesize == '20' ? ' selected' : '' ) . '>20</option>
|
1226 |
<option value="50"' . ( $pagesize == '50' ? ' selected' : '' ) . '>50</option>
|
1232 |
}
|
1233 |
|
1234 |
// Close overall wrapper
|
1235 |
+
$output .= '</span></div>';//</div>';
|
1236 |
+
|
1237 |
+
if ( $which == 'bottom' ) $output .= '</div>';
|
1238 |
|
1239 |
// Done
|
1240 |
if ( $return ) {
|
wppa-admin-styles.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/* admin-styles.css
|
2 |
*
|
3 |
* wp-photo-album-plus
|
4 |
-
* version 8.3.01.
|
5 |
*/
|
6 |
#files_list, #files_list2
|
7 |
{
|
@@ -202,14 +202,6 @@ ul.wppa_nav
|
|
202 |
float: right;
|
203 |
}
|
204 |
|
205 |
-
.wppa-admin-pagination {
|
206 |
-
display:block;
|
207 |
-
height:32px;
|
208 |
-
line-height:1.7em;
|
209 |
-
margin:12px 0;
|
210 |
-
float:right;
|
211 |
-
}
|
212 |
-
|
213 |
tt {
|
214 |
font-weight: bold;
|
215 |
font-family: Consolas,Monaco,"Courier New",Courier,monospace;
|
@@ -665,11 +657,21 @@ details.hidden {
|
|
665 |
color: rgba(44, 51, 56, 0.5);
|
666 |
}
|
667 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
668 |
#wppa-action-container {
|
669 |
display: inline-block;
|
670 |
-
margin-bottom: 9px;
|
671 |
}
|
672 |
|
|
|
673 |
#wppa-action-container input,
|
674 |
#wppa-action-container select {
|
675 |
margin-right: 8px;
|
@@ -679,6 +681,8 @@ details.hidden {
|
|
679 |
margin-right: 0;
|
680 |
}
|
681 |
|
682 |
-
.wppa-
|
683 |
-
|
|
|
|
|
684 |
}
|
1 |
/* admin-styles.css
|
2 |
*
|
3 |
* wp-photo-album-plus
|
4 |
+
* version 8.3.01.004
|
5 |
*/
|
6 |
#files_list, #files_list2
|
7 |
{
|
202 |
float: right;
|
203 |
}
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
tt {
|
206 |
font-weight: bold;
|
207 |
font-family: Consolas,Monaco,"Courier New",Courier,monospace;
|
657 |
color: rgba(44, 51, 56, 0.5);
|
658 |
}
|
659 |
|
660 |
+
.wppa-tabcontent {
|
661 |
+
min-height: 530px;
|
662 |
+
}
|
663 |
+
|
664 |
+
.wppa-table-header-box {
|
665 |
+
margin-top:12px;
|
666 |
+
margin-bottom: 9px;
|
667 |
+
display:block;
|
668 |
+
}
|
669 |
+
|
670 |
#wppa-action-container {
|
671 |
display: inline-block;
|
|
|
672 |
}
|
673 |
|
674 |
+
|
675 |
#wppa-action-container input,
|
676 |
#wppa-action-container select {
|
677 |
margin-right: 8px;
|
681 |
margin-right: 0;
|
682 |
}
|
683 |
|
684 |
+
.wppa-admin-pagination {
|
685 |
+
display:block;
|
686 |
+
float:right;
|
687 |
+
margin-bottom:6px;
|
688 |
}
|
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 |
|
@@ -34,7 +34,7 @@ global $wppa_revno;
|
|
34 |
}
|
35 |
}
|
36 |
$back_link_html = '
|
37 |
-
<div style="
|
38 |
|
39 |
<a href="' . $back_url . '"
|
40 |
style=""
|
@@ -45,7 +45,7 @@ global $wppa_revno;
|
|
45 |
</div>';
|
46 |
|
47 |
$top_link_html = '
|
48 |
-
<div style="position:fixed;right:20px;bottom:30px;
|
49 |
|
50 |
<a href="#manage-photos">' .
|
51 |
__( 'Top of page', 'wp-photo-album-plus' ) . '
|
@@ -168,7 +168,7 @@ global $wppa_revno;
|
|
168 |
wppa_album_photos( $ei );
|
169 |
}
|
170 |
|
171 |
-
wppa_echo( $top_link_html
|
172 |
wppa_echo( '</div>' );
|
173 |
return;
|
174 |
}
|
@@ -585,7 +585,7 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
|
|
585 |
|
586 |
/* Start header buttons */
|
587 |
$result = '
|
588 |
-
<div id="wppa-action-container"
|
589 |
|
590 |
// Goto Upload
|
591 |
if ( current_user_can( 'wppa_upload' ) ) {
|
@@ -2131,7 +2131,7 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
|
|
2131 |
/* Footer of the page */
|
2132 |
wppa_echo( '
|
2133 |
<br>' .
|
2134 |
-
|
2135 |
$top_link_html . '
|
2136 |
</div>' );
|
2137 |
|
@@ -2298,7 +2298,7 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
|
|
2298 |
/* The header buttons / sewlection boxes */
|
2299 |
{
|
2300 |
$header = '
|
2301 |
-
<div
|
2302 |
<div id="wppa-action-container">';
|
2303 |
|
2304 |
// The switch to flat/collapsable button(s)
|
@@ -2410,11 +2410,13 @@ jQuery(document).ready(function(){wppaGetCoverPreview( '.$id.', "cover-preview-"
|
|
2410 |
onclick="wppaGoApplyFilter();"
|
2411 |
value="' . __( 'Apply filter', 'wp-photo-album-plus' ) . '"
|
2412 |
/>';
|
|
|
|
|
2413 |
$header .= '
|
2414 |
</div>
|
2415 |
';
|
2416 |
wppa_echo( $header );
|
2417 |
-
/* End header buttons /
|
2418 |
}
|
2419 |
|
2420 |
$the_js = '
|
@@ -2672,7 +2674,9 @@ global $wpdb;
|
|
2672 |
</table>';
|
2673 |
wppa_echo( $result );
|
2674 |
|
|
|
2675 |
wppa_admin_pagination( $pagesize, $page, $total, $reload_url, 'bottom' );
|
|
|
2676 |
|
2677 |
wppa_echo( wppa_album_admin_footer() );
|
2678 |
|
@@ -2830,8 +2834,6 @@ global $wpdb;
|
|
2830 |
|
2831 |
wppa_echo( '</div>' ); // Close action contatiner
|
2832 |
|
2833 |
-
wppa_echo( '<hr style="width:100%;clear:both;" />' );
|
2834 |
-
|
2835 |
$result = '
|
2836 |
<table class="widefat wppa-table wppa-setting-table" style="margin:12px 0">
|
2837 |
<thead>';
|
@@ -2920,7 +2922,7 @@ global $wpdb;
|
|
2920 |
if ( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE a_parent = '-1'" ) > 0 ) {
|
2921 |
$result = '
|
2922 |
<tr>
|
2923 |
-
<td colspan="' . ( '
|
2924 |
<em>' .
|
2925 |
__( 'The following albums are ---separate--- and do not show up in the generic album display', 'wp-photo-album-plus' ) . '
|
2926 |
</em>
|
@@ -2948,7 +2950,9 @@ global $wpdb;
|
|
2948 |
|
2949 |
wppa_echo( $result );
|
2950 |
|
|
|
2951 |
wppa_admin_pagination( $pagesize, $page, $total, $reload_url, 'bottom' );
|
|
|
2952 |
|
2953 |
wppa_echo( wppa_album_admin_footer() );
|
2954 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 8.3.01.004
|
7 |
*
|
8 |
*/
|
9 |
|
34 |
}
|
35 |
}
|
36 |
$back_link_html = '
|
37 |
+
<div style="position:fixed;right:20px;background-color:lightblue;top:50px;z-index:3;">
|
38 |
|
39 |
<a href="' . $back_url . '"
|
40 |
style=""
|
45 |
</div>';
|
46 |
|
47 |
$top_link_html = '
|
48 |
+
<div style="position:fixed;right:20px;background-color:lightblue;bottom:30px;z-index:3;" >
|
49 |
|
50 |
<a href="#manage-photos">' .
|
51 |
__( 'Top of page', 'wp-photo-album-plus' ) . '
|
168 |
wppa_album_photos( $ei );
|
169 |
}
|
170 |
|
171 |
+
wppa_echo( $top_link_html );//. '<br>' . $back_link_html );
|
172 |
wppa_echo( '</div>' );
|
173 |
return;
|
174 |
}
|
585 |
|
586 |
/* Start header buttons */
|
587 |
$result = '
|
588 |
+
<div id="wppa-action-container">';
|
589 |
|
590 |
// Goto Upload
|
591 |
if ( current_user_can( 'wppa_upload' ) ) {
|
2131 |
/* Footer of the page */
|
2132 |
wppa_echo( '
|
2133 |
<br>' .
|
2134 |
+
// $back_link_html .
|
2135 |
$top_link_html . '
|
2136 |
</div>' );
|
2137 |
|
2298 |
/* The header buttons / sewlection boxes */
|
2299 |
{
|
2300 |
$header = '
|
2301 |
+
<div class=="wppa-table-header-box">
|
2302 |
<div id="wppa-action-container">';
|
2303 |
|
2304 |
// The switch to flat/collapsable button(s)
|
2410 |
onclick="wppaGoApplyFilter();"
|
2411 |
value="' . __( 'Apply filter', 'wp-photo-album-plus' ) . '"
|
2412 |
/>';
|
2413 |
+
|
2414 |
+
// Close action container
|
2415 |
$header .= '
|
2416 |
</div>
|
2417 |
';
|
2418 |
wppa_echo( $header );
|
2419 |
+
/* End header buttons / selection boxes */
|
2420 |
}
|
2421 |
|
2422 |
$the_js = '
|
2674 |
</table>';
|
2675 |
wppa_echo( $result );
|
2676 |
|
2677 |
+
// wppa_echo( '<div class="wppa-table-header-box">' );
|
2678 |
wppa_admin_pagination( $pagesize, $page, $total, $reload_url, 'bottom' );
|
2679 |
+
// wppa_echo( '</div>' );
|
2680 |
|
2681 |
wppa_echo( wppa_album_admin_footer() );
|
2682 |
|
2834 |
|
2835 |
wppa_echo( '</div>' ); // Close action contatiner
|
2836 |
|
|
|
|
|
2837 |
$result = '
|
2838 |
<table class="widefat wppa-table wppa-setting-table" style="margin:12px 0">
|
2839 |
<thead>';
|
2922 |
if ( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE a_parent = '-1'" ) > 0 ) {
|
2923 |
$result = '
|
2924 |
<tr>
|
2925 |
+
<td colspan="' . ( '20' + ( current_user_can( 'wppa_upload' ) ? '1' : '0' ) + ( current_user_can( 'wppa_import' ) ? '1' : '0' ) ) . '" >
|
2926 |
<em>' .
|
2927 |
__( 'The following albums are ---separate--- and do not show up in the generic album display', 'wp-photo-album-plus' ) . '
|
2928 |
</em>
|
2950 |
|
2951 |
wppa_echo( $result );
|
2952 |
|
2953 |
+
// wppa_echo( '<div class="wppa-table-header-box">' );
|
2954 |
wppa_admin_pagination( $pagesize, $page, $total, $reload_url, 'bottom' );
|
2955 |
+
// wppa_echo( '</div>' );
|
2956 |
|
2957 |
wppa_echo( wppa_album_admin_footer() );
|
2958 |
|
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.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/
|
23 |
global $wp_version;
|
24 |
|
25 |
/* WPPA Version */
|
26 |
+
global $wppa_version; $wppa_version = '8.3.01.004'; // WPPA software version
|
27 |
global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
|
28 |
|
29 |
/* Init page js data */
|