GDPR Cookie Compliance - Version 1.1.8

Version Description

Download this release

Release Info

Developer gaspar.nemes
Plugin Icon 128x128 GDPR Cookie Compliance
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

controllers/moove-controller.php CHANGED
@@ -34,6 +34,45 @@ class Moove_GDPR_Controller {
34
  add_editor_style( moove_gdpr_get_plugin_directory_url() . 'dist/styles/custom-editor-style.css' );
35
  }
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  /**
38
  * CSS minification for inlined CSS styles
39
  * @param string $input Inlined styles
34
  add_editor_style( moove_gdpr_get_plugin_directory_url() . 'dist/styles/custom-editor-style.css' );
35
  }
36
 
37
+
38
+ function get_gdpr_plugin_details( $plugin_slug = '' ) {
39
+ $plugin_return = false;
40
+ $wp_repo_plugins = '';
41
+ $wp_response = '';
42
+ $wp_version = get_bloginfo('version');
43
+ if ( $plugin_slug && $wp_version > 3.8 ) :
44
+ $args = array(
45
+ 'author' => 'MooveAgency',
46
+ 'fields' => array(
47
+ 'downloaded' => true,
48
+ 'active_installs' => true,
49
+ 'ratings' => true
50
+ )
51
+ );
52
+ $wp_response = wp_remote_post(
53
+ 'http://api.wordpress.org/plugins/info/1.0/',
54
+ array(
55
+ 'body' => array(
56
+ 'action' => 'query_plugins',
57
+ 'request' => serialize( (object) $args )
58
+ )
59
+ )
60
+ );
61
+ if ( ! is_wp_error( $wp_response ) ) :
62
+ $wp_repo_response = unserialize( wp_remote_retrieve_body( $wp_response ) );
63
+ $wp_repo_plugins = $wp_repo_response->plugins;
64
+ endif;
65
+ if ( $wp_repo_plugins ) :
66
+ foreach ( $wp_repo_plugins as $plugin_details ) :
67
+ if ( $plugin_slug == $plugin_details->slug ) :
68
+ $plugin_return = $plugin_details;
69
+ endif;
70
+ endforeach;
71
+ endif;
72
+ endif;
73
+ return $plugin_return;
74
+ }
75
+
76
  /**
77
  * CSS minification for inlined CSS styles
78
  * @param string $input Inlined styles
dist/images/{moove-logo.png → gdpr-logo.png} RENAMED
File without changes
dist/scripts/admin.js CHANGED
File without changes
dist/scripts/main.js CHANGED
File without changes
dist/styles/admin.css CHANGED
@@ -1 +1 @@
1
- .moove-gdpr-donation-box-wrapper{width:auto;margin:10px 20px 0 2px}.moove-gdpr-donation-box-wrapper .moove-gdpr-donate-form{float:left;margin-right:20px}.moove-gdpr-donation-box-wrapper .moove-donation-box{padding-bottom:20px}.moove-donation-box{position:relative;width:calc(100% - 20px);margin:16px 0;padding:0 15px 10px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:13px}.moove-donation-box .notice-dismiss:before{float:left;margin:0 4px -2px 0}.moove-redirect-box{width:100%}.moove-not-visible{opacity:0;visibility:hidden;position:absolute}.moove-gdpr-form-container input[type=radio].on-off{margin:0}.moove-gdpr-form-container input.iris-colorpicker{text-shadow:1px 0 0 #fff,-1px 0 0 #fff,0 1px 0 #fff,0 -1px 0 #fff,1px 1px #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff;text-transform:uppercase;outline:none!important;box-shadow:none!important;font-weight:700;font-size:14px;border:none;width:120px;height:30px;margin:0;border-top-left-radius:5px;border-bottom-left-radius:5px}.moove-gdpr-form-container .iris-selectbtn{position:relative;background-color:#fff;display:inline-block;padding:0 5px;text-transform:uppercase;font-size:11px;line-height:30px;font-weight:700;float:right;border-top-right-radius:5px;border-bottom-right-radius:5px;cursor:pointer}.moove-gdpr-form-container .iris-colorpicker-group-cnt{display:inline-block;border:1px solid #ddd;border-radius:5px}.moove-gdpr-form-container .iris-picker{position:absolute}.moove-gdpr-form-container .iris-picker:before{content:"";position:fixed;width:100%;height:100%;top:0;left:0}.moove-gdpr-form-container .iris-picker .iris-picker-inner{z-index:100}.moove_gdpr_company_logo_holder{display:inline-block;padding-bottom:50px;width:130px;height:0;background-position:0;background-repeat:no-repeat;background-size:contain}#wp-moove_gdpr_advanced_cookies_tab_content-wrap,#wp-moove_gdpr_cookies_policy_tab_content-wrap,#wp-moove_gdpr_info_bar_content-wrap,#wp-moove_gdpr_performance_cookies_tab_content-wrap,#wp-moove_gdpr_privacy_overview_tab_content-wrap,#wp-moove_gdpr_strict_necessary_cookies_tab_content-wrap,#wp-moove_gdpr_strictly_necessary_cookies_warning-wrap{max-width:570px}span.separator{display:inline-block;margin-left:10px}#moove_form_checker_wrap .gdpr-tab-section-cnt:after{content:"";clear:both;display:table}#moove_form_checker_wrap .nav-tab-wrapper{width:200px;display:inline-block;padding-right:17px;padding-top:0;position:relative}#moove_form_checker_wrap .nav-tab-wrapper a.nav-tab{font-size:12px;padding:10px 8px;width:100%;margin-left:0;outline:none;box-shadow:none;border-right:0;position:relative;white-space:normal;line-height:1.3}#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:focus,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:focus:active,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:hover{border-bottom:1px solid #ccc;color:#00a0d2;outline:none;box-shadow:none}#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:after{content:"";position:absolute;right:-1px;top:0;width:2px;bottom:0;background-color:#f1f1f1}#moove_form_checker_wrap .moove-gdpr-form-container{width:calc(100% - 279px);float:right;padding:5px 30px 30px;border:1px solid #ccc}#moove_gdpr_info_bar_content-html,#moove_gdpr_info_bar_content-tmce{display:none}#moove_form_checker_wrap .moove-gdpr-settings-branding{margin:25px 0;font-style:italic}#moove_form_checker_wrap .moove-gdpr-settings-branding hr{margin:0}#moove_form_checker_wrap .moove-gdpr-settings-branding p{margin:15px 0}#moove_form_checker_wrap .moove-gdpr-settings-branding p span{display:inline-block;background-image:url(../images/moove_logo_br.png);width:66px;height:15px;background-size:contain;background-repeat:no-repeat;background-position:0 100%}#moove_form_checker_wrap .moove-gdpr-settings-branding p a{text-decoration:none;color:inherit}#moove_form_checker_wrap .moove-gdpr-settings-branding p a:hover{text-decoration:underline}.moove-gdpr-form-error .alert.script-error{color:#fff;padding:10px;background-color:red;text-transform:uppercase}
1
+ .moove-gdpr-donation-box-wrapper{width:auto;margin:10px 20px 0 2px}.moove-gdpr-donation-box-wrapper .moove-gdpr-donate-form{float:left;margin-right:20px}.moove-gdpr-donation-box-wrapper .moove-donation-box{padding-bottom:20px}.gdpr-tab-section-cnt{max-width:calc(100% - 380px);display:inline-block;width:100%}.moove-plugins-info-boxes{display:inline-block;float:right;width:350px;background-color:#f1f1f1}.moove-plugins-info-boxes .m-plugin-box{border:1px solid #ccc;margin-bottom:30px;background-color:#fff;border-radius:5px}.moove-plugins-info-boxes .m-plugin-box.m-plugin-box-highlighted{border:2px solid #f79322}.moove-plugins-info-boxes .m-plugin-box .box-header{padding:10px;border-bottom:1px solid #ccc}.moove-plugins-info-boxes .m-plugin-box .box-header h4{font-size:14px;font-weight:600;margin:0}.moove-plugins-info-boxes .m-plugin-box .box-content{padding:10px}.moove-plugins-info-boxes .m-plugin-box .box-content p{margin-top:5px;margin-bottom:5px}.moove-plugins-info-boxes .m-plugin-box .box-content hr{margin:10px 0}.moove-plugins-info-boxes .m-plugin-box .plugin-stats .plugin-active-installs,.moove-plugins-info-boxes .m-plugin-box .plugin-stats .plugin-downloads{display:inline-block;width:calc(100% - 120px);line-height:20px}.moove-plugins-info-boxes .m-plugin-box .plugin-stats .plugin-rating{display:inline-block;float:right;max-width:100px}.moove-plugins-info-boxes .m-plugin-box .plugin-features{padding-left:20px;margin-top:5px}.moove-plugins-info-boxes .m-plugin-box .plugin-features li{list-style-type:square}.moove-plugins-info-boxes .m-plugin-box .plugin-buy-now-btn{display:block;text-decoration:none;outline:none;box-shadow:none;padding:7px 20px;background-color:#f79322;color:#fff;text-align:center;transition:all .3s ease;margin:15px 0;font-weight:600;font-size:12px}.moove-plugins-info-boxes .m-plugin-box .plugin-buy-now-btn:hover{background-color:#232323}@media (max-width:1280px){.gdpr-tab-section-cnt{max-width:100%;display:block;width:100%}.moove-plugins-info-boxes{display:inline-block;float:none;width:100%;padding:0;margin:15px 0;background-color:#f1f1f1}}.moove-donation-box{position:relative;width:calc(100% - 20px);margin:16px 0;padding:0 15px 10px;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:13px}.moove-donation-box .notice-dismiss:before{float:left;margin:0 4px -2px 0}.moove-redirect-box{width:100%}.moove-not-visible{opacity:0;visibility:hidden;position:absolute}.moove-gdpr-form-container input[type=radio].on-off{margin:0}.moove-gdpr-form-container input.iris-colorpicker{text-shadow:1px 0 0 #fff,-1px 0 0 #fff,0 1px 0 #fff,0 -1px 0 #fff,1px 1px #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff;text-transform:uppercase;outline:none!important;box-shadow:none!important;font-weight:700;font-size:14px;border:none;width:120px;height:30px;margin:0;border-top-left-radius:5px;border-bottom-left-radius:5px}.moove-gdpr-form-container .iris-selectbtn{position:relative;background-color:#fff;display:inline-block;padding:0 5px;text-transform:uppercase;font-size:11px;line-height:30px;font-weight:700;float:right;border-top-right-radius:5px;border-bottom-right-radius:5px;cursor:pointer}.moove-gdpr-form-container .iris-colorpicker-group-cnt{display:inline-block;border:1px solid #ddd;border-radius:5px}.moove-gdpr-form-container .iris-picker{position:absolute}.moove-gdpr-form-container .iris-picker:before{content:"";position:fixed;width:100%;height:100%;top:0;left:0}.moove-gdpr-form-container .iris-picker .iris-picker-inner{z-index:100}.moove-clearfix:after{content:"";clear:both;display:table}.moove_gdpr_company_logo_holder{display:inline-block;padding-bottom:50px;width:130px;height:0;background-position:0;background-repeat:no-repeat;background-size:contain}#wp-moove_gdpr_advanced_cookies_tab_content-wrap,#wp-moove_gdpr_cookies_policy_tab_content-wrap,#wp-moove_gdpr_info_bar_content-wrap,#wp-moove_gdpr_performance_cookies_tab_content-wrap,#wp-moove_gdpr_privacy_overview_tab_content-wrap,#wp-moove_gdpr_strict_necessary_cookies_tab_content-wrap,#wp-moove_gdpr_strictly_necessary_cookies_warning-wrap{max-width:570px}span.separator{display:inline-block;margin-left:10px}#moove_form_checker_wrap .gdpr-tab-section-cnt:after{content:"";clear:both;display:table}#moove_form_checker_wrap .nav-tab-wrapper{width:200px;display:inline-block;padding-right:17px;padding-top:0;position:relative}#moove_form_checker_wrap .nav-tab-wrapper a.nav-tab{font-size:12px;padding:10px 8px;width:100%;margin-left:0;outline:none;box-shadow:none;border-right:0;position:relative;white-space:normal;line-height:1.3}#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:focus,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:focus:active,#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:hover{border-bottom:1px solid #ccc;color:#00a0d2;outline:none;box-shadow:none}#moove_form_checker_wrap .nav-tab-wrapper .nav-tab-active:after{content:"";position:absolute;right:-1px;top:0;width:2px;bottom:0;background-color:#f1f1f1}#moove_form_checker_wrap .moove-gdpr-form-container{width:calc(100% - 279px);float:right;padding:5px 30px 30px;border:1px solid #ccc}#moove_gdpr_info_bar_content-html,#moove_gdpr_info_bar_content-tmce{display:none}#moove_form_checker_wrap .moove-gdpr-settings-branding{margin:25px 0;font-style:italic}#moove_form_checker_wrap .moove-gdpr-settings-branding hr{margin:0}#moove_form_checker_wrap .moove-gdpr-settings-branding p{margin:15px 0}#moove_form_checker_wrap .moove-gdpr-settings-branding p span{display:inline-block;background-image:url(../images/moove_logo_br.png);width:66px;height:15px;background-size:contain;background-repeat:no-repeat;background-position:0 100%}#moove_form_checker_wrap .moove-gdpr-settings-branding p a{text-decoration:none;color:inherit}#moove_form_checker_wrap .moove-gdpr-settings-branding p a:hover{text-decoration:underline}.moove-gdpr-form-error .alert.script-error{color:#fff;padding:10px;background-color:red;text-transform:uppercase}
moove-gdpr.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
- * Version: 1.1.7
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
14
  * Text Domain: gdpr-cookie-compliance
15
  */
