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.2.04.003 |
Comparing to | |
See all releases |
Code changes from version 8.2.04.002 to 8.2.04.003
- changelog.txt +1 -0
- wppa-admin.php +28 -2
- wppa-defaults.php +3 -1
- wppa-settings-autosave.php +15 -1
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -4,6 +4,7 @@ WP Photo Album Plus Changelog
|
|
4 |
|
5 |
* The width and height of portrait oriented mp4 videos is now properly recorded.
|
6 |
* The dirs wp-content/cache and wp-content/widget-cache are now skipped when scanning for importable files.
|
|
|
7 |
|
8 |
= 8.2.03 =
|
9 |
|
4 |
|
5 |
* The width and height of portrait oriented mp4 videos is now properly recorded.
|
6 |
* The dirs wp-content/cache and wp-content/widget-cache are now skipped when scanning for importable files.
|
7 |
+
* To improve previews, you van now add your theme and custom css at the backend. See new settings Advanced settings -> Admin -> VI -> Items 15 and 16.
|
8 |
|
9 |
= 8.2.03 =
|
10 |
|
wppa-admin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -106,7 +106,7 @@ global $wppa_api_version;
|
|
106 |
wp_enqueue_style( 'wppa_cropper_style' );
|
107 |
}
|
108 |
|
109 |
-
// Standard frontend styles
|
110 |
wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $wppa_api_version);
|
111 |
wp_enqueue_style('wppa_style');
|
112 |
|
@@ -123,6 +123,32 @@ global $wppa_api_version;
|
|
123 |
wp_add_inline_style( 'wppa_style', $the_css );
|
124 |
}
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
/* ADMIN SCRIPTS */
|
127 |
add_action( 'admin_init', 'wppa_admin_scripts' );
|
128 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
+
* Version 8.2.04.003
|
7 |
*
|
8 |
*/
|
9 |
|
106 |
wp_enqueue_style( 'wppa_cropper_style' );
|
107 |
}
|
108 |
|
109 |
+
// Standard wppa frontend styles
|
110 |
wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $wppa_api_version);
|
111 |
wp_enqueue_style('wppa_style');
|
112 |
|
123 |
wp_add_inline_style( 'wppa_style', $the_css );
|
124 |
}
|
125 |
|
126 |
+
// Standard theme styles, optional
|
127 |
+
add_action( 'admin_enqueue_scripts', 'theme_styles_for_wppa' );
|
128 |
+
|
129 |
+
function theme_styles_for_wppa() {
|
130 |
+
|
131 |
+
if ( wppa_switch( 'admin_theme_css' ) ) {
|
132 |
+
|
133 |
+
// Load theme css
|
134 |
+
wp_enqueue_style( 'parent-style-for-wppa', get_template_directory_uri() . '/style.css',
|
135 |
+
array( 'wppa_style' )
|
136 |
+
);
|
137 |
+
|
138 |
+
// Load child theme css
|
139 |
+
wp_enqueue_style( 'child-style-for-wppa', get_stylesheet_uri(),
|
140 |
+
array( 'parent-style-for-wppa', 'wppa_style' )
|
141 |
+
);
|
142 |
+
}
|
143 |
+
|
144 |
+
$the_css = wppa_opt( 'admin_inline_css' );
|
145 |
+
if ( $the_css ) {
|
146 |
+
|
147 |
+
// Load inline css
|
148 |
+
wp_add_inline_style( wppa_switch( 'admin_theme_css' ) ? 'child-style-for-wppa' : 'wppa_style', $the_css );
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
/* ADMIN SCRIPTS */
|
153 |
add_action( 'admin_init', 'wppa_admin_scripts' );
|
154 |
|
wppa-defaults.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -971,6 +971,8 @@ horizrailenabled:false,";
|
|
971 |
'wppa_log_tim' => 'no',
|
972 |
'wppa_moderate_bulk' => 'no', // B20
|
973 |
'wppa_use_wp_editor' => 'no',
|
|
|
|
|
974 |
'wppa_generator_max' => '100', // B21
|
975 |
'wppa_retry_mails' => '2', // M100
|
976 |
'wppa_minimum_tags' => '', // A11
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains default settings
|
6 |
+
* Version 8.2.04.003
|
7 |
*
|
8 |
*/
|
9 |
|
971 |
'wppa_log_tim' => 'no',
|
972 |
'wppa_moderate_bulk' => 'no', // B20
|
973 |
'wppa_use_wp_editor' => 'no',
|
974 |
+
'wppa_admin_theme_css' => 'no',
|
975 |
+
'wppa_admin_inline_css' => '',
|
976 |
'wppa_generator_max' => '100', // B21
|
977 |
'wppa_retry_mails' => '2', // M100
|
978 |
'wppa_minimum_tags' => '', // A11
|
wppa-settings-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.2.04.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -8070,6 +8070,20 @@ global $wppa_subtab_names;
|
|
8070 |
$html = wppa_checkbox($slug);
|
8071 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
8072 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8073 |
wppa_setting_box_footer_new();
|
8074 |
}
|
8075 |
// Optional menu items
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.2.04.003
|
7 |
*
|
8 |
*/
|
9 |
|
8070 |
$html = wppa_checkbox($slug);
|
8071 |
wppa_setting_new($slug, '14', $name, $desc, $html, $help);
|
8072 |
|
8073 |
+
$name = __('Load theme css at the backend', 'wp-photo-album-plus');
|
8074 |
+
$desc = __('This may make previews more realistic', 'wp-photo-album-plus');
|
8075 |
+
$help = __('Use with care, it can damage the admin layout, depending of the theme used. It does only load the standard and child theme css, no inline css', 'wp-photo-album-plus');
|
8076 |
+
$slug = 'wppa_admin_theme_css';
|
8077 |
+
$html = wppa_checkbox($slug);
|
8078 |
+
wppa_setting_new($slug, '15', $name, $desc, $html, $help);
|
8079 |
+
|
8080 |
+
$name = __('Backend inline styles', 'wp-photo-album-plus');
|
8081 |
+
$desc = __('Here you can add inline styles to fix the damage caused by the previous setting', 'wp-photo-album-plus');
|
8082 |
+
$help = '';
|
8083 |
+
$slug = 'wppa_admin_inline_css';
|
8084 |
+
$html = wppa_textarea($slug);
|
8085 |
+
wppa_setting_new($slug, '16', $name, $desc, $html, $help);
|
8086 |
+
|
8087 |
wppa_setting_box_footer_new();
|
8088 |
}
|
8089 |
// Optional menu items
|
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.2.04.
|
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.2.04.
|
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.2.04.003
|
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.2.04.003'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|