Version Description
- 2021-05-05
- Add more classes to text elements, for better customization.
- Better explain how to add a new user to notifications.
- Fix PHP error when addon is set as active but not available in plugins folder.
Download this release
Release Info
Developer | mpol |
Plugin | Gwolle Guestbook |
Version | 4.1.2 |
Comparing to | |
See all releases |
Code changes from version 4.1.1 to 4.1.2
- add-on/gb-add-on.php +2 -2
- admin/gb-page-add-on.php +4 -2
- admin/gb-page-gwolle-gb.php +4 -2
- admin/gwolle-gb-hooks.php +2 -2
- admin/js/gwolle-gb-admin.js +21 -0
- admin/tabs/gb-emailtab.php +6 -2
- frontend/gb-widget.php +5 -5
- frontend/gwolle_gb-entry.php +13 -6
- frontend/js/gwolle-gb-frontend.js +21 -1
- functions/gb-formatting.php +1 -1
- gwolle-gb.php +6 -4
- readme.txt +18 -4
add-on/gb-add-on.php
CHANGED
@@ -300,9 +300,9 @@ Entry content:
|
|
300 |
|
301 |
// function gwolle_gb_addon_add_privacy_policy_content() {
|
302 |
/* translators: Commercial Add-On. Text for privacy policy. */
|
303 |
-
__( 'When visitors report an entry as abusive, the entry ID will be stored in a cookie in the browser. For fallback, the IP address will be saved temporarily as a transient in the database together with the number of reports.', 'gwolle-gb' ); // 1.2.1 and older
|
304 |
-
/* translators: Commercial Add-On. Text for privacy policy. */
|
305 |
__( 'When visitors report an entry as abusive, the entry ID will be stored in a cookie in the browser. Also, the IP address will be saved temporarily in the database together with the number of reports.', 'gwolle-gb' );
|
|
|
|
|
306 |
|
307 |
/* translators: %s is the name of the meta field */
|
308 |
esc_html__('The %s field was not filled in, even though it is mandatory.', 'gwolle-gb');
|
300 |
|
301 |
// function gwolle_gb_addon_add_privacy_policy_content() {
|
302 |
/* translators: Commercial Add-On. Text for privacy policy. */
|
|
|
|
|
303 |
__( 'When visitors report an entry as abusive, the entry ID will be stored in a cookie in the browser. Also, the IP address will be saved temporarily in the database together with the number of reports.', 'gwolle-gb' );
|
304 |
+
/* translators: Commercial Add-On. Text for privacy policy. */
|
305 |
+
esc_html__( 'When visitors like an entry, the IP address will be saved in the database.', 'gwolle-gb' );
|
306 |
|
307 |
/* translators: %s is the name of the meta field */
|
308 |
esc_html__('The %s field was not filled in, even though it is mandatory.', 'gwolle-gb');
|
admin/gb-page-add-on.php
CHANGED
@@ -12,7 +12,9 @@ if ( strpos($_SERVER['PHP_SELF'], basename(__FILE__) )) {
|
|
12 |
function gwolle_gb_addon_menu_advertisement() {
|
13 |
|
14 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
15 |
-
if (
|
|
|
|
|
16 |
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('The Add-On', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('The Add-On', 'gwolle-gb'), 'moderate_comments', GWOLLE_GB_FOLDER . '/addon-settings.php', 'gwolle_gb_addon_page_advertisement' );
|
17 |
}
|
18 |
}
|
@@ -85,7 +87,7 @@ function gwolle_gb_addon_features() {
|
|
85 |
<li>' . esc_html__('Preview for the frontend form.','gwolle-gb').'</li>
|
86 |
<li>' . esc_html__('Preview for the admin editor form.','gwolle-gb').'</li>
|
87 |
<li>' . esc_html__('Admin reply on the frontend with AJAX.','gwolle-gb').'</li>
|
88 |
-
<li>' . esc_html__('Edit content of entry on the frontend with AJAX.','gwolle-gb').'</li>
|
89 |
<li>' . esc_html__('Report Abuse.','gwolle-gb').'</li>
|
90 |
<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>
|
91 |
<li>' . esc_html__('Delete button in each entry for the moderator and author (optional).','gwolle-gb').'</li>
|
12 |
function gwolle_gb_addon_menu_advertisement() {
|
13 |
|
14 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
15 |
+
if ( $active && defined( 'GWOLLE_GB_ADDON_VER' ) ) {
|
16 |
+
return;
|
17 |
+
} else {
|
18 |
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('The Add-On', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('The Add-On', 'gwolle-gb'), 'moderate_comments', GWOLLE_GB_FOLDER . '/addon-settings.php', 'gwolle_gb_addon_page_advertisement' );
|
19 |
}
|
20 |
}
|
87 |
<li>' . esc_html__('Preview for the frontend form.','gwolle-gb').'</li>
|
88 |
<li>' . esc_html__('Preview for the admin editor form.','gwolle-gb').'</li>
|
89 |
<li>' . esc_html__('Admin reply on the frontend with AJAX.','gwolle-gb').'</li>
|
90 |
+
<li>' . esc_html__('Edit content/author/origin of entry on the frontend with AJAX.','gwolle-gb').'</li>
|
91 |
<li>' . esc_html__('Report Abuse.','gwolle-gb').'</li>
|
92 |
<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>
|
93 |
<li>' . esc_html__('Delete button in each entry for the moderator and author (optional).','gwolle-gb').'</li>
|
admin/gb-page-gwolle-gb.php
CHANGED
@@ -359,8 +359,10 @@ function gwolle_gb_overview_addon() {
|
|
359 |
<li><a href="https://zenoweb.nl/log-in/" target="_blank">' . esc_html__( 'Log in', 'gwolle-gb' ) . '</a></li>
|
360 |
</ul>
|
361 |
';
|
362 |
-
|
363 |
-
|
|
|
|
|
364 |
}
|
365 |
|
366 |
|
359 |
<li><a href="https://zenoweb.nl/log-in/" target="_blank">' . esc_html__( 'Log in', 'gwolle-gb' ) . '</a></li>
|
360 |
</ul>
|
361 |
';
|
362 |
+
if ( defined( 'GWOLLE_GB_ADDON_VER' ) ) {
|
363 |
+
/* translators: %s is for the version of the add-on */
|
364 |
+
echo sprintf( esc_html__( 'You are currently using v%s of The Add-On.', 'gwolle-gb' ), GWOLLE_GB_ADDON_VER );
|
365 |
+
}
|
366 |
}
|
367 |
|
368 |
|
admin/gwolle-gb-hooks.php
CHANGED
@@ -159,12 +159,12 @@ function gwolle_gb_deps_admin_notice() {
|
|
159 |
}
|
160 |
|
161 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
162 |
-
if ( $active ) {
|
163 |
$zeno_el = '<a href="https://zenoweb.nl/downloads/gwolle-guestbook-add-on/" target="_blank">';
|
164 |
$zeno_el_close = '</a>';
|
165 |
$required_version = '2.0.0';
|
166 |
|
167 |
-
if (
|
168 |
return; // We have the minimal version.
|
169 |
}
|
170 |
|
159 |
}
|
160 |
|
161 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
162 |
+
if ( $active && defined( 'GWOLLE_GB_ADDON_VER' ) ) {
|
163 |
$zeno_el = '<a href="https://zenoweb.nl/downloads/gwolle-guestbook-add-on/" target="_blank">';
|
164 |
$zeno_el_close = '</a>';
|
165 |
$required_version = '2.0.0';
|
166 |
|
167 |
+
if ( version_compare( GWOLLE_GB_ADDON_VER, $required_version, '>=' ) ) {
|
168 |
return; // We have the minimal version.
|
169 |
}
|
170 |
|
admin/js/gwolle-gb-admin.js
CHANGED
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
* JavaScript for Gwolle Guestbook, WP-Admin.
|
3 |
*/
|
1 |
+
|
2 |
+
/*
|
3 |
+
Copyright 2014 - 2021 Marcel Pol (email: marcel@timelord.nl)
|
4 |
+
|
5 |
+
This program is free software; you can redistribute it and/or modify
|
6 |
+
it under the terms of the GNU General Public License as published by
|
7 |
+
the Free Software Foundation; either version 2 of the License, or
|
8 |
+
(at your option) any later version.
|
9 |
+
|
10 |
+
This program is distributed in the hope that it will be useful,
|
11 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
+
GNU General Public License for more details.
|
14 |
+
|
15 |
+
You should have received a copy of the GNU General Public License
|
16 |
+
along with this program; if not, write to the Free Software
|
17 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18 |
+
*/
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
/*
|
23 |
* JavaScript for Gwolle Guestbook, WP-Admin.
|
24 |
*/
|
admin/tabs/gb-emailtab.php
CHANGED
@@ -77,8 +77,12 @@ function gwolle_gb_page_settingstab_email() {
|
|
77 |
</select><br />
|
78 |
<label for="subscribe"><?php esc_html_e('You can subscribe a moderator to the notification emails.', 'gwolle-gb'); ?><br />
|
79 |
<?php esc_html_e('Select a user that you want subscribed to the notification emails.', 'gwolle-gb'); ?>
|
80 |
-
<?php esc_html_e("You will only see users with the roles of Administrator, Editor and Author, who have the capability 'moderate_comments' .", 'gwolle-gb');
|
81 |
-
|
|
|
|
|
|
|
|
|
82 |
</td>
|
83 |
</tr>
|
84 |
|
77 |
</select><br />
|
78 |
<label for="subscribe"><?php esc_html_e('You can subscribe a moderator to the notification emails.', 'gwolle-gb'); ?><br />
|
79 |
<?php esc_html_e('Select a user that you want subscribed to the notification emails.', 'gwolle-gb'); ?>
|
80 |
+
<?php esc_html_e("You will only see users with the roles of Administrator, Editor and Author, who have the capability 'moderate_comments' .", 'gwolle-gb'); ?><br />
|
81 |
+
<?php $link_wp = '<a href="' . admin_url( '/user-new.php' ) . '">';
|
82 |
+
/* translators: %s is a link */
|
83 |
+
echo sprintf( esc_html__( 'A new WordPress user can be added on %sAdd New in the Users menu section%s.', 'gwolle-gb' ), $link_wp, '</a>' ); ?>
|
84 |
+
<?php esc_html_e('After adding a new user it should be available in the dropdown menu above.', 'gwolle-gb'); ?>
|
85 |
+
</label>
|
86 |
</td>
|
87 |
</tr>
|
88 |
|
frontend/gb-widget.php
CHANGED
@@ -82,7 +82,7 @@ if (function_exists('register_sidebar') && class_exists('WP_Widget')) {
|
|
82 |
if ( (int) $postid > 0 ) {
|
83 |
$permalink = gwolle_gb_get_permalink( $postid );
|
84 |
$raquo = '
|
85 |
-
<a href="' . $permalink . '" title="' . esc_attr__('Click here to get to the guestbook.', 'gwolle-gb') . '">»</a>
|
86 |
';
|
87 |
}
|
88 |
|
@@ -119,14 +119,14 @@ if (function_exists('register_sidebar') && class_exists('WP_Widget')) {
|
|
119 |
<span class="gb-author-name">' . $entry->get_author_name() . '</span>';
|
120 |
}
|
121 |
if ( $name && $date ) {
|
122 |
-
$widget_html .= ' / ';
|
123 |
}
|
124 |
if ( $date ) {
|
125 |
$widget_html .= '
|
126 |
<span class="gb-date">' . date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>';
|
127 |
}
|
128 |
if ( $name || $date ) {
|
129 |
-
$widget_html .= '
|
130 |
}
|
131 |
|
132 |
$entry_content = gwolle_gb_get_excerpt( gwolle_gb_bbcode_strip($entry->get_content()), $num_words );
|
@@ -190,14 +190,14 @@ if (function_exists('register_sidebar') && class_exists('WP_Widget')) {
|
|
190 |
<span class="gb-author-name">' . $entry->get_author_name() . '</span>';
|
191 |
}
|
192 |
if ( $name && $date ) {
|
193 |
-
$widget_html .= ' / ';
|
194 |
}
|
195 |
if ( $date ) {
|
196 |
$widget_html .= '
|
197 |
<span class="gb-date">' . date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>';
|
198 |
}
|
199 |
if ( $name || $date ) {
|
200 |
-
$widget_html .= '
|
201 |
}
|
202 |
|
203 |
$entry_content = gwolle_gb_get_excerpt( gwolle_gb_bbcode_strip($entry->get_content()), $num_words );
|
82 |
if ( (int) $postid > 0 ) {
|
83 |
$permalink = gwolle_gb_get_permalink( $postid );
|
84 |
$raquo = '
|
85 |
+
<span class="gb-guestbook-link"><a href="' . $permalink . '" title="' . esc_attr__('Click here to get to the guestbook.', 'gwolle-gb') . '">»</a></span>
|
86 |
';
|
87 |
}
|
88 |
|
119 |
<span class="gb-author-name">' . $entry->get_author_name() . '</span>';
|
120 |
}
|
121 |
if ( $name && $date ) {
|
122 |
+
$widget_html .= '<span class="gb-author-date-separator"> / </span>';
|
123 |
}
|
124 |
if ( $date ) {
|
125 |
$widget_html .= '
|
126 |
<span class="gb-date">' . date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>';
|
127 |
}
|
128 |
if ( $name || $date ) {
|
129 |
+
$widget_html .= '<br />';
|
130 |
}
|
131 |
|
132 |
$entry_content = gwolle_gb_get_excerpt( gwolle_gb_bbcode_strip($entry->get_content()), $num_words );
|
190 |
<span class="gb-author-name">' . $entry->get_author_name() . '</span>';
|
191 |
}
|
192 |
if ( $name && $date ) {
|
193 |
+
$widget_html .= '<span class="gb-author-date-separator"> / </span>';
|
194 |
}
|
195 |
if ( $date ) {
|
196 |
$widget_html .= '
|
197 |
<span class="gb-date">' . date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>';
|
198 |
}
|
199 |
if ( $name || $date ) {
|
200 |
+
$widget_html .= '<br />';
|
201 |
}
|
202 |
|
203 |
$entry_content = gwolle_gb_get_excerpt( gwolle_gb_bbcode_strip($entry->get_content()), $num_words );
|
frontend/gwolle_gb-entry.php
CHANGED
@@ -89,7 +89,10 @@ if ( ! function_exists('gwolle_gb_entry_template') ) {
|
|
89 |
$origin = $entry->get_author_origin();
|
90 |
if ( strlen(str_replace(' ', '', $origin)) > 0 ) {
|
91 |
$entry_output .= '
|
92 |
-
<span class="gb-author-origin"
|
|
|
|
|
|
|
93 |
}
|
94 |
}
|
95 |
|
@@ -97,16 +100,20 @@ if ( ! function_exists('gwolle_gb_entry_template') ) {
|
|
97 |
if ( ( isset($read_setting['read_datetime']) && $read_setting['read_datetime'] === 'true' ) || ( isset($read_setting['read_date']) && $read_setting['read_date'] === 'true' ) ) {
|
98 |
$entry_output .= '
|
99 |
<span class="gb-datetime">
|
100 |
-
<span class="gb-date">
|
101 |
if ( isset($read_setting['read_name']) && $read_setting['read_name'] === 'true' ) {
|
102 |
-
$entry_output .= /* translators: on a certain date */ esc_html__('wrote on', 'gwolle-gb') . '
|
103 |
}
|
104 |
-
$entry_output .= date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>
|
|
|
105 |
if ( isset($read_setting['read_datetime']) && $read_setting['read_datetime'] === 'true' ) {
|
106 |
// Use 'at'. Follow WordPress Core: class-walker-comment.php
|
107 |
-
$entry_output .= '<span class="gb-time">
|
|
|
|
|
|
|
108 |
}
|
109 |
-
$entry_output .= '
|
110 |
</span> ';
|
111 |
}
|
112 |
|
89 |
$origin = $entry->get_author_origin();
|
90 |
if ( strlen(str_replace(' ', '', $origin)) > 0 ) {
|
91 |
$entry_output .= '
|
92 |
+
<span class="gb-author-origin">
|
93 |
+
<span class="gb-author-origin-from-text"> ' . /* translators: city or origin */ esc_html__('from', 'gwolle-gb') . '</span>
|
94 |
+
<span class="gb-author-origin-text"> ' . gwolle_gb_sanitize_output($origin) . '</span>
|
95 |
+
</span>';
|
96 |
}
|
97 |
}
|
98 |
|
100 |
if ( ( isset($read_setting['read_datetime']) && $read_setting['read_datetime'] === 'true' ) || ( isset($read_setting['read_date']) && $read_setting['read_date'] === 'true' ) ) {
|
101 |
$entry_output .= '
|
102 |
<span class="gb-datetime">
|
103 |
+
<span class="gb-date">';
|
104 |
if ( isset($read_setting['read_name']) && $read_setting['read_name'] === 'true' ) {
|
105 |
+
$entry_output .= '<span class="gb-date-wrote-text"> ' . /* translators: on a certain date */ esc_html__('wrote on', 'gwolle-gb') . '</span>';
|
106 |
}
|
107 |
+
$entry_output .= '<span class="gb-date-text"> ' . date_i18n( get_option('date_format'), $entry->get_datetime() ) . '</span>
|
108 |
+
</span>';
|
109 |
if ( isset($read_setting['read_datetime']) && $read_setting['read_datetime'] === 'true' ) {
|
110 |
// Use 'at'. Follow WordPress Core: class-walker-comment.php
|
111 |
+
$entry_output .= '<span class="gb-time">
|
112 |
+
<span class="gb-time-at-text"> ' . /* translators: at a certain time */ esc_html__('at', 'gwolle-gb') . '</span>
|
113 |
+
<span class="gb-time-text"> ' . trim(date_i18n( get_option('time_format'), $entry->get_datetime() )) . '</span>
|
114 |
+
</span>';
|
115 |
}
|
116 |
+
$entry_output .= '
|
117 |
</span> ';
|
118 |
}
|
119 |
|
frontend/js/gwolle-gb-frontend.js
CHANGED
@@ -1,3 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*
|
2 |
* JavaScript for Gwolle Guestbook Frontend.
|
3 |
*/
|
@@ -97,7 +117,7 @@ jQuery(document).ready(function($) {
|
|
97 |
var gwolle_gb_load_message = '<div class="gb-entry gwolle_gb_load_message">' + gwolle_gb_frontend_script.load_message + '</div>' ;
|
98 |
jQuery( ".gwolle-gb-read" ).append( gwolle_gb_load_message );
|
99 |
|
100 |
-
jQuery(window).scroll
|
101 |
// have 10px diff for sensitivity.
|
102 |
if ( ( jQuery(window).scrollTop() > jQuery(document).height() - jQuery(window).height() - 10 ) && gwolle_gb_scroll_on == true && gwolle_gb_scroll_busy == false) {
|
103 |
gwolle_gb_scroll_busy = true;
|
1 |
+
|
2 |
+
/*
|
3 |
+
Copyright 2014 - 2021 Marcel Pol (email: marcel@timelord.nl)
|
4 |
+
|
5 |
+
This program is free software; you can redistribute it and/or modify
|
6 |
+
it under the terms of the GNU General Public License as published by
|
7 |
+
the Free Software Foundation; either version 2 of the License, or
|
8 |
+
(at your option) any later version.
|
9 |
+
|
10 |
+
This program is distributed in the hope that it will be useful,
|
11 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
+
GNU General Public License for more details.
|
14 |
+
|
15 |
+
You should have received a copy of the GNU General Public License
|
16 |
+
along with this program; if not, write to the Free Software
|
17 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18 |
+
*/
|
19 |
+
|
20 |
+
|
21 |
/*
|
22 |
* JavaScript for Gwolle Guestbook Frontend.
|
23 |
*/
|
117 |
var gwolle_gb_load_message = '<div class="gb-entry gwolle_gb_load_message">' + gwolle_gb_frontend_script.load_message + '</div>' ;
|
118 |
jQuery( ".gwolle-gb-read" ).append( gwolle_gb_load_message );
|
119 |
|
120 |
+
jQuery(window).on('scroll', function() {
|
121 |
// have 10px diff for sensitivity.
|
122 |
if ( ( jQuery(window).scrollTop() > jQuery(document).height() - jQuery(window).height() - 10 ) && gwolle_gb_scroll_on == true && gwolle_gb_scroll_busy == false) {
|
123 |
gwolle_gb_scroll_busy = true;
|
functions/gb-formatting.php
CHANGED
@@ -89,7 +89,7 @@ function gwolle_gb_get_excerpt( $content, $excerpt_length = 20 ) {
|
|
89 |
$excerpt = wp_trim_words( $content, $excerpt_length, '...' );
|
90 |
$excerpt = gwolle_gb_sanitize_output( $excerpt );
|
91 |
if ( trim($excerpt) == '' ) {
|
92 |
-
$excerpt = '<i>' . esc_html__('No content to display. This entry is empty.', 'gwolle-gb') . '</i>';
|
93 |
}
|
94 |
return $excerpt;
|
95 |
}
|
89 |
$excerpt = wp_trim_words( $content, $excerpt_length, '...' );
|
90 |
$excerpt = gwolle_gb_sanitize_output( $excerpt );
|
91 |
if ( trim($excerpt) == '' ) {
|
92 |
+
$excerpt = '<i class="gb-no-content">' . esc_html__('No content to display. This entry is empty.', 'gwolle-gb') . '</i>';
|
93 |
}
|
94 |
return $excerpt;
|
95 |
}
|
gwolle-gb.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: https://wordpress.org/plugins/gwolle-gb/
|
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: 4.1.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: https://zenoweb.nl
|
9 |
License: GPLv2 or later
|
@@ -11,7 +11,7 @@ Text Domain: gwolle-gb
|
|
11 |
Domain Path: /lang/
|
12 |
|
13 |
|
14 |
-
Copyright 2009 - 2010 Wolfgang Timme (
|
15 |
Copyright 2014 - 2021 Marcel Pol (email: marcel@timelord.nl)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
31 |
|
32 |
|
33 |
// Plugin Version
|
34 |
-
define('GWOLLE_GB_VER', '4.1.
|
35 |
|
36 |
|
37 |
/*
|
@@ -58,10 +58,12 @@ define('GWOLLE_GB_VER', '4.1.1');
|
|
58 |
* - Use foreign keys through a hook with SQL, and add a setter for meta.
|
59 |
* - Or add function to prepopulate metas for export.
|
60 |
* - Add emoji for Zwarte Piet and Sinterklaas when locale=nl_nl.
|
61 |
-
* - Support rewrite API for single entry and for paging.
|
62 |
* - Use select2 or similar for subscribe/unsubcribe dropdowns.
|
63 |
* - On one-page-design, paging doesn't work correctly in Chrome:
|
64 |
* https://wordpress.org/support/topic/problem-of-text-selection-in-gwolle-guestbook/
|
|
|
|
|
65 |
*
|
66 |
*/
|
67 |
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: https://wordpress.org/plugins/gwolle-gb/
|
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: 4.1.2
|
7 |
Author: Marcel Pol
|
8 |
Author URI: https://zenoweb.nl
|
9 |
License: GPLv2 or later
|
11 |
Domain Path: /lang/
|
12 |
|
13 |
|
14 |
+
Copyright 2009 - 2010 Wolfgang Timme (https://github.com/wtimme)
|
15 |
Copyright 2014 - 2021 Marcel Pol (email: marcel@timelord.nl)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
31 |
|
32 |
|
33 |
// Plugin Version
|
34 |
+
define('GWOLLE_GB_VER', '4.1.2');
|
35 |
|
36 |
|
37 |
/*
|
58 |
* - Use foreign keys through a hook with SQL, and add a setter for meta.
|
59 |
* - Or add function to prepopulate metas for export.
|
60 |
* - Add emoji for Zwarte Piet and Sinterklaas when locale=nl_nl.
|
61 |
+
* - Support rewrite API for single entry and for paging. Look at bbPress.
|
62 |
* - Use select2 or similar for subscribe/unsubcribe dropdowns.
|
63 |
* - On one-page-design, paging doesn't work correctly in Chrome:
|
64 |
* https://wordpress.org/support/topic/problem-of-text-selection-in-gwolle-guestbook/
|
65 |
+
* - Use more CSS transitions and SVG icons.
|
66 |
+
* - Use CSS classes from contactform plugins, when they are active.
|
67 |
*
|
68 |
*/
|
69 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: Gwolle, mpol
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, review
|
4 |
Requires at least: 3.7
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 4.1.
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|
@@ -83,7 +83,7 @@ Current features include:
|
|
83 |
* Preview for the frontend form.
|
84 |
* Preview for the admin editor form.
|
85 |
* Admin reply on the frontend with AJAX.
|
86 |
-
* Edit content of entry on the frontend with AJAX.
|
87 |
* Report Abuse.
|
88 |
* Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.
|
89 |
* Delete button in each entry for the moderator and author (optional).
|
@@ -103,6 +103,10 @@ Check out the demo with the Add-On enabled at [https://demo.zenoweb.nl](https://
|
|
103 |
|
104 |
This plugin is compatible with [ClassicPress](https://www.classicpress.net).
|
105 |
|
|
|
|
|
|
|
|
|
106 |
|
107 |
== Installation ==
|
108 |
|
@@ -264,7 +268,7 @@ You can add a parameter to the shortcode, like:
|
|
264 |
|
265 |
[gwolle_gb book_id="2"]
|
266 |
|
267 |
-
This will make that page show all the entries in Book ID 2.
|
268 |
|
269 |
If you use the template function, you can use it like this:
|
270 |
|
@@ -278,6 +282,8 @@ You can set the book_id automatically to the post_id with this shortcode:
|
|
278 |
|
279 |
[gwolle_gb book_id="post_id"]
|
280 |
|
|
|
|
|
281 |
= I use Infinite Scroll with multiple guestbooks =
|
282 |
|
283 |
This is not really supported and might result in strange issues.
|
@@ -288,6 +294,8 @@ You can use a shortcode parameter for showing just one entry:
|
|
288 |
|
289 |
[gwolle_gb_read entry_id="213"]
|
290 |
|
|
|
|
|
291 |
= I don't see the labels in the form. =
|
292 |
|
293 |
This plugin doesn't apply any CSS to the label elements. It is possible that your label elements have a white color on a white background.
|
@@ -424,6 +432,12 @@ But if you don't use standard comments, you can just as easily use the comment s
|
|
424 |
|
425 |
== Changelog ==
|
426 |
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
= 4.1.1 =
|
428 |
* 2021-03-01
|
429 |
* Fix deprecated jQuery calls with WP 5.6 and jQuery 3.5.
|
2 |
Contributors: Gwolle, mpol
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, review
|
4 |
Requires at least: 3.7
|
5 |
+
Tested up to: 5.8
|
6 |
+
Stable tag: 4.1.2
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|
83 |
* Preview for the frontend form.
|
84 |
* Preview for the admin editor form.
|
85 |
* Admin reply on the frontend with AJAX.
|
86 |
+
* Edit content/author/origin of entry on the frontend with AJAX.
|
87 |
* Report Abuse.
|
88 |
* Easy String Replacement in the default text so you can make this guestbook into a review section or anything you want.
|
89 |
* Delete button in each entry for the moderator and author (optional).
|
103 |
|
104 |
This plugin is compatible with [ClassicPress](https://www.classicpress.net).
|
105 |
|
106 |
+
= Contributions =
|
107 |
+
|
108 |
+
This plugin is also available in [GitLab](https://gitlab.com/toomanybicycles/gwolle-gb).
|
109 |
+
|
110 |
|
111 |
== Installation ==
|
112 |
|
268 |
|
269 |
[gwolle_gb book_id="2"]
|
270 |
|
271 |
+
This will make that page show all the entries in Book ID 2. In case you read this on wordpress.org, the quotes are supposed to be standard double quotes, no backticks.
|
272 |
|
273 |
If you use the template function, you can use it like this:
|
274 |
|
282 |
|
283 |
[gwolle_gb book_id="post_id"]
|
284 |
|
285 |
+
In case you read this on wordpress.org, the quotes are supposed to be standard double quotes, no backticks.
|
286 |
+
|
287 |
= I use Infinite Scroll with multiple guestbooks =
|
288 |
|
289 |
This is not really supported and might result in strange issues.
|
294 |
|
295 |
[gwolle_gb_read entry_id="213"]
|
296 |
|
297 |
+
In case you read this on wordpress.org, the quotes are supposed to be standard double quotes, no backticks.
|
298 |
+
|
299 |
= I don't see the labels in the form. =
|
300 |
|
301 |
This plugin doesn't apply any CSS to the label elements. It is possible that your label elements have a white color on a white background.
|
432 |
|
433 |
== Changelog ==
|
434 |
|
435 |
+
= 4.1.2 =
|
436 |
+
* 2021-05-05
|
437 |
+
* Add more classes to text elements, for better customization.
|
438 |
+
* Better explain how to add a new user to notifications.
|
439 |
+
* Fix PHP error when addon is set as active but not available in plugins folder.
|
440 |
+
|
441 |
= 4.1.1 =
|
442 |
* 2021-03-01
|
443 |
* Fix deprecated jQuery calls with WP 5.6 and jQuery 3.5.
|