PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / trunk
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode vtrunk
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 / view / admin / common / templates / main-tabs.php
cookiebot / src / view / admin / common / templates Last commit date
extra 1 year ago header.php 1 year ago legacy.php 1 year ago main-tabs.php 4 months ago ppg-banner.php 4 months ago
main-tabs.php
99 lines
1 <?php
2
3 use cybot\cookiebot\lib\Cookiebot_WP;
4 use cybot\cookiebot\lib\Cookiebot_Frame;
5 use cybot\cookiebot\settings\pages\Dashboard_Page;
6 use cybot\cookiebot\settings\pages\Settings_Page;
7 use cybot\cookiebot\addons\config\Settings_Config;
8 use cybot\cookiebot\settings\pages\Support_Page;
9 use cybot\cookiebot\settings\pages\PPG_Page;
10
11 /**
12 * @var string $active_tab
13 */
14
15 $isnw = is_network_admin();
16
17 $cbid = Cookiebot_WP::get_cbid();
18 $auth_token = get_option( 'cookiebot-auth-token' );
19 $user_data = Cookiebot_WP::get_user_data();
20 $show_settings = true;
21 $show_plugins = ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty';
22 $feedback_url = 'https://form.typeform.com/to/n6ZlunZP';
23
24 ?>
25 <div class="cb-main__tabs">
26 <?php if ( ! $isnw ) : ?>
27 <div class="cb-main__tabs_item <?php echo $active_tab === 'dashboard' ? 'active-item' : ''; ?>">
28 <a href="<?php echo esc_url( add_query_arg( 'page', Dashboard_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
29 class="cb-main__tabs__link">
30 <div class="cb-main__tabs__icon dashboard-icon"></div>
31 <span><?php esc_html_e( 'View dashboard', 'cookiebot' ); ?></span>
32 </a>
33 </div>
34 <?php endif; ?>
35
36 <?php if ( ! empty( $cbid ) && ! empty( $auth_token ) ) : ?>
37 <div class="cb-main__tabs_item <?php echo $active_tab === 'customize' ? 'active-item' : ''; ?>">
38 <a href="https://admin.usercentrics.eu/#/v3/appearance/styling?settingsId=<?php echo esc_attr( $cbid ); ?>"
39 class="cb-main__tabs__link" target="_blank">
40 <div class="cb-main__tabs__icon customize-icon"></div>
41 <span><?php esc_html_e( 'Customize banner', 'cookiebot' ); ?></span>
42 </a>
43 </div>
44 <?php endif; ?>
45
46 <div class="cb-main__tabs_item <?php echo $active_tab === 'support' ? 'active-item' : ''; ?>">
47 <?php if ( $isnw ) : ?>
48 <a href="<?php echo esc_url( add_query_arg( 'page', Support_Page::ADMIN_SLUG, network_admin_url( 'admin.php' ) ) ); ?>"
49 class="cb-main__tabs__link">
50 <?php else : ?>
51 <a href="<?php echo esc_url( add_query_arg( 'page', Support_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
52 class="cb-main__tabs__link">
53 <?php endif; ?>
54 <div class="cb-main__tabs__icon support-icon"></div>
55 <span><?php esc_html_e( 'Get support', 'cookiebot' ); ?></span>
56 </a>
57 </div>
58 <?php if ( $show_plugins ) : ?>
59 <div class="cb-main__tabs_item <?php echo $active_tab === 'addons' ? 'active-item' : ''; ?>">
60 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Config::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
61 class="cb-main__tabs__link">
62 <div class="cb-main__tabs__icon plugins-icon"></div>
63 <span><?php esc_html_e( 'Manage add-ons', 'cookiebot' ); ?></span>
64 </a>
65 </div>
66 <?php endif; ?>
67
68 <?php if ( $show_settings ) : ?>
69 <div class="cb-main__tabs_item <?php echo $active_tab === 'settings' ? 'active-item' : ''; ?>">
70 <?php if ( $isnw ) : ?>
71 <a href="<?php echo esc_url( add_query_arg( 'page', 'cookiebot_network', network_admin_url( 'admin.php' ) ) ); ?>"
72 class="cb-main__tabs__link">
73 <?php else : ?>
74 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
75 class="cb-main__tabs__link">
76 <?php endif; ?>
77 <div class="cb-main__tabs__icon settings-icon"></div>
78 <span><?php esc_html_e( 'Configure settings', 'cookiebot' ); ?></span>
79 </a>
80 </div>
81 <?php endif; ?>
82
83 <div class="cb-main__tabs_separator"></div>
84
85 <div class="cb-main__tabs_item <?php echo $active_tab === 'ppg' ? 'active-item' : ''; ?>">
86 <a href="<?php echo esc_url( add_query_arg( 'page', PPG_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
87 class="cb-main__tabs__link">
88 <div class="cb-main__tabs__icon plugins-icon"></div>
89 <span><?php esc_html_e( 'Policy Generator Plugin', 'cookiebot' ); ?></span>
90 <span class="cb-main__tabs__badge"><?php esc_html_e( 'NEW', 'cookiebot' ); ?></span>
91 </a>
92 </div>
93
94 <div class="cb-feedback_link">
95 <a href="<?php echo esc_url( $feedback_url ); ?>" target="_blank"><?php echo esc_html__( 'Help us improve', 'cookiebot' ); ?></a>
96 </div>
97
98 </div>
99