Version Description
- 2018-10-30
- Only load admin files on wp-admin.
- Use jQuery to get data from input fields in form.
Download this release
Release Info
Developer | mpol |
Plugin | Gwolle Guestbook |
Version | 2.6.6 |
Comparing to | |
See all releases |
Code changes from version 2.6.5 to 2.6.6
- admin/gwolle-gb-hooks.php +136 -0
- changelog-v1.txt +1 -1
- frontend/images/close.png +0 -0
- frontend/js/gwolle-gb-frontend.js +6 -3
- gwolle-gb-hooks.php +0 -123
- gwolle-gb.php +24 -19
- readme.txt +6 -1
admin/gwolle-gb-hooks.php
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
* WordPress Actions and Filters.
|
5 |
+
* See the Plugin API in the Codex:
|
6 |
+
* http://codex.wordpress.org/Plugin_API
|
7 |
+
*/
|
8 |
+
|
9 |
+
|
10 |
+
// No direct calls to this script
|
11 |
+
if ( strpos($_SERVER['PHP_SELF'], basename(__FILE__) )) {
|
12 |
+
die('No direct calls allowed!');
|
13 |
+
}
|
14 |
+
|
15 |
+
|
16 |
+
/*
|
17 |
+
* Add a menu in the WordPress backend.
|
18 |
+
* Load JavaSCript and CSS for Admin.
|
19 |
+
*/
|
20 |
+
function gwolle_gb_adminmenu() {
|
21 |
+
/*
|
22 |
+
* How to add new menu-entries:
|
23 |
+
* add_menu_page( $page_title, $menu_title, $access_level, $file, $function = '', $icon_url = '' )
|
24 |
+
*/
|
25 |
+
|
26 |
+
// Counter
|
27 |
+
$count_unchecked = get_transient( 'gwolle_gb_menu_counter' );
|
28 |
+
if ( false === $count_unchecked ) {
|
29 |
+
$count_unchecked = (int) gwolle_gb_get_entry_count(
|
30 |
+
array(
|
31 |
+
'checked' => 'unchecked',
|
32 |
+
'trash' => 'notrash',
|
33 |
+
'spam' => 'nospam'
|
34 |
+
)
|
35 |
+
);
|
36 |
+
set_transient( 'gwolle_gb_menu_counter', $count_unchecked, DAY_IN_SECONDS );
|
37 |
+
}
|
38 |
+
|
39 |
+
// Main navigation entry
|
40 |
+
// Admin page: admin/welcome.php
|
41 |
+
$menu_text = esc_html__('Guestbook', 'gwolle-gb') . '<span class="awaiting-mod count-' . $count_unchecked . '"><span>' . $count_unchecked . '</span></span>';
|
42 |
+
add_menu_page(
|
43 |
+
esc_html__('Guestbook', 'gwolle-gb'), /* translators: Menu entry */
|
44 |
+
$menu_text,
|
45 |
+
'moderate_comments',
|
46 |
+
GWOLLE_GB_FOLDER . '/gwolle-gb.php',
|
47 |
+
'gwolle_gb_welcome',
|
48 |
+
'dashicons-admin-comments'
|
49 |
+
);
|
50 |
+
|
51 |
+
// Admin page: admin/entries.php
|
52 |
+
$menu_text = esc_html__('Entries', 'gwolle-gb') . '<span class="awaiting-mod count-' . $count_unchecked . '"><span>' . $count_unchecked . '</span></span>';
|
53 |
+
add_submenu_page(
|
54 |
+
GWOLLE_GB_FOLDER . '/gwolle-gb.php',
|
55 |
+
esc_html__('Entries', 'gwolle-gb'), /* translators: Menu entry */
|
56 |
+
$menu_text,
|
57 |
+
'moderate_comments',
|
58 |
+
GWOLLE_GB_FOLDER . '/entries.php',
|
59 |
+
'gwolle_gb_page_entries'
|
60 |
+
);
|
61 |
+
|
62 |
+
// Admin page: admin/editor.php
|
63 |
+
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Entry editor', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Add/Edit entry', 'gwolle-gb'), 'moderate_comments', GWOLLE_GB_FOLDER . '/editor.php', 'gwolle_gb_page_editor' );
|
64 |
+
|
65 |
+
// Admin page: admin/settings.php
|
66 |
+
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Settings', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Settings', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/settings.php', 'gwolle_gb_page_settings' );
|
67 |
+
|
68 |
+
// Admin page: admin/import.php
|
69 |
+
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Import', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Import', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/import.php', 'gwolle_gb_page_import' );
|
70 |
+
|
71 |
+
// Admin page: admin/export.php
|
72 |
+
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Export', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Export', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/export.php', 'gwolle_gb_page_export' );
|
73 |
+
}
|
74 |
+
add_action('admin_menu', 'gwolle_gb_adminmenu');
|
75 |
+
|
76 |
+
|
77 |
+
/*
|
78 |
+
* Load CSS for admin.
|
79 |
+
*/
|
80 |
+
function gwolle_gb_admin_enqueue_style() {
|
81 |
+
wp_enqueue_style( 'gwolle-gb-admin-css', plugins_url( '/css/gwolle-gb-admin.css', __FILE__ ), false, GWOLLE_GB_VER, 'all' );
|
82 |
+
}
|
83 |
+
add_action( 'admin_enqueue_scripts', 'gwolle_gb_admin_enqueue_style' );
|
84 |
+
|
85 |
+
|
86 |
+
/*
|
87 |
+
* Load JavaScript for admin.
|
88 |
+
* It's called directly on the adminpages, it's not being used as a hook.
|
89 |
+
*/
|
90 |
+
function gwolle_gb_admin_enqueue() {
|
91 |
+
wp_enqueue_script( 'gwolle-gb-admin-js', plugins_url( '/js/gwolle-gb-admin.js', __FILE__ ), 'jquery', GWOLLE_GB_VER, true );
|
92 |
+
}
|
93 |
+
//add_action( 'admin_enqueue_scripts', 'gwolle_gb_admin_enqueue' );
|
94 |
+
|
95 |
+
|
96 |
+
/*
|
97 |
+
* Add Settings link to the main plugin page
|
98 |
+
*/
|
99 |
+
function gwolle_gb_links( $links, $file ) {
|
100 |
+
if ( $file == plugin_basename( dirname(__FILE__).'/gwolle-gb.php' ) ) {
|
101 |
+
$links[] = '<a href="' . admin_url( 'admin.php?page=gwolle-gb/settings.php' ) . '">'.__( 'Settings', 'gwolle-gb' ).'</a>';
|
102 |
+
}
|
103 |
+
return $links;
|
104 |
+
}
|
105 |
+
add_filter( 'plugin_action_links', 'gwolle_gb_links', 10, 2 );
|
106 |
+
|
107 |
+
|
108 |
+
/*
|
109 |
+
* Support uninstall for MultiSite through a filter.
|
110 |
+
* Take Note: This will do an uninstall on all sites.
|
111 |
+
* Only run on admin_init, no need for the frontend.
|
112 |
+
*
|
113 |
+
* @since 2.1.0
|
114 |
+
*/
|
115 |
+
function gwolle_gb_multisite_uninstall() {
|
116 |
+
global $wpdb;
|
117 |
+
|
118 |
+
if ( is_admin() ) {
|
119 |
+
if ( function_exists('is_multisite') && is_multisite() ) {
|
120 |
+
$do_uninstall = apply_filters( 'gwolle_gb_multisite_uninstall', false );
|
121 |
+
if ( $do_uninstall ) {
|
122 |
+
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
123 |
+
foreach ($blogids as $blog_id) {
|
124 |
+
switch_to_blog($blog_id);
|
125 |
+
gwolle_gb_uninstall();
|
126 |
+
restore_current_blog();
|
127 |
+
}
|
128 |
+
// Avoid database errors and PHP notices, don't run these actions anymore.
|
129 |
+
remove_action( 'admin_menu', 'gwolle_gb_adminmenu', 10, 1 );
|
130 |
+
remove_action( 'wp_dashboard_setup', 'gwolle_gb_dashboard_setup', 10, 1 );
|
131 |
+
remove_action( 'admin_bar_menu', 'gwolle_gb_admin_bar_menu', 61, 1 );
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
}
|
136 |
+
add_action('admin_init', 'gwolle_gb_multisite_uninstall', 99);
|
changelog-v1.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
== Changelog of Gwolle Guestbook Version 0
|
3 |
|
4 |
= 1.7.4 =
|
5 |
* 2016-06-27
|
1 |
|
2 |
+
== Changelog of Gwolle Guestbook Version 1.0 - 1.7.4 ==
|
3 |
|
4 |
= 1.7.4 =
|
5 |
* 2016-06-27
|
frontend/images/close.png
CHANGED
Binary file
|
frontend/js/gwolle-gb-frontend.js
CHANGED
@@ -211,16 +211,19 @@ jQuery(document).ready(function($) {
|
|
211 |
if ( id == 'gwolle_gb_privacy' ) {
|
212 |
var checked = jQuery('.gwolle_gb_form_ajax input#gwolle_gb_privacy').prop('checked');
|
213 |
if ( checked == true ) {
|
214 |
-
|
|
|
215 |
}
|
216 |
} else {
|
217 |
-
|
|
|
218 |
}
|
219 |
});
|
220 |
jQuery('.gwolle_gb_form_ajax textarea').each(function( index, value ) {
|
221 |
var val = jQuery( this ).val();
|
222 |
var id = jQuery( this ).attr('id');
|
223 |
-
|
|
|
224 |
});
|
225 |
|
226 |
jQuery.post( gwolle_gb_frontend_script.ajax_url, gwolle_gb_ajax_data, function( response ) {
|
211 |
if ( id == 'gwolle_gb_privacy' ) {
|
212 |
var checked = jQuery('.gwolle_gb_form_ajax input#gwolle_gb_privacy').prop('checked');
|
213 |
if ( checked == true ) {
|
214 |
+
var gwolle_gb_ajax_data2 = { [id]: 'on' };
|
215 |
+
jQuery.extend( gwolle_gb_ajax_data, gwolle_gb_ajax_data2);
|
216 |
}
|
217 |
} else {
|
218 |
+
var gwolle_gb_ajax_data2 = { [id]: val };
|
219 |
+
jQuery.extend( gwolle_gb_ajax_data, gwolle_gb_ajax_data2);
|
220 |
}
|
221 |
});
|
222 |
jQuery('.gwolle_gb_form_ajax textarea').each(function( index, value ) {
|
223 |
var val = jQuery( this ).val();
|
224 |
var id = jQuery( this ).attr('id');
|
225 |
+
var gwolle_gb_ajax_data2 = { [id]: val };
|
226 |
+
jQuery.extend( gwolle_gb_ajax_data, gwolle_gb_ajax_data2);
|
227 |
});
|
228 |
|
229 |
jQuery.post( gwolle_gb_frontend_script.ajax_url, gwolle_gb_ajax_data, function( response ) {
|
gwolle-gb-hooks.php
CHANGED
@@ -13,98 +13,6 @@ if ( strpos($_SERVER['PHP_SELF'], basename(__FILE__) )) {
|
|
13 |
}
|
14 |
|
15 |
|
16 |
-
/*
|
17 |
-
* Add a menu in the WordPress backend.
|
18 |
-
* Load JavaSCript and CSS for Admin.
|
19 |
-
*/
|
20 |
-
function gwolle_gb_adminmenu() {
|
21 |
-
/*
|
22 |
-
* How to add new menu-entries:
|
23 |
-
* add_menu_page( $page_title, $menu_title, $access_level, $file, $function = '', $icon_url = '' )
|
24 |
-
*/
|
25 |
-
|
26 |
-
// Counter
|
27 |
-
$count_unchecked = get_transient( 'gwolle_gb_menu_counter' );
|
28 |
-
if ( false === $count_unchecked ) {
|
29 |
-
$count_unchecked = (int) gwolle_gb_get_entry_count(
|
30 |
-
array(
|
31 |
-
'checked' => 'unchecked',
|
32 |
-
'trash' => 'notrash',
|
33 |
-
'spam' => 'nospam'
|
34 |
-
)
|
35 |
-
);
|
36 |
-
set_transient( 'gwolle_gb_menu_counter', $count_unchecked, DAY_IN_SECONDS );
|
37 |
-
}
|
38 |
-
|
39 |
-
// Main navigation entry
|
40 |
-
// Admin page: admin/welcome.php
|
41 |
-
$menu_text = esc_html__('Guestbook', 'gwolle-gb') . '<span class="awaiting-mod count-' . $count_unchecked . '"><span>' . $count_unchecked . '</span></span>';
|
42 |
-
add_menu_page(
|
43 |
-
esc_html__('Guestbook', 'gwolle-gb'), /* translators: Menu entry */
|
44 |
-
$menu_text,
|
45 |
-
'moderate_comments',
|
46 |
-
GWOLLE_GB_FOLDER . '/gwolle-gb.php',
|
47 |
-
'gwolle_gb_welcome',
|
48 |
-
'dashicons-admin-comments'
|
49 |
-
);
|
50 |
-
|
51 |
-
// Admin page: admin/entries.php
|
52 |
-
$menu_text = esc_html__('Entries', 'gwolle-gb') . '<span class="awaiting-mod count-' . $count_unchecked . '"><span>' . $count_unchecked . '</span></span>';
|
53 |
-
add_submenu_page(
|
54 |
-
GWOLLE_GB_FOLDER . '/gwolle-gb.php',
|
55 |
-
esc_html__('Entries', 'gwolle-gb'), /* translators: Menu entry */
|
56 |
-
$menu_text,
|
57 |
-
'moderate_comments',
|
58 |
-
GWOLLE_GB_FOLDER . '/entries.php',
|
59 |
-
'gwolle_gb_page_entries'
|
60 |
-
);
|
61 |
-
|
62 |
-
// Admin page: admin/editor.php
|
63 |
-
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Entry editor', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Add/Edit entry', 'gwolle-gb'), 'moderate_comments', GWOLLE_GB_FOLDER . '/editor.php', 'gwolle_gb_page_editor' );
|
64 |
-
|
65 |
-
// Admin page: admin/settings.php
|
66 |
-
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Settings', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Settings', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/settings.php', 'gwolle_gb_page_settings' );
|
67 |
-
|
68 |
-
// Admin page: admin/import.php
|
69 |
-
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Import', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Import', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/import.php', 'gwolle_gb_page_import' );
|
70 |
-
|
71 |
-
// Admin page: admin/export.php
|
72 |
-
add_submenu_page( GWOLLE_GB_FOLDER . '/gwolle-gb.php', esc_html__('Export', 'gwolle-gb'), /* translators: Menu entry */ esc_html__('Export', 'gwolle-gb'), 'manage_options', GWOLLE_GB_FOLDER . '/export.php', 'gwolle_gb_page_export' );
|
73 |
-
}
|
74 |
-
add_action('admin_menu', 'gwolle_gb_adminmenu');
|
75 |
-
|
76 |
-
|
77 |
-
/*
|
78 |
-
* Load CSS for admin.
|
79 |
-
*/
|
80 |
-
function gwolle_gb_admin_enqueue_style() {
|
81 |
-
wp_enqueue_style( 'gwolle-gb-admin-css', plugins_url( '/admin/css/gwolle-gb-admin.css', __FILE__ ), false, GWOLLE_GB_VER, 'all' );
|
82 |
-
}
|
83 |
-
add_action( 'admin_enqueue_scripts', 'gwolle_gb_admin_enqueue_style' );
|
84 |
-
|
85 |
-
|
86 |
-
/*
|
87 |
-
* Load JavaScript for admin.
|
88 |
-
* It's called directly on the adminpages, it's not being used as a hook.
|
89 |
-
*/
|
90 |
-
function gwolle_gb_admin_enqueue() {
|
91 |
-
wp_enqueue_script( 'gwolle-gb-admin-js', plugins_url( '/admin/js/gwolle-gb-admin.js', __FILE__ ), 'jquery', GWOLLE_GB_VER, true );
|
92 |
-
}
|
93 |
-
//add_action( 'admin_enqueue_scripts', 'gwolle_gb_admin_enqueue' );
|
94 |
-
|
95 |
-
|
96 |
-
/*
|
97 |
-
* Add Settings link to the main plugin page
|
98 |
-
*/
|
99 |
-
function gwolle_gb_links( $links, $file ) {
|
100 |
-
if ( $file == plugin_basename( dirname(__FILE__).'/gwolle-gb.php' ) ) {
|
101 |
-
$links[] = '<a href="' . admin_url( 'admin.php?page=gwolle-gb/settings.php' ) . '">'.__( 'Settings', 'gwolle-gb' ).'</a>';
|
102 |
-
}
|
103 |
-
return $links;
|
104 |
-
}
|
105 |
-
add_filter( 'plugin_action_links', 'gwolle_gb_links', 10, 2 );
|
106 |
-
|
107 |
-
|
108 |
/*
|
109 |
* Check if we need to install or upgrade.
|
110 |
* Supports MultiSite since 1.5.2.
|
@@ -146,37 +54,6 @@ function gwolle_gb_activate_new_site($blog_id) {
|
|
146 |
add_action( 'wpmu_new_blog', 'gwolle_gb_activate_new_site' );
|
147 |
|
148 |
|
149 |
-
/*
|
150 |
-
* Support uninstall for MultiSite through a filter.
|
151 |
-
* Take Note: This will do an uninstall on all sites.
|
152 |
-
* Only run on admin_init, no need for the frontend.
|
153 |
-
*
|
154 |
-
* @since 2.1.0
|
155 |
-
*/
|
156 |
-
function gwolle_gb_multisite_uninstall() {
|
157 |
-
global $wpdb;
|
158 |
-
|
159 |
-
if ( is_admin() ) {
|
160 |
-
if ( function_exists('is_multisite') && is_multisite() ) {
|
161 |
-
$do_uninstall = apply_filters( 'gwolle_gb_multisite_uninstall', false );
|
162 |
-
if ( $do_uninstall ) {
|
163 |
-
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
164 |
-
foreach ($blogids as $blog_id) {
|
165 |
-
switch_to_blog($blog_id);
|
166 |
-
gwolle_gb_uninstall();
|
167 |
-
restore_current_blog();
|
168 |
-
}
|
169 |
-
// Avoid database errors and PHP notices, don't run these actions anymore.
|
170 |
-
remove_action( 'admin_menu', 'gwolle_gb_adminmenu', 10, 1 );
|
171 |
-
remove_action( 'wp_dashboard_setup', 'gwolle_gb_dashboard_setup', 10, 1 );
|
172 |
-
remove_action( 'admin_bar_menu', 'gwolle_gb_admin_bar_menu', 61, 1 );
|
173 |
-
}
|
174 |
-
}
|
175 |
-
}
|
176 |
-
}
|
177 |
-
add_action('admin_init', 'gwolle_gb_multisite_uninstall', 99);
|
178 |
-
|
179 |
-
|
180 |
/*
|
181 |
* Register styles and scripts.
|
182 |
* Enqueue them in the frontend function only when we need them.
|
13 |
}
|
14 |
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
/*
|
17 |
* Check if we need to install or upgrade.
|
18 |
* Supports MultiSite since 1.5.2.
|
54 |
add_action( 'wpmu_new_blog', 'gwolle_gb_activate_new_site' );
|
55 |
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
/*
|
58 |
* Register styles and scripts.
|
59 |
* Enqueue them in the frontend function only when we need them.
|
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.6.
|
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.6.
|
36 |
|
37 |
|
38 |
/*
|
@@ -103,26 +103,31 @@ include_once( GWOLLE_GB_DIR . '/frontend/gb-total.php' );
|
|
103 |
include_once( GWOLLE_GB_DIR . '/frontend/gb-widget.php' );
|
104 |
|
105 |
// Functions and pages for the backend
|
106 |
-
|
107 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-
|
108 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-
|
109 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
110 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
111 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
112 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
113 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
114 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-page-
|
115 |
-
include_once( GWOLLE_GB_DIR . '/admin/gb-
|
|
|
|
|
|
|
116 |
include_once( GWOLLE_GB_DIR . '/admin/gb-upgrade.php' );
|
117 |
|
118 |
// Tabs for gb-page-settings.php
|
119 |
-
|
120 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
121 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
122 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
123 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
124 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
125 |
-
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-
|
|
|
|
|
126 |
|
127 |
// General Functions
|
128 |
include_once( GWOLLE_GB_DIR . '/functions/gb-akismet.php' );
|
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.6.6
|
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.6.6');
|
36 |
|
37 |
|
38 |
/*
|
103 |
include_once( GWOLLE_GB_DIR . '/frontend/gb-widget.php' );
|
104 |
|
105 |
// Functions and pages for the backend
|
106 |
+
if ( is_admin() ) {
|
107 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-ajax-management.php' );
|
108 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-dashboard-widget.php' );
|
109 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-add-on.php' );
|
110 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-editor.php' );
|
111 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-entries.php' );
|
112 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-export.php' );
|
113 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-gwolle-gb.php' );
|
114 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-import.php' );
|
115 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-page-settings.php' );
|
116 |
+
include_once( GWOLLE_GB_DIR . '/admin/gb-pagination.php' );
|
117 |
+
include_once( GWOLLE_GB_DIR . '/admin/gwolle-gb-hooks.php' );
|
118 |
+
}
|
119 |
include_once( GWOLLE_GB_DIR . '/admin/gb-upgrade.php' );
|
120 |
|
121 |
// Tabs for gb-page-settings.php
|
122 |
+
if ( is_admin() ) {
|
123 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-formtab.php' );
|
124 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-readingtab.php' );
|
125 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-admintab.php' );
|
126 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-antispamtab.php' );
|
127 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-emailtab.php' );
|
128 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-debugtab.php' );
|
129 |
+
include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-uninstalltab.php' );
|
130 |
+
}
|
131 |
|
132 |
// General Functions
|
133 |
include_once( GWOLLE_GB_DIR . '/functions/gb-akismet.php' );
|
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: 4.9
|
6 |
-
Stable tag: 2.6.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
@@ -416,6 +416,11 @@ But if you don't use standard comments, you can just as easily use the comment s
|
|
416 |
|
417 |
== Changelog ==
|
418 |
|
|
|
|
|
|
|
|
|
|
|
419 |
= 2.6.5 =
|
420 |
* 2018-09-23
|
421 |
* Better CSS for Microsoft browsers.
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, review
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.6.6
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
416 |
|
417 |
== Changelog ==
|
418 |
|
419 |
+
= 2.6.6 =
|
420 |
+
* 2018-10-30
|
421 |
+
* Only load admin files on wp-admin.
|
422 |
+
* Use jQuery to get data from input fields in form.
|
423 |
+
|
424 |
= 2.6.5 =
|
425 |
* 2018-09-23
|
426 |
* Better CSS for Microsoft browsers.
|