Version Description
= 7.7.01 =
- This version addresses various minor bug fixes and feature requests.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.7.01.009 |
Comparing to | |
See all releases |
Code changes from version 7.7.01.008 to 7.7.01.009
- changelog.txt +2 -1
- wppa-boxes-html.php +8 -4
- wppa-defaults.php +2 -1
- wppa-settings-autosave.php +15 -1
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -14,7 +14,8 @@ This has been corrected; the photo names will now be hidden in that case.
|
|
14 |
* The state of the 'remove empty dirs' switch on the import screen is now saved in a technical cookie and is no longer always on.
|
15 |
* New shortcode type type="contest". Displays the rating results of an album. Syntax: [wppa type="contest" album="<album id>"] The album id may be either a single id or an enumeration.
|
16 |
Alternatively you can supply attribute parent="<parent id>" where parent id may be a single id or an enumeration of album ids.
|
17 |
-
* New setting: Table IV-
|
|
|
18 |
|
19 |
= 7.6.10 =
|
20 |
|
14 |
* The state of the 'remove empty dirs' switch on the import screen is now saved in a technical cookie and is no longer always on.
|
15 |
* New shortcode type type="contest". Displays the rating results of an album. Syntax: [wppa type="contest" album="<album id>"] The album id may be either a single id or an enumeration.
|
16 |
Alternatively you can supply attribute parent="<parent id>" where parent id may be a single id or an enumeration of album ids.
|
17 |
+
* New setting: Table IV-E18: Contest top creterium. You can select 'Mean rating' (default) or 'Total ratring'.
|
18 |
+
* New setting: Table IV-E19: Contest number. You can select '---none---' (default), 'Photo id' or 'Sequence number' to be placed near the photo name under the preview image.
|
19 |
|
20 |
= 7.6.10 =
|
21 |
|
wppa-boxes-html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
-
* Version 7.7.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -202,6 +202,7 @@ global $wpdb;
|
|
202 |
|
203 |
// Get display type
|
204 |
$type = wppa_opt( 'contest_sortby' );
|
|
|
205 |
|
206 |
// Sequenc is by mean rating
|
207 |
if ( $type == 'average' ) {
|
@@ -247,7 +248,7 @@ global $wpdb;
|
|
247 |
$id = $photo['id'];
|
248 |
$alb = $photo['album'];
|
249 |
$seqno = wppa_get_seqno( $alb, $id );
|
250 |
-
$ratings = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_rating WHERE photo = %d", $id ), ARRAY_A );
|
251 |
|
252 |
if ( $ratings ) {
|
253 |
|
@@ -257,8 +258,11 @@ global $wpdb;
|
|
257 |
<a href="' . wppa_get_hires_url( $id ) . '" data-rel="wppa" data-wppa="yes" >
|
258 |
<img src="' . wppa_get_photo_url( $id ) . '" alt="' . $photo['name'] . '" >
|
259 |
</a>
|
260 |
-
<br /> '
|
261 |
-
$photo['name']
|
|
|
|
|
|
|
262 |
</td>
|
263 |
<td class="wppa-contest-table-rater" >';
|
264 |
foreach( $ratings as $rating ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Various wppa boxes
|
6 |
+
* Version 7.7.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
202 |
|
203 |
// Get display type
|
204 |
$type = wppa_opt( 'contest_sortby' );
|
205 |
+
$numb = wppa_opt( 'contest_number' );
|
206 |
|
207 |
// Sequenc is by mean rating
|
208 |
if ( $type == 'average' ) {
|
248 |
$id = $photo['id'];
|
249 |
$alb = $photo['album'];
|
250 |
$seqno = wppa_get_seqno( $alb, $id );
|
251 |
+
$ratings = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_rating WHERE photo = %d AND status = 'publish'", $id ), ARRAY_A );
|
252 |
|
253 |
if ( $ratings ) {
|
254 |
|
258 |
<a href="' . wppa_get_hires_url( $id ) . '" data-rel="wppa" data-wppa="yes" >
|
259 |
<img src="' . wppa_get_photo_url( $id ) . '" alt="' . $photo['name'] . '" >
|
260 |
</a>
|
261 |
+
<br /> ';
|
262 |
+
$result .= $photo['name'];
|
263 |
+
if ( $numb == 'id' ) $result .= ' (' . $id . ')';
|
264 |
+
if ( $numb == 'seqno' ) $result .= ' (' . wppa_get_seqno( $alb, $id ) . ')';
|
265 |
+
$result .= '
|
266 |
</td>
|
267 |
<td class="wppa-contest-table-rater" >';
|
268 |
foreach( $ratings as $rating ) {
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 7.7.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -632,6 +632,7 @@ horizrailenabled:false,";
|
|
632 |
'wppa_medal_position' => 'botright',
|
633 |
'wppa_topten_sortby' => 'mean_rating',
|
634 |
'wppa_contest_sortby' => 'average',
|
|
|
635 |
|
636 |
// F Comments
|
637 |
'wppa_comment_login' => 'no',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 7.7.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
632 |
'wppa_medal_position' => 'botright',
|
633 |
'wppa_topten_sortby' => 'mean_rating',
|
634 |
'wppa_contest_sortby' => 'average',
|
635 |
+
'wppa_contest_number' => 'none',
|
636 |
|
637 |
// F Comments
|
638 |
'wppa_comment_login' => 'no',
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 7.7.01.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -5460,6 +5460,20 @@ global $wppa_supported_camara_brands;
|
|
5460 |
$clas = '';
|
5461 |
$tags = 'rating,layout';
|
5462 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5463 |
}
|
5464 |
wppa_setting_subheader( 'F', '1', __( 'Comments related settings' , 'wp-photo-album-plus'), 'wppa_comment_' );
|
5465 |
{
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 7.7.01.009
|
7 |
*
|
8 |
*/
|
9 |
|
5460 |
$clas = '';
|
5461 |
$tags = 'rating,layout';
|
5462 |
wppa_setting($slug, '18', $name, $desc, $html, $help, $clas, $tags);
|
5463 |
+
|
5464 |
+
$name = __('Contest photo numbering', 'wp-photo-album-plus');
|
5465 |
+
$desc = __('The number to be placed near the preview.', 'wp-photo-album-plus');
|
5466 |
+
$help = '';
|
5467 |
+
$slug = 'wppa_contest_number';
|
5468 |
+
$opts = array( __('--- none ---', 'wp-photo-album-plus'),
|
5469 |
+
__('Photo id', 'wp-photo-album-plus'),
|
5470 |
+
__('Sequence number', 'wp-photo-album-plus'));
|
5471 |
+
$vals = array( 'none', 'id', 'seqno' );
|
5472 |
+
$html = wppa_select($slug, $opts, $vals);
|
5473 |
+
$clas = '';
|
5474 |
+
$tags = 'rating,layout';
|
5475 |
+
wppa_setting($slug, '19', $name, $desc, $html, $help, $clas, $tags);
|
5476 |
+
|
5477 |
}
|
5478 |
wppa_setting_subheader( 'F', '1', __( 'Comments related settings' , 'wp-photo-album-plus'), 'wppa_comment_' );
|
5479 |
{
|
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: 7.7.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/
|
@@ -24,7 +24,7 @@ global $wp_version;
|
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_revno; $wppa_revno = '7701'; // WPPA db version
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.7.01.
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_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: 7.7.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/
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_revno; $wppa_revno = '7701'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.7.01.009'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|