PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
← All changes | admin/settings.php +36 -5 1.3.3trunk View file →
@@ -18,11 +18,11 @@
18 18 {
19 19 display:none !important;
20 20 }
21 21 </style>
22 -<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
22 +<div class="xyz_ihs_system_notice_area_style1" id="xyz_ihs_system_notice_area">
23 23 Thanks again for using the plugin. We will never show the message again.
24 - &nbsp;&nbsp;&nbsp;<span id="xyz_system_notice_area_dismiss">Dismiss</span>
24 + &nbsp;&nbsp;&nbsp;<span id="xyz_ihs_system_notice_area_dismiss">Dismiss</span>
25 25 </div>
26 26 <?php
27 27 }
28 28
@@ -35,8 +35,9 @@
35 35 $_POST=xyz_trim_deep($_POST);
36 36 $_POST = stripslashes_deep($_POST);
37 37 $xyz_ihs_limit = abs(intval($_POST['xyz_ihs_limit']));
38 38 $xyz_ihs_pre_ads = intval($_POST['xyz_ihs_pre_ads']);
39 + $xyz_ihs_exec_in_editor = intval($_POST['xyz_ihs_exec_in_editor']);
39 40 if($xyz_ihs_limit==0)$xyz_ihs_limit=20;
40 41 $xyz_ihs_credit = sanitize_text_field($_POST['xyz_ihs_credit']);
41 42 if($xyz_ihs_credit=="ihs" || $xyz_ihs_credit==0)
42 43 {
@@ -54,15 +55,21 @@
54 55 {
55 56 update_option('xyz_ihs_sort_order',$xyz_ihs_sortorder);
56 57 }
57 58
59 + $xyz_ihs_show_snippet_usage=intval($_POST['xyz_ihs_show_snippet_usage']);
60 + update_option('xyz_ihs_show_snippet_usage',$xyz_ihs_show_snippet_usage);
58 61
59 62 update_option('xyz_ihs_limit',$xyz_ihs_limit);
63 + update_option('xyz_ihs_exec_in_editor',$xyz_ihs_exec_in_editor);
60 64
61 65 ?>
62 -<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
66 +<!-- <div class="xyz_ihs_system_notice_area_style1" id="xyz_ihs_system_notice_area">
63 67 Settings updated successfully. &nbsp;&nbsp;&nbsp;
64 - <span id="xyz_system_notice_area_dismiss">Dismiss</span>
68 + <span id="xyz_ihs_system_notice_area_dismiss">Dismiss</span>
69 +</div> -->
70 + <div class="notice notice-success is-dismissible">
71 + <p><strong>Settings updated successfully. &nbsp;&nbsp;&nbsp;</strong></p>
65 72 </div>
66 73 <?php
67 74 }
68 75 }
@@ -126,12 +133,36 @@
126 133 </select>
127 134 </td>
128 135 </tr>
129 136 <tr valign="top">
137 + <td scope="row">
138 + <label for="xyz_ihs_exec_in_editor">Execute shortcodes in editors</label><br/><span style="color: #1A87B9;font-size:13px;" >[Enable/Disable Shortcode Execution in Editors (Gutenberg, Classic, Elementor, etc.)]</span>
139 + </td>
140 + <td>
141 + <select name="xyz_ihs_exec_in_editor" id="xyz_ihs_exec_in_editor">
142 + <option value="0" <?php selected(get_option('xyz_ihs_exec_in_editor'),0);?>>Disable</option>
143 + <option value="1" <?php selected(get_option('xyz_ihs_exec_in_editor'),1);?>>Enable</option>
144 + </select>
145 + </td>
146 + </tr>
147 + <tr valign="top">
148 + <td scope="row">
149 + <label for="xyz_ihs_show_snippet_usage">Show Snippet Usage Details </label>
150 + <img src="<?php echo plugins_url('insert-html-snippet/images/support.png')?>" onmouseover="document.getElementById('xyz_ihs_usage_note').style.display = '';" onmouseout="document.getElementById('xyz_ihs_usage_note').style.display = 'none';">
151 + <div id="xyz_ihs_usage_note" class="xyz_ihs_informationdiv" style="display: none;">Display where each snippet is used (posts/pages) within the admin panel.<br/>Usage data is maintained automatically after the initial sync.</div>
152 + </td>
153 + <td>
154 + <select name="xyz_ihs_show_snippet_usage" id="xyz_ihs_show_snippet_usage">
155 + <option value="0" <?php selected(get_option('xyz_ihs_show_snippet_usage'),0);?>>Disable</option>
156 + <option value="1" <?php selected(get_option('xyz_ihs_show_snippet_usage'),1);?>>Enable</option>
157 + </select>
158 + </td>
159 + </tr>
160 + <tr valign="top">
130 161 <td scope="row" class=" xyz_ihs_settingInput" id="xyz_ihs_bottomBorderNone">
131 162 </td>
132 163 <td id="xyz_ihs_bottomBorderNone">
133 - <input style="margin:10px 0 20px 0;" id="submit" class="button-primary xyz_bottonWidth" type="submit" value=" Update Settings " />
164 + <input style="margin:10px 0 20px 0;" id="submit" class="button-primary xyz_ihs_bottonWidth" type="submit" value=" Update Settings " />
134 165 </td>
135 166 </tr>
136 167 </table>
137 168 </fieldset>