PluginProbe ʕ •ᴥ•ʔ
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) / 3.5.0
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) v3.5.0
3.5.1 3.5.0 3.4.2 trunk 1.0.1 1.0.3 1.2 1.2.1 1.2.2 1.3 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.2.0 3.2.1 3.2.10 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.3.9.1 3.4.0 3.4.1
cookie-law-info / legacy / admin / partials / cookie-law-info-admin_settings.php
cookie-law-info / legacy / admin / partials Last commit date
cookie-law-info-admin_settings.php 1 month ago cookie-law-info-privacy_overview.php 1 month ago wt-cli-update-banner.php 1 month ago wt-cli-update-modals.php 1 month ago
cookie-law-info-admin_settings.php
128 lines
1 <?php
2 // If this file is called directly, abort.
3 if ( ! defined( 'WPINC' ) ) {
4 die;
5 }
6 $cli_admin_view_path = CLI_PLUGIN_PATH . 'admin/views/';
7 $cli_img_path = CLI_PLUGIN_URL . 'images/';
8 $plugin_name = 'wtgdprcookieconsent';
9 $cli_activation_status = get_option( $plugin_name . '_activation_status' );
10
11 // taking pages for privacy policy URL.
12 $args_for_get_pages = array(
13 'sort_order' => 'ASC',
14 'sort_column' => 'post_title',
15 'hierarchical' => 0,
16 'child_of' => 0,
17 'parent' => -1,
18 'offset' => 0,
19 'post_type' => 'page',
20 'post_status' => 'publish',
21 );
22 $all_pages = get_pages( $args_for_get_pages );
23 ?>
24 <script type="text/javascript">
25 var cli_settings_success_message='<?php echo esc_html__( 'Settings updated.', 'cookie-law-info' ); ?>';
26 var cli_settings_error_message='<?php echo esc_html__( 'Unable to update Settings.', 'cookie-law-info' ); ?>';
27 var cli_reset_settings_success_message='<?php echo esc_html__( 'Settings reset to defaults.', 'cookie-law-info' ); ?>';
28 var cli_reset_settings_error_message='<?php echo esc_html__( 'Unable to reset settings.', 'cookie-law-info' ); ?>';
29 </script>
30 <div class="wrap">
31 <?php include_once CLI_PLUGIN_PATH . 'admin/partials/wt-cli-update-banner.php'; ?>
32
33 <h2 class="wp-heading-inline"><?php echo esc_html__( 'Settings', 'cookie-law-info' ); ?></h2>
34
35 <div class="wt-cli-gdpr-plugin-header">
36 <div class="wt-cli-gdpr-plugin-status-bar">
37 <table class="cli_notify_table cli_bar_state">
38 <tr valign="middle" class="cli_bar_on" style="<?php echo $the_options['is_on'] == true ? '' : 'display:none;'; ?>">
39 <td style="padding-left: 10px;">
40 <div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
41 <img src="<?php echo esc_url( $cli_img_path ); ?>add.svg" />
42 <span><?php echo esc_html__( 'Cookie bar is currently active', 'cookie-law-info' ); ?></span>
43 </div>
44 </td>
45 </tr>
46 <tr valign="middle" class="cli_bar_off" style="<?php echo $the_options['is_on'] == true ? 'display:none;' : ''; ?>">
47 <td style="padding-left: 10px;">
48 <div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
49 <img src="<?php echo esc_url( $cli_img_path ); ?>cross.png" />
50 <span><?php echo esc_html__( 'Cookie bar is currently inactive', 'cookie-law-info' ); ?></span>
51 </div>
52 </td>
53 </tr>
54 </table>
55 </div>
56 <div class="wt-cli-gdpr-plugin-branding">
57 <div class="wt-cli-gdpr-plugin-branding-logo">
58 <img src="<?php echo esc_url( $cli_img_path ); ?>logo-cookieyes.svg" alt="CookieYes Logo">
59 </div>
60 <div class="wt-cli-gdpr-plugin-branding-tagline">
61
62 <span><b><?php echo esc_html__( 'Cookie Compliance Made Easy', 'cookie-law-info' ); ?>
63 </b></span>
64 </div>
65 </div>
66 </div>
67
68 <div class="cli_settings_left" id="cky-container">
69 <div class="nav-tab-wrapper wp-clearfix cookie-law-info-tab-head">
70 <?php
71 $tab_head_arr = array(
72 'cookie-law-info-general' => __( 'General', 'cookie-law-info' ),
73 'cookie-law-info-message-bar' => __( 'Customise Cookie Bar', 'cookie-law-info' ),
74 'cookie-law-info-buttons' => __( 'Customise Buttons', 'cookie-law-info' ),
75 'cookie-law-info-advanced' => __( 'Advanced', 'cookie-law-info' ),
76 'cookie-law-info-help' => __( 'Help Guide', 'cookie-law-info' ),
77 );
78 Cookie_Law_Info::generate_settings_tabhead( $tab_head_arr );
79 ?>
80 </div>
81 <div id="cky-tab-container" class="cookie-law-info-tab-container">
82 <?php
83 $setting_views_a = array(
84 'cookie-law-info-general' => 'admin-settings-general.php',
85 'cookie-law-info-message-bar' => 'admin-settings-messagebar.php',
86 'cookie-law-info-buttons' => 'admin-settings-buttons.php',
87 'cookie-law-info-advanced' => 'admin-settings-advanced.php',
88 );
89 $setting_views_b = array(
90 'cookie-law-info-help' => 'admin-settings-help.php',
91 );
92 ?>
93 <?php $form_action = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : ''; ?>
94 <form method="post" action="<?php echo esc_url( $form_action ); ?>" id="cli_settings_form">
95 <input type="hidden" name="cli_update_action" value="" id="cli_update_action" />
96 <?php
97 // Set nonce:
98 if ( function_exists( 'wp_nonce_field' ) ) {
99 wp_nonce_field( 'cookielawinfo-update-' . CLI_SETTINGS_FIELD );
100 }
101 foreach ( $setting_views_a as $target_id => $value ) {
102 $settings_view = $cli_admin_view_path . $value;
103 if ( file_exists( $settings_view ) ) {
104 include $settings_view;
105 }
106 }
107 ?>
108
109 <?php
110 // settings form fields for module
111 do_action( 'cli_module_settings_form' );
112 ?>
113
114 </form>
115 <?php
116 foreach ( $setting_views_b as $target_id => $value ) {
117 $settings_view = $cli_admin_view_path . $value;
118 if ( file_exists( $settings_view ) ) {
119 include $settings_view;
120 }
121 }
122 ?>
123 <?php do_action( 'cli_module_out_settings_form' ); ?>
124 </div>
125 </div>
126
127 </div>
128