PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.2
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.2
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 1 year ago
main-tabs.php
87 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\Debug_Page;
10
11 /**
12 * @var string $active_tab
13 */
14
15 $isnw = is_network_admin();
16
17 $cbid = Cookiebot_WP::get_cbid();
18 $user_data = Cookiebot_WP::get_user_data();
19 $show_settings = $active_tab === 'settings' || empty( $user_data ) && ! empty( $cbid );
20 $show_plugins = ( ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) || empty( $user_data );
21 $show_debug = ( ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) || empty( $user_data );
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( 'Dashboard', 'cookiebot' ); ?></span>
32 </a>
33 </div>
34 <?php endif; ?>
35
36 <?php if ( $show_settings ) : ?>
37 <div class="cb-main__tabs_item <?php echo $active_tab === 'settings' ? 'active-item' : ''; ?>">
38 <?php if ( $isnw ) : ?>
39 <a href="<?php echo esc_url( add_query_arg( 'page', 'cookiebot_network', network_admin_url( 'admin.php' ) ) ); ?>"
40 class="cb-main__tabs__link">
41 <?php else : ?>
42 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
43 class="cb-main__tabs__link">
44 <?php endif; ?>
45 <div class="cb-main__tabs__icon settings-icon"></div>
46 <span><?php esc_html_e( 'Settings', 'cookiebot' ); ?></span>
47 </a>
48 </div>
49 <?php endif; ?>
50
51 <?php if ( $show_plugins ) : ?>
52 <div class="cb-main__tabs_item <?php echo $active_tab === 'addons' ? 'active-item' : ''; ?>">
53 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Config::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
54 class="cb-main__tabs__link">
55 <div class="cb-main__tabs__icon plugins-icon"></div>
56 <span><?php esc_html_e( 'Plugins', 'cookiebot' ); ?></span>
57 </a>
58 </div>
59 <?php endif; ?>
60 <div class="cb-main__tabs_item <?php echo $active_tab === 'support' ? 'active-item' : ''; ?>">
61 <?php if ( $isnw ) : ?>
62 <a href="<?php echo esc_url( add_query_arg( 'page', Support_Page::ADMIN_SLUG, network_admin_url( 'admin.php' ) ) ); ?>"
63 class="cb-main__tabs__link">
64 <?php else : ?>
65 <a href="<?php echo esc_url( add_query_arg( 'page', Support_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
66 class="cb-main__tabs__link">
67 <?php endif; ?>
68 <div class="cb-main__tabs__icon support-icon"></div>
69 <span><?php esc_html_e( 'Support', 'cookiebot' ); ?></span>
70 </a>
71 </div>
72 <?php if ( $show_debug ) : ?>
73 <div class="cb-main__tabs_item <?php echo $active_tab === 'debug' ? 'active-item' : ''; ?>">
74 <a href="<?php echo esc_url( add_query_arg( 'page', Debug_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
75 class="cb-main__tabs__link">
76 <div class="cb-main__tabs__icon debug-icon"></div>
77 <span><?php esc_html_e( 'Debug info', 'cookiebot' ); ?></span>
78 </a>
79 </div>
80 <?php endif; ?>
81
82 <div class="cb-feedback_link">
83 <a href="<?php echo esc_url( $feedback_url ); ?>" target="_blank"><?php echo esc_html__( 'Share feedback', 'cookiebot' ); ?></a>
84 </div>
85
86 </div>
87