Version Description
- 2020-05-15
- Redo dismiss button for form in CSS.
- Improve CSS for dark themes.
- Set error for select element on 'div.input'.
- Add postbox on main admin page when add-on is active.
- Update strings for add-on.
Download this release
Release Info
Developer | mpol |
Plugin | Gwolle Guestbook |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
- add-on/gb-add-on.php +6 -3
- admin/css/gwolle-gb-admin.css +3 -0
- admin/gb-page-gwolle-gb.php +28 -7
- admin/gwolle-gb-hooks.php +1 -3
- admin/js/gwolle-gb-admin.js +2 -2
- docs/filters/gwolle_gb_content_label.txt +4 -2
- frontend/css/gwolle-gb-frontend.css +13 -10
- frontend/gb-form.php +1 -1
- frontend/images/close.png +0 -0
- frontend/js/gwolle-gb-frontend.js +4 -1
- frontend/markitup/style.css +7 -1
- gwolle-gb.php +7 -4
- readme.txt +9 -1
add-on/gb-add-on.php
CHANGED
@@ -2,7 +2,6 @@
|
|
2 |
/*
|
3 |
* These strings are not used for the main plugin, but for the Commercial Add-On at:
|
4 |
* https://zenoweb.nl/downloads/gwolle-guestbook-add-on/
|
5 |
-
* https://www.mojomarketplace.com/item/gwolle-gb-add-on
|
6 |
*/
|
7 |
|
8 |
|
@@ -96,6 +95,8 @@ Entry content:
|
|
96 |
//function gwolle_gb_entry_metabox_lines_like_ajax( $gb_metabox, $entry ) {
|
97 |
/* translators: Commercial Add-On metabox line */
|
98 |
esc_attr__('Like this entry', 'gwolle-gb');
|
|
|
|
|
99 |
|
100 |
// function gwolle_gb_addon_form_starrating( $output ) {
|
101 |
/* translators: Commercial Add-On */
|
@@ -121,8 +122,6 @@ Entry content:
|
|
121 |
|
122 |
// function gwolle_gb_addon_page_settingstab_form() {
|
123 |
/* translators: Commercial Add-On */
|
124 |
-
esc_html_e('version', 'gwolle-gb');
|
125 |
-
/* translators: Commercial Add-On */
|
126 |
esc_html_e('Configure the extra fields that you want.', 'gwolle-gb');
|
127 |
/* translators: Commercial Add-On */
|
128 |
esc_html_e('The slug of the field is where your data is attached to. Only change the slug if you know what you are doing.', 'gwolle-gb');
|
@@ -222,6 +221,10 @@ Entry content:
|
|
222 |
esc_html_e('2 Weeks','gwolle-gb');
|
223 |
/* translators: Commercial Add-On */
|
224 |
esc_html_e('1 Month','gwolle-gb');
|
|
|
|
|
|
|
|
|
225 |
|
226 |
// function gwolle_gb_addon_page_settingstab_reading() {
|
227 |
/* translators: Commercial Add-On */
|
2 |
/*
|
3 |
* These strings are not used for the main plugin, but for the Commercial Add-On at:
|
4 |
* https://zenoweb.nl/downloads/gwolle-guestbook-add-on/
|
|
|
5 |
*/
|
6 |
|
7 |
|
95 |
//function gwolle_gb_entry_metabox_lines_like_ajax( $gb_metabox, $entry ) {
|
96 |
/* translators: Commercial Add-On metabox line */
|
97 |
esc_attr__('Like this entry', 'gwolle-gb');
|
98 |
+
/* translators: Commercial Add-On metabox line */
|
99 |
+
esc_attr__('Unlike this entry', 'gwolle-gb');
|
100 |
|
101 |
// function gwolle_gb_addon_form_starrating( $output ) {
|
102 |
/* translators: Commercial Add-On */
|
122 |
|
123 |
// function gwolle_gb_addon_page_settingstab_form() {
|
124 |
/* translators: Commercial Add-On */
|
|
|
|
|
125 |
esc_html_e('Configure the extra fields that you want.', 'gwolle-gb');
|
126 |
/* translators: Commercial Add-On */
|
127 |
esc_html_e('The slug of the field is where your data is attached to. Only change the slug if you know what you are doing.', 'gwolle-gb');
|
221 |
esc_html_e('2 Weeks','gwolle-gb');
|
222 |
/* translators: Commercial Add-On */
|
223 |
esc_html_e('1 Month','gwolle-gb');
|
224 |
+
/* translators: Commercial Add-On */
|
225 |
+
esc_html_e('6 Months','gwolle-gb');
|
226 |
+
/* translators: Commercial Add-On */
|
227 |
+
esc_html_e('12 Months','gwolle-gb');
|
228 |
|
229 |
// function gwolle_gb_addon_page_settingstab_reading() {
|
230 |
/* translators: Commercial Add-On */
|
admin/css/gwolle-gb-admin.css
CHANGED
@@ -32,6 +32,9 @@ h2.gwolle-nav-tab-wrapper {
|
|
32 |
* Welcome page
|
33 |
*/
|
34 |
|
|
|
|
|
|
|
35 |
body #dashboard-widgets .postbox#gwolle_gb_notification form p.submit {
|
36 |
margin: 1em 0;
|
37 |
}
|
32 |
* Welcome page
|
33 |
*/
|
34 |
|
35 |
+
.gwolle_gb_welcome {
|
36 |
+
clear: left;
|
37 |
+
}
|
38 |
body #dashboard-widgets .postbox#gwolle_gb_notification form p.submit {
|
39 |
margin: 1em 0;
|
40 |
}
|
admin/gb-page-gwolle-gb.php
CHANGED
@@ -33,8 +33,11 @@ function gwolle_gb_welcome() {
|
|
33 |
add_meta_box('gwolle_gb_help', esc_html__('Help', 'gwolle-gb'), 'gwolle_gb_overview_help', 'gwolle_gb_welcome', 'right');
|
34 |
add_meta_box('gwolle_gb_support', esc_html__('Support and Translations', 'gwolle-gb'), 'gwolle_gb_overview_support', 'gwolle_gb_welcome', 'right');
|
35 |
add_meta_box('gwolle_gb_review', /* translators: Reviews on the plugin page at WordPress.org */ esc_html__('Review', 'gwolle-gb'), 'gwolle_gb_overview_review', 'gwolle_gb_welcome', 'right');
|
|
|
|
|
|
|
|
|
36 |
|
37 |
-
?>
|
38 |
<div class="wrap gwolle_gb">
|
39 |
<div id="icon-gwolle-gb"><br /></div>
|
40 |
<?php
|
@@ -260,8 +263,7 @@ function gwolle_gb_overview_notification() {
|
|
260 |
* Metabox with overview of third parties.
|
261 |
*/
|
262 |
function gwolle_gb_overview_thanks() {
|
263 |
-
echo '<h3>
|
264 |
-
' . esc_html__('This plugin uses the following scripts and services:', 'gwolle-gb') . '</h3>
|
265 |
<ul class="ul-disc">
|
266 |
<li><a href="https://akismet.com/tos/" target="_blank">' . esc_html__( 'Akismet', 'gwolle-gb' ) . '</a></li>
|
267 |
<li><a href="https://www.stopforumspam.com" target="_blank">' . esc_html__( 'Stop Forum Spam', 'gwolle-gb' ) . '</a></li>
|
@@ -275,8 +277,7 @@ function gwolle_gb_overview_thanks() {
|
|
275 |
* Metabox with quick help text.
|
276 |
*/
|
277 |
function gwolle_gb_overview_help() {
|
278 |
-
echo '<h3>
|
279 |
-
' . esc_html__('This is how you can get your guestbook displayed on your website:', 'gwolle-gb') . '</h3>
|
280 |
<ul class="ul-disc">
|
281 |
<li>' . esc_html__('Create a new page.', 'gwolle-gb') . '</li>
|
282 |
<li>' . esc_html__('Choose a title and set "[gwolle_gb]" (without the quotes) as the content.', 'gwolle-gb') . '</li>
|
@@ -289,8 +290,7 @@ function gwolle_gb_overview_help() {
|
|
289 |
* Metabox with quick help text.
|
290 |
*/
|
291 |
function gwolle_gb_overview_visibility() {
|
292 |
-
echo '<h3>
|
293 |
-
' . esc_html__('These entries will be visible for your visitors:', 'gwolle-gb').'</h3>
|
294 |
<ul class="ul-disc">
|
295 |
<li>' . esc_html__('Marked as Checked.', 'gwolle-gb').'</li>
|
296 |
<li>' . esc_html__('Not marked as Spam.', 'gwolle-gb').'</li>
|
@@ -343,6 +343,27 @@ function gwolle_gb_overview_review() {
|
|
343 |
}
|
344 |
|
345 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
/*
|
347 |
* Subscribe this user to email notifications.
|
348 |
*/
|
33 |
add_meta_box('gwolle_gb_help', esc_html__('Help', 'gwolle-gb'), 'gwolle_gb_overview_help', 'gwolle_gb_welcome', 'right');
|
34 |
add_meta_box('gwolle_gb_support', esc_html__('Support and Translations', 'gwolle-gb'), 'gwolle_gb_overview_support', 'gwolle_gb_welcome', 'right');
|
35 |
add_meta_box('gwolle_gb_review', /* translators: Reviews on the plugin page at WordPress.org */ esc_html__('Review', 'gwolle-gb'), 'gwolle_gb_overview_review', 'gwolle_gb_welcome', 'right');
|
36 |
+
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
37 |
+
if ( $active ) {
|
38 |
+
add_meta_box('gwolle_gb_addon', esc_html__('The Add-On', 'gwolle-gb'), 'gwolle_gb_overview_addon', 'gwolle_gb_welcome', 'right');
|
39 |
+
} ?>
|
40 |
|
|
|
41 |
<div class="wrap gwolle_gb">
|
42 |
<div id="icon-gwolle-gb"><br /></div>
|
43 |
<?php
|
263 |
* Metabox with overview of third parties.
|
264 |
*/
|
265 |
function gwolle_gb_overview_thanks() {
|
266 |
+
echo '<h3>' . esc_html__('This plugin uses the following scripts and services:', 'gwolle-gb') . '</h3>
|
|
|
267 |
<ul class="ul-disc">
|
268 |
<li><a href="https://akismet.com/tos/" target="_blank">' . esc_html__( 'Akismet', 'gwolle-gb' ) . '</a></li>
|
269 |
<li><a href="https://www.stopforumspam.com" target="_blank">' . esc_html__( 'Stop Forum Spam', 'gwolle-gb' ) . '</a></li>
|
277 |
* Metabox with quick help text.
|
278 |
*/
|
279 |
function gwolle_gb_overview_help() {
|
280 |
+
echo '<h3>' . esc_html__('This is how you can get your guestbook displayed on your website:', 'gwolle-gb') . '</h3>
|
|
|
281 |
<ul class="ul-disc">
|
282 |
<li>' . esc_html__('Create a new page.', 'gwolle-gb') . '</li>
|
283 |
<li>' . esc_html__('Choose a title and set "[gwolle_gb]" (without the quotes) as the content.', 'gwolle-gb') . '</li>
|
290 |
* Metabox with quick help text.
|
291 |
*/
|
292 |
function gwolle_gb_overview_visibility() {
|
293 |
+
echo '<h3>' . esc_html__('These entries will be visible for your visitors:', 'gwolle-gb').'</h3>
|
|
|
294 |
<ul class="ul-disc">
|
295 |
<li>' . esc_html__('Marked as Checked.', 'gwolle-gb').'</li>
|
296 |
<li>' . esc_html__('Not marked as Spam.', 'gwolle-gb').'</li>
|
343 |
}
|
344 |
|
345 |
|
346 |
+
/*
|
347 |
+
* Metabox with overview of Add-On links.
|
348 |
+
* Only shown when the Add-On is active.
|
349 |
+
*
|
350 |
+
* @since 4.0.2
|
351 |
+
*/
|
352 |
+
function gwolle_gb_overview_addon() {
|
353 |
+
echo '<h3>' . esc_html__('Visit the ZenoWeb webshop for the Add-On.', 'gwolle-gb') . '</h3>
|
354 |
+
<ul class="ul-disc">
|
355 |
+
<li><a href="https://zenoweb.nl/changelog/" target="_blank">' . esc_html__( 'Changelog and Updates', 'gwolle-gb' ) . '</a></li>
|
356 |
+
<li><a href="https://zenoweb.nl/faq/" target="_blank">' . esc_html__( 'FAQ', 'gwolle-gb' ) . '</a></li>
|
357 |
+
<li><a href="https://zenoweb.nl/forums/forum/guestbook-add-on/" target="_blank">' . esc_html__( 'Support Forum', 'gwolle-gb' ) . '</a></li>
|
358 |
+
<li><a href="https://zenoweb.nl/reviews/" target="_blank">' . esc_html__( 'Reviews', 'gwolle-gb' ) . '</a></li>
|
359 |
+
<li><a href="https://zenoweb.nl/log-in/" target="_blank">' . esc_html__( 'Log in', 'gwolle-gb' ) . '</a></li>
|
360 |
+
</ul>
|
361 |
+
';
|
362 |
+
/* translators: %s is for the version of the add-on */
|
363 |
+
echo sprintf( esc_html__( 'You are currently using v%s of The Add-On.', 'gwolle-gb' ), GWOLLE_GB_ADDON_VER );
|
364 |
+
}
|
365 |
+
|
366 |
+
|
367 |
/*
|
368 |
* Subscribe this user to email notifications.
|
369 |
*/
|
admin/gwolle-gb-hooks.php
CHANGED
@@ -157,15 +157,13 @@ function gwolle_gb_deps_admin_notice() {
|
|
157 |
if ( $active ) {
|
158 |
$zeno_el = '<a href="https://zenoweb.nl/downloads/gwolle-guestbook-add-on/" target="_blank">';
|
159 |
$zeno_el_close = '</a>';
|
160 |
-
$mojo_el = '<a href="https://www.mojomarketplace.com/item/gwolle-gb-add-on" target="_blank">';
|
161 |
-
$mojo_el_close = '</a>';
|
162 |
$required_version = '2.0.0';
|
163 |
|
164 |
if ( GWOLLE_GB_ADDON_VER && version_compare( GWOLLE_GB_ADDON_VER, $required_version, '>=' ) ) {
|
165 |
return; // We have the minimal version.
|
166 |
}
|
167 |
|
168 |
-
$message = sprintf( esc_html__( 'Gwolle Guestbook: This version of the Gwolle Guestbook Add-On is too old for this version of Gwolle Guestbook, you need at least %s. You have version %s. Go to the %sZenoWeb Webshop%s
|
169 |
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
|
170 |
|
171 |
}
|
157 |
if ( $active ) {
|
158 |
$zeno_el = '<a href="https://zenoweb.nl/downloads/gwolle-guestbook-add-on/" target="_blank">';
|
159 |
$zeno_el_close = '</a>';
|
|
|
|
|
160 |
$required_version = '2.0.0';
|
161 |
|
162 |
if ( GWOLLE_GB_ADDON_VER && version_compare( GWOLLE_GB_ADDON_VER, $required_version, '>=' ) ) {
|
163 |
return; // We have the minimal version.
|
164 |
}
|
165 |
|
166 |
+
$message = sprintf( esc_html__( 'Gwolle Guestbook: This version of the Gwolle Guestbook Add-On is too old for this version of Gwolle Guestbook, you need at least %s. You have version %s. Go to the %sZenoWeb Webshop%s and login, download and update the Add-On.', 'gwolle-gb' ), $required_version, GWOLLE_GB_ADDON_VER, $zeno_el, $zeno_el_close );
|
167 |
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
|
168 |
|
169 |
}
|
admin/js/gwolle-gb-admin.js
CHANGED
@@ -26,11 +26,11 @@ jQuery(document).ready(function($) {
|
|
26 |
jQuery(document).ready(function($) {
|
27 |
|
28 |
jQuery("#gwolle_gb_entries input[name='check-all-top']").change(function() {
|
29 |
-
gwolle_gb_toggleCheckboxes(
|
30 |
});
|
31 |
|
32 |
jQuery("#gwolle_gb_entries input[name='check-all-bottom']").change(function() {
|
33 |
-
gwolle_gb_toggleCheckboxes(
|
34 |
});
|
35 |
|
36 |
// Function to check/uncheck all checkboxes.
|
26 |
jQuery(document).ready(function($) {
|
27 |
|
28 |
jQuery("#gwolle_gb_entries input[name='check-all-top']").change(function() {
|
29 |
+
gwolle_gb_toggleCheckboxes(jQuery("input[name='check-all-top']").is(":checked"));
|
30 |
});
|
31 |
|
32 |
jQuery("#gwolle_gb_entries input[name='check-all-bottom']").change(function() {
|
33 |
+
gwolle_gb_toggleCheckboxes(jQuery("input[name='check-all-bottom']").is(":checked"));
|
34 |
});
|
35 |
|
36 |
// Function to check/uncheck all checkboxes.
|
docs/filters/gwolle_gb_content_label.txt
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
|
3 |
==Description==
|
4 |
|
|
|
|
|
5 |
The <b>"gwolle_gb_content_label"</b> filter is used to change the text of the label for the textarea of the content at the frontend.
|
6 |
This filter is deprecated, please use gwolle_gb_author_content_label.
|
7 |
|
@@ -18,8 +20,8 @@ Where 'filter_function_name' is the function WordPress should call when the filt
|
|
18 |
|
19 |
|
20 |
function my_gwolle_gb_content_label( $label ) {
|
21 |
-
|
22 |
-
|
23 |
return $label;
|
24 |
}
|
25 |
add_filter( 'gwolle_gb_content_label', 'my_gwolle_gb_content_label', 10, 1 );
|
2 |
|
3 |
==Description==
|
4 |
|
5 |
+
This filter is deprecated. Please use "gwolle_gb_author_content_label".
|
6 |
+
|
7 |
The <b>"gwolle_gb_content_label"</b> filter is used to change the text of the label for the textarea of the content at the frontend.
|
8 |
This filter is deprecated, please use gwolle_gb_author_content_label.
|
9 |
|
20 |
|
21 |
|
22 |
function my_gwolle_gb_content_label( $label ) {
|
23 |
+
_deprecated_function( __FUNCTION__, ' 4.0.0', 'gwolle_gb_author_content_label()' );
|
24 |
+
|
25 |
return $label;
|
26 |
}
|
27 |
add_filter( 'gwolle_gb_content_label', 'my_gwolle_gb_content_label', 10, 1 );
|
frontend/css/gwolle-gb-frontend.css
CHANGED
@@ -36,20 +36,21 @@
|
|
36 |
html body div.gwolle-gb form.gwolle-gb-write button.gb-notice-dismiss {
|
37 |
position: absolute;
|
38 |
top: 0;
|
39 |
-
right:
|
40 |
border: none;
|
|
|
41 |
margin: 0;
|
42 |
-
padding:
|
43 |
cursor: pointer;
|
44 |
-
|
45 |
-
background-color:
|
46 |
-
background-position: 4px 4px;
|
47 |
-
background-repeat: no-repeat;
|
48 |
display: inline-block;
|
49 |
speak: none;
|
50 |
-
height:
|
|
|
|
|
|
|
51 |
text-align: center;
|
52 |
-
width: 13px;
|
53 |
}
|
54 |
|
55 |
.gwolle-gb-float .label,
|
@@ -112,7 +113,6 @@ body .gwolle-gb-content a {
|
|
112 |
|
113 |
.gwolle-gb form.gwolle-gb-write div.input.error,
|
114 |
.gwolle-gb form.gwolle-gb-write input.error,
|
115 |
-
.gwolle-gb form.gwolle-gb-write select.error,
|
116 |
.gwolle-gb form.gwolle-gb-write textarea.error {
|
117 |
border: 1px solid #dd3d36;
|
118 |
}
|
@@ -138,7 +138,7 @@ body .gwolle-gb-content a {
|
|
138 |
.gwolle-gb div.input input[type="url"],
|
139 |
.gwolle-gb div.input textarea,
|
140 |
.gwolle-gb div.input select {
|
141 |
-
width:
|
142 |
}
|
143 |
.gwolle-gb div.input textarea {
|
144 |
height: 150px;
|
@@ -162,6 +162,7 @@ body .gwolle-gb-content a {
|
|
162 |
padding: 0px 6px;
|
163 |
margin-left: 0;
|
164 |
color: #555;
|
|
|
165 |
border: 1px solid #efefef;
|
166 |
text-decoration: none;
|
167 |
box-shadow: none;
|
@@ -281,11 +282,13 @@ div.gb-metabox-line {
|
|
281 |
border-bottom: 1px #ddd solid;
|
282 |
border-left: 1px #ddd solid;
|
283 |
background-color: #fff;
|
|
|
284 |
box-sizing: border-box;
|
285 |
}
|
286 |
div.gb-metabox-line a {
|
287 |
text-decoration: none;
|
288 |
box-shadow: none;
|
|
|
289 |
}
|
290 |
div.gb-metabox-line.gb-metabox-line-ajax {
|
291 |
display: none;
|
36 |
html body div.gwolle-gb form.gwolle-gb-write button.gb-notice-dismiss {
|
37 |
position: absolute;
|
38 |
top: 0;
|
39 |
+
right: 0;
|
40 |
border: none;
|
41 |
+
border-radius: 2px;
|
42 |
margin: 0;
|
43 |
+
padding: 0;
|
44 |
cursor: pointer;
|
45 |
+
color: #fff;
|
46 |
+
background-color: #888;
|
|
|
|
|
47 |
display: inline-block;
|
48 |
speak: none;
|
49 |
+
line-height: 16px;
|
50 |
+
height: 16px;
|
51 |
+
width: 14px;
|
52 |
+
font-size: 11px;
|
53 |
text-align: center;
|
|
|
54 |
}
|
55 |
|
56 |
.gwolle-gb-float .label,
|
113 |
|
114 |
.gwolle-gb form.gwolle-gb-write div.input.error,
|
115 |
.gwolle-gb form.gwolle-gb-write input.error,
|
|
|
116 |
.gwolle-gb form.gwolle-gb-write textarea.error {
|
117 |
border: 1px solid #dd3d36;
|
118 |
}
|
138 |
.gwolle-gb div.input input[type="url"],
|
139 |
.gwolle-gb div.input textarea,
|
140 |
.gwolle-gb div.input select {
|
141 |
+
width: 99%;
|
142 |
}
|
143 |
.gwolle-gb div.input textarea {
|
144 |
height: 150px;
|
162 |
padding: 0px 6px;
|
163 |
margin-left: 0;
|
164 |
color: #555;
|
165 |
+
background-color: #fff;
|
166 |
border: 1px solid #efefef;
|
167 |
text-decoration: none;
|
168 |
box-shadow: none;
|
282 |
border-bottom: 1px #ddd solid;
|
283 |
border-left: 1px #ddd solid;
|
284 |
background-color: #fff;
|
285 |
+
color: #333;
|
286 |
box-sizing: border-box;
|
287 |
}
|
288 |
div.gb-metabox-line a {
|
289 |
text-decoration: none;
|
290 |
box-shadow: none;
|
291 |
+
color: #222;
|
292 |
}
|
293 |
div.gb-metabox-line.gb-metabox-line-ajax {
|
294 |
display: none;
|
frontend/gb-form.php
CHANGED
@@ -152,7 +152,7 @@ function gwolle_gb_frontend_write( $shortcode_atts, $shortcode ) {
|
|
152 |
|
153 |
$hidebutton = '';
|
154 |
if ( ( $shortcode_atts['button'] == 'true' ) ) {
|
155 |
-
$hidebutton = '<button type="button" class="gb-notice-dismiss"
|
156 |
';
|
157 |
}
|
158 |
$output .= '
|
152 |
|
153 |
$hidebutton = '';
|
154 |
if ( ( $shortcode_atts['button'] == 'true' ) ) {
|
155 |
+
$hidebutton = '<button type="button" class="gb-notice-dismiss">x<span class="screen-reader-text">' . esc_html__('Hide this form.', 'gwolle-gb') . '</span></button>
|
156 |
';
|
157 |
}
|
158 |
$output .= '
|
frontend/images/close.png
DELETED
Binary file
|
frontend/js/gwolle-gb-frontend.js
CHANGED
@@ -323,13 +323,16 @@ jQuery(document).ready(function($) {
|
|
323 |
|
324 |
// Add error class to failed input fields.
|
325 |
jQuery.each( gwolle_gb_error_fields, function( index, value ) {
|
326 |
-
jQuery( 'select.' + value, main_div ).addClass( 'error' );
|
327 |
jQuery( 'textarea.' + value, main_div ).addClass( 'error' );
|
328 |
jQuery( 'input.' + value, main_div ).addClass( 'error' );
|
329 |
var type = jQuery( 'input.' + value, main_div ).attr('type');
|
330 |
if ( typeof type != 'undefined' && type == 'radio' ) {
|
331 |
jQuery( 'input.' + value, main_div ).closest('div.input').addClass( 'error' );
|
332 |
}
|
|
|
|
|
|
|
|
|
333 |
});
|
334 |
|
335 |
jQuery( '.gwolle_gb_submit_ajax_icon', main_div ).css( 'display', 'none' );
|
323 |
|
324 |
// Add error class to failed input fields.
|
325 |
jQuery.each( gwolle_gb_error_fields, function( index, value ) {
|
|
|
326 |
jQuery( 'textarea.' + value, main_div ).addClass( 'error' );
|
327 |
jQuery( 'input.' + value, main_div ).addClass( 'error' );
|
328 |
var type = jQuery( 'input.' + value, main_div ).attr('type');
|
329 |
if ( typeof type != 'undefined' && type == 'radio' ) {
|
330 |
jQuery( 'input.' + value, main_div ).closest('div.input').addClass( 'error' );
|
331 |
}
|
332 |
+
var select = jQuery( 'select.' + value, main_div ).length;
|
333 |
+
if ( typeof select != 'undefined' && select == 1 ) { // number of elements, which should be 1.
|
334 |
+
jQuery( 'select.' + value, main_div ).closest('div.input').addClass( 'error' );
|
335 |
+
}
|
336 |
});
|
337 |
|
338 |
jQuery( '.gwolle_gb_submit_ajax_icon', main_div ).css( 'display', 'none' );
|
frontend/markitup/style.css
CHANGED
@@ -9,6 +9,12 @@
|
|
9 |
padding:0px;
|
10 |
outline:none;
|
11 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
.markItUp a:link,
|
13 |
.markItUp a:visited {
|
14 |
text-decoration:none;
|
@@ -108,7 +114,7 @@
|
|
108 |
text-indent: -10000px;
|
109 |
background-repeat: no-repeat;
|
110 |
padding: 3px 4px 1px 4px;
|
111 |
-
margin:
|
112 |
}
|
113 |
.gwolle-gb .markItUpHeader ul a::before,
|
114 |
.gwolle-gb .markItUpHeader ul a::after,
|
9 |
padding:0px;
|
10 |
outline:none;
|
11 |
}
|
12 |
+
.gwolle-gb .markItUpHeader {
|
13 |
+
width: 99%;
|
14 |
+
background-color: #e7ebee;
|
15 |
+
height: 28px;
|
16 |
+
border-radius: 2px 2px 0 0;
|
17 |
+
}
|
18 |
.markItUp a:link,
|
19 |
.markItUp a:visited {
|
20 |
text-decoration:none;
|
114 |
text-indent: -10000px;
|
115 |
background-repeat: no-repeat;
|
116 |
padding: 3px 4px 1px 4px;
|
117 |
+
margin: 4px 0 0 0;
|
118 |
}
|
119 |
.gwolle-gb .markItUpHeader ul a::before,
|
120 |
.gwolle-gb .markItUpHeader ul a::after,
|
gwolle-gb.php
CHANGED
@@ -3,9 +3,9 @@
|
|
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.0.
|
7 |
Author: Marcel Pol
|
8 |
-
Author URI: https://
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: gwolle-gb
|
11 |
Domain Path: /lang/
|
@@ -32,7 +32,7 @@ Domain Path: /lang/
|
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
-
define('GWOLLE_GB_VER', '4.0.
|
36 |
|
37 |
|
38 |
/*
|
@@ -59,8 +59,11 @@ define('GWOLLE_GB_VER', '4.0.1');
|
|
59 |
* - Use foreign keys through a hook with SQL, and add a setter for meta.
|
60 |
* - Or add function to prepopulate metas for export.
|
61 |
* - Add emoji for Zwarte Piet and Sinterklaas when locale=nl_nl.
|
62 |
-
* - Support rewrite API for single entry.
|
63 |
* - Use select2 or similar for subscribe/unsubcribe dropdowns.
|
|
|
|
|
|
|
64 |
*/
|
65 |
|
66 |
|
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.0.2
|
7 |
Author: Marcel Pol
|
8 |
+
Author URI: https://zenoweb.nl
|
9 |
License: GPLv2 or later
|
10 |
Text Domain: gwolle-gb
|
11 |
Domain Path: /lang/
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
+
define('GWOLLE_GB_VER', '4.0.2');
|
36 |
|
37 |
|
38 |
/*
|
59 |
* - Use foreign keys through a hook with SQL, and add a setter for meta.
|
60 |
* - Or add function to prepopulate metas for export.
|
61 |
* - Add emoji for Zwarte Piet and Sinterklaas when locale=nl_nl.
|
62 |
+
* - Support rewrite API for single entry and for paging.
|
63 |
* - Use select2 or similar for subscribe/unsubcribe dropdowns.
|
64 |
+
* - On one-page-design, paging doesn't work correctly in Chrome:
|
65 |
+
* https://wordpress.org/support/topic/problem-of-text-selection-in-gwolle-guestbook/
|
66 |
+
*
|
67 |
*/
|
68 |
|
69 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.4
|
6 |
-
Stable tag: 4.0.
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|
@@ -422,6 +422,14 @@ But if you don't use standard comments, you can just as easily use the comment s
|
|
422 |
|
423 |
== Changelog ==
|
424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
= 4.0.1 =
|
426 |
* 2020-05-04
|
427 |
* Fix emoji in frontend form.
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, review
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 4.0.2
|
7 |
License: GPLv2 or later
|
8 |
Requires PHP: 5.3
|
9 |
|
422 |
|
423 |
== Changelog ==
|
424 |
|
425 |
+
= 4.0.2 =
|
426 |
+
* 2020-05-15
|
427 |
+
* Redo dismiss button for form in CSS.
|
428 |
+
* Improve CSS for dark themes.
|
429 |
+
* Set error for select element on 'div.input'.
|
430 |
+
* Add postbox on main admin page when add-on is active.
|
431 |
+
* Update strings for add-on.
|
432 |
+
|
433 |
= 4.0.1 =
|
434 |
* 2020-05-04
|
435 |
* Fix emoji in frontend form.
|