Head and Footer Scripts Inserter - Version 4.3

Version Description

  • To the plugin settings page added information about the plugin version number.
  • The "Tested up to:" comment changed to 4.8 after full testing process.
  • The "version.php" file renamed to "versioning.php".
  • The "versioning.php" file updated to new version.
  • The "plugin_version_number" function renamed to the "versioning".
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 Head and Footer Scripts Inserter
Version 4.3
Comparing to
See all releases

Code changes from version 4.2 to 4.3

header-and-footer-scripts-inserter.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 4.2
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
@@ -79,7 +79,7 @@ HFScriptsIns_define_constants( 'SETTINGS', 'HFScriptsIns' );
79
  */
80
  require_once( HFSINS_PATH . 'inc/php/core.php' );
81
  require_once( HFSINS_PATH . 'inc/php/upgrade.php' );
82
- require_once( HFSINS_PATH . 'inc/php/version.php' );
83
  require_once( HFSINS_PATH . 'inc/php/enqueue.php' );
84
  require_once( HFSINS_PATH . 'inc/php/functional.php' );
85
  require_once( HFSINS_PATH . 'inc/php/page.php' );
5
  * Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 4.3
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
79
  */
80
  require_once( HFSINS_PATH . 'inc/php/core.php' );
81
  require_once( HFSINS_PATH . 'inc/php/upgrade.php' );
82
+ require_once( HFSINS_PATH . 'inc/php/versioning.php' );
83
  require_once( HFSINS_PATH . 'inc/php/enqueue.php' );
84
  require_once( HFSINS_PATH . 'inc/php/functional.php' );
85
  require_once( HFSINS_PATH . 'inc/php/page.php' );
inc/css/admin.css CHANGED
@@ -5,7 +5,7 @@
5
  * @uthor Arthur Gareginyan
6
  * @link http://www.arthurgareginyan.com
7
  * @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
- * @since 4.0
9
  */
10
 
11
 
@@ -142,6 +142,10 @@ h3.title {
142
  #side-sortables .paypal {
143
  font-size: 18px;
144
  }
 
 
 
 
145
 
146
  /* Support - addition section
147
  -------------------------------------------------------------- */
5
  * @uthor Arthur Gareginyan
6
  * @link http://www.arthurgareginyan.com
7
  * @copyright Copyright (c) 2016-2017 Arthur Gareginyan. All Rights Reserved.
8
+ * @since 4.3
9
  */
10
 
11
 
142
  #side-sortables .paypal {
143
  font-size: 18px;
144
  }
145
+ #side-sortables .version {
146
+ color: #888888;
147
+ text-align: right;
148
+ }
149
 
150
  /* Support - addition section
151
  -------------------------------------------------------------- */
inc/php/settings.php CHANGED
@@ -10,7 +10,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
10
  /**
11
  * Render Settings Tab
12
  *
13
- * @since 4.2
14
  */
15
  ?>
16
  <!-- SIDEBAR -->
@@ -21,6 +21,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
21
  <h3 class="title"><?php _e( 'About', HFSINS_TEXT ); ?></h3>
22
  <div class="inside">
23
  <p><?php _e( 'This plugin allows you to easily insert scripts in your website.', HFSINS_TEXT ); ?></p>
 
24
  </div>
25
  </div>
26
 
10
  /**
11
  * Render Settings Tab
12
  *
13
+ * @since 4.3
14
  */
15
  ?>
16
  <!-- SIDEBAR -->
21
  <h3 class="title"><?php _e( 'About', HFSINS_TEXT ); ?></h3>
22
  <div class="inside">
23
  <p><?php _e( 'This plugin allows you to easily insert scripts in your website.', HFSINS_TEXT ); ?></p>
24
+ <p class="version"><?php _e( 'Version', HFSINS_TEXT ); ?> <?php echo HFSINS_VERSION; ?></p>
25
  </div>
26
  </div>
27
 
