Version Description
- 2017-11-29
- Rename header field in settingsform for compatibility.
- Improve some text strings (thanks dedotombo).
- Update strings for add-on 1.0.5.
Download this release
Release Info
Developer | mpol |
Plugin | Gwolle Guestbook |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.6 to 2.3.7
- add-on/gb-add-on.php +21 -5
- admin/gb-page-add-on.php +2 -0
- admin/gb-page-gwolle-gb.php +2 -2
- admin/gb-page-settings.php +1 -1
- admin/tabs/gb-formtab.php +3 -3
- gwolle-gb.php +2 -2
- readme.txt +18 -4
add-on/gb-add-on.php
CHANGED
@@ -22,9 +22,11 @@ function gwolle_gb_addon_translation_strings() {
|
|
22 |
esc_html_e('Social Media', 'gwolle-gb');
|
23 |
/* translators: Commercial Add-On: Settings page tab */
|
24 |
esc_html_e('Star Rating', 'gwolle-gb');
|
25 |
-
/* translators: Commercial Add-On: Settings page tab */
|
26 |
esc_html_e('Miscellanious', 'gwolle-gb');
|
27 |
/* translators: Commercial Add-On: Settings page tab */
|
|
|
|
|
28 |
esc_html_e('Strings', 'gwolle-gb');
|
29 |
/* translators: Commercial Add-On: Settings page tab */
|
30 |
esc_html_e('Ideas?', 'gwolle-gb');
|
@@ -45,10 +47,22 @@ function gwolle_gb_addon_translation_strings() {
|
|
45 |
/* translators: Commercial Add-On: Post on Social Media */
|
46 |
esc_attr__('Post on', 'gwolle-gb');
|
47 |
|
|
|
|
|
|
|
|
|
48 |
// function gwolle_gb_addon_form_starrating( $output ) {
|
49 |
/* translators: Commercial Add-On */
|
50 |
esc_html__('Rating', 'gwolle-gb');
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
// function gwolle_gb_addon_deps_admin_notice() {
|
53 |
/* translators: Commercial Add-On */
|
54 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook. Go to your %sPlugins%s page to install or activate Gwolle Guestbook.', 'gwolle-gb' );
|
@@ -57,10 +71,6 @@ function gwolle_gb_addon_translation_strings() {
|
|
57 |
|
58 |
// function gwolle_gb_addon_page_settingstab_empty() {
|
59 |
/* translators: Commercial Add-On */
|
60 |
-
esc_attr_e('Ideas?', 'gwolle-gb');
|
61 |
-
/* translators: Commercial Add-On */
|
62 |
-
esc_attr_e('Please place them on the support forum. I will see what I can do.', 'gwolle-gb');
|
63 |
-
/* translators: Commercial Add-On */
|
64 |
esc_html__( 'Please place them on the %ssupport forum%s. I will see what I can do.', 'gwolle-gb' );
|
65 |
|
66 |
// function gwolle_gb_addon_page_settingstab_form() {
|
@@ -91,6 +101,12 @@ function gwolle_gb_addon_translation_strings() {
|
|
91 |
esc_html_e('Show permalink in Metabox.', 'gwolle-gb');
|
92 |
/* translators: Commercial Add-On */
|
93 |
esc_html_e('A link to the single entry will be added to the metabox.', 'gwolle-gb');
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
/* translators: Settings page, option for delete link */
|
95 |
esc_html_e('Delete link', 'gwolle-gb');
|
96 |
/* translators: Commercial Add-On */
|
22 |
esc_html_e('Social Media', 'gwolle-gb');
|
23 |
/* translators: Commercial Add-On: Settings page tab */
|
24 |
esc_html_e('Star Rating', 'gwolle-gb');
|
25 |
+
/* translators: Commercial Add-On: Settings page tab (typo in 1.0.4) */
|
26 |
esc_html_e('Miscellanious', 'gwolle-gb');
|
27 |
/* translators: Commercial Add-On: Settings page tab */
|
28 |
+
esc_html_e('Miscellaneous', 'gwolle-gb');
|
29 |
+
/* translators: Commercial Add-On: Settings page tab */
|
30 |
esc_html_e('Strings', 'gwolle-gb');
|
31 |
/* translators: Commercial Add-On: Settings page tab */
|
32 |
esc_html_e('Ideas?', 'gwolle-gb');
|
47 |
/* translators: Commercial Add-On: Post on Social Media */
|
48 |
esc_attr__('Post on', 'gwolle-gb');
|
49 |
|
50 |
+
// function gwolle_gb_entry_metabox_lines_email( $gb_metabox, $entry ) {
|
51 |
+
/* translators: Commercial Add-On metabox line */
|
52 |
+
esc_html__('Email author', 'gwolle-gb');
|
53 |
+
|
54 |
// function gwolle_gb_addon_form_starrating( $output ) {
|
55 |
/* translators: Commercial Add-On */
|
56 |
esc_html__('Rating', 'gwolle-gb');
|
57 |
|
58 |
+
// class GwolleGB_Widget_Av_Rating extends WP_Widget {
|
59 |
+
/* translators: Commercial Add-On Widget */
|
60 |
+
esc_html__('Displays the average star rating of a guestbook.','gwolle-gb');
|
61 |
+
/* translators: Commercial Add-On Widget */
|
62 |
+
esc_html__('Gwolle GB: Average Star Rating', 'gwolle-gb');
|
63 |
+
/* translators: Commercial Add-On Widget */
|
64 |
+
esc_html__('Average Star Rating', 'gwolle-gb');
|
65 |
+
|
66 |
// function gwolle_gb_addon_deps_admin_notice() {
|
67 |
/* translators: Commercial Add-On */
|
68 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook. Go to your %sPlugins%s page to install or activate Gwolle Guestbook.', 'gwolle-gb' );
|
71 |
|
72 |
// function gwolle_gb_addon_page_settingstab_empty() {
|
73 |
/* translators: Commercial Add-On */
|
|
|
|
|
|
|
|
|
74 |
esc_html__( 'Please place them on the %ssupport forum%s. I will see what I can do.', 'gwolle-gb' );
|
75 |
|
76 |
// function gwolle_gb_addon_page_settingstab_form() {
|
101 |
esc_html_e('Show permalink in Metabox.', 'gwolle-gb');
|
102 |
/* translators: Commercial Add-On */
|
103 |
esc_html_e('A link to the single entry will be added to the metabox.', 'gwolle-gb');
|
104 |
+
/* translators: Commercial Add-On */
|
105 |
+
esc_html_e('Author Email', 'gwolle-gb');
|
106 |
+
/* translators: Commercial Add-On */
|
107 |
+
esc_html_e('Show author email in Metabox.', 'gwolle-gb');
|
108 |
+
/* translators: Commercial Add-On */
|
109 |
+
esc_html_e('The email address of the author will be added to the metabox.', 'gwolle-gb');
|
110 |
/* translators: Settings page, option for delete link */
|
111 |
esc_html_e('Delete link', 'gwolle-gb');
|
112 |
/* translators: Commercial Add-On */
|
admin/gb-page-add-on.php
CHANGED
@@ -69,12 +69,14 @@ function gwolle_gb_addon_features() {
|
|
69 |
<li>' . esc_html__('Meta Fields. Add any field you want; company, phone number, you name it.', 'gwolle-gb').'</li>
|
70 |
<li>' . esc_html__('Social Media Sharing (optional).', 'gwolle-gb').'</li>
|
71 |
<li>' . esc_html__('Star Ratings, with voting and display and Rich Snippets for SEO (optional).','gwolle-gb').'</li>
|
|
|
72 |
<li>' . esc_html__('Preview for the frontend form.','gwolle-gb').'</li>
|
73 |
<li>' . esc_html__('Preview for the admin editor form.','gwolle-gb').'</li>
|
74 |
<li>' . esc_html__('Admin reply on the frontend with AJAX.','gwolle-gb').'</li>
|
75 |
<li>' . esc_html__('Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.','gwolle-gb').'</li>
|
76 |
<li>' . esc_html__('Delete button in each entry for the moderator and author (optional).','gwolle-gb').'</li>
|
77 |
<li>' . esc_html__('Permalink button in each entry for easy access (optional).','gwolle-gb').'</li>
|
|
|
78 |
</ul>';
|
79 |
}
|
80 |
|
69 |
<li>' . esc_html__('Meta Fields. Add any field you want; company, phone number, you name it.', 'gwolle-gb').'</li>
|
70 |
<li>' . esc_html__('Social Media Sharing (optional).', 'gwolle-gb').'</li>
|
71 |
<li>' . esc_html__('Star Ratings, with voting and display and Rich Snippets for SEO (optional).','gwolle-gb').'</li>
|
72 |
+
<li>' . esc_html__('Average star rating per guestbook, including a widget.','gwolle-gb').'</li>
|
73 |
<li>' . esc_html__('Preview for the frontend form.','gwolle-gb').'</li>
|
74 |
<li>' . esc_html__('Preview for the admin editor form.','gwolle-gb').'</li>
|
75 |
<li>' . esc_html__('Admin reply on the frontend with AJAX.','gwolle-gb').'</li>
|
76 |
<li>' . esc_html__('Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.','gwolle-gb').'</li>
|
77 |
<li>' . esc_html__('Delete button in each entry for the moderator and author (optional).','gwolle-gb').'</li>
|
78 |
<li>' . esc_html__('Permalink button in each entry for easy access (optional).','gwolle-gb').'</li>
|
79 |
+
<li>' . esc_html__('Email button to contact each author (optional).','gwolle-gb').'</li>
|
80 |
</ul>';
|
81 |
}
|
82 |
|
admin/gb-page-gwolle-gb.php
CHANGED
@@ -192,7 +192,7 @@ function gwolle_gb_overview_notification() {
|
|
192 |
// Check if function mail() exists. If not, display a hint to the user.
|
193 |
if ( ! function_exists('mail') ) {
|
194 |
echo '<p class="setting-description">' .
|
195 |
-
sprintf( esc_html__('Sorry, but the function %smail()%s required to notify you by mail is not enabled in your PHP configuration. You might want to install a WordPress plugin that uses SMTP instead of %smail()%s. Or you can contact your hosting provider
|
196 |
. '</p>';
|
197 |
}
|
198 |
$current_user_id = get_current_user_id();;
|
@@ -316,7 +316,7 @@ function gwolle_gb_overview_donate() {
|
|
316 |
<h3><?php esc_html_e('Review this plugin.', 'gwolle-gb'); ?></h3>
|
317 |
<p><?php
|
318 |
$review = '<a href="https://wordpress.org/support/view/plugin-reviews/gwolle-gb?rate=5#postform" target="_blank">';
|
319 |
-
echo sprintf( esc_html__( 'If this plugin has any value to you, then please leave a review at %sthe plugin page at wordpress.org.', 'gwolle-gb' ), $review, '</a>' ); ?>
|
320 |
</p>
|
321 |
<?php
|
322 |
}
|
192 |
// Check if function mail() exists. If not, display a hint to the user.
|
193 |
if ( ! function_exists('mail') ) {
|
194 |
echo '<p class="setting-description">' .
|
195 |
+
sprintf( esc_html__('Sorry, but the function %smail()%s required to notify you by mail is not enabled in your PHP configuration. You might want to install a WordPress plugin that uses SMTP instead of %smail()%s. Or you can contact your hosting provider.','gwolle-gb'), '<code>', '</code>', '<code>', '</code>' )
|
196 |
. '</p>';
|
197 |
}
|
198 |
$current_user_id = get_current_user_id();;
|
316 |
<h3><?php esc_html_e('Review this plugin.', 'gwolle-gb'); ?></h3>
|
317 |
<p><?php
|
318 |
$review = '<a href="https://wordpress.org/support/view/plugin-reviews/gwolle-gb?rate=5#postform" target="_blank">';
|
319 |
+
echo sprintf( esc_html__( 'If this plugin has any value to you, then please leave a review at %sthe plugin page%s at wordpress.org.', 'gwolle-gb' ), $review, '</a>' ); ?>
|
320 |
</p>
|
321 |
<?php
|
322 |
}
|
admin/gb-page-settings.php
CHANGED
@@ -61,7 +61,7 @@ function gwolle_gb_page_settings() {
|
|
61 |
}
|
62 |
|
63 |
// Always save it, even when empty, for MultiLingual plugins.
|
64 |
-
$header = gwolle_gb_sanitize_input( $_POST['
|
65 |
update_option('gwolle_gb-header', $header);
|
66 |
$saved = true;
|
67 |
|
61 |
}
|
62 |
|
63 |
// Always save it, even when empty, for MultiLingual plugins.
|
64 |
+
$header = gwolle_gb_sanitize_input( $_POST['gb_header'] );
|
65 |
update_option('gwolle_gb-header', $header);
|
66 |
$saved = true;
|
67 |
|
admin/tabs/gb-formtab.php
CHANGED
@@ -56,13 +56,13 @@ function gwolle_gb_page_settingstab_form() {
|
|
56 |
</tr>
|
57 |
|
58 |
<tr valign="top">
|
59 |
-
<th scope="row"><label for="
|
60 |
<td><?php
|
61 |
$header = gwolle_gb_sanitize_output( get_option('gwolle_gb-header', false) );
|
62 |
-
if (
|
63 |
$header = esc_html__('Write a new entry for the Guestbook', 'gwolle-gb');
|
64 |
} ?>
|
65 |
-
<input name="
|
66 |
<br />
|
67 |
<span class="setting-description">
|
68 |
<?php esc_html_e('You can set the header that is shown on top of the form.', 'gwolle-gb'); ?>
|
56 |
</tr>
|
57 |
|
58 |
<tr valign="top">
|
59 |
+
<th scope="row"><label for="gb_header"><?php esc_html_e('Header Text', 'gwolle-gb'); ?></label></th>
|
60 |
<td><?php
|
61 |
$header = gwolle_gb_sanitize_output( get_option('gwolle_gb-header', false) );
|
62 |
+
if ( ! $header ) {
|
63 |
$header = esc_html__('Write a new entry for the Guestbook', 'gwolle-gb');
|
64 |
} ?>
|
65 |
+
<input name="gb_header" id="gb_header" class="regular-text" type="text" value="<?php echo $header; ?>" />
|
66 |
<br />
|
67 |
<span class="setting-description">
|
68 |
<?php esc_html_e('You can set the header that is shown on top of the form.', 'gwolle-gb'); ?>
|
gwolle-gb.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: http://zenoweb.nl
|
5 |
Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
|
6 |
-
Version: 2.3.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl
|
9 |
License: GPLv2 or later
|
@@ -32,7 +32,7 @@ Domain Path: /lang/
|
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
-
define('GWOLLE_GB_VER', '2.3.
|
36 |
|
37 |
|
38 |
/*
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: http://zenoweb.nl
|
5 |
Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
|
6 |
+
Version: 2.3.7
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl
|
9 |
License: GPLv2 or later
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
+
define('GWOLLE_GB_VER', '2.3.7');
|
36 |
|
37 |
|
38 |
/*
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gwolle, mpol
|
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.3.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
@@ -78,18 +78,20 @@ Current features include:
|
|
78 |
* Meta Fields. Add any field you want; company, phone number, you name it.
|
79 |
* Social Media Sharing (optional).
|
80 |
* Star Ratings, with voting and display and Rich Snippets for SEO (optional).
|
|
|
81 |
* Preview for the frontend form.
|
82 |
* Preview for the admin editor form.
|
83 |
* Admin reply on the frontend with AJAX.
|
84 |
* Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.
|
85 |
* Delete button in each entry for the moderator and author (optional).
|
86 |
* Permalink button in each entry for easy access (optional).
|
|
|
87 |
|
88 |
You can buy the Add-On at [Mojo Marketplace](http://www.mojomarketplace.com/item/gwolle-gb-add-on) for only $ 9.
|
89 |
|
90 |
= Demo with Add-On =
|
91 |
|
92 |
-
Check out the demo with the Add-On enabled at
|
93 |
|
94 |
|
95 |
== Installation ==
|
@@ -184,7 +186,7 @@ The next lines are made up of the content.
|
|
184 |
There are some gotchas:
|
185 |
|
186 |
* Date needs to be a UNIX timestamp. For manually creating a timestamp, look at
|
187 |
-
the [timestamp generator](http://www.timestampgenerator.com/). When using a formatted date, the plugin will try to read it correctly. If it fails it will use
|
188 |
* Use commas for field separators. If you use Office software like Excel (which is hell) or LibreOffice Calc, set this correctly.
|
189 |
* Use double quotes around each field. When no quotes are used the import process can break when having quotes or commas inside the content of the entry.
|
190 |
* The file should be encoded as UTF-8 without BOM to correctly enter special characters.
|
@@ -293,7 +295,7 @@ If it still doesn't work, request the maillog at your hosting provider, or ask i
|
|
293 |
There are different shortcodes that you can use. Instead of the '[gwolle_gb]' shortcode, you can use '[gwolle_gb_write]' for just the form,
|
294 |
and '[gwolle_gb_read]' for the list of entries.
|
295 |
|
296 |
-
There is also a widget that can display the latest entries in a widget area, that has many options. Alternatively you can use the shortcode '[gwolle_gb_widget] to display the latest entries in widget layout. Parameters are:
|
297 |
|
298 |
* book_id, int with an ID.
|
299 |
* num_entries, int with the shown number of messages.
|
@@ -345,6 +347,12 @@ So you would need to load it on every page to have it available for the guestboo
|
|
345 |
add_action('wp_enqueue_scripts', 'my_gwolle_gb_register', 20);
|
346 |
?>
|
347 |
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
= What capabilities are needed? =
|
349 |
|
350 |
For moderating comments you need the capability 'moderate_comments'.
|
@@ -388,6 +396,12 @@ But if you don't use standard comments, you can just as easily use the comment s
|
|
388 |
|
389 |
== Changelog ==
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
= 2.3.6 =
|
392 |
* 2017-11-06
|
393 |
* Update strings for add-on 1.0.4.
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.3.7
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
78 |
* Meta Fields. Add any field you want; company, phone number, you name it.
|
79 |
* Social Media Sharing (optional).
|
80 |
* Star Ratings, with voting and display and Rich Snippets for SEO (optional).
|
81 |
+
* Average star rating per guestbook.
|
82 |
* Preview for the frontend form.
|
83 |
* Preview for the admin editor form.
|
84 |
* Admin reply on the frontend with AJAX.
|
85 |
* Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.
|
86 |
* Delete button in each entry for the moderator and author (optional).
|
87 |
* Permalink button in each entry for easy access (optional).
|
88 |
+
* Email button to contact each author (optional).
|
89 |
|
90 |
You can buy the Add-On at [Mojo Marketplace](http://www.mojomarketplace.com/item/gwolle-gb-add-on) for only $ 9.
|
91 |
|
92 |
= Demo with Add-On =
|
93 |
|
94 |
+
Check out the demo with the Add-On enabled at [http://demo.zenoweb.nl](http://demo.zenoweb.nl/wordpress-plugins/gwolle-guestbook-the-add-on/).
|
95 |
|
96 |
|
97 |
== Installation ==
|
186 |
There are some gotchas:
|
187 |
|
188 |
* Date needs to be a UNIX timestamp. For manually creating a timestamp, look at
|
189 |
+
the [timestamp generator](http://www.timestampgenerator.com/). When using a formatted date, the plugin will try to read it correctly. If it fails it will use today's date.
|
190 |
* Use commas for field separators. If you use Office software like Excel (which is hell) or LibreOffice Calc, set this correctly.
|
191 |
* Use double quotes around each field. When no quotes are used the import process can break when having quotes or commas inside the content of the entry.
|
192 |
* The file should be encoded as UTF-8 without BOM to correctly enter special characters.
|
295 |
There are different shortcodes that you can use. Instead of the '[gwolle_gb]' shortcode, you can use '[gwolle_gb_write]' for just the form,
|
296 |
and '[gwolle_gb_read]' for the list of entries.
|
297 |
|
298 |
+
There is also a widget that can display the latest entries in a widget area, that has many options. Alternatively you can use the shortcode '[gwolle_gb_widget]' to display the latest entries in widget layout. Parameters are:
|
299 |
|
300 |
* book_id, int with an ID.
|
301 |
* num_entries, int with the shown number of messages.
|
347 |
add_action('wp_enqueue_scripts', 'my_gwolle_gb_register', 20);
|
348 |
?>
|
349 |
|
350 |
+
= I use the Autoptimize plugin =
|
351 |
+
|
352 |
+
The frontend scripts will only be loaded on the Guestbook page, so they won't be added to autoptimize.
|
353 |
+
You can add 'gwolle_gb_frontend' to both the comma-separated JS and CSS autoptimization exclusion list. That way it will still be loaded right.
|
354 |
+
On the autoptimize settings page, you might have to click on "show advanced settings"-button top-right first. More info on troubleshooting in AO's FAQ.
|
355 |
+
|
356 |
= What capabilities are needed? =
|
357 |
|
358 |
For moderating comments you need the capability 'moderate_comments'.
|
396 |
|
397 |
== Changelog ==
|
398 |
|
399 |
+
= 2.3.7 =
|
400 |
+
* 2017-11-29
|
401 |
+
* Rename header field in settingsform for compatibility.
|
402 |
+
* Improve some text strings (thanks dedotombo).
|
403 |
+
* Update strings for add-on 1.0.5.
|
404 |
+
|
405 |
= 2.3.6 =
|
406 |
* 2017-11-06
|
407 |
* Update strings for add-on 1.0.4.
|