PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.3.11
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.3.11
4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 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.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 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.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / src / admin_notices / Cookiebot_Bf_Notice.php
cookiebot / src / admin_notices Last commit date
Cookiebot_Base_Notice.php 2 years ago Cookiebot_Bf_Notice.php 1 year ago Cookiebot_Notices.php 1 year ago Cookiebot_Recommendation_Notice.php 2 years ago Cookiebot_Temp_Notice.php 2 years ago
Cookiebot_Bf_Notice.php
59 lines
1 <?php
2
3 namespace cybot\cookiebot\admin_notices;
4
5 use function cybot\cookiebot\lib\get_view_html;
6
7 class Cookiebot_Bf_Notice extends Cookiebot_Base_Notice {
8 const COOKIEBOT_NOTICE_OPTION_KEY = 'cookiebot_bf_notice';
9 const COOKIEBOT_NOTICE_TEMPLATE_PATH = 'admin/notices/cookiebot-bf-notice.php';
10 const COOKIEBOT_NOTICE_LINK_TEMPLATE_PATH = 'admin/notices/cookiebot-notice-single-cta.php';
11
12 const COOKIEBOT_NOTICE_TIMES = array(
13 'later' => array(
14 'msg' => 'Never show again is clicked',
15 'action' => 'hide_view_notice',
16 'name' => 'view_nonce',
17 'time' => 'hide',
18 ),
19 'hide' => array(
20 'msg' => 'Never show again is clicked',
21 'action' => 'hide_view_notice',
22 'name' => 'view_nonce',
23 'time' => 'hide',
24 ),
25 );
26
27 const COOKIEBOT_NOTICE_TIMES_REVERT = true;
28
29 public function __construct() {
30 parent::__construct();
31 if ( get_option( self::COOKIEBOT_NOTICE_OPTION_KEY, false ) === false ) {
32 add_option( self::COOKIEBOT_NOTICE_OPTION_KEY, strtotime( '2024-12-03' ) );
33 }
34 }
35
36 public function get_link_html() {
37 return get_view_html(
38 static::COOKIEBOT_NOTICE_LINK_TEMPLATE_PATH,
39 array(
40 'url' => 'https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner',
41 'text' => __( 'Sign up now', 'cookiebot' ),
42 )
43 );
44 }
45
46 public function define_translations() {
47 $this->translations = array(
48 'title' => __(
49 'Get 10% off for 6 months',
50 'cookiebot'
51 ),
52 'msg' => __(
53 'Limited offer for new users! Sign up by Dec 2, 2024, to get a 10% discount for the first 6 months.',
54 'cookiebot'
55 ),
56 );
57 }
58 }
59