inc/php/version.php DELETED
@@ -1,77 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Prevent Direct Access
5
- *
6
- * @since 0.1
7
- */
8
- defined( 'ABSPATH' ) or die( "Restricted access!" );
9
-
10
- /**
11
- * Function for managing information about the version number of the plugin
12
- *
13
- * @since 4.2
14
- */
15
- function HFScriptsIns_plugin_version_number() {
16
-
17
- // Set variables:
18
- // - Read the plugin service information from the database and put it into an array
19
- // - Make the "$info" array if the plugin service information in the database is not exist
20
- // - Get the current plugin version number from the database
21
- // - Get the new plugin version number from the global constant
22
- $info = get_option( HFSINS_SETTINGS . '_service_info' );
23
- if ( !is_array( $info ) ) {
24
- $info = array();
25
- }
26
- $current_number = !empty( $info['version'] ) ? $info['version'] : '0';
27
- $new_number = HFSINS_VERSION;
28
-
29
- // Update the "_service_info" data in the database if the version number is not number
30
- if ( !is_numeric($current_number) ) {
31
-
32
- $info['version'] = $new_number;
33
- update_option( HFSINS_SETTINGS . '_service_info', $info );
34
-
35
- }
36
-
37
- // If the version number in the database is same as the new version number:
38
- // - Reset the "old_version" marker in the database
39
- // - Exit from this function
40
- if ( $new_number == $current_number ) {
41
-
42
- if ( $info['old_version'] == '1' ) {
43
-
44
- $info['old_version'] = '0';
45
- update_option( HFSINS_SETTINGS . '_service_info', $info );
46
-
47
- }
48
-
49
- return;
50
- }
51
-
52
- // If the version number in the database is smaller than the new version number:
53
- // - Save the new version number to the database
54
- // - Update the "old_version" marker in the database
55
- // - Exit from this function
56
- if ( $new_number > $current_number ) {
57
-
58
- $info['version'] = $new_number;
59
- $info['old_version'] = '0';
60
- update_option( HFSINS_SETTINGS . '_service_info', $info );
61
-
62
- return;
63
- }
64
-
65
- // If the version number in the database is greater than the new version number:
66
- // - Save the "old_version" marker to the database
67
- // - Exit from this function
68
- if ( $new_number < $current_number ) {
69
-
70
- $info['old_version'] = '1';
71
- update_option( HFSINS_SETTINGS . '_service_info', $info );
72
-
73
- return;
74
- }
75
-
76
- }
77
- HFScriptsIns_plugin_version_number();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/php/versioning.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Prevent Direct Access
5
+ *
6
+ * @since 0.1
7
+ */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
+
10
+ /**
11
+ * Function for managing information about the version number of the plugin
12
+ *
13
+ * @since 4.3
14
+ */
15
+ function HFScriptsIns_versioning() {
16
+
17
+ ///////////////////////////////////////////////////////////////////
18
+ // SETTING VARIABLES //
19
+ ///////////////////////////////////////////////////////////////////
20
+
21
+ $version_files = HFSINS_VERSION;
22
+ $settings = HFSINS_SETTINGS;
23
+
24
+ // Read the plugin service information from the database and put it into an array
25
+ $info = get_option( $settings . '_service_info' );
26
+
27
+ // Make the "$info" array if the plugin service information in the database is not exist
28
+ if ( ! is_array( $info ) ) $info = array();
29
+
30
+ // Get the current plugin version number from the database
31
+ $version_db = !empty( $info['version'] ) ? $info['version'] : '0';
32
+
33
+ ///////////////////////////////////////////////////////////////////
34
+ // FORMATTING NUMBERS //
35
+ ///////////////////////////////////////////////////////////////////
36
+
37
+ // Clean the version number from extra digits
38
+ $version_db = substr( $version_db, 0, 4 );
39
+ $version_files = substr( $version_files, 0, 4 );
40
+ if ( ! is_numeric( $version_db ) ) {
41
+ $version_db = number_format( floor( $version_db * 100 ) / 100, 1, '.', '' );
42
+ }
43
+ if ( ! is_numeric( $version_files ) ) {
44
+ $version_files = number_format( floor( $version_files * 100 ) / 100, 1, '.', '' );
45
+ }
46
+
47
+ // Count the number of decimal digits in version number
48
+ $version_db_count = strlen( substr( strrchr( $version_db, "."), 1 ) );
49
+ $version_files_count = strlen( substr( strrchr( $version_files, "."), 1 ) );
50
+
51
+ // Fix decimals if the number of decimal digits in version number is 1
52
+ if ( $version_db_count == '1' ) {
53
+ $version_db_formated = ( $version_db - floor( $version_db ) ) / 10;
54
+ $version_db_formated = ( floor( $version_db ) + $version_db_formated );
55
+ $version_db = sprintf( '%0.2f', $version_db_formated );
56
+ }
57
+ if ( $version_files_count == '1' ) {
58
+ $version_files_formated = ( $version_files - floor( $version_files ) ) / 10;
59
+ $version_files_formated = ( floor( $version_files ) + $version_files_formated );
60
+ $version_files = sprintf( '%0.2f', $version_files_formated );
61
+ }
62
+
63
+ ///////////////////////////////////////////////////////////////////
64
+ // COMPARING NUMBERS //
65
+ ///////////////////////////////////////////////////////////////////
66
+
67
+ // If the version number in the database is same as the new version number:
68
+ // - Reset the "old_version" marker in the database
69
+ // - Exit from this function
70
+ if ( $version_files == $version_db ) {
71
+
72
+ if ( $info['old_version'] == '1' ) {
73
+
74
+ $info['old_version'] = '0';
75
+ update_option( $settings . '_service_info', $info );
76
+
77
+ }
78
+
79
+ return;
80
+ }
81
+
82
+ // If the version number in the database is smaller than the new version number:
83
+ // - Save the new version number to the database
84
+ // - Update the "old_version" marker in the database
85
+ // - Exit from this function
86
+ if ( $version_files > $version_db ) {
87
+
88
+ $info['version'] = $version_files;
89
+ $info['old_version'] = '0';
90
+ update_option( $settings . '_service_info', $info );
91
+
92
+ return;
93
+ }
94
+
95
+ // If the version number in the database is greater than the new version number:
96
+ // - Save the "old_version" marker to the database
97
+ // - Exit from this function
98
+ if ( $version_files < $version_db ) {
99
+
100
+ $info['old_version'] = '1';
101
+ update_option( $settings . '_service_info', $info );
102
+
103
+ return;
104
+ }
105
+
106
+ }
107
+ HFScriptsIns_versioning();
languages/header-and-footer-scripts-inserter-pl_PL.mo CHANGED
Binary file
languages/header-and-footer-scripts-inserter-pl_PL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-05-23 08:33+0300\n"
6
- "PO-Revision-Date: 2017-05-23 08:33+0300\n"
7
  "Last-Translator: psouu <koko887@wp.pl>\n"
