PluginProbe ʕ •ᴥ•ʔ
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law / 4.10.6
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law v4.10.6
5.0.14 5.0.13 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.10.0 4.10.1 4.10.2 4.10.3 4.10.4 4.10.5 4.10.6 4.11.0 4.11.1 4.11.2 4.12.0 4.12.1 4.12.2 4.12.3 4.12.4 4.12.5 4.12.6 4.12.7 4.12.8 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.15.0 4.15.1 4.15.10 4.15.2 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.1 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.5.0 4.5.1 4.5.10 4.5.11 4.5.12 4.5.13 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.8.0 4.8.1 4.8.10 4.8.11 4.8.12 4.8.13 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 5.0.0 5.0.1 5.0.10 5.0.11 5.0.12 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2
gdpr-cookie-compliance / moove-gdpr.php
gdpr-cookie-compliance Last commit date
controllers 3 years ago dist 3 years ago gdpr-modules 3 years ago languages 3 years ago views 3 years ago class-gdpr-modules-view.php 3 years ago class-gdpr-modules.php 3 years ago class-gdpr-view.php 3 years ago class-moove-gdpr-actions.php 3 years ago class-moove-gdpr-content.php 3 years ago class-moove-gdpr-options.php 3 years ago gdpr-functions.php 3 years ago moove-gdpr.php 3 years ago readme.txt 3 years ago
moove-gdpr.php
157 lines
1 <?php
2 /**
3 * Contributors: MooveAgency
4 * Plugin Name: GDPR Cookie Compliance
5 * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
6 * Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, CCPA, PIPEDA, AAP, LGPD and others.
7 * Version: 4.10.6
8 * Author: Moove Agency
9 * Domain Path: /languages
10 * Author URI: https://www.mooveagency.com
11 * License: GPLv3
12 * Text Domain: gdpr-cookie-compliance
13 *
14 * @package gdpr-cookie-compliance
15 */
16
17 if ( ! defined( 'ABSPATH' ) ) {
18 exit;
19 } // Exit if accessed directly
20
21 define( 'MOOVE_GDPR_VERSION', '4.10.6' );
22 if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
23 define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
24 endif;
25
26 register_activation_hook( __FILE__, 'moove_gdpr_activate' );
27 register_deactivation_hook( __FILE__, 'moove_gdpr_deactivate' );
28
29 /**
30 * Functions on plugin activation, create relevant pages and defaults for settings page.
31 */
32 function moove_gdpr_activate() {
33 delete_option( 'gdpr_cc_db_created' );
34 }
35
36 /**
37 * Function on plugin deactivation. It removes the pages created before.
38 */
39 function moove_gdpr_deactivate() {
40 try {
41 if ( class_exists( 'Moove_GDPR_License_Manager' ) ) :
42 $gdpr_default_content = new Moove_GDPR_Content();
43 $option_key = $gdpr_default_content->moove_gdpr_get_key_name();
44 $gdpr_key = $gdpr_default_content->gdpr_get_activation_key( $option_key );
45
46 if ( $gdpr_key && isset( $gdpr_key['key'] ) && isset( $gdpr_key['activation'] ) ) :
47 $license_manager = new Moove_GDPR_License_Manager();
48 $validate_license = $license_manager->validate_license( $gdpr_key['key'], 'gdpr', 'deactivate' );
49 if ( $validate_license && isset( $validate_license['valid'] ) && true === $validate_license['valid'] ) :
50 update_option(
51 $option_key,
52 array(
53 'key' => $gdpr_key['key'],
54 'deactivation' => strtotime( 'now' ),
55 )
56 );
57 endif;
58 endif;
59 endif;
60 } catch (Exception $e) {
61
62 }
63 }
64
65 /**
66 * Loading Text Domain - for translations & localizations
67 */
68 add_action( 'plugins_loaded', 'moove_gdpr_load_textdomain' );
69 /**
70 * Loading text domain
71 */
72 function moove_gdpr_load_textdomain() {
73 load_plugin_textdomain( 'gdpr-cookie-compliance', false, basename( dirname( __FILE__ ) ) . '/languages' );
74 }
75
76 /**
77 * Loading Core files after all the plugins are loaded!
78 */
79 add_action( 'plugins_loaded', 'gdpr_cookie_compliance_load_libs' );
80
81 /**
82 * Star rating on the plugin listing page
83 */
84 if ( ! function_exists( 'gdpr_cookie_add_plugin_meta_links' ) ) {
85 /**
86 * Meta links visible in plugins page
87 *
88 * @param array $meta_fields Meta fields.
89 * @param string $file Plugin path.
90 */
91 function gdpr_cookie_add_plugin_meta_links( $meta_fields, $file ) {
92 if ( plugin_basename( __FILE__ ) === $file ) :
93 $plugin_url = 'https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/?rate=5#new-post';
94 $meta_fields[] = "<a href='" . esc_url( $plugin_url ) . "' target='_blank' title='" . esc_html__( 'Rate', 'gdpr-cookie-compliance' ) . "'>
95 <i class='gdpr-plugin-star-rating'>"
96 . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
97 . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
98 . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
99 . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
100 . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
101 . '</i></a>';
102
103 endif;
104 return $meta_fields;
105 }
106 }
107 add_filter( 'plugin_row_meta', 'gdpr_cookie_add_plugin_meta_links', 10, 2 );
108 /**
109 * Loading assets
110 */
111 function gdpr_cookie_compliance_load_libs() {
112 /**
113 * Database Controller
114 */
115 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-db-controller.php';
116
117 /**
118 * View
119 */
120 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-view.php';
121
122 /**
123 * Modules View
124 */
125 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules-view.php';
126 /**
127 * Modules
128 */
129 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules.php';
130
131 /**
132 * Content
133 */
134 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-content.php';
135
136 /**
137 * Options page
138 */
139 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-options.php';
140
141 /**
142 * Controllers
143 */
144 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-controller.php';
145 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-license-manager.php';
146
147 /**
148 * Custom Functions
149 */
150 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'gdpr-functions.php';
151
152 /**
153 * Actions
154 */
155 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-actions.php';
156 }
157