PluginProbe ʕ •ᴥ•ʔ
iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more / dev
iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more vdev
trunk 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.5.91 3.1.0 3.1.1 3.1.2 3.10.0 3.10.1 3.10.2 3.10.3 3.10.4 3.10.5 3.10.6 3.11.0 3.11.1 3.11.2 3.11.3 3.12.0 3.12.1 3.12.2 3.12.3 3.12.4 3.12.5 3.13.0 3.13.1 3.13.2 beta dev
iubenda-cookie-law-solution / views / plugin-settings.php
iubenda-cookie-law-solution / views Last commit date
partials 3 years ago cons-configuration.php 3 years ago cons-single-form.php 3 years ago cs-configuration.php 3 years ago frontpage.php 3 years ago integrate-setup.php 3 years ago plugin-settings.php 3 years ago pp-configuration.php 3 years ago products-page.php 3 years ago tc-configuration.php 3 years ago
plugin-settings.php
71 lines
1 <?php
2 /**
3 * Global plugin setting - global - page.
4 *
5 * @package Iubenda
6 */
7
8 // Exit if accessed directly.
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12 // Including partial header.
13 require_once IUBENDA_PLUGIN_PATH . '/views/partials/header.php';
14 ?>
15 <div class="main-box">
16 <?php
17 // Including partial site-info.
18 require_once IUBENDA_PLUGIN_PATH . '/views/partials/site-info.php';
19 // Including partial breadcrumb.
20 require_once IUBENDA_PLUGIN_PATH . 'views/partials/breadcrumb.php';
21 ?>
22 <form class="ajax-form-to-options">
23 <input hidden name="action" value="save_plugin_settings_options">
24 <?php wp_nonce_field( 'iub_save_plugin_settings_options_nonce', 'iub_plugin_settings_nonce' ); ?>
25 <input hidden name="_redirect" value="<?php echo esc_url( add_query_arg( array( 'view' => 'products-page' ), iubenda()->base_url ) ); ?>">
26 <div class="p-3 m-3">
27 <label class="checkbox-regular">
28 <input type="checkbox" class="mr-2" name="iubenda_plugin_settings[ctype]" value="1" <?php checked( true, (bool) iubenda()->options['cs']['ctype'] ); ?>>
29 <span><?php esc_html_e( 'Restrict the plugin to run only for requests that have "Content-type: text / html" (recommended)', 'iubenda' ); ?></span>
30 </label>
31 <label class="checkbox-regular">
32 <input type="checkbox" class="mr-2" name="iubenda_plugin_settings[output_feed]" value="1" <?php checked( true, (bool) iubenda()->options['cs']['output_feed'] ); ?>>
33 <span><?php esc_html_e( 'Do not run the plugin inside the RSS feed (recommended)', 'iubenda' ); ?></span>
34 </label>
35 <label class="checkbox-regular">
36 <input type="checkbox" class="mr-2" name="iubenda_plugin_settings[output_post]" value="1" <?php checked( true, (bool) iubenda()->options['cs']['output_post'] ); ?>>
37 <span><?php esc_html_e( 'Do not run the plugin on POST requests (recommended)', 'iubenda' ); ?></span>
38 </label>
39 <label class="checkbox-regular">
40 <input type="checkbox" class="mr-2" name="iubenda_plugin_settings[deactivation]" value="1" <?php checked( true, (bool) iubenda()->options['cs']['deactivation'] ); ?>>
41 <span><?php esc_html_e( 'Delete all plugin data upon deactivation', 'iubenda' ); ?></span>
42 </label>
43 <div class="mt-5">
44 <h4><?php esc_html_e( 'Menu position', 'iubenda' ); ?></h4>
45 <div class="mb-2 d-flex align-items-center flex-wrap">
46 <label class="radio-regular mr-3">
47 <input type="radio" name="iubenda_plugin_settings[menu_position]" value="topmenu" class="mr-2" <?php checked( 'topmenu', iubenda()->options['cs']['menu_position'] ); ?>>
48 <span><?php esc_html_e( 'Top menu', 'iubenda' ); ?></span>
49 </label>
50 <label class="mr-4 radio-regular text-xs">
51 <input type="radio" name="iubenda_plugin_settings[menu_position]" value="submenu" class="mr-2" <?php checked( 'submenu', iubenda()->options['cs']['menu_position'] ); ?>>
52 <span><?php esc_html_e( 'Submenu', 'iubenda' ); ?></span>
53 </label>
54 </div>
55 <p class="description"><?php esc_html_e( 'Select whether to display iubenda in a top admin menu or the Settings submenu.', 'iubenda' ); ?></p>
56 </div>
57 </div>
58 <hr>
59 <div class="p-4 d-flex justify-content-end">
60 <input class="btn btn-gray-lighter btn-sm mr-2" type="button" value="<?php esc_html_e( 'Cancel', 'iubenda' ); ?>" onclick="window.location.href = '<?php echo esc_url( add_query_arg( array( 'view' => 'products-page' ), iubenda()->base_url ) ); ?>'"/>
61 <button type="submit" class="btn btn-green-primary btn-sm" value="Save" name="save">
62 <span class="button__text"><?php esc_html_e( 'Save settings', 'iubenda' ); ?></span>
63 </button>
64 </div>
65 </form>
66 </div>
67 <?php
68 // Including partial footer.
69 require_once IUBENDA_PLUGIN_PATH . 'views/partials/footer.php';
70 ?>
71