8
  "Language-Team: \n"
9
  "Language: pl\n"
@@ -75,8 +75,8 @@ msgstr "FAQ"
75
  msgid "Author"
76
  msgstr "Autor"
77
 
78
- #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:28
79
- #: inc/php/settings.php:101
80
  msgid "Support"
81
  msgstr ""
82
 
@@ -264,39 +264,43 @@ msgstr "O wtyczce"
264
  msgid "This plugin allows you to easily insert scripts in your website."
265
  msgstr "Ta wtyczka pozwala łatwo wstawić kod skryptów na stronę www."
266
 
267
- #: inc/php/settings.php:30 inc/php/settings.php:103
 
 
 
 
268
  msgid ""
269
  "I'm an independent developer, without a regular income, so every little "
270
  "contribution helps cover my costs and lets me spend more time building "
271
  "things for people like you to enjoy."
272
  msgstr ""
273
 
274
- #: inc/php/settings.php:31 inc/php/settings.php:104
275
  msgid "Donate with PayPal"
276
  msgstr ""
277
 
278
- #: inc/php/settings.php:32 inc/php/settings.php:105
279
  msgid "Thanks for your support!"
280
  msgstr "Dziękujemy za wsparcie!"
281
 
282
- #: inc/php/settings.php:37
283
  msgid "Help"
284
  msgstr "Pomoc"
285
 
286
- #: inc/php/settings.php:39
287
  msgid "Got something to say? Need help?"
288
  msgstr "Masz coś do powiedzenia? Potrzebujesz pomocy?"
289
 
290
- #: inc/php/settings.php:77
291
  msgid "Head Section"
292
  msgstr "Sekcja: Nagłówek"
293
 
294
- #: inc/php/settings.php:79
295
  msgid ""
296
  "You can use the fields below to add scripts to HEAD section of your website."
297
  msgstr "Pola poniżej można użyć, aby dodać kody skryptów do nagłówka witryny."
298
 
299
- #: inc/php/settings.php:80
300
  msgid ""
301
  "Scripts from this field will be printed in the beginning of <b>HEAD</b> "
302
  "section. Do not place plain text in this!"
@@ -304,7 +308,7 @@ msgstr ""
304
  "Skrypty z tego pola zostaną dodane na początku sekcji <b>HEAD</b>. Nie "
305
  "należy tu umieszczać zwykłego tekstu!"
306
 
307
- #: inc/php/settings.php:82
308
  msgid ""
309
  "Scripts from this field will be printed in the end of <b>HEAD</b> section. "
310
  "Do not place plain text in this!"
@@ -312,21 +316,21 @@ msgstr ""
312
  "Skrypty z tego pola zostaną dodane na końcu sekcji <b>HEAD</b>. Nie należy "
