This repository was archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheu-cookie-law.php
More file actions
48 lines (38 loc) · 1.57 KB
/
eu-cookie-law.php
File metadata and controls
48 lines (38 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*
Plugin Name: EU Cookie Law
Plugin URI: https://wordpress.org/plugins/eu-cookie-law/
Description: EU Cookie Law informs users that your site uses cookies, with option to lock scripts before consent. Light + Customizable style.
Version: 2.9.3
Author: Alex Moss, Marco Milesi, Peadig, Shane Jones
Author URI: https://wordpress.org/plugins/eu-cookie-law/
Contributors: alexmoss, Milmor, peer, ShaneJones
Text Domain: eu-cookie-law
*/
function eucookie_start() {
load_plugin_textdomain( 'eu-cookie-law' );
if ( is_admin() ) {
require 'class-admin.php';
} else {
require 'class-frontend.php';
}
} add_action('init', 'eucookie_start');
function ecl_action_admin_init() {
$arraya_ecl_v = get_plugin_data ( __FILE__ );
$new_version = $arraya_ecl_v['Version'];
if ( version_compare($new_version, get_option('ecl_version_number') ) == 1 ) {
ecl_check_defaults();
update_option( 'ecl_version_number', $new_version );
}
if ( eucookie_option('tinymcebutton') ) {
require 'inc/tinymce.php';
}
$eda = __('EU Cookie Law informs users that your site uses cookies, with option to lock scripts before consent. Light + Customizable style.', 'eu-cookie-law');
} add_action('admin_init', 'ecl_action_admin_init');
function ecl_check_defaults() { require 'defaults.php'; }
function eucookie_option($name) {
$options = get_option('peadig_eucookie');
if ( isset( $options[$name] ) ) { return $options[$name]; }
return false;
}
?>