-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcookie-wall.php
34 lines (29 loc) · 1.31 KB
/
cookie-wall.php
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
<?php
/*
Plugin Name: Cookie Wall
Plugin URI: https://tropicaljuice.nl/
Description: This plugin add's a simple cookie wall to comply with Dutch Cookie-laws. This plugin can be used when there is not 'light' version availble of the website withouth cookies and 3rd-party embeds.
Version: 1.1.3
Author: Tropical Juice
Author URI: https://tropicaljuice.nl/
Text Domain: tropical_cookiewall
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
if (! defined('ABSPATH')) {
exit;
}
define('COOKIE_WALL_VERSION', '1.1.3');
define('COOKIE_WALL_MIN_WP_VERSION', '3.7');
define('COOKIE_WALL_TEXT_DOMAIN', 'tropical_cookiewall');
define('COOKIE_WALL_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
define('COOKIE_WALL_PLUGIN_DIR', basename(dirname(__FILE__)));
define('COOKIE_WALL_PLUGIN_URI', plugin_dir_url(__FILE__));
define('COOKIE_WALL_PLUGIN_FILE_NAME', plugin_basename(__FILE__));
require_once(COOKIE_WALL_PLUGIN_DIR_PATH . 'class.cookie-wall.php');
add_action('wp_loaded', array( 'CookieWall', 'init' ));
if (is_admin() || (defined('WP_CLI') && WP_CLI)) {
require_once(COOKIE_WALL_PLUGIN_DIR_PATH . 'class.cookie-wall-admin-settings.php');
require_once(COOKIE_WALL_PLUGIN_DIR_PATH . 'class.cookie-wall-admin.php');
add_action('init', array( 'CookieWallAdmin', 'init' ));
}