313
  "tu umieszczać zwykłego tekstu!"
314
 
315
- #: inc/php/settings.php:84 inc/php/settings.php:96
316
  msgid "Save Changes"
317
  msgstr "Zapisz"
318
 
319
- #: inc/php/settings.php:89
320
  msgid "Footer Section"
321
  msgstr "Sekcja: Stopka"
322
 
323
- #: inc/php/settings.php:91
324
  msgid ""
325
  "You can use the fields below to add scripts to FOOTER section of your "
326
  "website."
327
  msgstr "Pola poniżej można użyć, aby dodać kody skryptów do stopki witryny."
328
 
329
- #: inc/php/settings.php:92
330
  msgid ""
331
  "Scripts from this field will be printed before a footers scripts. Do not "
332
  "place plain text in this!"
@@ -334,7 +338,7 @@ msgstr ""
334
  "Skrypty z tego pola zostaną dodane przed skryptami ze stopki. Nie należy tu "
335
  "umieszczać zwykłego tekstu!"
336
 
337
- #: inc/php/settings.php:94
338
  msgid ""
339
  "Scripts from this field will be printed after all footers scripts. Do not "
340
  "place plain text in this!"
2
  msgstr ""
3
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-06-04 13:31+0300\n"
6
+ "PO-Revision-Date: 2017-06-04 13:31+0300\n"
7
  "Last-Translator: psouu <koko887@wp.pl>\n"
8
  "Language-Team: \n"
9
  "Language: pl\n"
75
  msgid "Author"
76
  msgstr "Autor"
77
 
78
+ #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:29
79
+ #: inc/php/settings.php:102
80
  msgid "Support"
81
  msgstr ""
82
 
264
  msgid "This plugin allows you to easily insert scripts in your website."
265
  msgstr "Ta wtyczka pozwala łatwo wstawić kod skryptów na stronę www."
266
 
267
+ #: inc/php/settings.php:24
268
+ msgid "Version"
269
+ msgstr ""
270
+
271
+ #: inc/php/settings.php:31 inc/php/settings.php:104
272
  msgid ""
273
  "I'm an independent developer, without a regular income, so every little "
274
  "contribution helps cover my costs and lets me spend more time building "
275
  "things for people like you to enjoy."
276
  msgstr ""
277
 
278
+ #: inc/php/settings.php:32 inc/php/settings.php:105
279
  msgid "Donate with PayPal"
280
  msgstr ""
281
 
282
+ #: inc/php/settings.php:33 inc/php/settings.php:106
283
  msgid "Thanks for your support!"
284
  msgstr "Dziękujemy za wsparcie!"
285
 
286
+ #: inc/php/settings.php:38
287
  msgid "Help"
288
  msgstr "Pomoc"
289
 
290
+ #: inc/php/settings.php:40
291
  msgid "Got something to say? Need help?"
292
  msgstr "Masz coś do powiedzenia? Potrzebujesz pomocy?"
293
 
294
+ #: inc/php/settings.php:78
295
  msgid "Head Section"
296
  msgstr "Sekcja: Nagłówek"
297
 
298
+ #: inc/php/settings.php:80
299
  msgid ""
300
  "You can use the fields below to add scripts to HEAD section of your website."
301
  msgstr "Pola poniżej można użyć, aby dodać kody skryptów do nagłówka witryny."
302
 
303
+ #: inc/php/settings.php:81
304
  msgid ""
305
  "Scripts from this field will be printed in the beginning of <b>HEAD</b> "
306
  "section. Do not place plain text in this!"
308
  "Skrypty z tego pola zostaną dodane na początku sekcji <b>HEAD</b>. Nie "
309
  "należy tu umieszczać zwykłego tekstu!"
310
 
311
+ #: inc/php/settings.php:83
312
  msgid ""
313
  "Scripts from this field will be printed in the end of <b>HEAD</b> section. "
314
  "Do not place plain text in this!"
316
  "Skrypty z tego pola zostaną dodane na końcu sekcji <b>HEAD</b>. Nie należy "
317
  "tu umieszczać zwykłego tekstu!"
318
 
319
+ #: inc/php/settings.php:85 inc/php/settings.php:97
320
  msgid "Save Changes"
321
  msgstr "Zapisz"
322
 
323
+ #: inc/php/settings.php:90
324
  msgid "Footer Section"
325
  msgstr "Sekcja: Stopka"
326
 
327
+ #: inc/php/settings.php:92
328
  msgid ""