16
 
17
- define( 'MOOVE_GDPR_VERSION', '1.1.7' );
18
 
19
  register_activation_hook( __FILE__ , 'moove_gdpr_activate' );
20
  register_deactivation_hook( __FILE__ , 'moove_gdpr_deactivate' );
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
+ * Version: 1.1.8
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
14
  * Text Domain: gdpr-cookie-compliance
15
  */
16
 
17
+ define( 'MOOVE_GDPR_VERSION', '1.1.8' );
18
 
19
  register_activation_hook( __FILE__ , 'moove_gdpr_activate' );
20
  register_deactivation_hook( __FILE__ , 'moove_gdpr_deactivate' );
moove-modules.php CHANGED
@@ -36,18 +36,18 @@ class GDPR_Modules {
36
  $modal_options = $this->gdpr_options;
37
  $wpml_lang = $this->wpml_lang;
38
 
39
- $floating_button_visibility = 'display: block;';
40
- $floating_button_class = '';
41
- $infobar_hidden = isset( $modal_options['moove_gdpr_infobar_visibility'] ) && $modal_options['moove_gdpr_infobar_visibility'] === 'hidden' ? true : false;
42
  if ( $infobar_hidden ) :
43
- $floating_button_class = 'button-visible';
44
  endif;
45
-
46
  $data = new stdClass();
47
  $data->options = $modal_options;
48
  $data->wpml_lang = $wpml_lang;
49
  $data->is_enabled = ( isset( $modal_options['moove_gdpr_floating_button_enable'] ) && intval( $modal_options['moove_gdpr_floating_button_enable'] ) === 1 ) ? true : false;
50
- $data->styles = $floating_button_visibility . isset( $modal_options['moove_gdpr_floating_button_position'] ) ? $modal_options['moove_gdpr_floating_button_position'] : '';
51
  $data->class = $floating_button_class;
52
  $data->label = ( isset( $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] ) && $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] ) ? $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] : __('Change cookie settings','gdpr-cookie-compliance');
