| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Avacy: GDPR Consent Solution, Cookie Banner and more |
| 4 |
Plugin URI: https://avacysolution.com/ |
| 5 |
Description: Avacy's compliance plugin offers an all-in-one, easy solution for a GDPR compliant website, with features verified by experienced lawyers. |
| 6 |
Version: 1.3.1 |
| 7 |
Contributors: jumptech |
| 8 |
Author: Jump Group |
| 9 |
Tags: consent, cookie, cookie banner, tracking, privacy, gdpr, cookie consent, cookie notice, privacy policy |
| 10 |
Requires at least: 5.3 |
| 11 |
Tested up to: 7.0 |
| 12 |
PHP: 7.4 |
| 13 |
Stable tag: 1.3.1 |
| 14 |
License: GPL-2.0-or-later |
| 15 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 16 |
Text Domain: avacy |
| 17 |
Domain Path: /languages |
| 18 |
*/ |
| 19 |
|
| 20 |
namespace Jumpgroup\Avacy; |
| 21 |
|
| 22 |
if ( ! defined( 'ABSPATH' ) ) { |
| 23 |
exit; // Exit if accessed directly. |
| 24 |
} |
| 25 |
|
| 26 |
use Jumpgroup\Avacy\Translations; |
| 27 |
use Jumpgroup\Avacy\DefineConstants; |
| 28 |
use Jumpgroup\Avacy\SendFormsToConsentSolution; |
| 29 |
use Jumpgroup\Avacy\AddAdminInterface; |
| 30 |
use Jumpgroup\Avacy\PreemptiveBlock; |
| 31 |
use Jumpgroup\Avacy\EnqueueBanner; |
| 32 |
use Jumpgroup\Avacy\Integrations\WpConsentApi; |
| 33 |
|
| 34 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 35 |
|
| 36 |
if (!defined('WPINC')) { |
| 37 |
die; |
| 38 |
} |
| 39 |
|
| 40 |
global $api_base_url; |
| 41 |
$api_base_url = 'https://api.avacy.eu'; |
| 42 |
|
| 43 |
class Init |
| 44 |
{ |
| 45 |
|
| 46 |
protected static $instance; |
| 47 |
|
| 48 |
public static function get_instance() |
| 49 |
{ |
| 50 |
if (null == self::$instance) { |
| 51 |
self::$instance = new self(); |
| 52 |
} |
| 53 |
return self::$instance; |
| 54 |
} |
| 55 |
|
| 56 |
protected function __construct() |
| 57 |
{ |
| 58 |
define( 'AVACY_PLUGIN_BASE_PATH', plugin_basename( __FILE__ ) ); |
| 59 |
define( 'AVACY_PLUGIN_BASE_REL_PATH', dirname( AVACY_PLUGIN_BASE_PATH ) . '/' ); |
| 60 |
Translations::init(); |
| 61 |
DefineConstants::init(); |
| 62 |
SendFormsToConsentSolution::init(); |
| 63 |
AddAdminInterface::init(); |
| 64 |
if(!empty(get_option('avacy_show_banner'))) { |
| 65 |
EnqueueBanner::init(); |
| 66 |
} |
| 67 |
if(!empty(get_option('avacy_enable_preemptive_block'))) { |
| 68 |
PreemptiveBlock::init(); |
| 69 |
} |
| 70 |
WpConsentApi::init(); |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
$instance = Init::get_instance(); |
| 75 |
|