329
  "You can use the fields below to add scripts to FOOTER section of your "
330
  "website."
331
  msgstr "Pola poniżej można użyć, aby dodać kody skryptów do stopki witryny."
332
 
333
+ #: inc/php/settings.php:93
334
  msgid ""
335
  "Scripts from this field will be printed before a footers scripts. Do not "
336
  "place plain text in this!"
338
  "Skrypty z tego pola zostaną dodane przed skryptami ze stopki. Nie należy tu "
339
  "umieszczać zwykłego tekstu!"
340
 
341
+ #: inc/php/settings.php:95
342
  msgid ""
343
  "Scripts from this field will be printed after all footers scripts. Do not "
344
  "place plain text in this!"
languages/header-and-footer-scripts-inserter-ru_RU.mo CHANGED
Binary file
languages/header-and-footer-scripts-inserter-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
- "POT-Creation-Date: 2017-05-23 08:33+0300\n"
5
- "PO-Revision-Date: 2017-05-23 08:33+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
@@ -71,8 +71,8 @@ msgstr "F.A.Q."
71
  msgid "Author"
72
  msgstr "Автор"
73
 
74
- #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:28
75
- #: inc/php/settings.php:101
76
  msgid "Support"
77
  msgstr "Поддержка"
78
 
@@ -272,7 +272,11 @@ msgstr "О плагине"
272
  msgid "This plugin allows you to easily insert scripts in your website."
273
  msgstr "Этот плагин позволяет легко вставлять скрипты в ваш веб-сайте."
274
 
275
- #: inc/php/settings.php:30 inc/php/settings.php:103
 
 
 
 
276
  msgid ""
277
  "I'm an independent developer, without a regular income, so every little "
278
  "contribution helps cover my costs and lets me spend more time building "
@@ -282,34 +286,34 @@ msgstr ""
282
  "вклад помогает мне покрыть затраты и позволяет тратить больше времени на "
283
  "создание программ для людей как вы."
284
 
285
- #: inc/php/settings.php:31 inc/php/settings.php:104
286
  msgid "Donate with PayPal"
287
  msgstr ""
288
 
289
- #: inc/php/settings.php:32 inc/php/settings.php:105
290
  msgid "Thanks for your support!"
291
  msgstr "Спасибо за вашу поддержку!"
292
 
293
- #: inc/php/settings.php:37
294
  msgid "Help"
295
  msgstr "Помощь"
296
 
297
- #: inc/php/settings.php:39
298
  msgid "Got something to say? Need help?"
299
  msgstr "Есть что сказать? Нужна помощь?"
300
 
301
- #: inc/php/settings.php:77
302
  msgid "Head Section"
303
  msgstr "Верхний колонтитул (HEAD)"
304
 
305
- #: inc/php/settings.php:79
306
  msgid ""
307
  "You can use the fields below to add scripts to HEAD section of your website."
308
  msgstr ""
309
  "Используйте поле расположенное ниже для того, чтобы добавить скрипты в "
310
  "верхний колонтитул вашего вебсайта."
311
 
312
- #: inc/php/settings.php:80
313
  msgid ""
314
  "Scripts from this field will be printed in the beginning of <b>HEAD</b> "
315
  "section. Do not place plain text in this!"
@@ -317,7 +321,7 @@ msgstr ""
317
  "Скрипты этой области будут напечатаны в начале верхнего колонтитула "
318
  "(<b>HEAD</b>). Не помещайте сюда обычный текст!"
319
 
320
- #: inc/php/settings.php:82
321
  msgid ""
322
  "Scripts from this field will be printed in the end of <b>HEAD</b> section. "
323
  "Do not place plain text in this!"
@@ -325,15 +329,15 @@ msgstr ""
325
  "Скрипты этой области будут напечатаны в конце верхнего колонтитула (<b>HEAD</"
326
  "b>). Не помещайте сюда обычный текст!"
327
 
328
- #: inc/php/settings.php:84 inc/php/settings.php:96
329
  msgid "Save Changes"
330
  msgstr "Сохранить изменения"
331
 
332
- #: inc/php/settings.php:89
333
  msgid "Footer Section"
334
  msgstr "Нижний колонтитул (FOOTER)"
335
 
336
- #: inc/php/settings.php:91
337
  msgid ""
338
  "You can use the fields below to add scripts to FOOTER section of your "
339
  "website."
@@ -341,7 +345,7 @@ msgstr ""
341
  "Используйте поле расположенное ниже для того, чтобы добавить скрипты в "
342
  "нижний колонтитул вашего вебсайта."