53
 
@@ -139,7 +139,7 @@ class GDPR_Modules {
139
  $data = new stdClass();
140
  $data->options = $modal_options;
141
  $data->wpml_lang = $wpml_lang;
142
- $data->logo_url = isset( $modal_options['moove_gdpr_company_logo'] ) && $modal_options['moove_gdpr_company_logo'] ? $modal_options['moove_gdpr_company_logo'] : plugin_dir_url( dirname( __FILE__ ) ) . 'dist/images/moove-logo.png';
143
  $data->logo_alt = gdpr_get_logo_alt( $data->logo_url );
144
  return $view_controller->load( 'modal.company-logo', $data );
145
  }
@@ -268,7 +268,7 @@ class GDPR_Modules {
268
  $view_controller = new GDPR_Modules_View();
269
  $modal_options = $this->gdpr_options;
270
  $wpml_lang = $this->wpml_lang;
271
-
272
  if ( isset( $modal_options['moove_gdpr_plugin_font_type'] ) ) :
273
  if ( $modal_options['moove_gdpr_plugin_font_type'] === '1' ) :
274
  $font_family = "'Nunito', sans-serif";
36
  $modal_options = $this->gdpr_options;
37
  $wpml_lang = $this->wpml_lang;
38
 
39
+ $floating_button_visibility = 'display: block;';
40
+ $floating_button_class = '';
41
+ $infobar_hidden = isset( $modal_options['moove_gdpr_infobar_visibility'] ) && $modal_options['moove_gdpr_infobar_visibility'] === 'hidden' ? true : false;
42
  if ( $infobar_hidden ) :
43
+ $floating_button_class = 'button-visible';
44
  endif;
45
+ $floating_button_position = isset( $modal_options['moove_gdpr_floating_button_position'] ) ? $modal_options['moove_gdpr_floating_button_position'] : '';
46
  $data = new stdClass();
47
  $data->options = $modal_options;
48
  $data->wpml_lang = $wpml_lang;
49
  $data->is_enabled = ( isset( $modal_options['moove_gdpr_floating_button_enable'] ) && intval( $modal_options['moove_gdpr_floating_button_enable'] ) === 1 ) ? true : false;
50
+ $data->styles = $floating_button_visibility . $floating_button_position;
51
  $data->class = $floating_button_class;
52
  $data->label = ( isset( $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] ) && $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] ) ? $modal_options['moove_gdpr_floating_button_label'.$wpml_lang] : __('Change cookie settings','gdpr-cookie-compliance');
