PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.4
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.4
4.7.4 4.7.5 4.7.3 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 All 95 releases
cookiebot / src / view / admin / common / templates / main-tabs.php

main-tabs.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.4, at src/view/admin/common/templates/main-tabs.php

99 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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