343
 
344
- #: inc/php/settings.php:92
345
  msgid ""
346
  "Scripts from this field will be printed before a footers scripts. Do not "
347
  "place plain text in this!"
@@ -349,7 +353,7 @@ msgstr ""
349
  "Скрипты из этой области будут напечатаны в начале нижнего колонтитула. Не "
350
  "помещайте сюда обычный текст!"
351
 
352
- #: inc/php/settings.php:94
353
  msgid ""
354
  "Scripts from this field will be printed after all footers scripts. Do not "
355
  "place plain text in this!"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
+ "POT-Creation-Date: 2017-06-04 13:31+0300\n"
5
+ "PO-Revision-Date: 2017-06-04 13:38+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
71
  msgid "Author"
72
  msgstr "Автор"
73
 
74
+ #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:29
75
+ #: inc/php/settings.php:102
76
  msgid "Support"
77
  msgstr "Поддержка"
78
 
272
  msgid "This plugin allows you to easily insert scripts in your website."
273
  msgstr "Этот плагин позволяет легко вставлять скрипты в ваш веб-сайте."
274
 
275
+ #: inc/php/settings.php:24
276
+ msgid "Version"
277
+ msgstr "Версия"
278
+
279
+ #: inc/php/settings.php:31 inc/php/settings.php:104
280
  msgid ""
281
  "I'm an independent developer, without a regular income, so every little "
282
  "contribution helps cover my costs and lets me spend more time building "
286
  "вклад помогает мне покрыть затраты и позволяет тратить больше времени на "
287
  "создание программ для людей как вы."
288
 
289
+ #: inc/php/settings.php:32 inc/php/settings.php:105
290
  msgid "Donate with PayPal"
291
  msgstr ""
292
 
293
+ #: inc/php/settings.php:33 inc/php/settings.php:106
294
  msgid "Thanks for your support!"
295
  msgstr "Спасибо за вашу поддержку!"
296
 
297
+ #: inc/php/settings.php:38
298
  msgid "Help"
299
  msgstr "Помощь"
300
 
301
+ #: inc/php/settings.php:40
302
  msgid "Got something to say? Need help?"
303
  msgstr "Есть что сказать? Нужна помощь?"
304
 
305
+ #: inc/php/settings.php:78
306
  msgid "Head Section"
307
  msgstr "Верхний колонтитул (HEAD)"
308
 
309
+ #: inc/php/settings.php:80
310
  msgid ""
311
  "You can use the fields below to add scripts to HEAD section of your website."
312
  msgstr ""
313
  "Используйте поле расположенное ниже для того, чтобы добавить скрипты в "
314
  "верхний колонтитул вашего вебсайта."
315
 
316
+ #: inc/php/settings.php:81
317
  msgid ""
318
  "Scripts from this field will be printed in the beginning of <b>HEAD</b> "
319
  "section. Do not place plain text in this!"
321
  "Скрипты этой области будут напечатаны в начале верхнего колонтитула "
322
  "(<b>HEAD</b>). Не помещайте сюда обычный текст!"
323
 
324
+ #: inc/php/settings.php:83
325
  msgid ""
326
  "Scripts from this field will be printed in the end of <b>HEAD</b> section. "
327
  "Do not place plain text in this!"
329
  "Скрипты этой области будут напечатаны в конце верхнего колонтитула (<b>HEAD</"
330
  "b>). Не помещайте сюда обычный текст!"
331
 
332
+ #: inc/php/settings.php:85 inc/php/settings.php:97
333
  msgid "Save Changes"
334
  msgstr "Сохранить изменения"
335
 
336
+ #: inc/php/settings.php:90
337
  msgid "Footer Section"
338
  msgstr "Нижний колонтитул (FOOTER)"
339
 
340
+ #: inc/php/settings.php:92
341
  msgid ""
342
  "You can use the fields below to add scripts to FOOTER section of your "
343
  "website."
345
  "Используйте поле расположенное ниже для того, чтобы добавить скрипты в "
346
  "нижний колонтитул вашего вебсайта."
347
 
348
+ #: inc/php/settings.php:93
349
  msgid ""
350
  "Scripts from this field will be printed before a footers scripts. Do not "
351
  "place plain text in this!"
353
  "Скрипты из этой области будут напечатаны в начале нижнего колонтитула. Не "
354
  "помещайте сюда обычный текст!"
355
 
356
+ #: inc/php/settings.php:95
357
  msgid ""
358
  "Scripts from this field will be printed after all footers scripts. Do not "
359
  "place plain text in this!"