53
 
139
  $data = new stdClass();
140
  $data->options = $modal_options;
141
  $data->wpml_lang = $wpml_lang;
142
+ $data->logo_url = isset( $modal_options['moove_gdpr_company_logo'] ) && $modal_options['moove_gdpr_company_logo'] ? $modal_options['moove_gdpr_company_logo'] : plugin_dir_url( __FILE__ ) . 'dist/images/gdpr-logo.png';
143
  $data->logo_alt = gdpr_get_logo_alt( $data->logo_url );
144
  return $view_controller->load( 'modal.company-logo', $data );
145
  }
268
  $view_controller = new GDPR_Modules_View();
269
  $modal_options = $this->gdpr_options;
270
  $wpml_lang = $this->wpml_lang;
271
+ $font_family = false;
272
  if ( isset( $modal_options['moove_gdpr_plugin_font_type'] ) ) :
273
  if ( $modal_options['moove_gdpr_plugin_font_type'] === '1' ) :
274
  $font_family = "'Nunito', sans-serif";
readme.txt CHANGED
@@ -95,24 +95,31 @@ Unfortunately no. This plugin is just a template and needs to be setup by your d
95
 
96
  == Screenshots ==
97
 
98
- 1. GDPR Cookie Compliance - Admin - General Settings
99
- 2. GDPR Cookie Compliance - Admin - Banner Settings
100
- 3. GDPR Cookie Compliance - Admin - Floating Button
101
- 4. GDPR Cookie Compliance - Admin - Privacy Overview
102
- 5. GDPR Cookie Compliance - Admin - Strictly Necessary Cookies
103
- 6. GDPR Cookie Compliance - Admin - 3rd Party Cookies
104
- 7. GDPR Cookie Compliance - Admin - Additional Cookies
105
- 8. GDPR Cookie Compliance - Admin - Cookie Policy
106
- 9. GDPR Cookie Compliance - Front-end - Infobar
107
- 10. GDPR Cookie Compliance - Front-end - Privacy Overview
108
- 11. GDPR Cookie Compliance - Front-end - Strictly Necessary Cookies
109
- 12. GDPR Cookie Compliance - Front-end - 3rd Party Cookies
110
- 13. GDPR Cookie Compliance - Front-end - Additional Cookies
111
- 14. GDPR Cookie Compliance - Front-end - Cookie Policy
112
- 15. GDPR Cookie Compliance - Front-end - One Page Layout
 
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
116
  = 1.1.7. =
