prior-consent
1 year ago
templates
4 months ago
dashboard-cookiebot.php
7 months ago
dashboard-page-old.php
4 months ago
dashboard-page-session-expired.php
10 months ago
dashboard-page-static.php
10 months ago
dashboard-page.php
7 months ago
dashboard-trial-expired.php
10 months ago
network-settings-page.php
4 months ago
ppg-page.php
4 months ago
settings-page.php
4 months ago
support-page.php
9 months ago
dashboard-trial-expired.php
173 lines
| 1 | <?php |
| 2 | |
| 3 | use cybot\cookiebot\settings\templates\Header; |
| 4 | use cybot\cookiebot\settings\templates\Main_Tabs; |
| 5 | use cybot\cookiebot\settings\pages\Settings_Page; |
| 6 | use cybot\cookiebot\lib\Cookiebot_WP; |
| 7 | use function cybot\cookiebot\lib\asset_url; |
| 8 | |
| 9 | /** |
| 10 | * @var array $template_args Array containing all template variables |
| 11 | */ |
| 12 | |
| 13 | $header = new Header(); |
| 14 | $main_tabs = new Main_Tabs(); |
| 15 | |
| 16 | $header->display(); |
| 17 | ?> |
| 18 | |
| 19 | <div class="cb-body"> |
| 20 | <div class="banner-container"> |
| 21 | <!-- Trial expiration notice --> |
| 22 | <div class="header-top-banners trial-expired-banner"> |
| 23 | <div class="banner-content"> |
| 24 | <img src="<?php echo \esc_url( asset_url( 'img/icons/clock-icon.svg' ) ); ?>" |
| 25 | alt="Clock Icon"> |
| 26 | <div> |
| 27 | <h3><?php echo esc_html__( 'Your premium trial is over', 'cookiebot' ); ?></h3> |
| 28 | <p style="text-wrap: nowrap;"> |
| 29 | <?php echo esc_html__( 'To stay compliant, reactivate your banner by choosing a plan. Start with Free or unlock more features by upgrading.', 'cookiebot' ); ?> |
| 30 | </p> |
| 31 | </div> |
| 32 | </div> |
| 33 | <div class="upgrade-expired-trial"> |
| 34 | <a href="https://account.usercentrics.eu/subscription/<?php echo isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ? esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) . '/' : ''; ?>manage" target="_blank" style="text-decoration: none; color: inherit;"> |
| 35 | <h3><?php echo esc_html__( 'Reactivate banner', 'cookiebot' ); ?> <span class="upgrade-chevron">›</span></h3> |
| 36 | </a> |
| 37 | </div> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div class="cb-wrapper"> |
| 41 | <?php $main_tabs->display( 'dashboard' ); ?> |
| 42 | |
| 43 | <div class="dashboard-grid"> |
| 44 | <!-- Main Content Area --> |
| 45 | <div class="dashboard-grid-row"> |
| 46 | <div class="gray-box"> |
| 47 | <div class="header-section-no-margin"> |
| 48 | <img src="<?php echo \esc_url( asset_url( 'img/icons/set-up-icon.svg' ) ); ?>" alt="Setup Icon"> |
| 49 | <h1><?php echo \esc_html__( 'Set up your cookie banner', 'cookiebot' ); ?></h1> |
| 50 | </div> |
| 51 | |
| 52 | <!-- Steps Container --> |
| 53 | <div class="steps-container" style="padding-top: 1em;"> |
| 54 | <!-- Reactivate banner step --> |
| 55 | <div class="step-box"> |
| 56 | <div class="step-row"> |
| 57 | <div class="step-icon"> |
| 58 | <div class="empty-circle"></div> |
| 59 | </div> |
| 60 | <div class="step-content"> |
| 61 | <h2><?php echo \esc_html__( 'Reactivate your banner', 'cookiebot' ); ?></h2> |
| 62 | </div> |
| 63 | <span class="to-do-status">To do</span> |
| 64 | </div> |
| 65 | </div> |
| 66 | |
| 67 | <!-- Scan website step --> |
| 68 | <div class="step-box"> |
| 69 | <div class="step-row"> |
| 70 | <div class="step-icon"> |
| 71 | <div class="empty-circle"></div> |
| 72 | </div> |
| 73 | <div class="step-content"> |
| 74 | <h2><?php echo \esc_html__( 'Scan your website', 'cookiebot' ); ?></h2> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | <!-- Upgrade your plan step --> |
| 80 | <div class="step-box"> |
| 81 | <div class="step-row"> |
| 82 | <div class="step-icon"> |
| 83 | <div class="empty-circle"></div> |
| 84 | </div> |
| 85 | <div class="step-content"> |
| 86 | <h2><?php echo \esc_html__( 'Upgrade your plan', 'cookiebot' ); ?></h2> |
| 87 | </div> |
| 88 | <div class="step-status"> |
| 89 | <div class="lightning-badge"> |
| 90 | <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 91 | <path d="M7.58333 0.583344L1.75 8.16668H7L6.41667 13.4167L12.25 5.83334H7L7.58333 0.583344Z" fill="#0047FF"/> |
| 92 | </svg> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
| 97 | <div class="upgrade-details"> |
| 98 | <div class="divider"></div> |
| 99 | <p class="upgrade-intro">Upgrade to unlock these premium benefits:</p> |
| 100 | |
| 101 | <ul class="upgrade-features"> |
| 102 | <li><strong>Match your consent banner to your brand</strong> with advanced customization options.</li> |
| 103 | <li><strong>Adapt your banner to increase opt-ins</strong> using our consent analytics data.</li> |
| 104 | <li><strong>Benefit from higher session limits</strong> and maintain privacy compliance as your traffic grows.</li> |
| 105 | </ul> |
| 106 | |
| 107 | <p class="ready-text">Ready to take your consent experience to the next level?</p> |
| 108 | |
| 109 | <div class="upgrade-container"> |
| 110 | <button id="upgrade-now-button" class="cb-btn cb-primary-btn" onclick="window.open('https://account.usercentrics.eu/subscription/<?php echo isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ? esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) . '/' : ''; ?>manage', '_blank')"> |
| 111 | <?php echo esc_html__( 'Choose my plan', 'cookiebot' ); ?> |
| 112 | </button> |
| 113 | </div> |
| 114 | </div> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | |
| 119 | <!-- Right Side - Banner Control --> |
| 120 | <div class="gray-box-overview"> |
| 121 | <div class="header-section"> |
| 122 | <div> |
| 123 | <div class="top-row"> |
| 124 | <span class="banner-inactive-badge">Banner inactive</span> |
| 125 | <span class="trial-ended-badge">Trial ended</span> |
| 126 | </div> |
| 127 | <h1><?php echo esc_html__( 'Banner control', 'cookiebot' ); ?></h1> |
| 128 | <p class="subtitle"><?php echo esc_html__( 'Your banner is currently inactive. Reactivate it below to keep your site compliant.', 'cookiebot' ); ?></p> |
| 129 | </div> |
| 130 | </div> |
| 131 | |
| 132 | <div class="banner-actions"> |
| 133 | <button class="cb-btn cb-primary-btn" onclick="window.open('https://account.usercentrics.eu/subscription/manage', '_blank')"> |
| 134 | <?php echo esc_html__( 'Reactivate banner', 'cookiebot' ); ?> |
| 135 | </button> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | </div> |
| 141 | </div> |
| 142 | |
| 143 | <style> |
| 144 | .to-do-status { |
| 145 | background-color: #FEF3C7; |
| 146 | color: #92400E; |
| 147 | padding: 0.375rem 0.75rem; |
| 148 | border-radius: 0.375rem; |
| 149 | font-size: 0.875rem; |
| 150 | font-weight: 500; |
| 151 | margin-left: auto; |
| 152 | } |
| 153 | |
| 154 | .banner-inactive-badge { |
| 155 | background-color: #9F1818; |
| 156 | color: white; |
| 157 | padding: 0.375rem 0.75rem; |
| 158 | border-radius: 0.375rem; |
| 159 | font-size: 0.875rem; |
| 160 | font-weight: 500; |
| 161 | } |
| 162 | |
| 163 | .trial-ended-badge { |
| 164 | background-color: white; |
| 165 | color: #1032CF; |
| 166 | border: 1px solid #1032CF; |
| 167 | padding: 0.375rem 0.75rem; |
| 168 | border-radius: 1rem; |
| 169 | font-size: 0.875rem; |
| 170 | font-weight: 500; |
| 171 | } |
| 172 | </style> |
| 173 |