languages/header-and-footer-scripts-inserter.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
6
- "POT-Creation-Date: 2017-05-23 08:33+0300\n"
7
  "PO-Revision-Date: 2016-01-30 11:39+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -69,7 +69,7 @@ msgstr ""
69
  msgid "Author"
70
  msgstr ""
71
 
72
- #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:28 inc/php/settings.php:101
73
  msgid "Support"
74
  msgstr ""
75
 
@@ -235,61 +235,65 @@ msgstr ""
235
  msgid "This plugin allows you to easily insert scripts in your website."
236
  msgstr ""
237
 
238
- #: inc/php/settings.php:30 inc/php/settings.php:103
 
 
 
 
239
  msgid ""
240
  "I'm an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building "
241
  "things for people like you to enjoy."
242
  msgstr ""
243
 
244
- #: inc/php/settings.php:31 inc/php/settings.php:104
245
  msgid "Donate with PayPal"
246
  msgstr ""
247
 
248
- #: inc/php/settings.php:32 inc/php/settings.php:105
249
  msgid "Thanks for your support!"
250
  msgstr ""
251
 
252
- #: inc/php/settings.php:37
253
  msgid "Help"
254
  msgstr ""
255
 
256
- #: inc/php/settings.php:39
257
  msgid "Got something to say? Need help?"
258
  msgstr ""
259
 
260
- #: inc/php/settings.php:77
261
  msgid "Head Section"
262
  msgstr ""
263
 
264
- #: inc/php/settings.php:79
265
  msgid "You can use the fields below to add scripts to HEAD section of your website."
266
  msgstr ""
267
 
268
- #: inc/php/settings.php:80
269
  msgid "Scripts from this field will be printed in the beginning of <b>HEAD</b> section. Do not place plain text in this!"
270
  msgstr ""
271
 
272
- #: inc/php/settings.php:82
273
  msgid "Scripts from this field will be printed in the end of <b>HEAD</b> section. Do not place plain text in this!"
274
  msgstr ""
275
 
276
- #: inc/php/settings.php:84 inc/php/settings.php:96
277
  msgid "Save Changes"
278
  msgstr ""
279
 
280
- #: inc/php/settings.php:89
281
  msgid "Footer Section"
282
  msgstr ""
283
 
284
- #: inc/php/settings.php:91
285
  msgid "You can use the fields below to add scripts to FOOTER section of your website."
286
  msgstr ""
287
 
288
- #: inc/php/settings.php:92
289
  msgid "Scripts from this field will be printed before a footers scripts. Do not place plain text in this!"
290
  msgstr ""
291
 
292
- #: inc/php/settings.php:94
293
  msgid "Scripts from this field will be printed after all footers scripts. Do not place plain text in this!"
294
  msgstr ""
295
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
6
+ "POT-Creation-Date: 2017-06-04 13:31+0300\n"
7
  "PO-Revision-Date: 2016-01-30 11:39+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
69
  msgid "Author"
70
  msgstr ""
71
 
72
+ #: inc/php/page.php:45 inc/php/page.php:184 inc/php/settings.php:29 inc/php/settings.php:102
73
  msgid "Support"
74
  msgstr ""
75
 
235
  msgid "This plugin allows you to easily insert scripts in your website."
236
  msgstr ""
237
 
238
+ #: inc/php/settings.php:24
239
+ msgid "Version"
240
+ msgstr ""
241
+
242
+ #: inc/php/settings.php:31 inc/php/settings.php:104
243
  msgid ""
244
  "I'm an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building "
245
  "things for people like you to enjoy."
246
  msgstr ""
247
 
248
+ #: inc/php/settings.php:32 inc/php/settings.php:105
249
  msgid "Donate with PayPal"
250
  msgstr ""
251
 
252
+ #: inc/php/settings.php:33 inc/php/settings.php:106
253
  msgid "Thanks for your support!"
254
  msgstr ""
255
 
256
+ #: inc/php/settings.php:38
257
  msgid "Help"
258
  msgstr ""
259
 
260
+ #: inc/php/settings.php:40
261
  msgid "Got something to say? Need help?"
262
  msgstr ""
263
 
264
+ #: inc/php/settings.php:78
265
  msgid "Head Section"
266
  msgstr ""
267
 
268
+ #: inc/php/settings.php:80
269
  msgid "You can use the fields below to add scripts to HEAD section of your website."
270
  msgstr ""
271
 
272
+ #: inc/php/settings.php:81
273
  msgid "Scripts from this field will be printed in the beginning of <b>HEAD</b> section. Do not place plain text in this!"