117
  * Fixed "Third party tab" turn off option
118
 
95
 
96
  == Screenshots ==
97
 
98
+ 1. GDPR Cookie Compliance - Front-end - Privacy Overview
99
+ 2. GDPR Cookie Compliance - Front-end - Strictly Necessary Cookies
100
+ 3. GDPR Cookie Compliance - Front-end - 3rd Party Cookies
101
+ 4. GDPR Cookie Compliance - Front-end - Additional Cookies
102
+ 5. GDPR Cookie Compliance - Front-end - Cookie Policy
103
+ 6. GDPR Cookie Compliance - Front-end - One Page Layout
104
+ 7. GDPR Cookie Compliance - Front-end - Infobar
105
+ 8. GDPR Cookie Compliance - Admin - General Settings
106
+ 9. GDPR Cookie Compliance - Admin - Banner Settings
107
+ 10. GDPR Cookie Compliance - Admin - Floating Button
108
+ 11. GDPR Cookie Compliance - Admin - Privacy Overview
109
+ 12. GDPR Cookie Compliance - Admin - Strictly Necessary Cookies
110
+ 13. GDPR Cookie Compliance - Admin - 3rd Party Cookies
111
+ 14. GDPR Cookie Compliance - Admin - Additional Cookies
112
+ 15. GDPR Cookie Compliance - Admin - Cookie Policy
113
+
114
 
115
  == Changelog ==
116
 
117
+ = 1.1.8. =
118
+ * Improved admin screen with premium, donate, support boxes.
119
+ * Fixed missing logo issue
120
+ * Undefined variable issue fixed
121
+ * Bugfixes
122
+
123
  = 1.1.7. =
124
  * Fixed "Third party tab" turn off option
125
 
views/moove/admin/settings/advanced_cookies.php CHANGED
@@ -87,7 +87,7 @@
87
  <label for="moove_gdpr_advanced_cookies_enable_first_visit"><?php _e('Enable by default','gdpr-cookie-compliance'); ?></label>
88
  </th>
89
  <td>
90
- <input name="moove_gdpr_advanced_cookies_enable_first_visit" type="radio" value="0" id="moove_gdpr_advanced_cookies_enable_first_visit_off" <?php echo isset( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) === 0 ? 'checked' : '' ) : 'checked'; ?> class="on-off"> <label for="moove_gdpr_advanced_cookies_enable_first_visit_off"><?php _e('Disable','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
91
 
92
  <input name="moove_gdpr_advanced_cookies_enable_first_visit" type="radio" value="1" id="moove_gdpr_advanced_cookies_enable_first_visit_on" <?php echo isset( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) === 1 ? 'checked' : '' ) : ''; ?> class="on-off"> <label for="moove_gdpr_advanced_cookies_enable_first_visit_on"><?php _e('Enable','gdpr-cookie-compliance'); ?></label>
93
  </td>
87
  <label for="moove_gdpr_advanced_cookies_enable_first_visit"><?php _e('Enable by default','gdpr-cookie-compliance'); ?></label>
88
  </th>
89
  <td>
90
+ <input name="moove_gdpr_advanced_cookies_enable_first_visit" type="radio" value="0" id="moove_gdpr_advanced_cookies_enable_first_visit_off" <?php echo isset( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? ( ( intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) === 0 || intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) > 1 ) ? 'checked' : '' ) : 'checked'; ?> class="on-off"> <label for="moove_gdpr_advanced_cookies_enable_first_visit_off"><?php _e('Disable','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
91
 
92
  <input name="moove_gdpr_advanced_cookies_enable_first_visit" type="radio" value="1" id="moove_gdpr_advanced_cookies_enable_first_visit_on" <?php echo isset( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) === 1 ? 'checked' : '' ) : ''; ?> class="on-off"> <label for="moove_gdpr_advanced_cookies_enable_first_visit_on"><?php _e('Enable','gdpr-cookie-compliance'); ?></label>
93
  </td>
views/moove/admin/settings/general_settings.php CHANGED
@@ -97,7 +97,7 @@
97
  ?>
98
  <?php
99
  $plugin_dir = moove_gdpr_get_plugin_directory_url();
100
- $image_url = isset( $gdpr_options['moove_gdpr_company_logo'] ) && $gdpr_options['moove_gdpr_company_logo'] ? $gdpr_options['moove_gdpr_company_logo'] : $plugin_dir.'dist/images/moove-logo.png';
101
  ?>
102
  <span class="moove_gdpr_company_logo_holder" style="background-image: url(<?php echo $image_url; ?>);"></span><br /><br />
103
  <input class="regular-text code" type="text" name="moove_gdpr_company_logo" value="<?php echo $image_url; ?>" required> <br /><br />
@@ -247,7 +247,7 @@
247
  </th>
248
  <td>
249
  <textarea name="moove_gdpr_modal_strictly_secondary_notice<?php echo $wpml_lang; ?>" id="moove_gdpr_modal_strictly_secondary_notice" class="regular-text"><?php echo isset( $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] ) && $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] ? $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] : $gdpr_default_content->moove_gdpr_get_secondary_notice() ; ?></textarea>
