Plugin Directory

Changeset 3200631


Ignore:
Timestamp:
12/02/2024 07:25:56 AM (16 months ago)
Author:
cookiebot
Message:

Releasing version 4.3.12

Location:
cookiebot
Files:
3 added
3 deleted
19 edited

Legend:

Unmodified
Added
Removed
  • cookiebot/trunk/assets/css/backend/dashboard_page.css

    r3192881 r3200631  
    22    display: grid;
    33    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));
    55    grid-column-gap: 30px;
    66    grid-row-gap: 30px;
     
    4343}
    4444
    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;
    4985}
    5086
     
    5894}
    5995
    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 {
    7297    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;
    8298    font-size: 30px;
    8399    line-height: 32px;
    84100    margin: 0;
    85101    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;
    93103}
    94104
     
    213223.cb-main__dashboard__promo {
    214224    position: relative;
    215     border-radius: 10px;
     225    border-radius: 25px;
    216226    overflow: hidden;
    217     box-shadow: 0px 5px 15px #ddd;
    218     background-color: #000000;
    219227}
    220228
    221229.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;
    231251}
    232252
    233253.cb-dashboard__promo--label {
    234     color: #ffffff;
     254    color: #F4C20E;
    235255    font-size: 15px;
    236     line-height: 17px;
     256    line-height: 24px;
    237257    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;
    239276}
    240277
    241278.cb-dashboard__promo--title {
    242     color: #00a2ff;
    243     font-size: 60px;
     279    color: #FFFFFF;
     280    font-size: 58px;
    244281    line-height: 60px;
    245282    text-transform: uppercase;
    246     font-weight: 800;
    247     margin: 0;
     283    margin: 10px 0;
     284    width: 100%;
     285    max-width: 790px;
    248286}
    249287
    250288.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;
    252308    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  
    33* Tags: WordPress cookie banner, GDPR, privacy compliance, cookie policy, cmp
    44* Requires at least: 4.4
    5 * Tested up to: 6.7
     5* Tested up to: 6.7.1
    66* Stable tag: 4.3.11
    77* Requires PHP: 5.6
     
    285285## Changelog ##
    286286**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 ###
     289Release date: December 2nd 2024
     290
     291Cookiebot 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
    287300
    288301### 4.3.11 ###
  • cookiebot/trunk/src/admin_notices/Cookiebot_Base_Notice.php

    r3094386 r3200631  
    1717    const COOKIEBOT_NOTICE_TIMES_REVERT = false;
    1818
    19     public $translations = array();
     19    public $translations   = array();
     20    public $hide_condition = false;
    2021
    2122    public function __construct() {
    2223        $this->define_translations();
     24        $this->define_conditions();
    2325    }
    2426
     
    3840            'msg'   => '',
    3941        );
     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;
    4052    }
    4153
     
    7385
    7486        if ( $option !== false ) {
     87            if ( $this->hide_condition !== false ) {
     88                throw new LogicException( 'Hidden' );
     89            }
    7590            // "Never show again" is clicked
    7691            if ( array_key_exists( $option, static::COOKIEBOT_NOTICE_TIMES ) ) {
  • cookiebot/trunk/src/admin_notices/Cookiebot_Notices.php

    r3192881 r3200631  
    1515    public function __construct() {
    1616        $this->load_notices();
    17         $this->build_notices();
     17    }
     18
     19    public function register_hooks() {
     20        add_action( 'init', array( $this, 'build_notices' ) );
    1821    }
    1922
     
    2225    }
    2326
    24     private function build_notices() {
     27    public function build_notices() {
    2528        foreach ( $this->notices_list as $notice_class ) {
    2629            ( new $notice_class() )->register_hooks();
     
    3134        Cookiebot_Recommendation_Notice::class,
    3235        Cookiebot_Temp_Notice::class,
    33         Cookiebot_Bf_Notice::class,
    3436    );
    3537}
  • cookiebot/trunk/src/lib/Cookiebot_Admin_Links.php

    r3192881 r3200631  
    8585        return array(
    8686            '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,
    9391            ),
    9492        );
     
    106104            ),
    107105            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',
    116112            ),
    117113        );
  • cookiebot/trunk/src/lib/Cookiebot_WP.php

    r3192883 r3200631  
    7272    public function cookiebot_init() {
    7373        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' ) );
    7975
    8076        if ( is_admin() ) {
     
    8480            }
    8581            ( new Dashboard_Widget_Cookiebot_Status() )->register_hooks();
    86             ( new Cookiebot_Notices() );
     82            ( new Cookiebot_Notices() )->register_hooks();
    8783            ( new Cookiebot_Review() )->register_hooks();
    8884        }
     
    122118
    123119    /**
     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    /**
    124133     * @return string
    125134     */
  • cookiebot/trunk/src/settings/Menu_Settings.php

    r3035510 r3200631  
    4848    public function register_cookiebot_settings() {
    4949        register_setting( 'cookiebot', 'cookiebot-cbid' );
     50        register_setting( 'cookiebot', 'cookiebot-cbid-first-run' );
    5051        register_setting( 'cookiebot', 'cookiebot-language' );
    5152        register_setting( 'cookiebot', 'cookiebot-front-language' );
  • cookiebot/trunk/src/settings/Network_Menu_Settings.php

    r3150759 r3200631  
    141141            'admin/settings/network-settings-page.php',
    142142            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',
    144144                'logo'               => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png',
    145145                'cbm'                => $cbm,
  • cookiebot/trunk/src/settings/pages/Settings_Page.php

    r3150759 r3200631  
    4141            'cbid'                     => Cookiebot_WP::get_cbid(),
    4242            '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',
    4444            'cookiebot_logo'           => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png',
    4545            'supported_languages'      => Supported_Languages::get(),
  • cookiebot/trunk/src/view/admin/settings/dashboard-page.php

    r3192881 r3200631  
    1818$main_tabs = new Main_Tabs();
    1919
    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 
    2520$header->display();
    2621?>
     
    2924        <?php $main_tabs->display( 'dashboard' ); ?>
    3025        <div class="cb-main__content <?php echo $cbid ? 'sync-account' : ''; ?>">
    31             <?php
    32             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                     <?php
    48                 endif;
    49             endif;
    50             ?>
    5126            <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">
    8031                            <div class="cb-main__card__content">
    8132                                <h2 class="cb-main__card__title">
     
    8738                                </a>
    8839                            </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; ?>
    9054                    </div>
    91                 <?php else : ?>
     55                </div>
     56
     57                <?php if ( $cbid ) : ?>
    9258                    <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'; ?>">
    11160                            <h3 class="cb-main__card__subtitle">
    11261                                <?php echo esc_html__( 'Your opinion matters', 'cookiebot' ); ?>
     
    12170                        </div>
    12271                    </div>
     72                <?php endif; ?>
    12373
    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 : ?>
    12690                            <h3 class="cb-main__card__subtitle">
    12791                                <?php echo esc_html__( 'Learn more about how to optimize your Cookiebot CMP setup?', 'cookiebot' ); ?>
     
    13195                                <?php echo esc_html__( 'Visit Help Center', 'cookiebot' ); ?>
    13296                            </a>
    133                         </div>
     97                        <?php endif; ?>
    13498                    </div>
    135                 <?php endif; ?>
     99                </div>
    136100            </div>
    137101
  • cookiebot/trunk/src/view/admin/settings/gtm-page.php

    r2933766 r3200631  
    1414            <?php esc_html_e( 'For more details about Cookiebot CMP and Google Tag Manager.', 'cookiebot' ); ?>
    1515        </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"
    1717           class="cb-btn cb-link-btn" target="_blank" rel="noopener">
    1818            &nbsp;<?php esc_html_e( 'Read more', 'cookiebot' ); ?>
  • cookiebot/trunk/src/view/admin/settings/network-settings-page.php

    r3192881 r3200631  
    1010$header    = new Header();
    1111$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' );
    1712
    1813$header->display();
     
    4035                                    <?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' ); ?>
    4136                                </p>
    42                                 <?php if ( $today >= $end_date ) : ?>
    4337                                <div class="new-account-actions">
    4438                                    <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>
    4539                                    <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>
    4640                                </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>
    8342                        <?php endif; ?>
    8443
  • cookiebot/trunk/src/view/admin/settings/settings-page.php

    r3192881 r3200631  
    3232$active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : false;
    3333
    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 
    3934$header->display();
    4035?>
     
    8479                        id="general-settings">
    8580                        <?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>
    13897                        <?php endif; ?>
    13998
  • cookiebot/trunk/src/view/admin/settings/support-page.php

    r3150759 r3200631  
    6464                                    // 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
    6565                                        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">',
    6767                                        '</a>'
    6868                                    );
     
    150150                            // translators: the placeholder strings denote the positions of <i>, </i>, <b> and </b> HTML tags
    151151                                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">',
    153153                                '</a>'
    154154                            );
  • cookiebot/trunk/src/view/admin/templates/extra/review-form.php

    r2933766 r3200631  
    9898                <input type="submit" id="cb-review__submit" value="Submit and Deactivate">
    9999            </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>
    101101            <input type="hidden" name="cookiebot-review-send" value="Cookiebot_Review_Send">
    102102        </form>
  • cookiebot/trunk/src/view/admin/templates/header.php

    r2894211 r3200631  
    1212<div class="cb-header">
    1313    <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">
    1515            <img
    1616                src="<?php echo esc_url( $cookiebot_logo ); ?>"
  • cookiebot/trunk/src/view/frontend/scripts/cookiebot-js.php

    r2965717 r3200631  
    1212        id="Cookiebot"
    1313        src="https://consent.cookiebot.com/uc.js"
     14        data-implementation="wp"
    1415        data-cbid="<?php echo esc_attr( $cbid ); ?>"
    1516    <?php if ( $tcf ) : ?>
Note: See TracChangeset for help on using the changeset viewer.