274
  msgstr ""
275
 
276
+ #: inc/php/settings.php:83
277
  msgid "Scripts from this field will be printed in the end of <b>HEAD</b> section. Do not place plain text in this!"
278
  msgstr ""
279
 
280
+ #: inc/php/settings.php:85 inc/php/settings.php:97
281
  msgid "Save Changes"
282
  msgstr ""
283
 
284
+ #: inc/php/settings.php:90
285
  msgid "Footer Section"
286
  msgstr ""
287
 
288
+ #: inc/php/settings.php:92
289
  msgid "You can use the fields below to add scripts to FOOTER section of your website."
290
  msgstr ""
291
 
292
+ #: inc/php/settings.php:93
293
  msgid "Scripts from this field will be printed before a footers scripts. Do not place plain text in this!"
294
  msgstr ""
295
 
296
+ #: inc/php/settings.php:95
297
  msgid "Scripts from this field will be printed after all footers scripts. Do not place plain text in this!"
298
  msgstr ""
299
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: inject, insert, insert scripts, insert javascript, insert js, insert html,
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
- Stable tag: 4.2
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -62,9 +62,9 @@ If you would like to add a translation to this plugin then please head to our [T
62
  == Installation ==
63
  Install "Head and Footer Scripts Inserter" just as you would any other WordPress Plugin.
64
 
65
- Automatically via WordPress Admin area:
66
 
67
- 1. Log into Admin area of your WordPress website.
68
  2. Go to "`Plugins`" -> "`Add New`".
69
  3. Find this plugin and click install.
70
  4. Activate this plugin through the "`Plugins`" tab.
@@ -74,7 +74,7 @@ Manually via FTP access:
74
  1. Download a copy (ZIP file) of this plugin from WordPress.org.
75
  2. Unzip the ZIP file.
76
  3. Upload the unzipped catalog to your website's plugin directory (`/wp-content/plugins/`).
77
- 4. Log into Admin area of your WordPress website.
78
  5. Activate this plugin through the "`Plugins`" tab.
79
 
80
  After installation, a "`Head and Footer Scripts Inserter`" menu item will appear in the "`Settings`" section. Click on this in order to view plugin administration page.
@@ -123,7 +123,7 @@ A. Yes, any financial contributions are welcome! Just visit [my website](http://
123
  == Screenshots ==
124
  1. Plugin page.
125
  2. Plugin page with Google Tag Manager code added.
126
- 3. Success message.
127
 
128
  == Other Notes ==
129
 
@@ -149,6 +149,13 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
149
 
150
  == Changelog ==
151
 
 
 
 
 
 
 
 
152
  = 4.2 =
153
  * Compatibility with PHP version 5.2 improved.
154
  * PHP shorthands improved.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
+ Stable tag: 4.3
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
62
  == Installation ==
63
  Install "Head and Footer Scripts Inserter" just as you would any other WordPress Plugin.
64
 
65
+ Automatically via WordPress Admin Panel:
66
 
67
+ 1. Log into Admin Panel of your WordPress website.
68
  2. Go to "`Plugins`" -> "`Add New`".
69
  3. Find this plugin and click install.
70
  4. Activate this plugin through the "`Plugins`" tab.
74
  1. Download a copy (ZIP file) of this plugin from WordPress.org.
75
  2. Unzip the ZIP file.
76
  3. Upload the unzipped catalog to your website's plugin directory (`/wp-content/plugins/`).
77
+ 4. Log into Admin Panel of your WordPress website.
78
  5. Activate this plugin through the "`Plugins`" tab.
79
 
80
  After installation, a "`Head and Footer Scripts Inserter`" menu item will appear in the "`Settings`" section. Click on this in order to view plugin administration page.
123
  == Screenshots ==
124
  1. Plugin page.
125
  2. Plugin page with Google Tag Manager code added.
126
+ 3. Plugin page with Google Analytics tracking code added.
127
 
128
  == Other Notes ==
129
 
149
 
150
  == Changelog ==
151
 
152
+ = 4.3 =
153
+ * To the plugin settings page added information about the plugin version number.
154
+ * The "Tested up to:" comment changed to 4.8 after full testing process.
155
+ * The "version.php" file renamed to "versioning.php".
156
+ * The "versioning.php" file updated to new version.
157
+ * The "_plugin_version_number" function renamed to the "_versioning".
158
+
159
  = 4.2 =
160
  * Compatibility with PHP version 5.2 improved.
161
  * PHP shorthands improved.