PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.2.13
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.2.13
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 / settings / prior-consent / page.php
cookiebot / src / view / admin / settings / prior-consent Last commit date
available-addons 3 years ago jetpack-widgets 3 years ago other-addons 3 years ago partials 3 years ago unavailable-addons 3 years ago page.php 3 years ago
page.php
69 lines
1 <?php
2 use cybot\cookiebot\settings\templates\Header;
3 use cybot\cookiebot\settings\templates\Main_Tabs;
4
5 use cybot\cookiebot\lib\Settings_Page_Tab;
6
7 /**
8 * @var Settings_Page_Tab[] $settings_page_tabs
9 * @var Settings_Page_Tab $active_tab
10 */
11
12 $header = new Header();
13 $main_tabs = new Main_Tabs();
14 $jetpack_enabled = isset( get_option( 'cookiebot_available_addons' )['jetpack']['enabled'] ) && get_option( 'cookiebot_available_addons' )['jetpack']['enabled'];
15
16 $header->display();
17 ?>
18 <div class="cb-body">
19 <div class="cb-wrapper">
20 <?php $main_tabs->display( 'addons' ); ?>
21 <div class="cb-main__content">
22 <form method="post" action="options.php" class="<?php echo esc_attr( $active_tab->get_name() ); ?>">
23 <div class="cb-settings__header">
24 <h1 class="cb-main__page_title"><?php esc_html_e( 'Plugins', 'cookiebot' ); ?></h1>
25 <?php
26 if ( $active_tab->has_submit_button() ) {
27 if ( $active_tab->get_name() === 'jetpack' ) {
28 if ( $jetpack_enabled ) {
29 submit_button();
30 }
31 } else {
32 submit_button();
33 }
34 }
35 ?>
36 </div>
37
38 <div class="cb-settings__tabs">
39 <?php foreach ( $settings_page_tabs as $settings_page_tab ) : ?>
40 <a href="<?php echo esc_url( $settings_page_tab->get_tab_href() ); ?>" class="cb-settings__tabs__item <?php echo esc_attr( $settings_page_tab->get_classes() ); ?>">
41 <?php echo esc_html( $settings_page_tab->get_label() ); ?>
42 </a>
43 <?php endforeach; ?>
44 </div>
45
46 <div class="cb-settings__tabs__content">
47 <div class="cb-settings__tabs__content--item">
48
49 <?php
50 settings_fields( $active_tab->get_settings_fields_option_group() );
51 do_settings_sections( $active_tab->get_page_name() );
52 if ( $active_tab->has_submit_button() ) {
53 if ( $active_tab->get_name() === 'jetpack' ) {
54 if ( $jetpack_enabled ) {
55 submit_button();
56 }
57 } else {
58 submit_button();
59 }
60 }
61 ?>
62
63 </div>
64 </div>
65 </form>
66 </div>
67 </div>
68 </div>
69