PluginProbe ʕ •ᴥ•ʔ
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law / 4.4.8
GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law v4.4.8
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 5 years ago dist 5 years ago gdpr-modules 5 years ago languages 5 years ago views 5 years ago class-gdpr-modules-view.php 5 years ago class-gdpr-modules.php 5 years ago class-gdpr-view.php 5 years ago class-moove-gdpr-actions.php 5 years ago class-moove-gdpr-content.php 5 years ago class-moove-gdpr-options.php 5 years ago gdpr-functions.php 5 years ago moove-gdpr.php 5 years ago readme.txt 5 years ago
moove-gdpr.php
167 lines
1 <?php
2 /**
3 * Contributors: MooveAgency
4 * Plugin Name: GDPR Cookie Compliance (CCPA, PIPEDA ready)
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, PIPEDA, CCPA, AAP, LGPD and others.
7 * Version: 4.4.8
8 * Author: Moove Agency
9 * Domain Path: /languages
10 * Author URI: https://www.mooveagency.com
11 * License: GPLv2
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.4.8' );
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
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 = function_exists( 'get_site_option' ) ? get_site_option( $option_key ) : get_option( $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 if ( function_exists( 'update_site_option' ) ) :
51 update_site_option(
52 $option_key,
53 array(
54 'key' => $gdpr_key['key'],
55 'deactivation' => strtotime( 'now' ),
56 )
57 );
58 else :
59 update_option(
60 $option_key,
61 array(
62 'key' => $gdpr_key['key'],
63 'deactivation' => strtotime( 'now' ),
64 )
65 );
66 endif;
67 endif;
68 endif;
69 endif;
70 } catch (Exception $e) {
71
72 }
73 }
74
75 /**
76 * Loading Text Domain - for translations & localizations
77 */
78 add_action( 'plugins_loaded', 'moove_gdpr_load_textdomain' );
79 /**
80 * Loading text domain
81 */
82 function moove_gdpr_load_textdomain() {
83 load_plugin_textdomain( 'gdpr-cookie-compliance', false, basename( dirname( __FILE__ ) ) . '/languages' );
84 }
85
86 /**
87 * Loading Core files after all the plugins are loaded!
88 */
89 add_action( 'plugins_loaded', 'gdpr_cookie_compliance_load_libs' );
90
91 /**
92 * Star rating on the plugin listing page
93 */
94 if ( ! function_exists( 'gdpr_cookie_add_plugin_meta_links' ) ) {
95 /**
96 * Meta links visible in plugins page
97 *
98 * @param array $meta_fields Meta fields.
99 * @param string $file Plugin path.
100 */
101 function gdpr_cookie_add_plugin_meta_links( $meta_fields, $file ) {
102 if ( plugin_basename( __FILE__ ) === $file ) :
103 $plugin_url = 'https://wordpress.org/support/plugin/gdpr-cookie-compliance/reviews/?rate=5#new-post';
104 $meta_fields[] = "<a href='" . esc_url( $plugin_url ) . "' target='_blank' title='" . esc_html__( 'Rate', 'gdpr-cookie-compliance' ) . "'>
105 <i class='gdpr-plugin-star-rating'>"
106 . "<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>"
107 . "<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>"
108 . "<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>"
109 . "<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>"
110 . "<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>"
111 . '</i></a>';
112
113 endif;
114 return $meta_fields;
115 }
116 }
117 add_filter( 'plugin_row_meta', 'gdpr_cookie_add_plugin_meta_links', 10, 2 );
118 /**
119 * Loading assets
120 */
121 function gdpr_cookie_compliance_load_libs() {
122 /**
123 * Database Controller
124 */
125 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-db-controller.php';
126
127 /**
128 * View
129 */
130 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-view.php';
131
132 /**
133 * Modules View
134 */
135 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules-view.php';
136 /**
137 * Modules
138 */
139 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules.php';
140
141 /**
142 * Content
143 */
144 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-content.php';
145
146 /**
147 * Options page
148 */
149 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-options.php';
150
151 /**
152 * Controllers
153 */
154 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-controller.php';
155 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-license-manager.php';
156
157 /**
158 * Actions
159 */
160 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-actions.php';
161
162 /**
163 * Custom Functions
164 */
165 include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'gdpr-functions.php';
166 }
167