250
- <p class="description" id="moove_gdpr_modal_strictly_secondary_notice-description" style="max-width: 25em;"><?php _e('This warning message will be displayed if the Strictly necesarry cookies are not enabled and the user try to enable the "Third Party" or "Additional cookies"','gdpr-cookie-compliance'); ?></p>
251
  </td>
252
 
253
  </tr>
97
  ?>
98
  <?php
99
  $plugin_dir = moove_gdpr_get_plugin_directory_url();
100
+ $image_url = isset( $gdpr_options['moove_gdpr_company_logo'] ) && $gdpr_options['moove_gdpr_company_logo'] ? $gdpr_options['moove_gdpr_company_logo'] : $plugin_dir.'dist/images/gdpr-logo.png';
101
  ?>
102
  <span class="moove_gdpr_company_logo_holder" style="background-image: url(<?php echo $image_url; ?>);"></span><br /><br />
103
  <input class="regular-text code" type="text" name="moove_gdpr_company_logo" value="<?php echo $image_url; ?>" required> <br /><br />
247
  </th>
248
  <td>
249
  <textarea name="moove_gdpr_modal_strictly_secondary_notice<?php echo $wpml_lang; ?>" id="moove_gdpr_modal_strictly_secondary_notice" class="regular-text"><?php echo isset( $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] ) && $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] ? $gdpr_options['moove_gdpr_modal_strictly_secondary_notice'.$wpml_lang] : $gdpr_default_content->moove_gdpr_get_secondary_notice() ; ?></textarea>
250
+ <p class="description" id="moove_gdpr_modal_strictly_secondary_notice-description" style="max-width: 25em;"><?php _e('This warning message will be displayed if the Strictly necessary cookies are not enabled and the user try to enable the "Third Party" or "Additional cookies"','gdpr-cookie-compliance'); ?></p>
251
  </td>
252
 
253
  </tr>
