Header Footer Code Manager - Version 1.1.32

Version Description

2022-12-16 * ADDED: Warning message to caution about file editing * FIXED: Snippet including in case of rest api in some cases

Download this release

Release Info

Developer 99robots
Plugin Icon 128x128 Header Footer Code Manager
Version 1.1.32
Comparing to
See all releases

Code changes from version 1.1.31 to 1.1.32

99robots-header-footer-code-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Header Footer Code Manager
4
  * Plugin URI: https://draftpress.com/products
5
  * Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://draftpress.com/"> official page</a>.
6
- * Version: 1.1.31
7
  * Requires at least: 4.9
8
  * Requires PHP: 5.6.20
9
  * Author: 99robots
@@ -369,6 +369,7 @@ if ( !class_exists( 'NNR_HFCM' ) ) :
369
  public static function hfcm_plugin_notice_dismissed()
370
  {
371
  $user_id = get_current_user_id();
 
372
  // Checking if user clicked on the Dismiss button
373
  if ( isset( $_GET['hfcm-admin-notice-dismissed'] ) ) {
374
  add_user_meta( $user_id, 'hfcm_plugin_notice_dismissed', 'true', true );
@@ -377,6 +378,11 @@ if ( !class_exists( 'NNR_HFCM' ) ) :
377
  wp_redirect( $current_url );
378
  exit;
379
  }
 
 
 
 
 
380
  }
381
 
382
  /*
@@ -595,7 +601,7 @@ if ( !class_exists( 'NNR_HFCM' ) ) :
595
  */
596
  public static function hfcm_content_scripts( $content )
