Changeset 3200631
- Timestamp:
- 12/02/2024 07:25:56 AM (16 months ago)
- Location:
- cookiebot
- Files:
-
- 3 added
- 3 deleted
- 19 edited
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
assets/icon-128x128.gif (deleted)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.gif (deleted)
-
assets/icon-256x256.png (added)
-
assets/icon.svg (added)
-
trunk/assets/css/backend/dashboard_page.css (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/admin_notices/Cookiebot_Base_Notice.php (modified) (3 diffs)
-
trunk/src/admin_notices/Cookiebot_Bf_Notice.php (deleted)
-
trunk/src/admin_notices/Cookiebot_Notices.php (modified) (3 diffs)
-
trunk/src/lib/Cookiebot_Admin_Links.php (modified) (2 diffs)
-
trunk/src/lib/Cookiebot_WP.php (modified) (3 diffs)
-
trunk/src/settings/Menu_Settings.php (modified) (1 diff)
-
trunk/src/settings/Network_Menu_Settings.php (modified) (1 diff)
-
trunk/src/settings/pages/Settings_Page.php (modified) (1 diff)
-
trunk/src/view/admin/settings/dashboard-page.php (modified) (5 diffs)
-
trunk/src/view/admin/settings/gtm-page.php (modified) (1 diff)
-
trunk/src/view/admin/settings/network-settings-page.php (modified) (2 diffs)
-
trunk/src/view/admin/settings/settings-page.php (modified) (2 diffs)
-
trunk/src/view/admin/settings/support-page.php (modified) (2 diffs)
-
trunk/src/view/admin/templates/extra/review-form.php (modified) (1 diff)
-
trunk/src/view/admin/templates/header.php (modified) (1 diff)
-
trunk/src/view/frontend/scripts/cookiebot-js.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cookiebot/trunk/assets/css/backend/dashboard_page.css
r3192881 r3200631 2 2 display: grid; 3 3 grid-template-columns: repeat(1, minmax(100px, 1fr)); 4 grid-template-rows: auto auto minmax(475px, auto);4 grid-template-rows: repeat(3, minmax(100px, 1fr)); 5 5 grid-column-gap: 30px; 6 6 grid-row-gap: 30px; … … 43 43 } 44 44 45 .cb-main__card__inner.account_card, .cb-main__card__inner.new_card { 46 position: relative; 47 background-color: #00a2ff; 48 border-radius: 10px; 45 .cb-main__card__inner.account_card { 46 position: relative; 47 background-image: url(../../img/existing-account.png); 48 background-size: cover; 49 background-position: center center; 50 } 51 52 .cb-main__card__inner.account_card:before { 53 content: ''; 54 position: absolute; 55 width: 100%; 56 height: 100%; 57 background: rgb(0,205,172); 58 background: -moz-linear-gradient(58deg, rgba(0,205,172,1) 0%, rgba(16,50,207,1) 100%); 59 background: -webkit-linear-gradient(58deg, rgba(0,205,172,1) 0%, rgba(16,50,207,1) 100%); 60 background: linear-gradient(58deg, rgba(0,205,172,1) 0%, rgba(16,50,207,1) 100%); 61 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00cdac",endColorstr="#1032cf",GradientType=1); 62 z-index: 0; 63 opacity: .7; 64 } 65 66 .cb-main__card__inner.new_card { 67 position: relative; 68 background-image: url(../../img/new-account.png); 69 background-size: cover; 70 background-position: center center; 71 } 72 73 .cb-main__card__inner.new_card:before { 74 content: ''; 75 position: absolute; 76 width: 100%; 77 height: 100%; 78 background: rgb(16,50,207); 79 background: -moz-linear-gradient(0deg, rgba(16,50,207,1) 20%, rgba(16,50,207,0) 100%); 80 background: -webkit-linear-gradient(0deg, rgba(16,50,207,1) 20%, rgba(16,50,207,0) 100%); 81 background: linear-gradient(0deg, rgba(16,50,207,1) 20%, rgba(16,50,207,0) 100%); 82 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1032cf",endColorstr="#1032cf",GradientType=1); 83 z-index: 0; 84 opacity: .7; 49 85 } 50 86 … … 58 94 } 59 95 60 .cb-main__card__inner.account_card .cb-main__card__content, 61 .cb-main__card__inner.new_card .cb-main__card__content { 62 display: grid; 63 grid-template-columns: 1fr minmax(86px, auto); 64 grid-template-rows: minmax(120px, auto) auto; 65 grid-column-gap: 25px; 66 align-items: end; 67 } 68 69 .cb-main__card__inner.account_card .cb-btn.cb-main-btn, 70 .cb-main__card__inner.new_card .cb-btn.cb-main-btn { 71 background-color: #000000; 96 .cb-main__card__title { 72 97 color: #ffffff; 73 grid-row: 2;74 grid-column: span 2;75 text-align: center;76 text-transform: uppercase;77 margin-top: 0;78 }79 80 .cb-main__card__title {81 color: #000000;82 98 font-size: 30px; 83 99 line-height: 32px; 84 100 margin: 0; 85 101 width: 100%; 86 } 87 88 .cb-main__card__inner.account_card .cb-main__card__title, 89 .cb-main__card__inner.new_card .cb-main__card__title { 90 font-size: 28px; 91 line-height: 30px; 92 margin-bottom: 25px; 102 max-width: 300px; 93 103 } 94 104 … … 213 223 .cb-main__dashboard__promo { 214 224 position: relative; 215 border-radius: 10px;225 border-radius: 25px; 216 226 overflow: hidden; 217 box-shadow: 0px 5px 15px #ddd;218 background-color: #000000;219 227 } 220 228 221 229 .cb-main__dashboard__promo--inner { 222 display: grid; 223 grid-template-columns: .6fr .4fr; 224 grid-column-gap: 40px; 225 } 226 227 .cb-main__dashboard__promo--content { 228 display: grid; 229 grid-row-gap: 60px; 230 padding: 45px 0 45px 60px; 230 position: relative; 231 padding: 50px 65px 20px; 232 background: rgb(10,20,62); 233 background: -moz-linear-gradient(90deg, rgba(10,20,62,1) 50%, rgba(10,20,62,0.5046393557422969) 100%); 234 background: -webkit-linear-gradient(90deg, rgba(10,20,62,1) 50%, rgba(10,20,62,0.5046393557422969) 100%); 235 background: linear-gradient(90deg, rgba(10,20,62,1) 50%, rgba(10,20,62,0.5046393557422969) 100%); 236 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0a143e",endColorstr="#0a143e",GradientType=1); 237 z-index: 1; 238 height: 100%; 239 } 240 241 .cb-main__dashboard__promo:before { 242 content: ''; 243 position: absolute; 244 width: 50%; 245 height: 100%; 246 background-position: -40px center; 247 background-size: auto 100%; 248 top: 0; 249 right: 0; 250 z-index: 0; 231 251 } 232 252 233 253 .cb-dashboard__promo--label { 234 color: # ffffff;254 color: #F4C20E; 235 255 font-size: 15px; 236 line-height: 17px;256 line-height: 24px; 237 257 font-weight: 700; 238 text-transform: uppercase; 258 display: grid; 259 grid-template-columns: 0fr 1fr; 260 } 261 262 .time-icon { 263 margin-right: 8px; 264 width: 25px; 265 height: 25px; 266 transition: background-color .25s ease; 267 -webkit-mask-size: contain; 268 mask-size: contain; 269 -webkit-mask-repeat: no-repeat; 270 mask-repeat: no-repeat; 271 -webkit-mask-position: center; 272 mask-position: center; 273 -webkit-mask-image: url(../../img/icons/clock.svg); 274 mask-image: url(../../img/icons/clock.svg); 275 background-color: #F4C20E; 239 276 } 240 277 241 278 .cb-dashboard__promo--title { 242 color: # 00a2ff;243 font-size: 60px;279 color: #FFFFFF; 280 font-size: 58px; 244 281 line-height: 60px; 245 282 text-transform: uppercase; 246 font-weight: 800; 247 margin: 0; 283 margin: 10px 0; 284 width: 100%; 285 max-width: 790px; 248 286 } 249 287 250 288 .cb-dashboard__promo--title .highlight { 251 display: inline-block; 289 color: #17EFA6; 290 background: none; 291 } 292 293 .cb-btn.cb-promo-btn { 294 background-color: #17EFA6; 295 color: #141414; 296 width: 100%; 297 max-width: 298px; 298 box-shadow: 0px 4px 52px rgb(23 239 166 / 40%); 299 border-radius: 4px; 300 text-align: center; 301 padding: 20px; 302 } 303 304 .promo-condition { 305 font-size: 13px; 306 line-height: 18px; 307 font-weight: 500; 252 308 color: #ffffff; 253 background: none; 254 } 255 256 .promo-condition { 257 font-size: 12px; 258 line-height: 17px; 259 font-weight: 400; 260 color: #ffffff; 261 margin: 0; 262 } 263 264 .cb-main__dashboard__promo--banner img { 265 display: inline-block; 266 width: 100%; 267 height: 100%; 268 object-fit: cover; 269 object-position: left; 270 } 271 272 .cb-main__card__inner.new_card .cb-bf-counter { 273 background-color: #000000; 274 border-bottom-left-radius: 500px; 275 border-bottom-right-radius: 500px; 276 text-align: center; 277 padding: 6px 6px 12px; 278 width: 74px; 279 position: relative; 280 top: -25px; 281 align-self: start; 282 } 283 284 .cb-main__card__inner.new_card .cb-bf-counter-label { 285 color: #ffffff; 286 font-weight: 700; 287 } 288 289 .cb-main__card__inner.new_card .cb-bf-counter-number { 290 color: #00a2ff; 291 font-size: 50px; 292 line-height: 50px; 293 font-weight: 700; 294 } 295 296 .cb-main__card__inner.new_card .cb-bf-counter-last { 297 color: #00a2ff; 298 font-weight: 700; 299 text-transform: uppercase; 300 line-height: normal; 301 padding: 0 10px; 302 } 309 width: 100%; 310 max-width: 550px; 311 } -
cookiebot/trunk/readme.txt
r3199487 r3200631 3 3 * Tags: WordPress cookie banner, GDPR, privacy compliance, cookie policy, cmp 4 4 * Requires at least: 4.4 5 * Tested up to: 6.7 5 * Tested up to: 6.7.1 6 6 * Stable tag: 4.3.11 7 7 * Requires PHP: 5.6 … … 285 285 ## Changelog ## 286 286 **Cookiebot CMP Plugin will soon no longer support PHP 5. If your website still runs on this version we recommend upgrading so you can continue enjoying the features Cookiebot CMP offers.** 287 288 ### 4.3.12 ### 289 Release date: December 2nd 2024 290 291 Cookiebot CMP version 4.3.12 is out! This release adds a bugfix and some minor content updates. 292 293 ####Bugfixes#### 294 * Fix notice appearing on textdomain early load 295 296 ####Other#### 297 * Adds implementation parameter to Cookiebot script 298 * Set WordPress tested up to version to 6.7.1 299 * Minor content updates 287 300 288 301 ### 4.3.11 ### -
cookiebot/trunk/src/admin_notices/Cookiebot_Base_Notice.php
r3094386 r3200631 17 17 const COOKIEBOT_NOTICE_TIMES_REVERT = false; 18 18 19 public $translations = array(); 19 public $translations = array(); 20 public $hide_condition = false; 20 21 21 22 public function __construct() { 22 23 $this->define_translations(); 24 $this->define_conditions(); 23 25 } 24 26 … … 38 40 'msg' => '', 39 41 ); 42 } 43 44 /** 45 * Set special conditions if needed 46 * 47 * @version 4.4.0 48 * @since 4.4.0 49 */ 50 public function define_conditions() { 51 $this->hide_condition = false; 40 52 } 41 53 … … 73 85 74 86 if ( $option !== false ) { 87 if ( $this->hide_condition !== false ) { 88 throw new LogicException( 'Hidden' ); 89 } 75 90 // "Never show again" is clicked 76 91 if ( array_key_exists( $option, static::COOKIEBOT_NOTICE_TIMES ) ) { -
cookiebot/trunk/src/admin_notices/Cookiebot_Notices.php
r3192881 r3200631 15 15 public function __construct() { 16 16 $this->load_notices(); 17 $this->build_notices(); 17 } 18 19 public function register_hooks() { 20 add_action( 'init', array( $this, 'build_notices' ) ); 18 21 } 19 22 … … 22 25 } 23 26 24 p rivatefunction build_notices() {27 public function build_notices() { 25 28 foreach ( $this->notices_list as $notice_class ) { 26 29 ( new $notice_class() )->register_hooks(); … … 31 34 Cookiebot_Recommendation_Notice::class, 32 35 Cookiebot_Temp_Notice::class, 33 Cookiebot_Bf_Notice::class,34 36 ); 35 37 } -
cookiebot/trunk/src/lib/Cookiebot_Admin_Links.php
r3192881 r3200631 85 85 return array( 86 86 'cookiebot_upgrade' => array( 87 'url' => 'https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 88 'label' => 'Upgrade a plan', 89 'override' => true, 90 'over_url' => 'https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 91 'over_label' => 'Upgrade a plan', 92 'condition' => empty( Cookiebot_WP::get_cbid() ) && ( strtotime( 'now' ) < strtotime( '2024-12-03' ) ), 87 'url' => 'https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 88 'label' => 'Upgrade a plan', 89 'override' => false, 90 'condition' => false, 93 91 ), 94 92 ); … … 106 104 ), 107 105 array( 108 'url' => 'https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 109 'label' => 'Upgrade your plan', 110 'strong' => true, 111 'override' => true, 112 'over_url' => 'https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 113 'over_label' => 'Get 10% off until 02.12', 114 'condition' => empty( Cookiebot_WP::get_cbid() ) && ( strtotime( 'now' ) < strtotime( '2024-12-03' ) ), 115 'index' => 'a', 106 'url' => 'https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 107 'label' => 'Upgrade your plan', 108 'strong' => true, 109 'override' => false, 110 'condition' => false, 111 'index' => 'a', 116 112 ), 117 113 ); -
cookiebot/trunk/src/lib/Cookiebot_WP.php
r3192883 r3200631 72 72 public function cookiebot_init() { 73 73 Cookiebot_Addons::instance(); 74 load_textdomain( 75 'cookiebot', 76 CYBOT_COOKIEBOT_PLUGIN_DIR . 'langs/cookiebot-' . get_locale() . '.mo' 77 ); 78 load_plugin_textdomain( 'cookiebot', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' ); 74 add_action( 'init', array( $this, 'cookiebot_load_textdomain' ) ); 79 75 80 76 if ( is_admin() ) { … … 84 80 } 85 81 ( new Dashboard_Widget_Cookiebot_Status() )->register_hooks(); 86 ( new Cookiebot_Notices() ) ;82 ( new Cookiebot_Notices() )->register_hooks(); 87 83 ( new Cookiebot_Review() )->register_hooks(); 88 84 } … … 122 118 123 119 /** 120 * Loads translations textdomain 121 * 122 * @return void 123 */ 124 public function cookiebot_load_textdomain() { 125 load_textdomain( 126 'cookiebot', 127 CYBOT_COOKIEBOT_PLUGIN_DIR . 'langs/cookiebot-' . get_locale() . '.mo' 128 ); 129 load_plugin_textdomain( 'cookiebot', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' ); 130 } 131 132 /** 124 133 * @return string 125 134 */ -
cookiebot/trunk/src/settings/Menu_Settings.php
r3035510 r3200631 48 48 public function register_cookiebot_settings() { 49 49 register_setting( 'cookiebot', 'cookiebot-cbid' ); 50 register_setting( 'cookiebot', 'cookiebot-cbid-first-run' ); 50 51 register_setting( 'cookiebot', 'cookiebot-language' ); 51 52 register_setting( 'cookiebot', 'cookiebot-front-language' ); -
cookiebot/trunk/src/settings/Network_Menu_Settings.php
r3150759 r3200631 141 141 'admin/settings/network-settings-page.php', 142 142 array( 143 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr ',143 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 144 144 'logo' => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png', 145 145 'cbm' => $cbm, -
cookiebot/trunk/src/settings/pages/Settings_Page.php
r3150759 r3200631 41 41 'cbid' => Cookiebot_WP::get_cbid(), 42 42 'is_ms' => false, 43 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr ',43 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner', 44 44 'cookiebot_logo' => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png', 45 45 'supported_languages' => Supported_Languages::get(), -
cookiebot/trunk/src/view/admin/settings/dashboard-page.php
r3192881 r3200631 18 18 $main_tabs = new Main_Tabs(); 19 19 20 $today = new DateTime( 'now' );21 $end_date = new DateTime( '2024-12-03' );22 $remaining = $today->diff( $end_date );23 $days_left = $remaining->format( '%d' );24 25 20 $header->display(); 26 21 ?> … … 29 24 <?php $main_tabs->display( 'dashboard' ); ?> 30 25 <div class="cb-main__content <?php echo $cbid ? 'sync-account' : ''; ?>"> 31 <?php32 if ( ! $cbid ) :33 if ( $today < $end_date ) :34 ?>35 <div class="cb-main__dashboard__promo">36 <div class="cb-main__dashboard__promo--inner">37 <div class="cb-main__dashboard__promo--content">38 <div class="cb-dashboard__promo--label"><div class="icon"></div>Black Friday Deal</div>39 <h2 class="cb-dashboard__promo--title">Get <div class="highlight">10% off</div> for 6 months</h2>40 <p class="promo-condition">Enjoy a free plan for sites with up to 50 subpages. Premium plans are available for sites with 50+ subpages. Start with a 14-day trial, then enjoy a 10% discount on your selected plan for the first 6 months. After that, pricing will revert to the regular rate. This offer is available for new users who sign up between November 20 and December 2, 2024.</p>41 </div>42 <div class="cb-main__dashboard__promo--banner">43 <img src="<?php echo esc_html( CYBOT_COOKIEBOT_PLUGIN_URL . '/assets/img/extra/cb_bf_banner.svg' ); ?>" alt="CB BF banner">44 </div>45 </div>46 </div>47 <?php48 endif;49 endif;50 ?>51 26 <div class="cb-main__dashboard__card--container"> 52 <?php if ( ! $cbid ) : ?> 53 <div class="cb-main__dashboard__card"> 54 <div class="cb-main__card__inner new_card"> 55 <div class="cb-main__card__content"> 56 <h2 class="cb-main__card__title"> 57 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?> 58 </h2> 59 <?php if ( $today < $end_date ) : ?> 60 <div class="cb-bf-counter"> 61 <div class="cb-bf-counter-label">-10%</div> 62 <div class="cb-bf-counter-number"><?php echo esc_html( $days_left ); ?></div> 63 <div class="cb-bf-counter-last"><?php echo $days_left === '1' ? esc_html( 'day' ) : esc_html( 'days' ); ?> to go</div> 64 </div> 65 <a href="https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 66 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 67 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> 68 </a> 69 <?php else : ?> 70 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 71 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 72 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> 73 </a> 74 <?php endif; ?> 75 </div> 76 </div> 77 </div> 78 <div class="cb-main__dashboard__card"> 79 <div class="cb-main__card__inner account_card"> 27 <div class="cb-main__dashboard__card"> 28 <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'account_card'; ?>"> 29 <?php if ( ! $cbid ) : ?> 30 <img src="<?php echo esc_html( $cb_wp ); ?>" alt="Cookiebot for WordPress" class="cb-wp"> 80 31 <div class="cb-main__card__content"> 81 32 <h2 class="cb-main__card__title"> … … 87 38 </a> 88 39 </div> 89 </div> 40 <?php else : ?> 41 <h2 class="cb-main__card__title"> 42 <?php echo esc_html__( 'Your Cookiebot CMP for WordPress solution', 'cookiebot' ); ?> 43 </h2> 44 <div class="cb-main__card__success"> 45 <div class="cb-btn cb-success-btn"> 46 <img src="<?php echo esc_html( $check_icon ); ?>" alt="Check"> 47 </div> 48 <p class="cb-main__success__text"> 49 <span><?php echo esc_html__( 'Congratulations!', 'cookiebot' ); ?></span> 50 <?php echo esc_html__( 'You have added your Domain Group ID to WordPress. You are all set!', 'cookiebot' ); ?> 51 </p> 52 </div> 53 <?php endif; ?> 90 54 </div> 91 <?php else : ?> 55 </div> 56 57 <?php if ( $cbid ) : ?> 92 58 <div class="cb-main__dashboard__card"> 93 <div class="cb-main__card__inner start_card"> 94 <h2 class="cb-main__card__title"> 95 <?php echo esc_html__( 'Your Cookiebot CMP for WordPress solution', 'cookiebot' ); ?> 96 </h2> 97 <div class="cb-main__card__success"> 98 <div class="cb-btn cb-success-btn"> 99 <img src="<?php echo esc_html( $check_icon ); ?>" alt="Check"> 100 </div> 101 <p class="cb-main__success__text"> 102 <span><?php echo esc_html__( 'Congratulations!', 'cookiebot' ); ?></span> 103 <?php echo esc_html__( 'You have added your Domain Group ID to WordPress. You are all set!', 'cookiebot' ); ?> 104 </p> 105 </div> 106 </div> 107 </div> 108 109 <div class="cb-main__dashboard__card"> 110 <div class="cb-main__card__inner start_card"> 59 <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'new_card'; ?>"> 111 60 <h3 class="cb-main__card__subtitle"> 112 61 <?php echo esc_html__( 'Your opinion matters', 'cookiebot' ); ?> … … 121 70 </div> 122 71 </div> 72 <?php endif; ?> 123 73 124 <div class="cb-main__dashboard__card"> 125 <div class="cb-main__card__inner start_card"> 74 <div class="cb-main__dashboard__card"> 75 <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'new_card'; ?>"> 76 <?php if ( ! $cbid ) : ?> 77 <div class="cb-main__card__content"> 78 <p class="cb-main__card__label"> 79 <?php echo esc_html__( 'Get started', 'cookiebot' ); ?> 80 </p> 81 <h2 class="cb-main__card__title"> 82 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?> 83 </h2> 84 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 85 target="_blank" class="cb-btn cb-white-btn" rel="noopener"> 86 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> 87 </a> 88 </div> 89 <?php else : ?> 126 90 <h3 class="cb-main__card__subtitle"> 127 91 <?php echo esc_html__( 'Learn more about how to optimize your Cookiebot CMP setup?', 'cookiebot' ); ?> … … 131 95 <?php echo esc_html__( 'Visit Help Center', 'cookiebot' ); ?> 132 96 </a> 133 < /div>97 <?php endif; ?> 134 98 </div> 135 < ?php endif; ?>99 </div> 136 100 </div> 137 101 -
cookiebot/trunk/src/view/admin/settings/gtm-page.php
r2933766 r3200631 14 14 <?php esc_html_e( 'For more details about Cookiebot CMP and Google Tag Manager.', 'cookiebot' ); ?> 15 15 </p> 16 <a href="https://www.cookiebot.com/en/google-tag-manager-and-gdpr-compliance-with-cookiebot/ "16 <a href="https://www.cookiebot.com/en/google-tag-manager-and-gdpr-compliance-with-cookiebot/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 17 17 class="cb-btn cb-link-btn" target="_blank" rel="noopener"> 18 18 <?php esc_html_e( 'Read more', 'cookiebot' ); ?> -
cookiebot/trunk/src/view/admin/settings/network-settings-page.php
r3192881 r3200631 10 10 $header = new Header(); 11 11 $main_tabs = new Main_Tabs(); 12 13 $today = new DateTime( 'now' );14 $end_date = new DateTime( '2024-12-03' );15 $remaining = $today->diff( $end_date );16 $days_left = $remaining->format( '%d' );17 12 18 13 $header->display(); … … 40 35 <?php esc_html_e( 'To use Cookiebot for WordPress you need to visit our website and sign-up. After you have signed up, you can configure your banner and then place the Cookiebot Domain Group ID below. Navigate to Settings and to "Your Scripts" to find your ID.', 'cookiebot' ); ?> 41 36 </p> 42 <?php if ( $today >= $end_date ) : ?>43 37 <div class="new-account-actions"> 44 38 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener" class="cb-btn cb-main-btn"><?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?></a> 45 39 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" target="_blank" rel="noopener" class="cb-btn cb-link-btn"><?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?></a> 46 40 </div> 47 <?php endif; ?> 48 </div> 49 50 <?php if ( $today < $end_date ) : ?> 51 <div class="cb-general__new__account--double"> 52 <div class="cb-main__card__inner new_card"> 53 <div class="cb-main__card__content"> 54 <h2 class="cb-main__card__title"> 55 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?> 56 </h2> 57 <div class="cb-bf-counter"> 58 <div class="cb-bf-counter-label">-10%</div> 59 <div class="cb-bf-counter-number"><?php echo esc_html( $days_left ); ?></div> 60 <div class="cb-bf-counter-last"><?php echo $days_left === '1' ? esc_html( 'day' ) : esc_html( 'days' ); ?> to go</div> 61 </div> 62 <a href="https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 63 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 64 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> 65 </a> 66 </div> 67 </div> 68 69 <div class="cb-main__card__inner new_card"> 70 <div class="cb-main__card__content"> 71 <h2 class="cb-main__card__title"> 72 <?php esc_html_e( 'Need help with your configuration?', 'cookiebot' ); ?> 73 </h2> 74 75 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" 76 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 77 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?> 78 </a> 79 </div> 80 </div> 81 </div> 82 <?php endif; ?> 41 </div> 83 42 <?php endif; ?> 84 43 -
cookiebot/trunk/src/view/admin/settings/settings-page.php
r3192881 r3200631 32 32 $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : false; 33 33 34 $today = new DateTime( 'now' );35 $end_date = new DateTime( '2024-12-03' );36 $remaining = $today->diff( $end_date );37 $days_left = $remaining->format( '%d' );38 39 34 $header->display(); 40 35 ?> … … 84 79 id="general-settings"> 85 80 <?php if ( ! $cbid ) : ?> 86 <div class="cb-general__new__account"> 87 <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2> 88 <p class="cb-general__info__text"> 89 <?php esc_html_e( 'Before you can get started with Cookiebot CMP for WordPress, you need to create an account on our website by clicking on "Create a new account" below. After you have signed up, you can configure your banner in the Cookiebot Manager and then place the Cookiebot Domain Group ID in the designated field below. You can find your ID in the Cookiebot Manager by navigating to "Settings" and "Your Scripts".', 'cookiebot' ); ?> 90 </p> 91 <?php if ( $today >= $end_date ) : ?> 92 <div class="new-account-actions"> 93 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 94 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 95 <?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?> 96 </a> 97 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" 98 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 99 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?> 100 </a> 101 </div> 102 <?php endif; ?> 103 </div> 104 105 <?php if ( $today < $end_date ) : ?> 106 <div class="cb-general__new__account--double"> 107 <div class="cb-main__card__inner new_card"> 108 <div class="cb-main__card__content"> 109 <h2 class="cb-main__card__title"> 110 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?> 111 </h2> 112 <div class="cb-bf-counter"> 113 <div class="cb-bf-counter-label">-10%</div> 114 <div class="cb-bf-counter-number"><?php echo esc_html( $days_left ); ?></div> 115 <div class="cb-bf-counter-last"><?php echo $days_left === '1' ? esc_html( 'day' ) : esc_html( 'days' ); ?> to go</div> 116 </div> 117 <a href="https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 118 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 119 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> 120 </a> 121 </div> 122 </div> 123 124 <div class="cb-main__card__inner new_card"> 125 <div class="cb-main__card__content"> 126 <h2 class="cb-main__card__title"> 127 <?php esc_html_e( 'Need help with your configuration?', 'cookiebot' ); ?> 128 </h2> 129 130 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" 131 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 132 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?> 133 </a> 134 </div> 135 </div> 136 </div> 137 <?php endif; ?> 81 <div class="cb-general__new__account"> 82 <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2> 83 <p class="cb-general__info__text"> 84 <?php esc_html_e( 'Before you can get started with Cookiebot CMP for WordPress, you need to create an account on our website by clicking on "Create a new account" below. After you have signed up, you can configure your banner in the Cookiebot Manager and then place the Cookiebot Domain Group ID in the designated field below. You can find your ID in the Cookiebot Manager by navigating to "Settings" and "Your Scripts".', 'cookiebot' ); ?> 85 </p> 86 <div class="new-account-actions"> 87 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" 88 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 89 <?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?> 90 </a> 91 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" 92 target="_blank" class="cb-btn cb-main-btn" rel="noopener"> 93 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?> 94 </a> 95 </div> 96 </div> 138 97 <?php endif; ?> 139 98 -
cookiebot/trunk/src/view/admin/settings/support-page.php
r3150759 r3200631 64 64 // translators: the first placeholder string will be replaced with a html anchor open tag and the second placeholder string will be replaced by the html anchor closing tag 65 65 esc_html__( 'Log in to your %1$sCookiebot CMP account%2$s.', 'cookiebot' ), 66 '<a href="https://www.cookiebot.com/' . esc_html( $manager_language ) . '/account " target="_blank" rel="noopener">',66 '<a href="https://www.cookiebot.com/' . esc_html( $manager_language ) . '/account/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">', 67 67 '</a>' 68 68 ); … … 150 150 // translators: the placeholder strings denote the positions of <i>, </i>, <b> and </b> HTML tags 151 151 esc_html__( 'Example on modifying an existing Google Analytics Universal script tag can be found %1$shere in step 4%2$s.', 'cookiebot' ), 152 '<a href="https://www.cookiebot.com/en/manual-implementation/ " target="_blank" rel="noopener">',152 '<a href="https://www.cookiebot.com/en/manual-implementation/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">', 153 153 '</a>' 154 154 ); -
cookiebot/trunk/src/view/admin/templates/extra/review-form.php
r2933766 r3200631 98 98 <input type="submit" id="cb-review__submit" value="Submit and Deactivate"> 99 99 </div> 100 <p class="cb-review__policy">See our <a href="https://www.cookiebot.com/en/privacy-policy/ " target="_blank" rel="noopener">Privacy Policy</a></p>100 <p class="cb-review__policy">See our <a href="https://www.cookiebot.com/en/privacy-policy/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">Privacy Policy</a></p> 101 101 <input type="hidden" name="cookiebot-review-send" value="Cookiebot_Review_Send"> 102 102 </form> -
cookiebot/trunk/src/view/admin/templates/header.php
r2894211 r3200631 12 12 <div class="cb-header"> 13 13 <div class="cb-wrapper"> 14 <a href="https://www.cookiebot.com ">14 <a href="https://www.cookiebot.com/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner"> 15 15 <img 16 16 src="<?php echo esc_url( $cookiebot_logo ); ?>" -
cookiebot/trunk/src/view/frontend/scripts/cookiebot-js.php
r2965717 r3200631 12 12 id="Cookiebot" 13 13 src="https://consent.cookiebot.com/uc.js" 14 data-implementation="wp" 14 15 data-cbid="<?php echo esc_attr( $cbid ); ?>" 15 16 <?php if ( $tcf ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.