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