views/moove/admin/settings/plugin_boxes.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $gdpr_controller = new Moove_GDPR_Controller();
3
+ $plugin_details = $gdpr_controller->get_gdpr_plugin_details( 'gdpr-cookie-compliance' );
4
+ ?>
5
+ <div class="moove-plugins-info-boxes">
6
+
7
+ <?php ob_start(); ?>
8
+ <div class="m-plugin-box m-plugin-box-highlighted">
9
+ <div class="box-header">
10
+ <h4>Premium Add-On</h4>
11
+ </div>
12
+ <!-- .box-header -->
13
+ <div class="box-content">
14
+ <ul class="plugin-features">
15
+ <li>Includes full-screen layout</li>
16
+ <li>Export & import settings</li>
17
+ <li>WordPress Multisite extension</li>
18
+ <li>Accept cookies on scroll</li>
19
+ </ul>
20
+ <hr />
21
+ <strong>Buy Now for only <span>$29</span></strong>
22
+ <a href="https://www.mooveagency.com/wordpress-plugins/?checkout=8431" target="_blank" class="plugin-buy-now-btn">Buy Now</a>
23
+ </div>
24
+ <!-- .box-content -->
25
+ </div>
26
+ <!-- .m-plugin-box -->
27
+ <?php echo apply_filters( 'gdpr_cookie_compliance_premium_section', ob_get_clean() ); ?>
28
+
29
+ <div class="m-plugin-box">
30
+ <div class="box-header">
31
+ <h4>Help to improve this plugin!</h4>
32
+ </div>
33
+ <!-- .box-header -->
34
+ <div class="box-content">
35
+ <p>Enjoyed this plugin? <br />You can help by <a href="https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/?rate=5#new-post" target="_blank">rating this plugin on wordpress.org.</a></p>
36
+ <hr />
37
+ <?php if ( $plugin_details ) : ?>
38
+ <div class="plugin-stats">
39
+ <div class="plugin-downloads">
40
+ Downloads: <strong><?php echo number_format( $plugin_details->downloaded, 0, '', ','); ?></strong>
41
+ </div>
42
+ <!-- .plugin-downloads -->
43
+ <div class="plugin-active-installs">
44
+ Active installations: <strong><?php echo number_format( $plugin_details->active_installs, 0, '', ','); ?>+</strong>
45
+ </div>
46
+ <!-- .plugin-downloads -->
47
+ <div class="plugin-rating">
48
+ <?php
49
+ $rating_val = $plugin_details->rating * 5 / 100;
50
+ if ( $rating_val > 0 ) :
51
+ $args = array(
52
+ 'rating' => $rating_val,
53
+ 'number' => $plugin_details->num_ratings,
54
+ 'echo' => false
55
+ );
56
+ $rating = wp_star_rating( $args );
57
+ endif;
58
+ ?>
59
+ <?php if ( $rating ) : ?>
60
+ <?php echo $rating; ?>
61
+ <?php endif; ?>
62
+ </div>
63
+ <!-- .plugin-rating -->
64
+ </div>
65
+ <!-- .plugin-stats -->
66
+ <?php endif; ?>
67
+ </div>
68
+ <!-- .box-content -->
69
+ </div>
70
+ <!-- .m-plugin-box -->
71
+
72
+ <?php ob_start(); ?>
73
+ <div class="m-plugin-box">
74
+ <div class="box-header">
75
+ <h4>Donations</h4>
76
+ </div>
77
+ <!-- .box-header -->
78
+ <div class="box-content">
79
+ <p>If you enjoy using this plugin and find it useful, feel free to donate a small amount to show appreciation and help us continue improving and supporting this plugin for free.</p><p>It will make our development team very happy! :)</p>
80
+ <hr />
81
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="moove-gdpr-donate-form">
82
+ <input type="hidden" name="cmd" value="_s-xclick">
83
+ <input type="hidden" name="hosted_button_id" value="LCYMMR4EQ2YVW">
84
+ <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
85
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
86
+ </form>
87
+ <hr />
88
+ <p>Click the 'Donate' button and you will be redirected to Paypal where you can make your donation.</p><p>You don't need to have a Paypal account, you can make donation using your credit card. </p><p> Many thanks.</p>
89
+ </div>
90
+ <!-- .box-content -->
91
+ </div>
92
+ <!-- .m-plugin-box -->
93
+ <?php echo apply_filters( 'gdpr_cookie_compliance_donate_section', ob_get_clean() ); ?>
94
+
95
+ <div class="m-plugin-box">
96
+ <div class="box-header">
97
+ <h4>Need Support?</h4>
98
+ </div>
99
+ <!-- .box-header -->
100
+ <div class="box-content">
101
+ <?php
102
+ $faq_link = apply_filters( 'gdpr_cookie_compliance_faq_section_link', 'https://wordpress.org/plugins/gdpr-cookie-compliance/#faq-header' );
103
+ $forum_link = apply_filters( 'gdpr_cookie_compliance_forum_section_link', 'https://wordpress.org/support/plugin/gdpr-cookie-compliance' );
104
+ ?>
105
+ <p>Read the <a href="<?php echo $faq_link; ?>" target="_blank">FAQ</a> section or check the <a href="<?php echo $forum_link; ?>" target="_blank">Support Forum</a>.</p>
106
+ </div>
107
+ <!-- .box-content -->
108
+ </div>
109
+ <!-- .m-plugin-box -->
110
+
111
+ </div>
112
+ <!-- .moove-plugins-info-boxes -->
views/moove/admin/settings/settings_page.php CHANGED
@@ -1,27 +1,4 @@
1
- <?php ob_start(); ?>
2
- <div class="moove-gdpr-donation-box-wrapper">
3
- <div class="moove-donation-box">
4
- <h3>Donations</h3>
5
-
6
- <p>
7
- If you enjoy using this plugin and find it useful, feel free to donate a small amount to show appreciation and help us continue improving and supporting this plugin for free. It will make our development team very happy! :)
8
- </p>
9
-
10
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" class="moove-gdpr-donate-form">
11
- <input type="hidden" name="cmd" value="_s-xclick">
12
- <input type="hidden" name="hosted_button_id" value="LCYMMR4EQ2YVW">
13
- <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
14
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
15
- </form>
16
-
17
- <p>
18
- Click the 'Donate' button and you will be redirected to Paypal where you can make your donation. You don't need to have a Paypal account, you can make donation using your credit card. <br/> Many thanks.
19
- </p>
20
- </div>
21
- </div>
22
- <?php echo apply_filters( 'gdpr_cookie_compliance_donate_section', ob_get_clean() ); ?>
23
-
24
- <div class="wrap" id="moove_form_checker_wrap">
25
  <h1><?php _e('GDPR Cookie Compliance Plugin Settings','gdpr-cookie-compliance'); ?></h1>
26
  <div id="moove-gdpr-setting-error-settings_updated" class="updated settings-error notice is-dismissible" style="display:none;">
27
  <p><strong><?php _e('Settings saved.','gdpr-cookie-compliance'); ?></strong></p>
@@ -60,7 +37,9 @@
60
  $wpml_lang = $gdpr_default_content->moove_gdpr_get_wpml_lang();
61
  ?>
62
  <br />
 
63
  <div class="gdpr-tab-section-cnt">
 
64
  <h2 class="nav-tab-wrapper">
65
  <a href="?page=moove-gdpr&amp;tab=general_settings" class="nav-tab <?php echo $active_tab == 'general_settings' ? 'nav-tab-active' : ''; ?>">
66
  <?php _e('General Settings','gdpr-cookie-compliance'); ?>
@@ -120,7 +99,12 @@
120
  <!-- moove-form-container -->
121
  </div>
122
  <!-- .gdpr-tab-section-cnt -->
123
-
 
 
 
 
 
124
  <div class="moove-gdpr-settings-branding">
125
  <hr />
126
 
1
+ <div class="wrap moove-clearfix" id="moove_form_checker_wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <h1><?php _e('GDPR Cookie Compliance Plugin Settings','gdpr-cookie-compliance'); ?></h1>
3
  <div id="moove-gdpr-setting-error-settings_updated" class="updated settings-error notice is-dismissible" style="display:none;">
4
  <p><strong><?php _e('Settings saved.','gdpr-cookie-compliance'); ?></strong></p>
