Version Description
= 7.7.07 =
- 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.07.006 |
Comparing to | |
See all releases |
Code changes from version 7.7.07.005 to 7.7.07.006
- changelog.txt +1 -0
- wppa-admin-functions.php +2 -2
- wppa-album-admin-autosave.php +33 -3
- wppa-defaults.php +2 -1
- wppa-import.php +2 -2
- wppa-settings-autosave.php +12 -1
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -5,6 +5,7 @@ WP Photo Album Plus Changelog
|
|
5 |
* Shortcode virtual album attribute album="#related,... did not work. Fixed.
|
6 |
* Client side performance improvements.
|
7 |
* New feature: If panorama is enabled (Table IV-A24.2), one can now bulk set all the photos of an album to a valid panorama mode for thos photos that have their x/y ratio >= 2.
|
|
|
8 |
|
9 |
= 7.7.06 =
|
10 |
|
5 |
* Shortcode virtual album attribute album="#related,... did not work. Fixed.
|
6 |
* Client side performance improvements.
|
7 |
* New feature: If panorama is enabled (Table IV-A24.2), one can now bulk set all the photos of an album to a valid panorama mode for thos photos that have their x/y ratio >= 2.
|
8 |
+
* New setting: Table IV-H5: Panorama max width spheric. The max size when a spheric panorama is converted to 230° can now be set from 4.000 up to 10.000. Was 6.000 previously.
|
9 |
|
10 |
= 7.7.06 =
|
11 |
|
wppa-admin-functions.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1106,7 +1106,7 @@ function wppa_make_360( $id, $degs ) {
|
|
1106 |
|
1107 |
// Compute compressionfactor
|
1108 |
$c = 1.0;
|
1109 |
-
$w_max =
|
1110 |
if ( $w_new > $w_max ) {
|
1111 |
$c = $w_max / $w_new;
|
1112 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* gp admin functions
|
6 |
+
* Version 7.7.07.006
|
7 |
*
|
8 |
*/
|
9 |
|
1106 |
|
1107 |
// Compute compressionfactor
|
1108 |
$c = 1.0;
|
1109 |
+
$w_max = wppa_opt( 'panorama_max' );
|
1110 |
if ( $w_new > $w_max ) {
|
1111 |
$c = $w_max / $w_new;
|
1112 |
}
|
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 7.7.07.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -308,6 +308,7 @@ global $wppa_revno;
|
|
308 |
}
|
309 |
|
310 |
// Set all to pano
|
|
|
311 |
if ( isset( $_REQUEST['pano-val'] ) ) {
|
312 |
|
313 |
$p = $_REQUEST['pano-val'];
|
@@ -330,7 +331,7 @@ global $wppa_revno;
|
|
330 |
$n = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
|
331 |
SET panorama = %d
|
332 |
WHERE album = %d
|
333 |
-
AND photox
|
334 |
AND ext IN ('jpg','png')
|
335 |
", $p, $edit_id ) );
|
336 |
if ( $tot == $n ) {
|
@@ -339,6 +340,35 @@ global $wppa_revno;
|
|
339 |
else {
|
340 |
$status = sprintf( __( '%1d photos out of %2d set to %s panorama', 'wp-photo-album-plus' ), $n, $tot, ( $p == 1 ? __( 'spheric', 'wp-photo-album-plus' ) : __( 'flat', 'wp-photo-album-plus' ) ) );
|
341 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
break;
|
343 |
default:
|
344 |
$status = __( 'No panorama changes applied', 'wp-photo-album-plus' );
|
@@ -347,7 +377,7 @@ global $wppa_revno;
|
|
347 |
<script>
|
348 |
jQuery(document).ready(function(){
|
349 |
jQuery("#albumstatus-'.$edit_id.'").html("'.$status.'");
|
350 |
-
});
|
351 |
</script>';
|
352 |
}
|
353 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 7.7.07.006
|
7 |
*
|
8 |
*/
|
9 |
|
308 |
}
|
309 |
|
310 |
// Set all to pano
|
311 |
+
$timeup = false;
|
312 |
if ( isset( $_REQUEST['pano-val'] ) ) {
|
313 |
|
314 |
$p = $_REQUEST['pano-val'];
|
331 |
$n = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->wppa_photos
|
332 |
SET panorama = %d
|
333 |
WHERE album = %d
|
334 |
+
AND photox > 1.999*photoy
|
335 |
AND ext IN ('jpg','png')
|
336 |
", $p, $edit_id ) );
|
337 |
if ( $tot == $n ) {
|
340 |
else {
|
341 |
$status = sprintf( __( '%1d photos out of %2d set to %s panorama', 'wp-photo-album-plus' ), $n, $tot, ( $p == 1 ? __( 'spheric', 'wp-photo-album-plus' ) : __( 'flat', 'wp-photo-album-plus' ) ) );
|
342 |
}
|
343 |
+
if ( $p == 1 ) {
|
344 |
+
$ids = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM $wpdb->wppa_photos
|
345 |
+
WHERE album = %d", $edit_id ) );
|
346 |
+
|
347 |
+
$converted = 0;
|
348 |
+
foreach( $ids as $id ) {
|
349 |
+
if ( ! wppa_is_time_up() ) {
|
350 |
+
if ( wppa_get_photox( $id, true ) > 2.001 * wppa_get_photoy( $id, true ) ) {
|
351 |
+
if ( ! wppa_is_file( wppa_get_o1_source_path( $id ) ) ) {
|
352 |
+
wppa_make_360( $id, 360 );
|
353 |
+
wppa_remake_files( '', $id );
|
354 |
+
$converted++;
|
355 |
+
}
|
356 |
+
}
|
357 |
+
}
|
358 |
+
else {
|
359 |
+
$timeup = true;
|
360 |
+
}
|
361 |
+
}
|
362 |
+
|
363 |
+
if ( $converted ) {
|
364 |
+
$status .= '. ' . sprintf( __( '%d have converted aspect ratio.', 'wp-photo-album-plus' ), $converted );
|
365 |
+
}
|
366 |
+
|
367 |
+
if ( wppa_is_time_up() ) {
|
368 |
+
$status .= ' ' . __( 'No time left, the page will be reloaded to continue.', 'wp-photo-album-plus' );
|
369 |
+
}
|
370 |
+
}
|
371 |
+
|
372 |
break;
|
373 |
default:
|
374 |
$status = __( 'No panorama changes applied', 'wp-photo-album-plus' );
|
377 |
<script>
|
378 |
jQuery(document).ready(function(){
|
379 |
jQuery("#albumstatus-'.$edit_id.'").html("'.$status.'");
|
380 |
+
}); ' . ( $timeup ? 'setTimeout(function(){document.location.reload();}, 6000);' : '' ) . '
|
381 |
</script>';
|
382 |
}
|
383 |
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -686,6 +686,7 @@ horizrailenabled:false,";
|
|
686 |
'wppa_panorama_autorun_speed' => '3',
|
687 |
'wppa_panorama_wheel_sensitivity' => '3',
|
688 |
'wppa_panorama_fov' => '75',
|
|
|
689 |
|
690 |
// Table V: Fonts
|
691 |
'wppa_fontfamily_title' => '',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 7.7.07.006
|
7 |
*
|
8 |
*/
|
9 |
|
686 |
'wppa_panorama_autorun_speed' => '3',
|
687 |
'wppa_panorama_wheel_sensitivity' => '3',
|
688 |
'wppa_panorama_fov' => '75',
|
689 |
+
'wppa_panorama_max' => '6000',
|
690 |
|
691 |
// Table V: Fonts
|
692 |
'wppa_fontfamily_title' => '',
|
wppa-import.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -3071,7 +3071,7 @@ function wppa_extract( $xpath, $delz ) {
|
|
3071 |
$skip = '0';
|
3072 |
for( $i = 0; $i < $zip->numFiles; $i++ ){
|
3073 |
$stat = $zip->statIndex( $i );
|
3074 |
-
$file_ext =
|
3075 |
|
3076 |
if ( in_array( $file_ext, $supported_file_ext ) ) {
|
3077 |
$zip->extractTo( WPPA_DEPOT_PATH, $stat['name'] );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
+
* Version 7.7.07.006
|
7 |
*
|
8 |
*/
|
9 |
|
3071 |
$skip = '0';
|
3072 |
for( $i = 0; $i < $zip->numFiles; $i++ ){
|
3073 |
$stat = $zip->statIndex( $i );
|
3074 |
+
$file_ext = wppa_get_ext( $stat['name'] );
|
3075 |
|
3076 |
if ( in_array( $file_ext, $supported_file_ext ) ) {
|
3077 |
$zip->extractTo( WPPA_DEPOT_PATH, $stat['name'] );
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 7.7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -5869,6 +5869,17 @@ global $wppa_supported_camara_brands;
|
|
5869 |
$clas = '';
|
5870 |
$tags = '';
|
5871 |
wppa_setting( $slug, '4', $name, $desc, $html, $help, $clas, $tags );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5872 |
}
|
5873 |
?>
|
5874 |
</tbody>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 7.7.07.006
|
7 |
*
|
8 |
*/
|
9 |
|
5869 |
$clas = '';
|
5870 |
$tags = '';
|
5871 |
wppa_setting( $slug, '4', $name, $desc, $html, $help, $clas, $tags );
|
5872 |
+
|
5873 |
+
$name = __( 'Panorama max width spheric', 'wp-photo-album-plus' );
|
5874 |
+
$desc = __( 'The max size when a spheric panorama is converted to 360°', 'wp-photo-album-plus' );
|
5875 |
+
$help = '';
|
5876 |
+
$slug = 'wppa_panorama_max';
|
5877 |
+
$opts = array( '4000', '5000', '6000', '8000', '10000' );
|
5878 |
+
$vals = $opts;
|
5879 |
+
$html = wppa_select($slug, $opts, $vals);
|
5880 |
+
$clas = '';
|
5881 |
+
$tags = '';
|
5882 |
+
wppa_setting( $slug, '5', $name, $desc, $html, $help, $clas, $tags );
|
5883 |
}
|
5884 |
?>
|
5885 |
</tbody>
|
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.07.
|
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 = '7.7.07.
|
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: 7.7.07.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 = '7.7.07.006'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|