597
  {
598
- if ( !is_feed() ) {
599
  return self::hfcm_add_snippets( false, $content );
600
  } else {
601
  return $content;
3
  * Plugin Name: Header Footer Code Manager
4
  * Plugin URI: https://draftpress.com/products
5
  * Description: Header Footer Code Manager by 99 Robots is a quick and simple way for you to add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, tracking, marketing, or chat functions. For detailed documentation, please visit the plugin's <a href="https://draftpress.com/"> official page</a>.
6
+ * Version: 1.1.32
7
  * Requires at least: 4.9
8
  * Requires PHP: 5.6.20
9
  * Author: 99robots
369
  public static function hfcm_plugin_notice_dismissed()
370
  {
371
  $user_id = get_current_user_id();
372
+
373
  // Checking if user clicked on the Dismiss button
374
  if ( isset( $_GET['hfcm-admin-notice-dismissed'] ) ) {
375
  add_user_meta( $user_id, 'hfcm_plugin_notice_dismissed', 'true', true );
378
  wp_redirect( $current_url );
379
  exit;
380
  }
381
+
382
+ // Checking if user clicked on the 'I understand' button
383
+ if ( isset( $_GET['hfcm-file-edit-notice-dismissed'] ) ) {
384
+ add_user_meta( $user_id, 'hfcm_file_edit_plugin_notice_dismissed', 'true', true );
385
+ }
386
  }
387
 
388
  /*
601
  */
602
  public static function hfcm_content_scripts( $content )
603
  {
604
+ if ( !is_feed() && !(defined( 'REST_REQUEST' ) && REST_REQUEST) ) {
605
  return self::hfcm_add_snippets( false, $content );
606
  } else {
607
  return $content;
includes/hfcm-add-edit.php CHANGED
@@ -1,425 +1,460 @@
1
  <?php
2
 
3
  // Register the script
4
- wp_register_script('hfcm_showboxes', plugins_url('js/nnr-hfcm-showboxes.js', dirname(__FILE__)), array( 'jquery' ));
5
 
6
  // prepare ID (for AJAX)
7
- if (!isset($id) ) {
8
  $id = -1;
9
  }
10
 
11
  // Localize the script with new data
12
  $translation_array = array(
13
- 'header' => __('Header', 'header-footer-code-manager'),
14
- 'before_content' => __('Before Content', 'header-footer-code-manager'),
15
- 'after_content' => __('After Content', 'header-footer-code-manager'),
16
- 'footer' => __('Footer', 'header-footer-code-manager'),
17
- 'id' => absint($id),
18
- 'security' => wp_create_nonce('hfcm-get-posts'),
19
  );
20
- wp_localize_script('hfcm_showboxes', 'hfcm_localize', $translation_array);
21
 
22
  // Enqueued script with localized data.
23
- wp_enqueue_script('hfcm_showboxes');
24
  ?>
25
 
26
- <div class="wrap">
27
- <h1>
28
- <?php echo $update ? esc_html__('Edit Snippet', 'header-footer-code-manager') : esc_html__('Add New Snippet', 'header-footer-code-manager') ?>
29
- <?php if ($update ) : ?>
30
- <a href="<?php echo admin_url('admin.php?page=hfcm-create') ?>" class="page-title-action">
31
- <?php esc_html_e('Add New Snippet', 'header-footer-code-manager') ?>
32
- </a>
33
- <?php endif; ?>
34
- </h1>
35
- <?php
36
- if (!empty($_GET['message']) ) :
37
- if (1 === $_GET['message'] ) :
38
- ?>
39
- <div class="updated">
40
- <p><?php esc_html_e('Script updated', 'header-footer-code-manager'); ?></p>
41
- </div>
42
- <a href="<?php echo admin_url('admin.php?page=hfcm-list') ?>">&laquo; <?php esc_html_e('Back to list', 'header-footer-code-manager'); ?></a>
43
- <?php elseif (6 === $_GET['message'] ) : ?>
44
- <div class="updated">
45
- <p><?php esc_html_e('Script Added Successfully', 'header-footer-code-manager'); ?></p>
46
- </div>
47
- <a href="<?php echo admin_url('admin.php?page=hfcm-list') ?>">&laquo; <?php esc_html_e('Back to list', 'header-footer-code-manager'); ?></a>
48
  <?php
 
49
  endif;
50
- endif;
51
 
52
- if ($update ) :
53
- $hfcm_form_action = admin_url('admin.php?page=hfcm-request-handler&id=' . absint($id));
54
- else :
55
- $hfcm_form_action = admin_url('admin.php?page=hfcm-request-handler');
56
- endif;
57
- ?>
58
- <form method="post" action="<?php echo $hfcm_form_action ?>">
59
- <?php
60
- if ($update ) :
61
- wp_nonce_field('update-snippet_' . absint($id));
62
  else :
63
- wp_nonce_field('create-snippet');
64
  endif;
65
  ?>
66
- <table class="wp-list-table widefat fixed hfcm-form-width form-table">
67
- <tr>
68
- <th class="hfcm-th-width"><?php esc_html_e('Snippet Name', 'header-footer-code-manager'); ?></th>
69
- <td>
70
- <input type="text" name="data[name]" value="<?php echo esc_attr($name); ?>" class="hfcm-field-width"/>
71
- </td>
72
- </tr>
73
- <?php
74
- $nnr_hfcm_snippet_type_array = array(
75
- 'html' => esc_html__('HTML', 'header-footer-code-manager'),
76
- 'css' => esc_html__('CSS', 'header-footer-code-manager'),
77
- 'js' => esc_html__('Javascript', 'header-footer-code-manager')
78
- ); ?>
79
- <tr id="snippet_type">
80
- <th class="hfcm-th-width">
81
- <?php esc_html_e('Snippet Type', 'header-footer-code-manager'); ?>
82
- </th>
83
- <td>
84
- <select name="data[snippet_type]">
85
- <?php
86
- foreach ( $nnr_hfcm_snippet_type_array as $nnr_key => $nnr_item ) {
87
- if ($nnr_key === $nnr_snippet_type ) {
88
- echo "<option value='" . esc_attr($nnr_key) . "' selected>" . esc_html($nnr_item) . "</option>";
89
- } else {
90
- echo "<option value='" . esc_attr($nnr_key) . "'>" . esc_html($nnr_item) . "</option>";
91
- }
92
- }
93
- ?>
94
- </select>
95
- </td>
96
- </tr>
97
- <?php
98
- $nnr_hfcm_display_array = array(
99
- 'All' => esc_html__('Site Wide', 'header-footer-code-manager'),
100
- 's_posts' => esc_html__('Specific Posts', 'header-footer-code-manager'),
101
- 's_pages' => esc_html__('Specific Pages', 'header-footer-code-manager'),
102
- 's_categories' => esc_html__('Specific Categories (Archive & Posts)', 'header-footer-code-manager'),
103
- 's_custom_posts' => esc_html__('Specific Post Types (Archive & Posts)', 'header-footer-code-manager'),
104
- 's_tags' => esc_html__('Specific Tags (Archive & Posts)', 'header-footer-code-manager'),
105
- 's_is_home' => esc_html__('Home Page', 'header-footer-code-manager'),
106
- 's_is_search' => esc_html__('Search Page', 'header-footer-code-manager'),
107
- 's_is_archive' => esc_html__('Archive Page', 'header-footer-code-manager'),
108
- 'latest_posts' => esc_html__('Latest Posts', 'header-footer-code-manager'),
109
- 'manual' => esc_html__('Shortcode Only', 'header-footer-code-manager'),
110
- ); ?>
111
- <tr>
112
- <th class="hfcm-th-width"><?php esc_html_e('Site Display', 'header-footer-code-manager'); ?></th>
113
- <td>
114
- <select name="data[display_on]" onchange="hfcm_showotherboxes(this.value);">
115
- <?php
116
- foreach ( $nnr_hfcm_display_array as $dkey => $statusv ) {
117
- if ($display_on === $dkey ) {
118
- printf('<option value="%1$s" selected="selected">%2$s</option>', $dkey, $statusv);
119
- } else {
120
- printf('<option value="%1$s">%2$s</option>', $dkey, $statusv);
121
- }
122
- }
123
- ?>
124
- </select>
125
- </td>
126
- </tr>
127
- <?php
128
- $nnr_hfcm_pages = get_pages();
129
- $nnr_hfcm_exclude_pages_style = ('s_pages' === $display_on) ? 'display:none;' : '';
130
- $nnr_hfcm_exclude_posts_style = ('s_posts' === $display_on) ? 'display:none;' : '';
131
- $nnr_hfcm_exclude_categories_style = 's_categories' === $display_on ? 'display:none;' : '';
132
- $nnr_hfcm_exclude_tags_style = 's_tags' === $display_on ? 'display:none;' : '';
133
- $nnr_hfcm_exclude_custom_posts_style = 's_custom_posts' === $display_on ? 'display:none;' : '';
134
- $nnr_hfcm_exclude_lp_count_style = 'latest_posts' === $display_on ? 'display:none;' : '';
135
- $nnr_hfcm_exclude_manual_style = 'manual' === $display_on ? 'display:none;' : '';
136
- ?>
137
- <tr id="ex_pages"
138
- style="<?php echo esc_attr($nnr_hfcm_exclude_pages_style . $nnr_hfcm_exclude_posts_style . $nnr_hfcm_exclude_tags_style . $nnr_hfcm_exclude_custom_posts_style . $nnr_hfcm_exclude_categories_style . $nnr_hfcm_exclude_lp_count_style . $nnr_hfcm_exclude_manual_style); ?>">
139
- <th class="hfcm-th-width"><?php esc_html_e('Exclude Pages', 'header-footer-code-manager'); ?></th>
140
- <td>
141
- <select name="data[ex_pages][]" multiple>
142
- <?php
143
- foreach ( $nnr_hfcm_pages as $pdata ) {
144
- if (in_array($pdata->ID, $ex_pages) ) {
145
- printf('<option value="%1$s" selected="selected">%2$s</option>', $pdata->ID, $pdata->post_title);
146
- } else {
147
- printf('<option value="%1$s">%2$s</option>', $pdata->ID, $pdata->post_title);
148
- }
149
- }
150
- ?>
151
- </select>
152
- </td>
153
- </tr>
154
- <tr id="ex_posts"
155
- style="<?php echo esc_attr($nnr_hfcm_exclude_pages_style . $nnr_hfcm_exclude_posts_style . $nnr_hfcm_exclude_tags_style . $nnr_hfcm_exclude_custom_posts_style . $nnr_hfcm_exclude_categories_style . $nnr_hfcm_exclude_lp_count_style . $nnr_hfcm_exclude_manual_style); ?>">
156
- <th class="hfcm-th-width"><?php esc_html_e('Exclude Posts', 'header-footer-code-manager'); ?></th>
157
- <td>
158
- <select class="nnr-wraptext" name="data[ex_posts][]" multiple>
159
- <option disabled></option>
160
- </select> <img id="loader"
161
- src="<?php echo plugins_url('images/ajax-loader.gif', dirname(__FILE__)); ?>">
162
- </td>
163
- </tr>
164
  <?php
165
- $nnr_hfcm_pages = get_pages();
166
- $nnr_hfcm_pages_style = ('s_pages' === $display_on) ? '' : 'display:none;';
 
 
 
167
  ?>
168
- <tr id="s_pages" style="<?php echo esc_attr($nnr_hfcm_pages_style); ?>">
169
- <th class="hfcm-th-width">
170
- <?php esc_html_e('Page List', 'header-footer-code-manager'); ?>
171
- </th>
172
- <td>
173
- <select name="data[s_pages][]" multiple>
174
- <?php
175
- foreach ( $nnr_hfcm_pages as $pdata ) {
176
- if (in_array($pdata->ID, $s_pages) ) {
177
- printf('<option value="%1$s" selected="selected">%2$s</option>', esc_attr($pdata->ID), esc_attr($pdata->post_title));
178
- } else {
179
- printf('<option value="%1$s">%2$s</option>', esc_attr($pdata->ID), esc_attr($pdata->post_title));
180
- }
181
- }
182
- ?>
183
- </select>
184
- </td>
185
- </tr>
186
- <?php $nnr_hfcm_posts_style = 's_posts' === $display_on ? '' : 'display:none;'; ?>
187
- <tr id="s_posts" style="<?php echo esc_attr($nnr_hfcm_posts_style); ?>">
188
- <th class="hfcm-th-width">
189
- <?php esc_html_e('Post List', 'header-footer-code-manager'); ?>
190
- </th>
191
- <td>
192
- <select class="nnr-wraptext" name="data[s_posts][]" multiple>
193
- <option disabled>...</option>
194
- </select>
195
- </td>
196
- </tr>
197
- <?php
198
- $nnr_hfcm_categories = NNR_HFCM::hfcm_get_categories();
199
- $nnr_hfcm_tags = NNR_HFCM::hfcm_get_tags();
200
-
201
- $nnr_hfcm_categories_style = 's_categories' === $display_on ? '' : 'display:none;';
202
- $nnr_hfcm_tags_style = 's_tags' === $display_on ? '' : 'display:none;';
203
- $nnr_hfcm_custom_posts_style = 's_custom_posts' === $display_on ? '' : 'display:none;';
204
- $nnr_hfcm_lpcount_style = 'latest_posts' === $display_on ? '' : 'display:none;';
205
- $nnr_hfcm_location_style = 'manual' === $display_on ? 'display:none;' : '';
206
-
207
- // Get all names of Post Types
208
- $args = array(
209
- 'public' => true,
210
- );
211
-
212
- $output = 'names';
213
- $operator = 'and';
214
-
215
- $nnr_hfcm_custom_post_types = get_post_types($args, $output, $operator);
216
- $nnr_hfcm_post_types = array( 'post' );
217
- foreach ( $nnr_hfcm_custom_post_types as $cpdata ) {
218
- $nnr_hfcm_post_types[] = $cpdata;
219
- }
220
- ?>
221
- <tr id="s_categories" style="<?php echo esc_attr($nnr_hfcm_categories_style); ?>">
222
- <th class="hfcm-th-width"><?php esc_html_e('Category List', 'header-footer-code-manager'); ?></th>
223
- <td>
224
- <select name="data[s_categories][]" multiple>
225
- <?php
226
- foreach ( $nnr_hfcm_categories as $nnr_key_cat => $nnr_item_cat ) {
227
- foreach($nnr_item_cat['terms'] as $nnr_item_cat_key => $nnr_item_cat_term) {
228
- if (in_array($nnr_item_cat_term->term_id, $s_categories) ) {
229
- echo "<option value='" . esc_attr($nnr_item_cat_term->term_id) . "' selected>" . esc_html($nnr_item_cat['name']) . " - " . esc_html($nnr_item_cat_term->name) . "</option>";
230
  } else {
231
- echo "<option value='" . esc_attr($nnr_item_cat_term->term_id) . "'>" . esc_html($nnr_item_cat['name']) . " - " . esc_html($nnr_item_cat_term->name) . "</option>";
232
  }
233
  }
234
- }
235
- ?>
236
- </select>
237
- </td>
238
- </tr>
239
- <tr id="s_tags" style="<?php echo esc_attr($nnr_hfcm_tags_style); ?>">
240
- <th class="hfcm-th-width"><?php esc_html_e('Tags List', 'header-footer-code-manager'); ?></th>
241
- <td>
242
- <select name="data[s_tags][]" multiple>
243
- <?php
244
- foreach ($nnr_hfcm_tags as $nnr_key_cat => $nnr_item_tag) {
245
- foreach ( $nnr_item_tag['terms'] as $nnr_item_tag_key => $nnr_item_tag_term ) {
246
- if (in_array($nnr_item_tag_term->term_id, $s_tags) ) {
247
- echo "<option value='" . esc_attr($nnr_item_tag_term->term_id) . "' selected>" . esc_html($nnr_item_tag['name']) . " - " . esc_html($nnr_item_tag_term->name) . "</option>";
 
 
 
 
 
 
 
 
 
 
 
 
248
  } else {
249
- echo "<option value='" . esc_attr($nnr_item_tag_term->term_id) . "'>" . esc_html($nnr_item_tag['name']) . " - " . esc_html($nnr_item_tag_term->name) . "</option>";
250
  }
251
  }
252
- }
253
- ?>
254
- </select>
255
- </td>
256
- </tr>
257
- <tr id="c_posttype" style="<?php echo esc_attr($nnr_hfcm_custom_posts_style); ?>">
258
- <th class="hfcm-th-width"><?php esc_html_e('Post Types', 'header-footer-code-manager'); ?></th>
259
- <td>
260
- <select name="data[s_custom_posts][]" multiple>
261
- <?php
262
- foreach ( $nnr_hfcm_custom_post_types as $cpkey => $cpdata ) {
263
- if (in_array($cpkey, $s_custom_posts) ) {
264
- echo "<option value='" . esc_attr($cpkey) . "' selected>" . esc_html($cpdata) . "</option>";
265
- } else {
266
- echo "<option value='" . esc_attr($cpkey) . "'>" . esc_html($cpdata) . "</option>";
 
 
 
 
 
 
 
 
 
 
 
267
  }
268
- }
269
- ?>
270
- </select>
271
- </td>
272
- </tr>
273
- <tr id="lp_count" style="<?php echo esc_attr($nnr_hfcm_lpcount_style); ?>">
274
- <th class="hfcm-th-width"><?php esc_html_e('Post Count', 'header-footer-code-manager'); ?></th>
275
- <td>
276
- <select name="data[lp_count]">
277
- <?php
278
- for ( $i = 1; $i <= 20; $i++ ) {
279
- if ($i == $lp_count ) {
280
- echo "<option value='".esc_attr($i)."' selected>".esc_html($i)."</option>";
281
- } else {
282
- echo "<option value='".esc_attr($i)."'>".esc_html($i)."</option>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  }
284
- }
285
- ?>
286
- </select>
287
- </td>
288
- </tr>
289
- <?php
290
- if (in_array($display_on, array( 's_posts', 's_pages', 's_custom_posts', 's_tags', 'latest_posts' )) ) {
291
- $nnr_hfcm_locations = array(
292
- 'header' => __('Header', 'header-footer-code-manager'),
293
- 'before_content' => __('Before Content', 'header-footer-code-manager'),
294
- 'after_content' => __('After Content', 'header-footer-code-manager'),
295
- 'footer' => __('Footer', 'header-footer-code-manager')
296
- );
297
- } else {
298
- $nnr_hfcm_locations = array(
299
- 'header' => __('Header', 'header-footer-code-manager'),
300
- 'footer' => __('Footer', 'header-footer-code-manager')
 
 
 
 
 
 
 
 
 
 
 
301
  );
302
- }
303
- ?>
304
- <tr id="locationtr" style="<?php echo esc_attr($nnr_hfcm_location_style); ?>">
305
- <th class="hfcm-th-width">
306
- <?php esc_html_e('Location', 'header-footer-code-manager'); ?>
307
- </th>
308
- <td>
309
- <select name="data[location]" id="data_location">
310
- <?php
311
- foreach ( $nnr_hfcm_locations as $lkey => $statusv ) {
312
- if ($location === $lkey ) {
313
- echo "<option value='" . esc_attr($lkey) . "' selected='selected'>" . esc_html($statusv) . '</option>';
314
- } else {
315
- echo "<option value='" . esc_attr($lkey) . "'>" . esc_html($statusv) . '</option>';
 
 
 
 
 
 
 
 
 
316
  }
317
- }
318
- ?>
319
- </select>
320
- <p>
321
- <b><?php _e("Note", 'header-footer-code-manager'); ?></b>: <?php _e("Not all locations (such as before content) exist on all page/post types. The location will only appear as an option if the appropriate hook exists on the page.", 'header-footer-code-manager'); ?>
322
- </p>
323
- </td>
324
- </tr>
325
- <?php $nnr_hfcm_device_type_array = array(
326
- 'both' => __('Show on All Devices', 'header-footer-code-manager'),
327
- 'desktop' => __('Only Desktop', 'header-footer-code-manager'),
328
- 'mobile' => __('Only Mobile Devices', 'header-footer-code-manager')
329
- ) ?>
330
- <?php $nnr_hfcm_status_array = array(
331
- 'active' => __('Active', 'header-footer-code-manager'),
332
- 'inactive' => __('Inactive', 'header-footer-code-manager')
333
- ) ?>
334
- <tr>
335
- <th class="hfcm-th-width"><?php esc_html_e('Device Display', 'header-footer-code-manager'); ?></th>
336
- <td>
337
- <select name="data[device_type]">
338
- <?php
339
- foreach ( $nnr_hfcm_device_type_array as $smkey => $typev ) {
340
- if ($device_type === $smkey ) {
341
- echo "<option value='" . esc_attr($smkey) . "' selected='selected'>" . esc_html($typev) . '</option>';
342
- } else {
343
- echo "<option value='" . esc_attr($smkey) . "'>" . esc_html($typev) . '</option>';
344
  }
345
- }
346
- ?>
347
- </select>
348
- </td>
349
- </tr>
350
- <tr>
351
- <th class="hfcm-th-width"><?php esc_html_e('Status', 'header-footer-code-manager'); ?></th>
352
- <td>
353
- <select name="data[status]">
354
- <?php
355
- foreach ( $nnr_hfcm_status_array as $skey => $statusv ) {
356
- if ($status === $skey ) {
357
- echo "<option value='" . esc_attr($skey) . "' selected='selected'>" . esc_html($statusv) . '</option>';
358
- } else {
359
- echo "<option value='" . esc_attr($skey) . "'>" . esc_html($statusv) . '</option>';
360
  }
361
- }
362
- ?>
363
- </select>
364
- </td>
365
- </tr>
366
- <?php if ($update ) : ?>
367
- <tr>
368
- <th class="hfcm-th-width"><?php esc_html_e('Shortcode', 'header-footer-code-manager'); ?></th>
369
  <td>
370
- <p>
371
- [hfcm id="<?php echo esc_html($id); ?>"]
372
- <?php if ($update ) :
373
- ?>
374
- <a data-shortcode='[hfcm id="<?php echo absint($id); ?>"]' href="javascript:void(0);" class="nnr-btn-click-to-copy nnr-btn-copy-inline" id="hfcm_copy_shortcode">
375
- <?php esc_html_e('Copy', 'header-footer-code-manager'); ?>
376
- </a>
377
- <?php endif; ?>
378
- </p>
379
-
 
380
  </td>
381
  </tr>
382
- <tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
383
  <th class="hfcm-th-width">
384
- <?php esc_html_e('Changelog', 'header-footer-code-manager'); ?>
385
  </th>
386
  <td>
 
 
 
 
 
 
 
 
 
 
 
387
  <p>
388
- <?php esc_html_e('Snippet created by', 'header-footer-code-manager'); ?>
389
- <b><?php echo esc_html($createdby); ?></b> <?php echo _e('on', 'header-footer-code-manager') . ' ' . date_i18n(get_option('date_format'), strtotime($createdon)) . ' ' . __('at', 'header-footer-code-manager') . ' ' . date_i18n(get_option('time_format'), strtotime($createdon)) ?>
390
- <br/>
391
- <?php if (!empty($lastmodifiedby) ) : ?>
392
- <?php esc_html_e('Last edited by', 'header-footer-code-manager'); ?>
393
- <b><?php echo esc_html($lastmodifiedby); ?></b> <?php echo _e('on', 'header-footer-code-manager') . ' ' . date_i18n(get_option('date_format'), strtotime($lastrevisiondate)) . ' ' . __('at', 'header-footer-code-manager') . ' ' . date_i18n(get_option('time_format'), strtotime($lastrevisiondate)) ?>
394
- <?php endif; ?>
395
  </p>
396
  </td>
397
  </tr>
398
- <?php endif; ?>
399
- </table>
400
- <div class="nnr-mt-20">
401
- <h1><?php esc_html_e('Snippet', 'header-footer-code-manager'); ?>
402
- / <?php esc_html_e('Code', 'header-footer-code-manager') ?></h1>
403
- <div class="nnr-mt-20 nnr-hfcm-codeeditor-box">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  <textarea name="data[snippet]" aria-describedby="nnr-newcontent-description" id="nnr_newcontent"
405
- rows="20"><?php echo html_entity_decode($snippet); ?></textarea>
406
 
407
- <p class="notice notice-warning nnr-padding10" id="nnr-snippet-warning">
408
- <?php _e( 'Warning: Using improper code or untrusted sources code can break your site or create security risks. <a href="https://draftpress.com/security-risks-of-wp-plugins-that-allow-code-editing-or-insertion" target="_blank">Learn more</a>.', 'header-footer-code-manager' ); ?>
409
- </p>
410
- <div class="wp-core-ui">
411
- <input type="submit"
412
- name="<?php echo $update ? 'update' : 'insert'; ?>"
413
- value="<?php echo $update ? esc_html__('Update', 'header-footer-code-manager') : esc_html__('Save', 'header-footer-code-manager') ?>"
414
- class="button button-primary button-large nnr-btnsave">
415
- <?php if ($update ) :
416
- $delete_nonce = wp_create_nonce('hfcm_delete_snippet');
417
- ?>
418
- <a onclick="return nnr_confirm_delete_snippet();" href="<?php echo esc_url(admin_url('admin.php?page=hfcm-list&action=delete&_wpnonce=' . $delete_nonce . '&snippet=' . absint($id))); ?>"
419
- class="button button-secondary button-large nnr-btndelete"><?php esc_html_e('Delete', 'header-footer-code-manager'); ?></a>
420
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
  </div>
 
 
 
 
 
 
 
 
 
 
422
  </div>
423
  </div>
424
- </form>
425
- </div>
 
 
1
  <?php
2
 
3
  // Register the script
4
+ wp_register_script( 'hfcm_showboxes', plugins_url( 'js/nnr-hfcm-showboxes.js', dirname( __FILE__ ) ), array( 'jquery' ) );
5
 
6
  // prepare ID (for AJAX)
7
+ if ( !isset( $id ) ) {
8
  $id = -1;
9
  }
10
 
11
  // Localize the script with new data
12
  $translation_array = array(
13
+ 'header' => __( 'Header', 'header-footer-code-manager' ),
14
+ 'before_content' => __( 'Before Content', 'header-footer-code-manager' ),
15
+ 'after_content' => __( 'After Content', 'header-footer-code-manager' ),
16
+ 'footer' => __( 'Footer', 'header-footer-code-manager' ),
17
+ 'id' => absint( $id ),
18
+ 'security' => wp_create_nonce( 'hfcm-get-posts' ),
19
  );
20
+ wp_localize_script( 'hfcm_showboxes', 'hfcm_localize', $translation_array );
21
 
22
  // Enqueued script with localized data.
23
+ wp_enqueue_script( 'hfcm_showboxes' );
24
  ?>
25
 
26
+ <div class="wrap">
27
+ <h1>
28
+ <?php echo $update ? esc_html__( 'Edit Snippet', 'header-footer-code-manager' ) : esc_html__( 'Add New Snippet', 'header-footer-code-manager' ) ?>
29
+ <?php if ( $update ) : ?>
30
+ <a href="<?php echo admin_url( 'admin.php?page=hfcm-create' ) ?>" class="page-title-action">
31
+ <?php esc_html_e( 'Add New Snippet', 'header-footer-code-manager' ) ?>
32
+ </a>
33
+ <?php endif; ?>
34
+ </h1>
35
+ <?php
36
+ if ( !empty( $_GET['message'] ) ) :
37
+ if ( 1 === $_GET['message'] ) :
38
+ ?>
39
+ <div class="updated">
40
+ <p><?php esc_html_e( 'Script updated', 'header-footer-code-manager' ); ?></p>
41
+ </div>
42
+ <a href="<?php echo admin_url( 'admin.php?page=hfcm-list' ) ?>">&laquo; <?php esc_html_e( 'Back to list', 'header-footer-code-manager' ); ?></a>
43
+ <?php elseif ( 6 === $_GET['message'] ) : ?>
44
+ <div class="updated">
45
+ <p><?php esc_html_e( 'Script Added Successfully', 'header-footer-code-manager' ); ?></p>
46
+ </div>
47
+ <a href="<?php echo admin_url( 'admin.php?page=hfcm-list' ) ?>">&laquo; <?php esc_html_e( 'Back to list', 'header-footer-code-manager' ); ?></a>
48
  <?php
49
+ endif;
50
  endif;
 
51
 
52
+ if ( $update ) :
53
+ $hfcm_form_action = admin_url( 'admin.php?page=hfcm-request-handler&id=' . absint( $id ) );
 
 
 
 
 
 
 
 
54
  else :
55
+ $hfcm_form_action = admin_url( 'admin.php?page=hfcm-request-handler' );
56
  endif;
57
  ?>
58
+ <form method="post" action="<?php echo $hfcm_form_action ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  <?php
60
+ if ( $update ) :
61
+ wp_nonce_field( 'update-snippet_' . absint( $id ) );
62
+ else :
63
+ wp_nonce_field( 'create-snippet' );
64
+ endif;
65
  ?>
66
+ <table class="wp-list-table widefat fixed hfcm-form-width form-table">
67
+ <tr>
68
+ <th class="hfcm-th-width"><?php esc_html_e( 'Snippet Name', 'header-footer-code-manager' ); ?></th>
69
+ <td>
70
+ <input type="text" name="data[name]" value="<?php echo esc_attr( $name ); ?>"
71
+ class="hfcm-field-width"/>
72
+ </td>
73
+ </tr>
74
+ <?php
75
+ $nnr_hfcm_snippet_type_array = array(
76
+ 'html' => esc_html__( 'HTML', 'header-footer-code-manager' ),
77
+ 'css' => esc_html__( 'CSS', 'header-footer-code-manager' ),
78
+ 'js' => esc_html__( 'Javascript', 'header-footer-code-manager' )
79
+ ); ?>
80
+ <tr id="snippet_type">
81
+ <th class="hfcm-th-width">
82
+ <?php esc_html_e( 'Snippet Type', 'header-footer-code-manager' ); ?>
83
+ </th>
84
+ <td>
85
+ <select name="data[snippet_type]">
86
+ <?php
87
+ foreach ( $nnr_hfcm_snippet_type_array as $nnr_key => $nnr_item ) {
88
+ if ( $nnr_key === $nnr_snippet_type ) {
89
+ echo "<option value='" . esc_attr( $nnr_key ) . "' selected>" . esc_html( $nnr_item ) . "</option>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  } else {
91
+ echo "<option value='" . esc_attr( $nnr_key ) . "'>" . esc_html( $nnr_item ) . "</option>";
92
  }
93
  }
94
+ ?>
95
+ </select>
96
+ </td>
97
+ </tr>
98
+ <?php
99
+ $nnr_hfcm_display_array = array(
100
+ 'All' => esc_html__( 'Site Wide', 'header-footer-code-manager' ),
101
+ 's_posts' => esc_html__( 'Specific Posts', 'header-footer-code-manager' ),
102
+ 's_pages' => esc_html__( 'Specific Pages', 'header-footer-code-manager' ),
103
+ 's_categories' => esc_html__( 'Specific Categories (Archive & Posts)', 'header-footer-code-manager' ),
104
+ 's_custom_posts' => esc_html__( 'Specific Post Types (Archive & Posts)', 'header-footer-code-manager' ),
105
+ 's_tags' => esc_html__( 'Specific Tags (Archive & Posts)', 'header-footer-code-manager' ),
106
+ 's_is_home' => esc_html__( 'Home Page', 'header-footer-code-manager' ),
107
+ 's_is_search' => esc_html__( 'Search Page', 'header-footer-code-manager' ),
108
+ 's_is_archive' => esc_html__( 'Archive Page', 'header-footer-code-manager' ),
109
+ 'latest_posts' => esc_html__( 'Latest Posts', 'header-footer-code-manager' ),
110
+ 'manual' => esc_html__( 'Shortcode Only', 'header-footer-code-manager' ),
111
+ ); ?>
112
+ <tr>
113
+ <th class="hfcm-th-width"><?php esc_html_e( 'Site Display', 'header-footer-code-manager' ); ?></th>
114
+ <td>
115
+ <select name="data[display_on]" onchange="hfcm_showotherboxes(this.value);">
116
+ <?php
117
+ foreach ( $nnr_hfcm_display_array as $dkey => $statusv ) {
118
+ if ( $display_on === $dkey ) {
119
+ printf( '<option value="%1$s" selected="selected">%2$s</option>', $dkey, $statusv );
120
  } else {
121
+ printf( '<option value="%1$s">%2$s</option>', $dkey, $statusv );
122
  }
123
  }
124
+ ?>
125
+ </select>
126
+ </td>
127
+ </tr>
128
+ <?php
129
+ $nnr_hfcm_pages = get_pages();
130
+ $nnr_hfcm_exclude_pages_style = ('s_pages' === $display_on) ? 'display:none;' : '';
131
+ $nnr_hfcm_exclude_posts_style = ('s_posts' === $display_on) ? 'display:none;' : '';
132
+ $nnr_hfcm_exclude_categories_style = 's_categories' === $display_on ? 'display:none;' : '';
133
+ $nnr_hfcm_exclude_tags_style = 's_tags' === $display_on ? 'display:none;' : '';
134
+ $nnr_hfcm_exclude_custom_posts_style = 's_custom_posts' === $display_on ? 'display:none;' : '';
135
+ $nnr_hfcm_exclude_lp_count_style = 'latest_posts' === $display_on ? 'display:none;' : '';
136
+ $nnr_hfcm_exclude_manual_style = 'manual' === $display_on ? 'display:none;' : '';
137
+ ?>
138
+ <tr id="ex_pages"
139
+ style="<?php echo esc_attr( $nnr_hfcm_exclude_pages_style . $nnr_hfcm_exclude_posts_style . $nnr_hfcm_exclude_tags_style . $nnr_hfcm_exclude_custom_posts_style . $nnr_hfcm_exclude_categories_style . $nnr_hfcm_exclude_lp_count_style . $nnr_hfcm_exclude_manual_style ); ?>">
140
+ <th class="hfcm-th-width"><?php esc_html_e( 'Exclude Pages', 'header-footer-code-manager' ); ?></th>
141
+ <td>
142
+ <select name="data[ex_pages][]" multiple>
143
+ <?php
144
+ foreach ( $nnr_hfcm_pages as $pdata ) {
145
+ if ( in_array( $pdata->ID, $ex_pages ) ) {
146
+ printf( '<option value="%1$s" selected="selected">%2$s</option>', $pdata->ID, $pdata->post_title );
147
+ } else {
148
+ printf( '<option value="%1$s">%2$s</option>', $pdata->ID, $pdata->post_title );
149
+ }
150
  }
151
+ ?>
152
+ </select>
153
+ </td>
154
+ </tr>
155
+ <tr id="ex_posts"
156
+ style="<?php echo esc_attr( $nnr_hfcm_exclude_pages_style . $nnr_hfcm_exclude_posts_style . $nnr_hfcm_exclude_tags_style . $nnr_hfcm_exclude_custom_posts_style . $nnr_hfcm_exclude_categories_style . $nnr_hfcm_exclude_lp_count_style . $nnr_hfcm_exclude_manual_style ); ?>">
157
+ <th class="hfcm-th-width"><?php esc_html_e( 'Exclude Posts', 'header-footer-code-manager' ); ?></th>
158
+ <td>
159
+ <select class="nnr-wraptext" name="data[ex_posts][]" multiple>
160
+ <option disabled></option>
161
+ </select> <img id="loader"
162
+ src="<?php echo plugins_url( 'images/ajax-loader.gif', dirname( __FILE__ ) ); ?>">
163
+ </td>
164
+ </tr>
165
+ <?php
166
+ $nnr_hfcm_pages = get_pages();
167
+ $nnr_hfcm_pages_style = ('s_pages' === $display_on) ? '' : 'display:none;';
168
+ ?>
169
+ <tr id="s_pages" style="<?php echo esc_attr( $nnr_hfcm_pages_style ); ?>">
170
+ <th class="hfcm-th-width">
171
+ <?php esc_html_e( 'Page List', 'header-footer-code-manager' ); ?>
172
+ </th>
173
+ <td>
174
+ <select name="data[s_pages][]" multiple>
175
+ <?php
176
+ foreach ( $nnr_hfcm_pages as $pdata ) {
177
+ if ( in_array( $pdata->ID, $s_pages ) ) {
178
+ printf( '<option value="%1$s" selected="selected">%2$s</option>', esc_attr( $pdata->ID ), esc_attr( $pdata->post_title ) );
179
+ } else {
180
+ printf( '<option value="%1$s">%2$s</option>', esc_attr( $pdata->ID ), esc_attr( $pdata->post_title ) );
181
+ }
182
  }
183
+ ?>
184
+ </select>
185
+ </td>
186
+ </tr>
187
+ <?php $nnr_hfcm_posts_style = 's_posts' === $display_on ? '' : 'display:none;'; ?>
188
+ <tr id="s_posts" style="<?php echo esc_attr( $nnr_hfcm_posts_style ); ?>">
189
+ <th class="hfcm-th-width">
190
+ <?php esc_html_e( 'Post List', 'header-footer-code-manager' ); ?>
191
+ </th>
192
+ <td>
193
+ <select class="nnr-wraptext" name="data[s_posts][]" multiple>
194
+ <option disabled>...</option>
195
+ </select>
196
+ </td>
197
+ </tr>
198
+ <?php
199
+ $nnr_hfcm_categories = NNR_HFCM::hfcm_get_categories();
200
+ $nnr_hfcm_tags = NNR_HFCM::hfcm_get_tags();
201
+
202
+ $nnr_hfcm_categories_style = 's_categories' === $display_on ? '' : 'display:none;';
203
+ $nnr_hfcm_tags_style = 's_tags' === $display_on ? '' : 'display:none;';
204
+ $nnr_hfcm_custom_posts_style = 's_custom_posts' === $display_on ? '' : 'display:none;';
205
+ $nnr_hfcm_lpcount_style = 'latest_posts' === $display_on ? '' : 'display:none;';
206
+ $nnr_hfcm_location_style = 'manual' === $display_on ? 'display:none;' : '';
207
+
208
+ // Get all names of Post Types
209
+ $args = array(
210
+ 'public' => true,
211
  );
212
+
213
+ $output = 'names';
214
+ $operator = 'and';
215
+
216
+ $nnr_hfcm_custom_post_types = get_post_types( $args, $output, $operator );
217
+ $nnr_hfcm_post_types = array( 'post' );
218
+ foreach ( $nnr_hfcm_custom_post_types as $cpdata ) {
219
+ $nnr_hfcm_post_types[] = $cpdata;
220
+ }
221
+ ?>
222
+ <tr id="s_categories" style="<?php echo esc_attr( $nnr_hfcm_categories_style ); ?>">
223
+ <th class="hfcm-th-width"><?php esc_html_e( 'Category List', 'header-footer-code-manager' ); ?></th>
224
+ <td>
225
+ <select name="data[s_categories][]" multiple>
226
+ <?php
227
+ foreach ( $nnr_hfcm_categories as $nnr_key_cat => $nnr_item_cat ) {
228
+ foreach ( $nnr_item_cat['terms'] as $nnr_item_cat_key => $nnr_item_cat_term ) {
229
+ if ( in_array( $nnr_item_cat_term->term_id, $s_categories ) ) {
230
+ echo "<option value='" . esc_attr( $nnr_item_cat_term->term_id ) . "' selected>" . esc_html( $nnr_item_cat['name'] ) . " - " . esc_html( $nnr_item_cat_term->name ) . "</option>";
231
+ } else {
232
+ echo "<option value='" . esc_attr( $nnr_item_cat_term->term_id ) . "'>" . esc_html( $nnr_item_cat['name'] ) . " - " . esc_html( $nnr_item_cat_term->name ) . "</option>";
233
+ }
234
+ }
235
  }
236
+ ?>
237
+ </select>
238
+ </td>
239
+ </tr>
240
+ <tr id="s_tags" style="<?php echo esc_attr( $nnr_hfcm_tags_style ); ?>">
241
+ <th class="hfcm-th-width"><?php esc_html_e( 'Tags List', 'header-footer-code-manager' ); ?></th>
242
+ <td>
243
+ <select name="data[s_tags][]" multiple>
244
+ <?php
245
+ foreach ( $nnr_hfcm_tags as $nnr_key_cat => $nnr_item_tag ) {
246
+ foreach ( $nnr_item_tag['terms'] as $nnr_item_tag_key => $nnr_item_tag_term ) {
247
+ if ( in_array( $nnr_item_tag_term->term_id, $s_tags ) ) {
248
+ echo "<option value='" . esc_attr( $nnr_item_tag_term->term_id ) . "' selected>" . esc_html( $nnr_item_tag['name'] ) . " - " . esc_html( $nnr_item_tag_term->name ) . "</option>";
249
+ } else {
250
+ echo "<option value='" . esc_attr( $nnr_item_tag_term->term_id ) . "'>" . esc_html( $nnr_item_tag['name'] ) . " - " . esc_html( $nnr_item_tag_term->name ) . "</option>";
251
+ }
252
+ }
 
 
 
 
 
 
 
 
 
 
253
  }
254
+ ?>
255
+ </select>
256
+ </td>
257
+ </tr>
258
+ <tr id="c_posttype" style="<?php echo esc_attr( $nnr_hfcm_custom_posts_style ); ?>">
259
+ <th class="hfcm-th-width"><?php esc_html_e( 'Post Types', 'header-footer-code-manager' ); ?></th>
260
+ <td>
261
+ <select name="data[s_custom_posts][]" multiple>
262
+ <?php
263
+ foreach ( $nnr_hfcm_custom_post_types as $cpkey => $cpdata ) {
264
+ if ( in_array( $cpkey, $s_custom_posts ) ) {
265
+ echo "<option value='" . esc_attr( $cpkey ) . "' selected>" . esc_html( $cpdata ) . "</option>";
266
+ } else {
267
+ echo "<option value='" . esc_attr( $cpkey ) . "'>" . esc_html( $cpdata ) . "</option>";
268
+ }
269
  }
270
+ ?>
271
+ </select>
272
+ </td>
273
+ </tr>
274
+ <tr id="lp_count" style="<?php echo esc_attr( $nnr_hfcm_lpcount_style ); ?>">
275
+ <th class="hfcm-th-width"><?php esc_html_e( 'Post Count', 'header-footer-code-manager' ); ?></th>
 
 
276
  <td>
277
+ <select name="data[lp_count]">
278
+ <?php
279
+ for ( $i = 1; $i <= 20; $i++ ) {
280
+ if ( $i == $lp_count ) {
281
+ echo "<option value='" . esc_attr( $i ) . "' selected>" . esc_html( $i ) . "</option>";
282
+ } else {
283
+ echo "<option value='" . esc_attr( $i ) . "'>" . esc_html( $i ) . "</option>";
284
+ }
285
+ }
286
+ ?>
287
+ </select>
288
  </td>
289
  </tr>
290
+ <?php
291
+ if ( in_array( $display_on, array( 's_posts', 's_pages', 's_custom_posts', 's_tags',
292
+ 'latest_posts' ) ) ) {
293
+ $nnr_hfcm_locations = array(
294
+ 'header' => __( 'Header', 'header-footer-code-manager' ),
295
+ 'before_content' => __( 'Before Content', 'header-footer-code-manager' ),
296
+ 'after_content' => __( 'After Content', 'header-footer-code-manager' ),
297
+ 'footer' => __( 'Footer', 'header-footer-code-manager' )
298
+ );
299
+ } else {
300
+ $nnr_hfcm_locations = array(
301
+ 'header' => __( 'Header', 'header-footer-code-manager' ),
302
+ 'footer' => __( 'Footer', 'header-footer-code-manager' )
303
+ );
304
+ }
305
+ ?>
306
+ <tr id="locationtr" style="<?php echo esc_attr( $nnr_hfcm_location_style ); ?>">
307
  <th class="hfcm-th-width">
308
+ <?php esc_html_e( 'Location', 'header-footer-code-manager' ); ?>
309
  </th>
310
  <td>
311
+ <select name="data[location]" id="data_location">
312
+ <?php
313
+ foreach ( $nnr_hfcm_locations as $lkey => $statusv ) {
314
+ if ( $location === $lkey ) {
315
+ echo "<option value='" . esc_attr( $lkey ) . "' selected='selected'>" . esc_html( $statusv ) . '</option>';
316
+ } else {
317
+ echo "<option value='" . esc_attr( $lkey ) . "'>" . esc_html( $statusv ) . '</option>';
318
+ }
319
+ }
320
+ ?>
321
+ </select>
322
  <p>
323
+ <b><?php _e( "Note", 'header-footer-code-manager' ); ?></b>: <?php _e( "Not all locations (such as before content) exist on all page/post types. The location will only appear as an option if the appropriate hook exists on the page.", 'header-footer-code-manager' ); ?>
 
 
 
 
 
 
324
  </p>
325
  </td>
326
  </tr>
327
+ <?php $nnr_hfcm_device_type_array = array(
328
+ 'both' => __( 'Show on All Devices', 'header-footer-code-manager' ),
329
+ 'desktop' => __( 'Only Desktop', 'header-footer-code-manager' ),
330
+ 'mobile' => __( 'Only Mobile Devices', 'header-footer-code-manager' )
331
+ ) ?>
332
+ <?php $nnr_hfcm_status_array = array(
333
+ 'active' => __( 'Active', 'header-footer-code-manager' ),
334
+ 'inactive' => __( 'Inactive', 'header-footer-code-manager' )
335
+ ) ?>
336
+ <tr>
337
+ <th class="hfcm-th-width"><?php esc_html_e( 'Device Display', 'header-footer-code-manager' ); ?></th>
338
+ <td>
339
+ <select name="data[device_type]">
340
+ <?php
341
+ foreach ( $nnr_hfcm_device_type_array as $smkey => $typev ) {
342
+ if ( $device_type === $smkey ) {
343
+ echo "<option value='" . esc_attr( $smkey ) . "' selected='selected'>" . esc_html( $typev ) . '</option>';
344
+ } else {
345
+ echo "<option value='" . esc_attr( $smkey ) . "'>" . esc_html( $typev ) . '</option>';
346
+ }
347
+ }
348
+ ?>
349
+ </select>
350
+ </td>
351
+ </tr>
352
+ <tr>
353
+ <th class="hfcm-th-width"><?php esc_html_e( 'Status', 'header-footer-code-manager' ); ?></th>
354
+ <td>
355
+ <select name="data[status]">
356
+ <?php
357
+ foreach ( $nnr_hfcm_status_array as $skey => $statusv ) {
358
+ if ( $status === $skey ) {
359
+ echo "<option value='" . esc_attr( $skey ) . "' selected='selected'>" . esc_html( $statusv ) . '</option>';
360
+ } else {
361
+ echo "<option value='" . esc_attr( $skey ) . "'>" . esc_html( $statusv ) . '</option>';
362
+ }
363
+ }
364
+ ?>
365
+ </select>
366
+ </td>
367
+ </tr>
368
+ <?php if ( $update ) : ?>
369
+ <tr>
370
+ <th class="hfcm-th-width"><?php esc_html_e( 'Shortcode', 'header-footer-code-manager' ); ?></th>
371
+ <td>
372
+ <p>
373
+ [hfcm id="<?php echo esc_html( $id ); ?>"]
374
+ <?php if ( $update ) :
375
+ ?>
376
+ <a data-shortcode='[hfcm id="<?php echo absint( $id ); ?>"]'
377
+ href="javascript:void(0);" class="nnr-btn-click-to-copy nnr-btn-copy-inline"
378
+ id="hfcm_copy_shortcode">
379
+ <?php esc_html_e( 'Copy', 'header-footer-code-manager' ); ?>
380
+ </a>
381
+ <?php endif; ?>
382
+ </p>
383
+
384
+ </td>
385
+ </tr>
386
+ <tr>
387
+ <th class="hfcm-th-width">
388
+ <?php esc_html_e( 'Changelog', 'header-footer-code-manager' ); ?>
389
+ </th>
390
+ <td>
391
+ <p>
392
+ <?php esc_html_e( 'Snippet created by', 'header-footer-code-manager' ); ?>
393
+ <b><?php echo esc_html( $createdby ); ?></b> <?php echo _e( 'on', 'header-footer-code-manager' ) . ' ' . date_i18n( get_option( 'date_format' ), strtotime( $createdon ) ) . ' ' . __( 'at', 'header-footer-code-manager' ) . ' ' . date_i18n( get_option( 'time_format' ), strtotime( $createdon ) ) ?>
394
+ <br/>
395
+ <?php if ( !empty( $lastmodifiedby ) ) : ?>
396
+ <?php esc_html_e( 'Last edited by', 'header-footer-code-manager' ); ?>
397
+ <b><?php echo esc_html( $lastmodifiedby ); ?></b> <?php echo _e( 'on', 'header-footer-code-manager' ) . ' ' . date_i18n( get_option( 'date_format' ), strtotime( $lastrevisiondate ) ) . ' ' . __( 'at', 'header-footer-code-manager' ) . ' ' . date_i18n( get_option( 'time_format' ), strtotime( $lastrevisiondate ) ) ?>
398
+ <?php endif; ?>
399
+ </p>
400
+ </td>
401
+ </tr>
402
+ <?php endif; ?>
403
+ </table>
404
+ <div class="nnr-mt-20">
405
+ <h1><?php esc_html_e( 'Snippet', 'header-footer-code-manager' ); ?>
406
+ / <?php esc_html_e( 'Code', 'header-footer-code-manager' ) ?></h1>
407
+ <div class="nnr-mt-20 nnr-hfcm-codeeditor-box">
408
  <textarea name="data[snippet]" aria-describedby="nnr-newcontent-description" id="nnr_newcontent"
409
+ rows="20"><?php echo html_entity_decode( $snippet ); ?></textarea>
410
 
411
+ <p class="notice notice-warning nnr-padding10" id="nnr-snippet-warning">
412
+ <?php _e( 'Warning: Using improper code or untrusted sources code can break your site or create security risks. <a href="https://draftpress.com/security-risks-of-wp-plugins-that-allow-code-editing-or-insertion" target="_blank">Learn more</a>.', 'header-footer-code-manager' ); ?>
413
+ </p>
414
+ <div class="wp-core-ui">
415
+ <input type="submit"
416
+ name="<?php echo $update ? 'update' : 'insert'; ?>"
417
+ value="<?php echo $update ? esc_html__( 'Update', 'header-footer-code-manager' ) : esc_html__( 'Save', 'header-footer-code-manager' ) ?>"
418
+ class="button button-primary button-large nnr-btnsave">
419
+ <?php if ( $update ) :
420
+ $delete_nonce = wp_create_nonce( 'hfcm_delete_snippet' );
421
+ ?>
422
+ <a onclick="return nnr_confirm_delete_snippet();"
423
+ href="<?php echo esc_url( admin_url( 'admin.php?page=hfcm-list&action=delete&_wpnonce=' . $delete_nonce . '&snippet=' . absint( $id ) ) ); ?>"
424
+ class="button button-secondary button-large nnr-btndelete"><?php esc_html_e( 'Delete', 'header-footer-code-manager' ); ?></a>
425
+ <?php endif; ?>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </form>
430
+ </div>
431
+
432
+ <?php
433
+ if (defined( 'DISALLOW_FILE_EDIT' ) && true === DISALLOW_FILE_EDIT && !get_user_meta(get_current_user_id(),'hfcm_file_edit_plugin_notice_dismissed', true) ) {
434
+ ?>
435
+ <div id="file-editor-warning" class="notification-dialog-wrap file-editor-warning hide-if-no-js">
436
+ <div class="notification-dialog-background"></div>
437
+ <div class="notification-dialog">
438
+ <div class="file-editor-warning-content">
439
+ <div class="file-editor-warning-message">
440
+ <h1>Heads up!</h1>
441
+ <p>
442
+ <?php _e('Your site has <a href="https://draftpress.com/disallow-file-edit-setting-wordpress" target="_blank">disallow_file_edit</a> setting enabled inside the wp-config file to prevent file edits. By using this plugin, you acknowledge that you know what you’re doing and intend on adding code snippets only from trusted sources.', 'header-footer-code-manager'); ?>
443
+ </p>
444
  </div>
445
+ <p>
446
+ <?php
447
+ if ( $update ) :
448
+ $hfcm_file_edit_dismiss_action = admin_url( 'admin.php?page=hfcm-update&hfcm-file-edit-notice-dismissed=1&id=' . absint( $id ) );
449
+ else :
450
+ $hfcm_file_edit_dismiss_action = admin_url( 'admin.php?page=hfcm-create&hfcm-file-edit-notice-dismissed=1' );
451
+ endif;
452
+ ?>
453
+ <a href="<?php echo $hfcm_file_edit_dismiss_action; ?>" class="file-editor-warning-dismiss button button-primary" id="nnr-dismiss-editor-warning">I understand</a>
454
+ </p>
455
  </div>
456
  </div>
457
+ </div>
458
+ <?php
459
+ }
460
+ ?>
languages/header-footer-code-manager-hi_IN.mo CHANGED
Binary file
languages/header-footer-code-manager-hi_IN.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Header Footer Code Manager\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2022-12-08 01:02+0530\n"
6
- "PO-Revision-Date: 2022-12-08 01:03+0530\n"
7
  "Last-Translator: fran <franmejia0@gmail.com>\n"
8
  "Language-Team: \n"
9
  "Language: hi\n"
@@ -40,7 +40,7 @@ msgid "All Snippets"
40
  msgstr "सभी स्निपेट"
41
 
42
  #: ../99robots-header-footer-code-manager.php:248
43
- #: ../99robots-header-footer-code-manager.php:1129
44
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:248
45
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1129
46
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:28
@@ -69,8 +69,8 @@ msgstr "स्क्रिप्ट अपडेट करें"
69
 
70
  #: ../99robots-header-footer-code-manager.php:269
71
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:269
72
- #: ../header-footer-code-manager/includes/hfcm-add-edit.php:409
73
- #: ../includes/hfcm-add-edit.php:413
74
  msgid "Update"
75
  msgstr "अपडेट करें"
76
 
@@ -115,7 +115,7 @@ msgstr ""
115
  "प्लगइन को मुक्त और लगातार अपडेट रखेगा। <a href=\"https://wordpress.org/support/plugin/header-"
116
  "footer-code-manager/reviews/\">समीक्षा लिखें</a>"
117
 
118
- #: ../99robots-header-footer-code-manager.php:1092
119
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1092
120
  msgid ""
121
  "Please deactivate the free version of this plugin in order to avoid duplication of the "
@@ -127,20 +127,20 @@ msgstr ""
127
  " आप इस प्लगइन के मुफ्त संस्करण से सभी स्निपेट आयात करने के लिए हमारे टूल का उपयोग "
128
  "कर सकते हैं।"
129
 
130
- #: ../99robots-header-footer-code-manager.php:1127
131
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1127
132
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:18
133
  #: ../includes/class-hfcm-snippets-list.php:18
134
  msgid "Snippets"
135
  msgstr "स्निपेट्स"
136
 
137
- #: ../99robots-header-footer-code-manager.php:1136
138
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1136
139
  msgid "Search Snippets"
140
  msgstr "स्निपेट खोजें"
141
 
142
- #: ../99robots-header-footer-code-manager.php:1224
143
- #: ../99robots-header-footer-code-manager.php:1239
144
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1224
145
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1239
146
  msgid "Please upload a valid import file"
@@ -148,7 +148,7 @@ msgstr "कृपया एक मान्य आयात फ़ाइल अ
148
 
149
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:17
150
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:401
151
- #: ../includes/class-hfcm-snippets-list.php:17 ../includes/hfcm-add-edit.php:401
152
  msgid "Snippet"
153
  msgstr "स्निपेट"
154
 
@@ -159,19 +159,19 @@ msgstr "कोई स्निपेट्स उपलब्ध नहीं."
159
 
160
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:208
161
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:99
162
- #: ../includes/class-hfcm-snippets-list.php:208 ../includes/hfcm-add-edit.php:99
163
  msgid "Site Wide"
164
  msgstr "साइट व्यापक"
165
 
166
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:209
167
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:100
168
- #: ../includes/class-hfcm-snippets-list.php:209 ../includes/hfcm-add-edit.php:100
169
  msgid "Specific Posts"
170
  msgstr "विशिष्ट पोस्ट्स"
171
 
172
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:210
173
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:101
174
- #: ../includes/class-hfcm-snippets-list.php:210 ../includes/hfcm-add-edit.php:101
175
  msgid "Specific Pages"
176
  msgstr "विशिष्ट पृष्ठ"
177
 
@@ -192,31 +192,31 @@ msgstr "विशिष्ट टैग"
192
 
193
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:214
194
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:105
195
- #: ../includes/class-hfcm-snippets-list.php:214 ../includes/hfcm-add-edit.php:105
196
  msgid "Home Page"
197
  msgstr "होम पेज"
198
 
199
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:215
200
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:106
201
- #: ../includes/class-hfcm-snippets-list.php:215 ../includes/hfcm-add-edit.php:106
202
  msgid "Search Page"
203
  msgstr "खोज पृष्ठ"
204
 
205
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:216
206
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:107
207
- #: ../includes/class-hfcm-snippets-list.php:216 ../includes/hfcm-add-edit.php:107
208
  msgid "Archive Page"
209
  msgstr "संग्रह पृष्ठ"
210
 
211
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:217
212
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:108
213
- #: ../includes/class-hfcm-snippets-list.php:217 ../includes/hfcm-add-edit.php:108
214
  msgid "Latest Posts"
215
  msgstr "नवीनतम पोस्ट"
216
 
217
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:218
218
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:109
219
- #: ../includes/class-hfcm-snippets-list.php:218 ../includes/hfcm-add-edit.php:109
220
  msgid "Shortcode Only"
221
  msgstr "केवल छोटे संकेत"
222
 
@@ -236,7 +236,7 @@ msgstr ""
236
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:299
237
  #: ../header-footer-code-manager/includes/hfcm-tools.php:9
238
  #: ../includes/class-hfcm-snippets-list.php:247 ../includes/hfcm-add-edit.php:13
239
- #: ../includes/hfcm-add-edit.php:292 ../includes/hfcm-add-edit.php:299
240
  #: ../includes/hfcm-tools.php:9
241
  msgid "Header"
242
  msgstr "हैडर"
@@ -246,7 +246,7 @@ msgstr "हैडर"
246
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:293
247
  #: ../header-footer-code-manager/includes/hfcm-tools.php:10
248
  #: ../includes/class-hfcm-snippets-list.php:248 ../includes/hfcm-add-edit.php:14
249
- #: ../includes/hfcm-add-edit.php:293 ../includes/hfcm-tools.php:10
250
  msgid "Before Content"
251
  msgstr "प्रकरण से पहले"
252
 
@@ -255,7 +255,7 @@ msgstr "प्रकरण से पहले"
255
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:294
256
  #: ../header-footer-code-manager/includes/hfcm-tools.php:11
257
  #: ../includes/class-hfcm-snippets-list.php:249 ../includes/hfcm-add-edit.php:15
258
- #: ../includes/hfcm-add-edit.php:294 ../includes/hfcm-tools.php:11
259
  msgid "After Content"
260
  msgstr "प्रकरण के बाद"
261
 
@@ -265,26 +265,26 @@ msgstr "प्रकरण के बाद"
265
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:300
266
  #: ../header-footer-code-manager/includes/hfcm-tools.php:12
267
  #: ../includes/class-hfcm-snippets-list.php:250 ../includes/hfcm-add-edit.php:16
268
- #: ../includes/hfcm-add-edit.php:295 ../includes/hfcm-add-edit.php:300
269
  #: ../includes/hfcm-tools.php:12
270
  msgid "Footer"
271
  msgstr "फूटर"
272
 
273
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:257
274
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:326
275
- #: ../includes/class-hfcm-snippets-list.php:257 ../includes/hfcm-add-edit.php:326
276
  msgid "Show on All Devices"
277
  msgstr "सभी उपकरणों पर दिखाना"
278
 
279
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:259
280
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:328
281
- #: ../includes/class-hfcm-snippets-list.php:259 ../includes/hfcm-add-edit.php:328
282
  msgid "Only Mobile Devices"
283
  msgstr "केवल मोबाइल उपकरणों"
284
 
285
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:261
286
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:327
287
- #: ../includes/class-hfcm-snippets-list.php:261 ../includes/hfcm-add-edit.php:327
288
  msgid "Only Desktop"
289
  msgstr "केवल डेस्कटॉप"
290
 
@@ -292,7 +292,7 @@ msgstr "केवल डेस्कटॉप"
292
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:413
293
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:75
294
  #: ../includes/class-hfcm-snippets-list.php:267 ../includes/class-hfcm-snippets-list.php:413
295
- #: ../includes/hfcm-add-edit.php:75
296
  msgid "HTML"
297
  msgstr ""
298
 
@@ -300,7 +300,7 @@ msgstr ""
300
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:414
301
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:76
302
  #: ../includes/class-hfcm-snippets-list.php:268 ../includes/class-hfcm-snippets-list.php:414
303
- #: ../includes/hfcm-add-edit.php:76
304
  msgid "CSS"
305
  msgstr ""
306
 
@@ -308,7 +308,7 @@ msgstr ""
308
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:415
309
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:77
310
  #: ../includes/class-hfcm-snippets-list.php:269 ../includes/class-hfcm-snippets-list.php:415
311
- #: ../includes/hfcm-add-edit.php:77
312
  msgid "Javascript"
313
  msgstr ""
314
 
@@ -323,8 +323,8 @@ msgid "Copy Shortcode"
323
  msgstr "शोर्टकोड कॉपी करें"
324
 
325
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:345
326
- #: ../header-footer-code-manager/includes/hfcm-add-edit.php:415
327
- #: ../includes/class-hfcm-snippets-list.php:345 ../includes/hfcm-add-edit.php:419
328
  msgid "Delete"
329
  msgstr "मिटाएं"
330
 
@@ -335,7 +335,7 @@ msgstr "आईडी"
335
 
336
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:361
337
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:351
338
- #: ../includes/class-hfcm-snippets-list.php:361 ../includes/hfcm-add-edit.php:351
339
  msgid "Status"
340
  msgstr "स्थिति"
341
 
@@ -352,13 +352,13 @@ msgstr "पर प्रदर्शन"
352
 
353
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:364
354
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:306
355
- #: ../includes/class-hfcm-snippets-list.php:364 ../includes/hfcm-add-edit.php:306
356
  msgid "Location"
357
  msgstr "स्थान"
358
 
359
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:365
360
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:81
361
- #: ../includes/class-hfcm-snippets-list.php:365 ../includes/hfcm-add-edit.php:81
362
  msgid "Snippet Type"
363
  msgstr "स्निपेट प्रकार"
364
 
@@ -369,7 +369,7 @@ msgstr "उपकरण"
369
 
370
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:367
371
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:368
372
- #: ../includes/class-hfcm-snippets-list.php:367 ../includes/hfcm-add-edit.php:368
373
  msgid "Shortcode"
374
  msgstr "छोटे संकेत"
375
 
@@ -405,13 +405,13 @@ msgstr "सभी टुकड़े"
405
 
406
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:496
407
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:331
408
- #: ../includes/class-hfcm-snippets-list.php:496 ../includes/hfcm-add-edit.php:331
409
  msgid "Active"
410
  msgstr "सक्रिय"
411
 
412
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:501
413
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:332
414
- #: ../includes/class-hfcm-snippets-list.php:501 ../includes/hfcm-add-edit.php:332
415
  msgid "Inactive"
416
  msgstr "निष्क्रिय"
417
 
@@ -437,121 +437,132 @@ msgid "Script Added Successfully"
437
  msgstr "स्क्रिप्ट जोड़ा सफलतापूर्वक"
438
 
439
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:102
440
- #: ../includes/hfcm-add-edit.php:102
441
  msgid "Specific Categories (Archive & Posts)"
442
  msgstr "विशिष्ट श्रेणियाँ (संग्रह और पोस्ट)"
443
 
444
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:103
445
- #: ../includes/hfcm-add-edit.php:103
446
  msgid "Specific Post Types (Archive & Posts)"
447
  msgstr "विशिष्ट पोस्ट प्रकार (संग्रह और पोस्ट)"
448
 
449
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:104
450
- #: ../includes/hfcm-add-edit.php:104
451
  msgid "Specific Tags (Archive & Posts)"
452
  msgstr "विशिष्ट टैग (संग्रह और पोस्ट)"
453
 
454
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:112
455
- #: ../includes/hfcm-add-edit.php:112
456
  msgid "Site Display"
457
  msgstr "साइट प्रदर्शन"
458
 
459
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:139
460
- #: ../includes/hfcm-add-edit.php:139
461
  msgid "Exclude Pages"
462
  msgstr "पृष्ठों को बाहर करें"
463
 
464
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:156
465
- #: ../includes/hfcm-add-edit.php:156
466
  msgid "Exclude Posts"
467
  msgstr "पोस्ट को बाहर करें"
468
 
469
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:170
470
- #: ../includes/hfcm-add-edit.php:170
471
  msgid "Page List"
472
  msgstr "पेज सूची"
473
 
474
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:189
475
- #: ../includes/hfcm-add-edit.php:189
476
  msgid "Post List"
477
  msgstr "पोस्ट सूची"
478
 
479
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:222
480
- #: ../includes/hfcm-add-edit.php:222
481
  msgid "Category List"
482
  msgstr "श्रेणी सूची"
483
 
484
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:240
485
- #: ../includes/hfcm-add-edit.php:240
486
  msgid "Tags List"
487
  msgstr "टैग सूची"
488
 
489
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:258
490
- #: ../includes/hfcm-add-edit.php:258
491
  msgid "Post Types"
492
  msgstr "पोस्ट प्रकार"
493
 
494
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:274
495
- #: ../includes/hfcm-add-edit.php:274
496
  msgid "Post Count"
497
  msgstr "पोस्ट गिनती"
498
 
499
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:321
500
- #: ../includes/hfcm-add-edit.php:321
501
  msgid "Note"
502
  msgstr "ध्यान दें"
503
 
504
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:321
505
- #: ../includes/hfcm-add-edit.php:321
506
  msgid ""
507
  "Not all locations (such as before content) exist on all page/post types. The location "
508
  "will only appear as an option if the appropriate hook exists on the page."
509
  msgstr "सभी पेज/पोस्ट प्रकारों पर सभी स्थान (जैसे कि प्रकरण से पहले) मौजूद नहीं हैं।"
510
 
511
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:335
512
- #: ../includes/hfcm-add-edit.php:335
513
  msgid "Device Display"
514
  msgstr "डिवाइस प्रदर्शन"
515
 
516
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:375
517
- #: ../includes/hfcm-add-edit.php:375
518
  msgid "Copy"
519
  msgstr "कॉपी"
520
 
521
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:384
522
- #: ../includes/hfcm-add-edit.php:384
523
  msgid "Changelog"
524
  msgstr "चैंज लॉग"
525
 
526
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:388
527
- #: ../includes/hfcm-add-edit.php:388
528
  msgid "Snippet created by"
529
  msgstr "के द्वारा बनाई गई स्निपेट"
530
 
531
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:389
532
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:393
533
- #: ../includes/hfcm-add-edit.php:389 ../includes/hfcm-add-edit.php:393
534
  msgid "on"
535
  msgstr "पर"
536
 
537
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:389
538
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:393
539
- #: ../includes/hfcm-add-edit.php:389 ../includes/hfcm-add-edit.php:393
540
  msgid "at"
541
  msgstr "पर"
542
 
543
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:392
544
- #: ../includes/hfcm-add-edit.php:392
545
  msgid "Last edited by"
546
  msgstr "अंतिम बार संपादित द्वारा"
547
 
548
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:402
549
- #: ../includes/hfcm-add-edit.php:402
550
  msgid "Code"
551
  msgstr "कोड"
552
 
553
- #: ../header-footer-code-manager/includes/hfcm-add-edit.php:409
554
- #: ../includes/hfcm-add-edit.php:413
 
 
 
 
 
 
 
 
 
 
 
555
  msgid "Save"
556
  msgstr "जमा करें"
557
 
@@ -609,15 +620,17 @@ msgstr "फ़ाइल का चयन करें"
609
  msgid "Import"
610
  msgstr "आयात"
611
 
612
- #: ../includes/hfcm-add-edit.php:408
613
  msgid ""
614
- "Warning: Using improper code or untrusted sources code can break your site or create "
615
- "security risks. <a href=\"https://draftpress.com/security-risks-of-wp-plugins-that-allow-"
616
- "code-editing-or-insertion\" target=\"_blank\">Learn more</a>."
 
617
  msgstr ""
618
- "चेतावनी: अनुचित कोड या अविश्वसनीय स्रोत कोड का उपयोग करने से आपकी साइट टूट सकती है या सुरक्षा जोखिम "
619
- "पैदा हो सकते हैं। <a href=\"https://draftpress.com/security-risks-of-wp-plugins-that-allow-"
620
- "code-editing-or-insertion\" target=\"_blank\">और जानें</a> "
 
621
 
622
  #~ msgid "Snippet will only execute if the placement hook exists on the page"
623
  #~ msgstr "पृष्ठ पर प्लेसमेंट हुक मौजूद होने पर ही स्निपेट निष्पादित होगा"
2
  msgstr ""
3
  "Project-Id-Version: Header Footer Code Manager\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2022-12-10 02:42+0530\n"
6
+ "PO-Revision-Date: 2022-12-10 02:42+0530\n"
7
  "Last-Translator: fran <franmejia0@gmail.com>\n"
8
  "Language-Team: \n"
9
  "Language: hi\n"
40
  msgstr "सभी स्निपेट"
41
 
42
  #: ../99robots-header-footer-code-manager.php:248
43
+ #: ../99robots-header-footer-code-manager.php:1135
44
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:248
45
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1129
46
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:28
69
 
70
  #: ../99robots-header-footer-code-manager.php:269
71
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:269
72
+ #: ../header-footer-code-manager/includes/hfcm-add-edit.php:413
73
+ #: ../includes/hfcm-add-edit.php:417
74
  msgid "Update"
75
  msgstr "अपडेट करें"
76
 
115
  "प्लगइन को मुक्त और लगातार अपडेट रखेगा। <a href=\"https://wordpress.org/support/plugin/header-"
116
  "footer-code-manager/reviews/\">समीक्षा लिखें</a>"
117
 
118
+ #: ../99robots-header-footer-code-manager.php:1098
119
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1092
120
  msgid ""
121
  "Please deactivate the free version of this plugin in order to avoid duplication of the "
127
  " आप इस प्लगइन के मुफ्त संस्करण से सभी स्निपेट आयात करने के लिए हमारे टूल का उपयोग "
128
  "कर सकते हैं।"
129
 
130
+ #: ../99robots-header-footer-code-manager.php:1133
131
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1127
132
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:18
133
  #: ../includes/class-hfcm-snippets-list.php:18
134
  msgid "Snippets"
135
  msgstr "स्निपेट्स"
136
 
137
+ #: ../99robots-header-footer-code-manager.php:1142
138
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1136
139
  msgid "Search Snippets"
140
  msgstr "स्निपेट खोजें"
141
 
142
+ #: ../99robots-header-footer-code-manager.php:1230
143
+ #: ../99robots-header-footer-code-manager.php:1245
144
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1224
145
  #: ../header-footer-code-manager/99robots-header-footer-code-manager.php:1239
146
  msgid "Please upload a valid import file"
148
 
149
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:17
150
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:401
151
+ #: ../includes/class-hfcm-snippets-list.php:17 ../includes/hfcm-add-edit.php:405
152
  msgid "Snippet"
153
  msgstr "स्निपेट"
154
 
159
 
160
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:208
161
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:99
162
+ #: ../includes/class-hfcm-snippets-list.php:208 ../includes/hfcm-add-edit.php:100
163
  msgid "Site Wide"
164
  msgstr "साइट व्यापक"
165
 
166
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:209
167
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:100
168
+ #: ../includes/class-hfcm-snippets-list.php:209 ../includes/hfcm-add-edit.php:101
169
  msgid "Specific Posts"
170
  msgstr "विशिष्ट पोस्ट्स"
171
 
172
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:210
173
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:101
174
+ #: ../includes/class-hfcm-snippets-list.php:210 ../includes/hfcm-add-edit.php:102
175
  msgid "Specific Pages"
176
  msgstr "विशिष्ट पृष्ठ"
177
 
192
 
193
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:214
194
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:105
195
+ #: ../includes/class-hfcm-snippets-list.php:214 ../includes/hfcm-add-edit.php:106
196
  msgid "Home Page"
197
  msgstr "होम पेज"
198
 
199
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:215
200
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:106
201
+ #: ../includes/class-hfcm-snippets-list.php:215 ../includes/hfcm-add-edit.php:107
202
  msgid "Search Page"
203
  msgstr "खोज पृष्ठ"
204
 
205
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:216
206
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:107
207
+ #: ../includes/class-hfcm-snippets-list.php:216 ../includes/hfcm-add-edit.php:108
208
  msgid "Archive Page"
209
  msgstr "संग्रह पृष्ठ"
210
 
211
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:217
212
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:108
213
+ #: ../includes/class-hfcm-snippets-list.php:217 ../includes/hfcm-add-edit.php:109
214
  msgid "Latest Posts"
215
  msgstr "नवीनतम पोस्ट"
216
 
217
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:218
218
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:109
219
+ #: ../includes/class-hfcm-snippets-list.php:218 ../includes/hfcm-add-edit.php:110
220
  msgid "Shortcode Only"
221
  msgstr "केवल छोटे संकेत"
222
 
236
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:299
237
  #: ../header-footer-code-manager/includes/hfcm-tools.php:9
238
  #: ../includes/class-hfcm-snippets-list.php:247 ../includes/hfcm-add-edit.php:13
239
+ #: ../includes/hfcm-add-edit.php:294 ../includes/hfcm-add-edit.php:301
240
  #: ../includes/hfcm-tools.php:9
241
  msgid "Header"
242
  msgstr "हैडर"
246
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:293
247
  #: ../header-footer-code-manager/includes/hfcm-tools.php:10
248
  #: ../includes/class-hfcm-snippets-list.php:248 ../includes/hfcm-add-edit.php:14
249
+ #: ../includes/hfcm-add-edit.php:295 ../includes/hfcm-tools.php:10
250
  msgid "Before Content"
251
  msgstr "प्रकरण से पहले"
252
 
255
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:294
256
  #: ../header-footer-code-manager/includes/hfcm-tools.php:11
257
  #: ../includes/class-hfcm-snippets-list.php:249 ../includes/hfcm-add-edit.php:15
258
+ #: ../includes/hfcm-add-edit.php:296 ../includes/hfcm-tools.php:11
259
  msgid "After Content"
260
  msgstr "प्रकरण के बाद"
261
 
265
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:300
266
  #: ../header-footer-code-manager/includes/hfcm-tools.php:12
267
  #: ../includes/class-hfcm-snippets-list.php:250 ../includes/hfcm-add-edit.php:16
268
+ #: ../includes/hfcm-add-edit.php:297 ../includes/hfcm-add-edit.php:302
269
  #: ../includes/hfcm-tools.php:12
270
  msgid "Footer"
271
  msgstr "फूटर"
272
 
273
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:257
274
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:326
275
+ #: ../includes/class-hfcm-snippets-list.php:257 ../includes/hfcm-add-edit.php:328
276
  msgid "Show on All Devices"
277
  msgstr "सभी उपकरणों पर दिखाना"
278
 
279
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:259
280
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:328
281
+ #: ../includes/class-hfcm-snippets-list.php:259 ../includes/hfcm-add-edit.php:330
282
  msgid "Only Mobile Devices"
283
  msgstr "केवल मोबाइल उपकरणों"
284
 
285
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:261
286
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:327
287
+ #: ../includes/class-hfcm-snippets-list.php:261 ../includes/hfcm-add-edit.php:329
288
  msgid "Only Desktop"
289
  msgstr "केवल डेस्कटॉप"
290
 
292
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:413
293
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:75
294
  #: ../includes/class-hfcm-snippets-list.php:267 ../includes/class-hfcm-snippets-list.php:413
295
+ #: ../includes/hfcm-add-edit.php:76
296
  msgid "HTML"
297
  msgstr ""
298
 
300
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:414
301
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:76
302
  #: ../includes/class-hfcm-snippets-list.php:268 ../includes/class-hfcm-snippets-list.php:414
303
+ #: ../includes/hfcm-add-edit.php:77
304
  msgid "CSS"
305
  msgstr ""
306
 
308
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:415
309
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:77
310
  #: ../includes/class-hfcm-snippets-list.php:269 ../includes/class-hfcm-snippets-list.php:415
311
+ #: ../includes/hfcm-add-edit.php:78
312
  msgid "Javascript"
313
  msgstr ""
314
 
323
  msgstr "शोर्टकोड कॉपी करें"
324
 
325
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:345
326
+ #: ../header-footer-code-manager/includes/hfcm-add-edit.php:419
327
+ #: ../includes/class-hfcm-snippets-list.php:345 ../includes/hfcm-add-edit.php:424
328
  msgid "Delete"
329
  msgstr "मिटाएं"
330
 
335
 
336
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:361
337
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:351
338
+ #: ../includes/class-hfcm-snippets-list.php:361 ../includes/hfcm-add-edit.php:353
339
  msgid "Status"
340
  msgstr "स्थिति"
341
 
352
 
353
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:364
354
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:306
355
+ #: ../includes/class-hfcm-snippets-list.php:364 ../includes/hfcm-add-edit.php:308
356
  msgid "Location"
357
  msgstr "स्थान"
358
 
359
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:365
360
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:81
361
+ #: ../includes/class-hfcm-snippets-list.php:365 ../includes/hfcm-add-edit.php:82
362
  msgid "Snippet Type"
363
  msgstr "स्निपेट प्रकार"
364
 
369
 
370
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:367
371
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:368
372
+ #: ../includes/class-hfcm-snippets-list.php:367 ../includes/hfcm-add-edit.php:370
373
  msgid "Shortcode"
374
  msgstr "छोटे संकेत"
375
 
405
 
406
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:496
407
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:331
408
+ #: ../includes/class-hfcm-snippets-list.php:496 ../includes/hfcm-add-edit.php:333
409
  msgid "Active"
410
  msgstr "सक्रिय"
411
 
412
  #: ../header-footer-code-manager/includes/class-hfcm-snippets-list.php:501
413
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:332
414
+ #: ../includes/class-hfcm-snippets-list.php:501 ../includes/hfcm-add-edit.php:334
415
  msgid "Inactive"
416
  msgstr "निष्क्रिय"
417
 
437
  msgstr "स्क्रिप्ट जोड़ा सफलतापूर्वक"
438
 
439
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:102
440
+ #: ../includes/hfcm-add-edit.php:103
441
  msgid "Specific Categories (Archive & Posts)"
442
  msgstr "विशिष्ट श्रेणियाँ (संग्रह और पोस्ट)"
443
 
444
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:103
445
+ #: ../includes/hfcm-add-edit.php:104
446
  msgid "Specific Post Types (Archive & Posts)"
447
  msgstr "विशिष्ट पोस्ट प्रकार (संग्रह और पोस्ट)"
448
 
449
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:104
450
+ #: ../includes/hfcm-add-edit.php:105
451
  msgid "Specific Tags (Archive & Posts)"
452
  msgstr "विशिष्ट टैग (संग्रह और पोस्ट)"
453
 
454
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:112
455
+ #: ../includes/hfcm-add-edit.php:113
456
  msgid "Site Display"
457
  msgstr "साइट प्रदर्शन"
458
 
459
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:139
460
+ #: ../includes/hfcm-add-edit.php:140
461
  msgid "Exclude Pages"
462
  msgstr "पृष्ठों को बाहर करें"
463
 
464
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:156
465
+ #: ../includes/hfcm-add-edit.php:157
466
  msgid "Exclude Posts"
467
  msgstr "पोस्ट को बाहर करें"
468
 
469
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:170
470
+ #: ../includes/hfcm-add-edit.php:171
471
  msgid "Page List"
472
  msgstr "पेज सूची"
473
 
474
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:189
475
+ #: ../includes/hfcm-add-edit.php:190
476
  msgid "Post List"
477
  msgstr "पोस्ट सूची"
478
 
479
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:222
480
+ #: ../includes/hfcm-add-edit.php:223
481
  msgid "Category List"
482
  msgstr "श्रेणी सूची"
483
 
484
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:240
485
+ #: ../includes/hfcm-add-edit.php:241
486
  msgid "Tags List"
487
  msgstr "टैग सूची"
488
 
489
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:258
490
+ #: ../includes/hfcm-add-edit.php:259
491
  msgid "Post Types"
492
  msgstr "पोस्ट प्रकार"
493
 
494
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:274
495
+ #: ../includes/hfcm-add-edit.php:275
496
  msgid "Post Count"
497
  msgstr "पोस्ट गिनती"
498
 
499
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:321
500
+ #: ../includes/hfcm-add-edit.php:323
501
  msgid "Note"
502
  msgstr "ध्यान दें"
503
 
504
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:321
505
+ #: ../includes/hfcm-add-edit.php:323
506
  msgid ""
507
  "Not all locations (such as before content) exist on all page/post types. The location "
508
  "will only appear as an option if the appropriate hook exists on the page."
509
  msgstr "सभी पेज/पोस्ट प्रकारों पर सभी स्थान (जैसे कि प्रकरण से पहले) मौजूद नहीं हैं।"
510
 
511
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:335
512
+ #: ../includes/hfcm-add-edit.php:337
513
  msgid "Device Display"
514
  msgstr "डिवाइस प्रदर्शन"
515
 
516
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:375
517
+ #: ../includes/hfcm-add-edit.php:379
518
  msgid "Copy"
519
  msgstr "कॉपी"
520
 
521
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:384
522
+ #: ../includes/hfcm-add-edit.php:388
523
  msgid "Changelog"
524
  msgstr "चैंज लॉग"
525
 
526
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:388
527
+ #: ../includes/hfcm-add-edit.php:392
528
  msgid "Snippet created by"
529
  msgstr "के द्वारा बनाई गई स्निपेट"
530
 
531
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:389
532
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:393
533
+ #: ../includes/hfcm-add-edit.php:393 ../includes/hfcm-add-edit.php:397
534
  msgid "on"
535
  msgstr "पर"
536
 
537
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:389
538
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:393
539
+ #: ../includes/hfcm-add-edit.php:393 ../includes/hfcm-add-edit.php:397
540
  msgid "at"
541
  msgstr "पर"
542
 
543
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:392
544
+ #: ../includes/hfcm-add-edit.php:396
545
  msgid "Last edited by"
546
  msgstr "अंतिम बार संपादित द्वारा"
547
 
548
  #: ../header-footer-code-manager/includes/hfcm-add-edit.php:402
549
+ #: ../includes/hfcm-add-edit.php:406
550
  msgid "Code"
551
  msgstr "कोड"
552
 
553
+ #: ../header-footer-code-manager/includes/hfcm-add-edit.php:408
554
+ #: ../includes/hfcm-add-edit.php:412
555
+ msgid ""
556
+ "Warning: Using improper code or untrusted sources code can break your site or create "
557
+ "security risks. <a href=\"https://draftpress.com/security-risks-of-wp-plugins-that-allow-"
558
+ "code-editing-or-insertion\" target=\"_blank\">Learn more</a>."
559
+ msgstr ""
560
+ "चेतावनी: अनुचित कोड या अविश्वसनीय स्रोत कोड का उपयोग करने से आपकी साइट टूट सकती है या सुरक्षा जोखिम "
561
+ "पैदा हो सकते हैं। <a href=\"https://draftpress.com/security-risks-of-wp-plugins-that-allow-"
562
+ "code-editing-or-insertion\" target=\"_blank\">और जानें</a> ।"
563
+
564
+ #: ../header-footer-code-manager/includes/hfcm-add-edit.php:413
565
+ #: ../includes/hfcm-add-edit.php:417
566
  msgid "Save"
567
  msgstr "जमा करें"
568
 
620
  msgid "Import"
621
  msgstr "आयात"
622
 
623
+ #: ../includes/hfcm-add-edit.php:442
624
  msgid ""
625
+ "Your site has <a href=\"https://draftpress.com/disallow-file-edit-setting-wordpress\" "
626
+ "target=\"_blank\">WP_DISALLOW_FILE_EDITS</a> setting enabled inside the wp-config file fo "
627
+ "prevent file edits. By using this plugin, you acknowledge that you know what you’re doing "
628
+ "and intend on adding code snippets only from trusted sources."
629
  msgstr ""
630
+ "फ़ाइल संपादन को रोकने के लिए आपकी साइट में <a href=\"https://draftpress.com/disallow-file-edit-"
631
+ "setting-wordpress\" target=\"_blank\">WP_DISALLOW_FILE_EDITS</a> सेटिंग wp-config फ़ाइल के "
632
+ "अंदर सक्षम है। इस प्लगइन का उपयोग करके, आप स्वीकार करते हैं कि आप जानते हैं कि आप क्या कर रहे हैं और केवल "
633
+ "विश्वसनीय स्रोतों से कोड स्निपेट जोड़ने का इरादा रखते हैं।"
634
 
635
  #~ msgid "Snippet will only execute if the placement hook exists on the page"
636
  #~ msgstr "पृष्ठ पर प्लेसमेंट हुक मौजूद होने पर ही स्निपेट निष्पादित होगा"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: header, footer, code manager, snippet, functions.php, tracking, google ana
4
  Requires at least: 4.9
5
  Requires PHP: 5.6.20
6
  Tested up to: 6.1.1
7
- Stable tag: 1.1.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Donate link: https://draftpress.com
@@ -114,6 +114,10 @@ A. Free plugins rely on user feedback. Therefore, the best thing you can do for
114
  A. If your script is not supported, just let us know and we'll look into it immediately. We will do our best to ensure all reputable services are supported. When requesting support for a particular script, it would be nice to get a sample of the script so that we can see its structure.
115
 
116
  == Changelog ==
 
 
 
 
117
  = 1.1.31 = 2022-12-09
118
  * ADDED: Warning message to caution users of using improper code or untrusted sources code that can break site or create security risks.
119
  * UPDATED: Compatibility with WordPress 6.1.1
4
  Requires at least: 4.9
5
  Requires PHP: 5.6.20
6
  Tested up to: 6.1.1
7
+ Stable tag: 1.1.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Donate link: https://draftpress.com
114
  A. If your script is not supported, just let us know and we'll look into it immediately. We will do our best to ensure all reputable services are supported. When requesting support for a particular script, it would be nice to get a sample of the script so that we can see its structure.
115
 
116
  == Changelog ==
117
+ = 1.1.32 = 2022-12-16
118
+ * ADDED: Warning message to caution about file editing
119
+ * FIXED: Snippet including in case of rest api in some cases
120
+
121
  = 1.1.31 = 2022-12-09
122
  * ADDED: Warning message to caution users of using improper code or untrusted sources code that can break site or create security risks.
123
  * UPDATED: Compatibility with WordPress 6.1.1