PluginProbe
Popup Maker – Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More / trunk
Popup Maker – Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More vtrunk
1.4.5 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.6 1.0.7 1.0.8 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.6 1.1.8 1.1.9 1.1.9.1 1.1.9.3 1.1.9.4 1.1.9.6 1.2.1.4 1.2.2.1 1.2.2.2 All 39 releases
popup-maker-wp / com / view / settings_content.php

settings_content.php in Popup Maker – Responsive popup, Exit Intent Pop up, Email Optins, Autoresponder & More trunk, at com/view/settings_content.php

90 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div data-pws-tab="Settings" data-pws-tab-name="Settings">
2 <div class="sgpm-tabs-content">
3 <form id="sgpm-form-general-settings-save" class="sgpm-form" method="post" action="<?php echo esc_url(admin_url());?>admin-post.php">
4 <input type="hidden" name="action" value="sgpm_general_settings_save">
5 <?php wp_nonce_field('sgpm_general_settings_save', 'wp-nonce-token-general_settings-save'); ?>
6 <?php
7 global $wp_roles;
8 $roles = $wp_roles->get_names();
9 $selectedUserRoles = get_option('sgpm_popup_maker_user_roles');
10 $selectedUserRoles = $selectedUserRoles ? $selectedUserRoles : array();
11 ?>
12 <h2>User Role</h2>
13 <br>
14 <div class="sgpm-user-roles-value-wrapper">
15 <div class="sgpm-user-roles-value-content">
16 <span class="sgpm-margin-bottom-5">Choose the user roles who can use the plugin.</span>
17 <select class="sgpm-select-user-roles-multiple" name="sgpm-selected-user-roles[]" multiple="multiple">
18 <?php foreach ($roles as $key => $name):
19 $selected = '';
20 ?>
21 <?php
22 if ($key == 'administrator') continue;
23 if (in_array($key, $selectedUserRoles)) $selected = 'selected';
24 ?>
25 <?php if (in_array($key, $selectedUserRoles)) ?>
26 <option value="<?php echo esc_attr($key)?>" <?php echo esc_html($selected)?>><?php echo esc_html($name)?></option>
27 <?php endforeach; ?>
28 </select>
29 <span class="sgpm-info-text"><small><strong>Attention: </strong>If you don't select any role, the plugin will be available for all user roles.</small></span>
30 </div>
31 </div>
32 <h2>Custom HTML Tags</h2>
33 <br>
34 <div class="sgpm-custom-tags-wrapper">
35 <div class="sgpm-custom-tags-content">
36 <div class="sgpm-custom-tags-section">
37 <label for="sgpm-custom-allowed-tags">
38 <strong>Allowed custom HTML tags</strong>
39 </label>
40 <p class="sgpm-description">
41 Enter the custom HTML tags you want to allow in popups, separated by commas.<br>
42 <em>Example: custom-tag, my-component, special-element</em>
43 </p>
44 <textarea
45 id="sgpm-custom-allowed-tags"
46 name="sgpm-custom-allowed-tags"
47 rows="3"
48 cols="50"
49 placeholder="custom-tag, my-component, special-element"
50 class="sgpm-textarea-large"
51 ><?php echo esc_textarea(get_option('sgpm_popup_maker_custom_allowed_tags', '')); ?></textarea>
52 </div>
53
54 <div class="sgpm-custom-attrs-section">
55 <label for="sgpm-custom-allowed-attrs">
56 <strong>Allowed custom HTML attributes</strong>
57 </label>
58 <p class="sgpm-description">
59 Enter the custom HTML attributes you want to allow on all tags, separated by commas.<br>
60 <em>Example: data-custom, my-attr, special-property</em>
61 </p>
62 <textarea
63 id="sgpm-custom-allowed-attrs"
64 name="sgpm-custom-allowed-attrs"
65 rows="3"
66 cols="50"
67 placeholder="data-custom, my-attr, special-property"
68 class="sgpm-textarea-large"
69 ><?php echo esc_textarea(get_option('sgpm_popup_maker_custom_allowed_attrs', '')); ?></textarea>
70 </div>
71
72 <div class="sgpm-info-box">
73 <h4>ℹ️ Important information:</h4>
74 <ul>
75 <li>Custom tags will be added to the already allowed base HTML tags</li>
76 <li>Custom attributes will be applied to all allowed tags</li>
77 <li>Make sure to enter only valid tag and attribute names</li>
78 <li>This feature allows greater flexibility in creating custom popups</li>
79 </ul>
80 </div>
81 </div>
82 </div>
83
84 <div class="sgpm-options-action-panel">
85 <input class="sgpm-settings-save-btn sgpm-btn blue" type="submit" name="sgpm-submit" value="Save Changes" tabindex="749">
86 </div>
87 </form>
88 </div>
89 </div>
90