real-cookie-banner
Last commit date
inc
2 years ago
languages
2 years ago
public
2 years ago
vendor
2 years ago
CHANGELOG.md
2 years ago
LICENSE
5 years ago
LICENSE_3RD_PARTY_JS.md
5 years ago
LICENSE_3RD_PARTY_PHP.md
2 years ago
README.txt
2 years ago
index.php
2 years ago
uninstall.php
2 years ago
wpml-config.xml
2 years ago
index.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Main file for WordPress. |
| 4 | * |
| 5 | * @wordpress-plugin |
| 6 | * Plugin Name: Real Cookie Banner (Free) |
| 7 | * Plugin URI: https://devowl.io/wordpress-real-cookie-banner/ |
| 8 | * Description: Obtain GDPR (DSGVO) and ePrivacy (EU cookie law) compliant opt-in consent. Find cookies and fill all legal information in your cookie banner. More than just a cookie notice! |
| 9 | * Author: devowl.io |
| 10 | * Author URI: https://devowl.io |
| 11 | * Version: 4.4.1 |
| 12 | * Text Domain: real-cookie-banner |
| 13 | * Domain Path: /languages |
| 14 | */ |
| 15 | |
| 16 | defined('ABSPATH') or die('No script kiddies please!'); // Avoid direct file request |
| 17 | |
| 18 | /** |
| 19 | * Plugin constants. This file is procedural coding style for initialization of |
| 20 | * the plugin core and definition of plugin configuration. |
| 21 | */ |
| 22 | if (defined('RCB_PATH')) { |
| 23 | require_once __DIR__ . '/inc/base/others/fallback-already.php'; |
| 24 | return; |
| 25 | } |
| 26 | define('RCB_FILE', __FILE__); |
| 27 | define('RCB_PATH', dirname(RCB_FILE)); |
| 28 | define('RCB_ROOT_SLUG', 'devowl-wp'); |
| 29 | define('RCB_SLUG', basename(RCB_PATH)); |
| 30 | define('RCB_INC', RCB_PATH . '/inc/'); |
| 31 | define('RCB_MIN_PHP', '7.4.0'); // Minimum of PHP 5.3 required for autoloading and namespacing |
| 32 | define('RCB_MIN_WP', '5.8.0'); // Minimum of WordPress 5.0 required |
| 33 | define('RCB_NS', 'DevOwl\\RealCookieBanner'); |
| 34 | define('RCB_DB_PREFIX', 'rcb'); // The table name prefix wp_{prefix} |
| 35 | define('RCB_OPT_PREFIX', 'rcb'); // The option name prefix in wp_options |
| 36 | define('RCB_SLUG_CAMELCASE', lcfirst(str_replace('-', '', ucwords(RCB_SLUG, '-')))); |
| 37 | //define('RCB_TD', ''); This constant is defined in the core class. Use this constant in all your __() methods |
| 38 | //define('RCB_VERSION', ''); This constant is defined in the core class |
| 39 | //define('RCB_DEBUG', true); This constant should be defined in wp-config.php to enable the Base#debug() method |
| 40 | |
| 41 | define('RCB_SLUG_PRO', 'real-cookie-banner-pro'); |
| 42 | define('RCB_SLUG_LITE', 'real-cookie-banner'); |
| 43 | // define('RCB_PRO_VERSION', 'https://devowl.io/go/real-cookie-banner?source=rcb-lite'); This constant is defined in the core class |
| 44 | |
| 45 | // Check PHP Version and print notice if minimum not reached, otherwise start the plugin core |
| 46 | require_once RCB_INC . |
| 47 | 'base/others/' . |
| 48 | (version_compare(phpversion(), RCB_MIN_PHP, '>=') ? 'start.php' : 'fallback-php-version.php'); |
| 49 |