37
  $wpml_lang = $gdpr_default_content->moove_gdpr_get_wpml_lang();
38
  ?>
39
  <br />
40
+
41
  <div class="gdpr-tab-section-cnt">
42
+
43
  <h2 class="nav-tab-wrapper">
44
  <a href="?page=moove-gdpr&amp;tab=general_settings" class="nav-tab <?php echo $active_tab == 'general_settings' ? 'nav-tab-active' : ''; ?>">
45
  <?php _e('General Settings','gdpr-cookie-compliance'); ?>
99
  <!-- moove-form-container -->
100
  </div>
101
  <!-- .gdpr-tab-section-cnt -->
102
+ <?php
103
+ $view_cnt = new GDPR_View();
104
+ echo $view_cnt->load( 'moove.admin.settings.plugin_boxes', array() );
105
+ ?>
106
+ <div class="moove-clearfix"></div>
107
+ <!-- .moove-clearfix -->
108
  <div class="moove-gdpr-settings-branding">
109
  <hr />
110
 
views/moove/admin/settings/third_party_cookies.php CHANGED
@@ -76,8 +76,8 @@
76
  <label for="moove_gdpr_third_party_cookies_enable"><?php _e('Turn','gdpr-cookie-compliance'); ?></label>
77
  </th>
78
  <td>
79
- <input name="moove_gdpr_third_party_cookies_enable" type="radio" value="1" id="moove_gdpr_third_party_cookies_enable_on" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) === 1 ? 'checked' : '' ) : 'checked'; ?> class="regular-text on-off"> <label for="moove_gdpr_third_party_cookies_enable_on"><?php _e('On','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
80
- <input name="moove_gdpr_third_party_cookies_enable" type="radio" value="0" id="moove_gdpr_third_party_cookies_enable_off" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) === 0 ? 'checked' : '' ) : 'checked'; ?> class="regular-text on-off"> <label for="moove_gdpr_third_party_cookies_enable_off"><?php _e('Off','gdpr-cookie-compliance'); ?></label>
81
  </td>
82
  </tr>
83
 
@@ -86,9 +86,9 @@
86
  <label for="moove_gdpr_third_party_cookies_enable_first_visit"><?php _e('Enable by default','gdpr-cookie-compliance'); ?></label>
87
  </th>
88
  <td>
89
- <input name="moove_gdpr_third_party_cookies_enable_first_visit" type="radio" value="0" id="moove_gdpr_third_party_cookies_enable_first_visit_off" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) === 0 ? 'checked' : '' ) : 'checked'; ?> class="regular-text on-off"> <label for="moove_gdpr_third_party_cookies_enable_first_visit_off"><?php _e('Disable','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
90
 
91
- <input name="moove_gdpr_third_party_cookies_enable_first_visit" type="radio" value="1" id="moove_gdpr_third_party_cookies_enable_first_visit_on" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) === 1 ? 'checked' : '' ) : ''; ?> class="regular-text on-off"> <label for="moove_gdpr_third_party_cookies_enable_first_visit_on"><?php _e('Enable','gdpr-cookie-compliance'); ?></label>
92
  </td>
93
  </tr>
94
 
76
  <label for="moove_gdpr_third_party_cookies_enable"><?php _e('Turn','gdpr-cookie-compliance'); ?></label>
77
  </th>
78
  <td>
79
+ <input name="moove_gdpr_third_party_cookies_enable" type="radio" value="1" id="moove_gdpr_third_party_cookies_enable_on" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) === 1 ? 'checked' : '' ) : 'checked'; ?> class="on-off"> <label for="moove_gdpr_third_party_cookies_enable_on"><?php _e('On','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
80
+ <input name="moove_gdpr_third_party_cookies_enable" type="radio" value="0" id="moove_gdpr_third_party_cookies_enable_off" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable'] ) === 0 ? 'checked' : '' ) : 'checked'; ?> class="on-off"> <label for="moove_gdpr_third_party_cookies_enable_off"><?php _e('Off','gdpr-cookie-compliance'); ?></label>
81
  </td>
82
  </tr>
83
 
86
  <label for="moove_gdpr_third_party_cookies_enable_first_visit"><?php _e('Enable by default','gdpr-cookie-compliance'); ?></label>
87
  </th>
88
  <td>
89
+ <input name="moove_gdpr_third_party_cookies_enable_first_visit" type="radio" value="0" id="moove_gdpr_third_party_cookies_enable_first_visit_off" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? ( ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) === 0 || intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) > 1 ) ? 'checked' : '' ) : 'checked'; ?> class="on-off"> <label for="moove_gdpr_third_party_cookies_enable_first_visit_off"><?php _e('Disable','gdpr-cookie-compliance'); ?></label> <span class="separator"></span>
90
 
91
+ <input name="moove_gdpr_third_party_cookies_enable_first_visit" type="radio" value="1" id="moove_gdpr_third_party_cookies_enable_first_visit_on" <?php echo isset( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? ( intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) === 1 ? 'checked' : '' ) : ''; ?> class="on-off"> <label for="moove_gdpr_third_party_cookies_enable_first_visit_on"><?php _e('Enable','gdpr-cookie-compliance'); ?></label>
92
  </td>
93
  </tr>
94