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 / views / admin-settings-buttons.php
cookie-law-info / legacy / admin / views Last commit date
admin-settings-advanced.php 2 weeks ago admin-settings-buttons.php 2 weeks ago admin-settings-general.php 2 weeks ago admin-settings-help.php 2 weeks ago admin-settings-messagebar.php 2 weeks ago admin-settings-save-button.php 2 weeks ago
admin-settings-buttons.php
443 lines
1 <?php
2 // If this file is called directly, abort.
3 if ( ! defined( 'WPINC' ) ) {
4 die;
5 }
6 ?>
7 <div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id ); ?>">
8
9 <ul class="cli_sub_tab">
10 <li style="border-left:none; padding-left: 0px;" data-target="accept-all-button"><a><?php echo esc_html__( 'Accept All Button', 'cookie-law-info' ); ?></a></li>
11 <li data-target="accept-button"><a><?php echo esc_html__( 'Accept Button', 'cookie-law-info' ); ?></a></li>
12 <li data-target="reject-button"><a><?php echo esc_html__( 'Reject Button', 'cookie-law-info' ); ?></a></li>
13 <li data-target="settings-button"><a><?php echo esc_html__( 'Settings Button', 'cookie-law-info' ); ?></a></li>
14 <li data-target="read-more-button"><a><?php echo esc_html__( 'Read more', 'cookie-law-info' ); ?></a></li>
15 <li data-target="do-not-sell-button" class="wt-cli-ccpa-element"><a><?php echo esc_html__( 'Do not sell', 'cookie-law-info' ); ?></a></li>
16 </ul>
17
18 <div class="cli_sub_tab_container">
19
20 <div class="cli_sub_tab_content" data-id="accept-button" style="display:block;">
21 <h3><?php echo esc_html__( 'Accept Button', 'cookie-law-info' ); ?> <code>[cookie_button]</code></h3>
22 <p><?php echo esc_html__( 'Customize the Accept button to match the theme of your site. Insert the shortcode [cookie_button] in Customise Cookie Bar > Cookie bar > Message to include accept button in cookie consent bar.', 'cookie-law-info' ); ?></p>
23 <table class="form-table">
24 <tr valign="top">
25 <th scope="row"><label for="button_1_text_field"><?php echo esc_html__( 'Text', 'cookie-law-info' ); ?></label></th>
26 <td>
27 <input type="text" name="button_1_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_1_text'] ) ); ?>" />
28 </td>
29 </tr>
30 <tr valign="top">
31 <th scope="row"><label for="button_1_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
32 <td>
33 <?php
34 echo '<input type="text" name="button_1_link_colour_field" id="cli-colour-link-button-1" value="' . esc_attr( $the_options['button_1_link_colour'] ) . '" class="my-color-field" />';
35 ?>
36 </td>
37 </tr>
38 <tr valign="top">
39 <th scope="row"><label for="button_1_as_button_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
40 <td>
41 <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_yes" name="button_1_as_button_field" class="styled cli_form_toggle" value="true" <?php echo ( $the_options['button_1_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php echo esc_html__( 'Button', 'cookie-law-info' ); ?>
42
43 <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_no" name="button_1_as_button_field" class="styled cli_form_toggle" value="false" <?php echo ( $the_options['button_1_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
44 </td>
45 </tr>
46 <tr valign="top" class="cli-indent-15" cli_frm_tgl-id="cli_accept_type" cli_frm_tgl-val="true">
47 <th scope="row"><label for="button_1_button_colour_field"><?php echo esc_html__( 'Background colour', 'cookie-law-info' ); ?></label></th>
48 <td>
49 <?php
50 echo '<input type="text" name="button_1_button_colour_field" id="cli-colour-btn-button-1" value="' . esc_attr( $the_options['button_1_button_colour'] ) . '" class="my-color-field" />';
51 ?>
52 </td>
53 </tr>
54
55 <tr valign="top">
56 <th scope="row"><label for="button_1_action_field"><?php echo esc_html__( 'Action', 'cookie-law-info' ); ?></label></th>
57 <td>
58 <select name="button_1_action_field" id="cli-plugin-button-1-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_accept_action">
59 <?php $this->print_combobox_options( $this->get_js_actions(), $the_options['button_1_action'] ); ?>
60 </select>
61 </td>
62 </tr>
63 <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
64 <th scope="row"><label for="button_1_url_field"><?php echo esc_html__( 'URL', 'cookie-law-info' ); ?></label></th>
65 <td>
66 <input type="text" name="button_1_url_field" id="button_1_url_field" value="<?php echo esc_attr( $the_options['button_1_url'] ); ?>" />
67 <span class="cli_form_help"><?php echo esc_html__( 'Specify the URL to redirect users on accept button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after giving consent.', 'cookie-law-info' ); ?></span>
68 </td>
69 </tr>
70
71 <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
72 <th scope="row"><label for="button_1_new_win_field"><?php echo esc_html__( 'Open URL in new window', 'cookie-law-info' ); ?></label></th>
73 <td>
74 <input type="radio" id="button_1_new_win_field_yes" name="button_1_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_1_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'Yes', 'cookie-law-info' ); ?>
75
76 <input type="radio" id="button_1_new_win_field_no" name="button_1_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_1_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'No', 'cookie-law-info' ); ?>
77 </td>
78 </tr>
79
80
81
82 <tr valign="top">
83 <th scope="row"><label for="button_1_button_size_field"><?php echo esc_html__( 'Button Size', 'cookie-law-info' ); ?></label></th>
84 <td>
85 <select name="button_1_button_size_field" class="vvv_combobox">
86 <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_1_button_size'] ); ?>
87 </select>
88 </td>
89 </tr>
90 </table><!-- end custom button -->
91 </div>
92
93 <div class="cli_sub_tab_content" data-id="reject-button">
94 <h3><?php echo esc_html__( 'Reject Button', 'cookie-law-info' ); ?> <code>[cookie_reject]</code></h3>
95
96 <p>
97 <?php
98 echo wp_kses(
99 __( 'Customize the Reject button to match the theme of your site. Insert the shortcode <strong>[cookie_reject]</strong> in <strong>Customise Cookie Bar > Cookie bar > Message</strong> to include reject button in cookie consent bar.', 'cookie-law-info' ),
100 array(
101 'p' => array(),
102 'strong' => array(),
103 )
104 );
105 ?>
106 </p>
107 <table class="form-table" >
108 <tr valign="top">
109 <th scope="row"><label for="button_3_text_field"><?php echo esc_html__( 'Text', 'cookie-law-info' ); ?></label></th>
110 <td>
111 <input type="text" name="button_3_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_3_text'] ) ); ?>" />
112 </td>
113 </tr>
114 <tr valign="top">
115 <th scope="row"><label for="button_3_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
116 <td>
117 <?php
118 echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . esc_attr( $the_options['button_3_link_colour'] ) . '" class="my-color-field" />';
119 ?>
120 </td>
121 </tr>
122 <tr valign="top">
123 <th scope="row"><label for="button_3_as_button_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
124 <td>
125 <input type="radio" id="button_3_as_button_field_yes" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="true" <?php echo ( $the_options['button_3_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php echo esc_html__( 'Button', 'cookie-law-info' ); ?>
126
127 <input type="radio" id="button_3_as_button_field_no" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="false" <?php echo ( $the_options['button_3_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
128 </td>
129 </tr>
130 <tr valign="top" cli_frm_tgl-id="cli_reject_type" cli_frm_tgl-val="true">
131 <th scope="row"><label for="button_3_button_colour_field"><?php echo esc_html__( 'Background colour', 'cookie-law-info' ); ?></label></th>
132 <td>
133 <?php
134 echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . esc_attr( $the_options['button_3_button_colour'] ) . '" class="my-color-field" />';
135 ?>
136 </td>
137 </tr>
138 <tr valign="top">
139 <th scope="row"><label for="button_3_action_field"><?php echo esc_html__( 'Action', 'cookie-law-info' ); ?></label></th>
140 <td>
141 <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_reject_action">
142 <?php
143 $action_list = $this->get_js_actions();
144 $action_list['close_header']['value'] = '#cookie_action_close_header_reject';
145 $this->print_combobox_options( $action_list, $the_options['button_3_action'] );
146 ?>
147 </select>
148 </td>
149 </tr>
150 <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
151 <th scope="row"><label for="button_3_url_field"><?php echo esc_html__( 'URL', 'cookie-law-info' ); ?></label></th>
152 <td>
153 <input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo esc_url( $the_options['button_3_url'] ); ?>" />
154 <span class="cli_form_help"><?php echo esc_html__( 'Specify the URL to redirect users on reject button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after rejecting cookies.', 'cookie-law-info' ); ?></span>
155 </td>
156 </tr>
157
158 <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
159 <th scope="row"><label for="button_3_new_win_field"><?php echo esc_html__( 'Open URL in new window', 'cookie-law-info' ); ?></label></th>
160 <td>
161 <input type="radio" id="button_3_new_win_field_yes" name="button_3_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_3_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'Yes', 'cookie-law-info' ); ?>
162 <input type="radio" id="button_3_new_win_field_no" name="button_3_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_3_new_win'] == false ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'No', 'cookie-law-info' ); ?>
163 </td>
164 </tr>
165 <tr valign="top">
166 <th scope="row"><label for="button_3_button_size_field"><?php echo esc_html__( 'Button Size', 'cookie-law-info' ); ?></label></th>
167 <td>
168 <select name="button_3_button_size_field" class="vvv_combobox">
169 <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_3_button_size'] ); ?>
170 </select>
171 </td>
172 </tr>
173 </table><!-- end custom button -->
174 </div>
175 <div class="cli_sub_tab_content" data-id="settings-button">
176 <h3><?php echo esc_html__( 'Settings Button', 'cookie-law-info' ); ?> <code>[cookie_settings]</code></h3>
177 <p>
178 <?php
179 echo wp_kses(
180 __( 'Customize the cookie settings to match the theme of your site. Insert the shortcode <strong>[cookie_settings]</strong> in <strong>Customise Cookie Bar > Cookie bar > Message</strong> to include cookie settings within the cookie consent bar. Clicking ‘Cookie settings’ opens up a pop up window with provisions to enable/disable cookie categories.', 'cookie-law-info' ),
181 array(
182 'p' => array(),
183 'strong' => array(),
184 )
185 );
186 ?>
187 </p>
188 <table class="form-table" >
189 <tr valign="top">
190 <th scope="row"><label for="button_4_text_field"><?php echo esc_html__( 'Text', 'cookie-law-info' ); ?></label></th>
191 <td>
192 <input type="text" name="button_4_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_4_text'] ) ); ?>" />
193 </td>
194 </tr>
195 <tr valign="top">
196 <th scope="row"><label for="button_4_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
197 <td>
198 <?php
199 echo '<input type="text" name="button_4_link_colour_field" id="cli-colour-link-button-4" value="' . esc_attr( $the_options['button_4_link_colour'] ) . '" class="my-color-field" />';
200 ?>
201 </td>
202 </tr>
203 <tr valign="top">
204 <th scope="row"><label for="button_4_as_button_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
205 <td>
206 <input type="radio" id="button_4_as_button_field_yes" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="true" <?php echo ( $the_options['button_4_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /><?php echo esc_html__( 'Button', 'cookie-law-info' ); ?>
207
208 <input type="radio" id="button_4_as_button_field_no" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="false" <?php echo ( $the_options['button_4_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
209 </td>
210 </tr>
211 <tr valign="top" cli_frm_tgl-id="cli_settings_type" cli_frm_tgl-val="true">
212 <th scope="row"><label for="button_4_button_colour_field"><?php echo esc_html__( 'Background colour', 'cookie-law-info' ); ?></label></th>
213 <td>
214 <?php
215 echo '<input type="text" name="button_4_button_colour_field" id="cli-colour-btn-button-4" value="' . esc_attr( $the_options['button_4_button_colour'] ) . '" class="my-color-field" />';
216 ?>
217 </td>
218 </tr>
219 </table><!-- end custom button -->
220 </div>
221 <div class="cli_sub_tab_content" data-id="read-more-button">
222 <h3><?php echo esc_html__( 'Read more', 'cookie-law-info' ); ?> <code>[cookie_link]</code></h3>
223 <p>
224 <?php echo esc_html__( '‘Read more’ redirects users to the ‘Privacy & Cookie Policy’ page. Create a ‘Privacy & Cookie Policy’ page for your site from here.', 'cookie-law-info' ); ?>
225 <?php
226 echo wp_kses(
227 __( 'Insert the shortcode <strong>[cookie_link]</strong> in <strong>Customise Cookie Bar > Cookie bar > Message</strong> to include ‘Read more’ within the cookie consent bar.', 'cookie-law-info' ),
228 array(
229 'p' => array(),
230 'strong' => array(),
231 )
232 );
233 ?>
234 </p>
235 <?php
236 if ( Cookie_Law_Info_Admin::module_exists( 'cli-policy-generator' ) ) {
237 ?>
238 <p><?php echo esc_html__( 'Click', 'cookie-law-info' ); ?> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=' . CLI_POST_TYPE . '&page=cookie-law-info-policy-generator' ) ); ?>"><?php echo esc_html__( 'here', 'cookie-law-info' ); ?></a> <?php echo esc_html__( ' to generate content for Cookie Policy page.', 'cookie-law-info' ); ?>
239 </p>
240 <?php
241 }
242 ?>
243
244 <table class="form-table">
245 <tr valign="top">
246 <th scope="row"><label for="button_2_text_field"><?php echo esc_html__( 'Text', 'cookie-law-info' ); ?></label></th>
247 <td>
248 <input type="text" name="button_2_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_2_text'] ) ); ?>" />
249 </td>
250 </tr>
251 <tr valign="top">
252 <th scope="row"><label for="button_2_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
253 <td>
254 <?php
255 echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . esc_attr( $the_options['button_2_link_colour'] ) . '" class="my-color-field" />';
256 ?>
257 </td>
258 </tr>
259 <tr valign="top">
260 <th scope="row"><label for="button_2_as_button_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
261 <td>
262 <input type="radio" id="button_2_as_button_field_yes" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="true" <?php echo ( $the_options['button_2_as_button'] == true ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Button', 'cookie-law-info' ); ?>
263
264 <input type="radio" id="button_2_as_button_field_no" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="false" <?php echo ( $the_options['button_2_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
265 </td>
266 </tr>
267 <tr valign="top" cli_frm_tgl-id="cli_readmore_type" cli_frm_tgl-val="true">
268 <th scope="row"><label for="button_2_button_colour_field"><?php echo esc_html__( 'Background colour', 'cookie-law-info' ); ?></label></th>
269 <td>
270 <?php
271 echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . esc_attr( $the_options['button_2_button_colour'] ) . '" class="my-color-field" />';
272 ?>
273 </td>
274 </tr>
275
276 <tr valign="top">
277 <th scope="row"><label for="button_2_url_type_field"><?php echo esc_html__( 'URL or Page?', 'cookie-law-info' ); ?></label></th>
278 <td>
279 <input type="radio" id="button_2_url_type_field_url" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="url" <?php echo ( $the_options['button_2_url_type'] == 'url' ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'URL', 'cookie-law-info' ); ?>
280
281 <input type="radio" id="button_2_url_type_field_page" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="page" <?php echo ( $the_options['button_2_url_type'] == 'page' ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Page', 'cookie-law-info' ); ?>
282 </td>
283 </tr>
284
285 <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="url">
286 <th scope="row"><label for="button_2_url_field"><?php echo esc_html__( 'URL', 'cookie-law-info' ); ?></label></th>
287 <td>
288 <input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo esc_url( $the_options['button_2_url'] ); ?>" />
289 </td>
290 </tr>
291 <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="page">
292 <th scope="row"><label for="button_2_page_field"><?php echo esc_html__( 'Page', 'cookie-law-info' ); ?></label></th>
293 <td>
294 <select name="button_2_page_field" class="vvv_combobox" id="button_2_page_field">
295 <option value="0">--<?php echo esc_html__( 'Select One', 'cookie-law-info' ); ?>--</option>
296 <?php
297 foreach ( $all_pages as $page ) {
298 ?>
299 <option value="<?php echo esc_attr( $page->ID ); ?>" <?php echo ( $the_options['button_2_page'] == $page->ID ? 'selected' : '' ); ?>> <?php echo esc_html( $page->post_title ); ?> </option>;
300 <?php
301 }
302 ?>
303 </select>
304 <?php
305 if ( $the_options['button_2_page'] > 0 ) {
306 $privacy_policy_page = get_post( $the_options['button_2_page'] );
307 $privacy_page_exists = 0;
308 if ( $privacy_policy_page instanceof WP_Post ) {
309 if ( $privacy_policy_page->post_status === 'publish' ) {
310 $privacy_page_exists = 1;
311 }
312 }
313 if ( $privacy_page_exists == 0 ) {
314 ?>
315 <span class="cli_form_er cli_privacy_page_not_exists_er" style="display: inline;"><?php echo esc_html__( 'The currently selected page does not exist. Please select a new page.', 'cookie-law-info' ); ?></span>
316 <?php
317 }
318 }
319 ?>
320 </td>
321 </tr>
322 <tr valign="top">
323 <th scope="row"><label for="button_2_new_win_field"><?php echo esc_html__( 'Hide cookie bar in this page/URL', 'cookie-law-info' ); ?></label></th>
324 <td>
325 <input type="radio" id="button_2_hidebar_field_yes" name="button_2_hidebar_field" class="styled" value="true" <?php echo ( $the_options['button_2_hidebar'] == true ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Yes', 'cookie-law-info' ); ?>
326 <input type="radio" id="button_2_hidebar_field_no" name="button_2_hidebar_field" class="styled" value="false" <?php echo ( $the_options['button_2_hidebar'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'No', 'cookie-law-info' ); ?>
327 </td>
328 </tr>
329 <tr valign="top">
330 <th scope="row"><label for="button_2_new_win_field"><?php echo esc_html__( 'Open in a new window', 'cookie-law-info' ); ?></label></th>
331 <td>
332 <input type="radio" id="button_2_new_win_field_yes" name="button_2_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_2_new_win'] == true ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Yes', 'cookie-law-info' ); ?>
333 <input type="radio" id="button_2_new_win_field_no" name="button_2_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_2_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'No', 'cookie-law-info' ); ?>
334 </td>
335 </tr>
336 </table><!-- end custom button -->
337 </div>
338 <div class="cli_sub_tab_content" data-id="do-not-sell-button">
339 <h3><?php echo esc_html__( 'Do not sell', 'cookie-law-info' ); ?> <code>[wt_cli_ccpa_optout]</code></h3>
340 <p><?php echo esc_html__( 'Customise the appearance of CCPA notice. Enabling ‘Show CCPA notice’ displays the notice on the consent bar and records prior consent from the user. Alternatively, insert CCPA shortcode [wt_cli_ccpa_optout] to render CCPA notice in a specific page of your site, preferably, cookie policy page.', 'cookie-law-info' ); ?></p>
341
342 <table class="form-table">
343 <tr valign="top">
344 <th scope="row"><label for="button_6_text_field"><?php echo esc_html__( 'CCPA Text', 'cookie-law-info' ); ?></label></th>
345 <td>
346 <input type="text" name="button_6_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_6_text'] ) ); ?>" />
347 </td>
348 </tr>
349 <tr valign="top">
350 <th scope="row"><label for="button_6_as_link_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
351 <td>
352 <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_yes" name="button_6_as_link_field" class="styled cli_form_toggle" value="true" <?php echo ( wp_validate_boolean( $the_options['button_6_as_link'] ) == true ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
353 <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_no" name="button_6_as_link_field" class="styled cli_form_toggle" value="false" <?php echo ( wp_validate_boolean( $the_options['button_6_as_link'] ) == false ) ? ' checked="checked"' : ' '; ?> /> <?php echo esc_html__( 'Checkbox', 'cookie-law-info' ); ?>
354 <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="true" style="margin-top:8px;"><?php echo esc_html__( 'The shortcode will be represented as a link wherever used.', 'cookie-law-info' ); ?></span>
355 <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="false" style="margin-top:8px;"><?php echo esc_html__( 'The shortcode will be represented as a checkbox with select option to record consent.', 'cookie-law-info' ); ?></span>
356
357 </td>
358 </tr>
359 <tr valign="top">
360 <th scope="row"><label for="button_6_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
361 <td>
362 <?php
363 echo '<input type="text" name="button_6_link_colour_field" id="cli-colour-link-button-6" value="' . esc_attr( $the_options['button_6_link_colour'] ) . '" class="my-color-field" />';
364 ?>
365 </td>
366 </tr>
367 </table><!-- end custom button -->
368 </div>
369 <div class="cli_sub_tab_content" data-id="accept-all-button" style="display:block;">
370 <h3><?php echo esc_html__( 'Accept All Button', 'cookie-law-info' ); ?> <code>[cookie_accept_all]</code></h3>
371 <p><?php echo esc_html__( 'This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.', 'cookie-law-info' ); ?></p>
372 <table class="form-table">
373 <tr valign="top">
374 <th scope="row"><label for="button_7_text_field"><?php echo esc_html__( 'Text', 'cookie-law-info' ); ?></label></th>
375 <td>
376 <input type="text" name="button_7_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_7_text'] ) ); ?>" />
377 </td>
378 </tr>
379 <tr valign="top">
380 <th scope="row"><label for="button_7_link_colour_field"><?php echo esc_html__( 'Text colour', 'cookie-law-info' ); ?></label></th>
381 <td>
382 <?php
383 echo '<input type="text" name="button_7_link_colour_field" id="cli-colour-link-button-7" value="' . esc_attr( $the_options['button_7_link_colour'] ) . '" class="my-color-field" />';
384 ?>
385 </td>
386 </tr>
387 <tr valign="top">
388 <th scope="row"><label for="button_7_as_button_field"><?php echo esc_html__( 'Show as', 'cookie-law-info' ); ?></label></th>
389 <td>
390 <input type="radio" cli_frm_tgl-target="cli_accept_all_type" id="button_7_as_button_field_yes" name="button_7_as_button_field" class="styled cli_form_toggle" value="true" <?php echo ( $the_options['button_7_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php echo esc_html__( 'Button', 'cookie-law-info' ); ?>
391
392 <input type="radio" cli_frm_tgl-target="cli_accept_all_type" id="button_7_as_button_field_no" name="button_7_as_button_field" class="styled cli_form_toggle" value="false" <?php echo ( $the_options['button_7_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'Link', 'cookie-law-info' ); ?>
393 </td>
394 </tr>
395 <tr valign="top" class="cli-indent-15" cli_frm_tgl-id="cli_accept_all_type" cli_frm_tgl-val="true">
396 <th scope="row"><label for="button_7_button_colour_field"><?php echo esc_html__( 'Background colour', 'cookie-law-info' ); ?></label></th>
397 <td>
398 <?php
399 echo '<input type="text" name="button_7_button_colour_field" id="cli-colour-btn-button-7" value="' . esc_attr( $the_options['button_7_button_colour'] ) . '" class="my-color-field" />';
400 ?>
401 </td>
402 </tr>
403 <tr valign="top">
404 <th scope="row"><label for="button_7_action_field"><?php echo esc_html__( 'Action', 'cookie-law-info' ); ?></label></th>
405 <td>
406 <select name="button_7_action_field" id="cli-plugin-button-7-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_accept_all_action">
407 <?php $this->print_combobox_options( $this->get_js_actions(), $the_options['button_7_action'] ); ?>
408 </select>
409 </td>
410 </tr>
411 <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_all_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
412 <th scope="row"><label for="button_7_url_field"><?php echo esc_html__( 'URL', 'cookie-law-info' ); ?></label></th>
413 <td>
414 <input type="text" name="button_7_url_field" id="button_7_url_field" value="<?php echo esc_url( $the_options['button_7_url'] ); ?>" />
415 <span class="cli_form_help"><?php echo esc_html__( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
416 </td>
417 </tr>
418
419 <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_all_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
420 <th scope="row"><label for="button_7_new_win_field"><?php echo esc_html__( 'Open URL in new window?', 'cookie-law-info' ); ?></label></th>
421 <td>
422 <input type="radio" id="button_7_new_win_field_yes" name="button_7_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_7_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php echo esc_html__( 'Yes', 'cookie-law-info' ); ?>
423
424 <input type="radio" id="button_7_new_win_field_no" name="button_7_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_7_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html__( 'No', 'cookie-law-info' ); ?>
425 </td>
426 </tr>
427 <tr valign="top">
428 <th scope="row"><label for="button_7_button_size_field"><?php echo esc_html__( 'Size', 'cookie-law-info' ); ?></label></th>
429 <td>
430 <select name="button_7_button_size_field" class="vvv_combobox">
431 <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_7_button_size'] ); ?>
432 </select>
433 </td>
434 </tr>
435 </table><!-- end custom button -->
436 </div>
437
438 </div>
439 <?php
440 require 'admin-settings-save-button.php';
441 ?>
442 </div>
443