Plugin Directory

Changeset 3366362


Ignore:
Timestamp:
09/23/2025 10:09:34 AM (6 months ago)
Author:
cookiebot
Message:

Releasing version 4.6.0

Location:
cookiebot/trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • cookiebot/trunk/assets/css/backend/dashboard-old.css

    r3270515 r3366362  
    3030    display: grid;
    3131    margin-bottom: 30px;
     32}
     33
     34.cb-main__dashboard__card__cookiebot {
     35    width: 100%;
     36    display: grid;
    3237}
    3338
  • cookiebot/trunk/readme.txt

    r3343501 r3366362  
    197197## Changelog ##
    198198**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.**
     199
     200### 4.6.0 ###
     201Release date: September 23rd 2025
     202
     203Cookiebot CMP version 4.6.0 is out! This release has a new feature
     204
     205####What's new####
     206
     207* Added a new dashboard for new users to improve onboarding.
     208* Enabled sign-up through Cookiebot for smoother registration.
     209
     210####Improved####
     211
     212* Simplified the account connection process, making it more intuitive.
    199213
    200214### 4.5.11 ###
  • cookiebot/trunk/src/lib/Cookiebot_WP.php

    r3343501 r3366362  
    360360    private function set_default_options() {
    361361        $options = array(
    362             'cookiebot-nooutput-admin' => '1',
    363             'cookiebot-gcm'            => '1',
    364             'cookiebot-banner-enabled' => '1',
     362            'cookiebot-nooutput-admin'       => '1',
     363            'cookiebot-gcm'                  => '1',
     364            'cookiebot-banner-enabled'       => '1',
     365            'cookiebot-cookie-blocking-mode' => 'auto',
    365366        );
    366367
     
    373374                update_option( $option . self::OPTION_FIRST_RUN_SUFFIX, '1' );
    374375            }
     376        }
     377
     378        // Safeguard to always garantee the blocking mode has a value.
     379        // There is one situation in which this value is cleared after disconnecting an onboarded user account
     380        if ( empty( get_option( 'cookiebot-cookie-blocking-mode' ) ) ) {
     381            update_option( 'cookiebot-cookie-blocking-mode', 'auto' );
    375382        }
    376383
  • cookiebot/trunk/src/settings/pages/Dashboard_Page.php

    r3343491 r3366362  
    229229        }
    230230
     231        // Redirect new users to cookiebot dashboard page
     232        if ( empty( $cbid ) ) {
     233            $args = array(
     234                'cbid'        => Cookiebot_WP::get_cbid(),
     235                'cb_wp'       => asset_url( 'img/cb-wp.png' ),
     236                'europe_icon' => asset_url( 'img/europe.png' ),
     237                'usa_icon'    => asset_url( 'img/usa.png' ),
     238                'check_icon'  => asset_url( 'img/icons/check.svg' ),
     239                'link_icon'   => asset_url( 'img/icons/link.svg' ),
     240            );
     241
     242            $style_sheets = array(
     243                array( 'cookiebot-dashboard-css', 'css/backend/dashboard-old.css' ),
     244            );
     245
     246            foreach ( $style_sheets as $style ) {
     247                wp_enqueue_style(
     248                    $style[0],
     249                    asset_url( $style[1] ),
     250                    null,
     251                    Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION
     252                );
     253            }
     254
     255            include_view( Cookiebot_Frame::get_view_path() . 'dashboard-cookiebot.php', $args );
     256            return;
     257        }
     258
    231259        wp_enqueue_style(
    232260            'cookiebot-dashboard-css',
  • cookiebot/trunk/src/view/admin/cb_frame/support-page.php

    r3343491 r3366362  
    7777                                // 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
    7878                                    esc_html__( 'Log in to your %1$sCookiebot CMP account%2$s.', 'cookiebot' ),
    79                                     '<a href="https://www.cookiebot.com/en/account/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">',
     79                                    '<a href="https://admin.cookiebot.com" target="_blank" rel="noopener">',
    8080                                    '</a>'
    8181                                );
     
    8686                                printf(
    8787                                // translators: the placeholder strings denote the positions of <b>, </b>, <b> and </b> HTML tags
    88                                     esc_html__( 'Go to %1$s"Settings"%2$s and setup your Cookiebot CMP', 'cookiebot' ),
     88                                    esc_html__( 'Go to %1$s"Domains & Aliases"%2$s and setup your Cookiebot CMP', 'cookiebot' ),
    8989                                    '<b>',
    9090                                    '</b>'
     
    9696                                printf(
    9797                                // translators: the placeholder strings denote the positions of <b> and </b> HTML tags
    98                                     esc_html__( 'Go to the %1$s"Your scripts"%2$s tab', 'cookiebot' ),
    99                                     '<b>',
    100                                     '</b>'
    101                                 );
    102                                 ?>
    103                             </li>
    104                             <li><?php esc_html_e( 'Copy the value inside the data-cid parameter - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ); ?></li>
     98                                    esc_html__( 'Go to %1$s"Implementation"%2$s and scroll down to the %1$s"Installation guides"%2$s section', 'cookiebot' ),
     99                                    '<b>',
     100                                    '</b>'
     101                                );
     102                                ?>
     103                            </li>
     104                            <li>
     105                                <?php
     106                                printf(
     107                                // translators: the placeholder strings denote the positions of <b> and </b> HTML tags
     108                                    esc_html__( 'Copy the value of %1$s"Domain group ID"%2$s - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ),
     109                                    '<b>',
     110                                    '</b>'
     111                                );
     112                                ?>
     113                            </li>
    105114                            <li>
    106115                                <?php
  • cookiebot/trunk/src/view/admin/common/support-page.php

    r3289355 r3366362  
    5757                        <?php esc_html_e( 'Visit Support Center', 'cookiebot' ); ?>
    5858                    </a>
    59                     <a href="#" onclick="copyDebugInfo();" class="cb-btn cb-secondary-btn" style="margin-left: 20px;">
    60                         <?php esc_html_e( 'Copy Debug Info', 'cookiebot' ); ?>
    61                     </a>
     59
     60                    <?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?>
     61                        <a href="#" onclick="copyDebugInfo();" class="cb-btn cb-secondary-btn" style="margin-left: 20px;">
     62                            <?php esc_html_e( 'Copy Debug Info', 'cookiebot' ); ?>
     63                        </a>
     64                    <?php endif; ?>
    6265                </div>
    6366            </div>
    6467
    65             <div class="cb-debug__code__container">
    66                 <textarea
    67                         cols="50"
    68                         rows="40"
    69                         id="cookiebot-debug-info"
    70                         readonly="readonly"
    71                 ><?php echo esc_textarea( $debug_output ); ?></textarea>
    72             </div>
    73 
     68            <?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?>
     69                <div class="cb-debug__code__container">
     70                    <textarea
     71                            cols="50"
     72                            rows="40"
     73                            id="cookiebot-debug-info"
     74                            readonly="readonly"
     75                    ><?php echo esc_textarea( $debug_output ); ?></textarea>
     76                </div>
     77            <?php endif; ?>
    7478        </div>
    7579    </div>
  • cookiebot/trunk/src/view/admin/common/templates/main-tabs.php

    r3343491 r3366362  
    1717$auth_token    = get_option( 'cookiebot-auth-token' );
    1818$user_data     = Cookiebot_WP::get_user_data();
    19 $show_settings = $active_tab === 'settings' || ! empty( $cbid );
    20 $show_plugins  = ( ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) || empty( $user_data );
     19$show_settings = true;
     20$show_plugins  = ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty';
    2121$feedback_url  = 'https://form.typeform.com/to/n6ZlunZP';
    2222
Note: See TracChangeset for help on using the changeset viewer.