Head and Footer Scripts Inserter - Version 1.2

Version Description

  • Added Polish translation. (Thanks Pawe K.)
  • Localization improved. (Thanks Pawe K.)
  • POT file updated. (Thanks Pawe K.)
Download this release

Release Info

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

Code changes from version 1.1 to 1.2

header-and-footer-scripts-inserter.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily add your scripts to the WordPress website's head or/and footer section. This is a must have tool for authors and website's owners.
6
  * Author: Arthur "Berserkr" Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 1.1
9
  * License: GPL3
10
  * Text Domain: HFScriptsIns
11
  * Domain Path: /languages/
5
  * Description: Easily add your scripts to the WordPress website's head or/and footer section. This is a must have tool for authors and website's owners.
6
  * Author: Arthur "Berserkr" Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 1.2
9
  * License: GPL3
10
  * Text Domain: HFScriptsIns
11
  * Domain Path: /languages/
inc/settings_page.php CHANGED
@@ -8,7 +8,7 @@ defined('ABSPATH') or die("Restricted access!");
8
  /**
9
  * Render Settings Page
10
  *
11
- * @since 1.1
12
  */
13
  function HFScriptsIns_render_submenu_page() {
14
 
@@ -85,10 +85,10 @@ function HFScriptsIns_render_submenu_page() {
85
  <h3 class="title"><?php _e( 'Header Section', 'HFScriptsIns' ) ?></h3>
86
  <div class="inside">
87
  <p><?php _e( 'You can use the field below to add scripts to Header of your website.', 'HFScriptsIns' ) ?></p>
88
- <textarea cols='50' rows='10' name='HFScriptsIns_settings[header_beginning]' placeholder="<!-- Beginning of the <head> tag -->"><?php echo esc_attr( $options[header_beginning] ); ?></textarea>
89
- <p class='help-text'>Scripts from this field will be printed in the beginning of <b><\head></b> section. Do not place plain text in this!</p>
90
- <textarea cols='50' rows='10' name='HFScriptsIns_settings[header_end]' placeholder="<!-- End of the <head> tag -->"><?php echo esc_attr( $options[header_end] ); ?></textarea>
91
- <p class='help-text'>Scripts from this field will be printed in the end of <b><\head></b> section. Do not place plain text in this!</p>
92
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
93
  </div>
94
  </div>
@@ -97,10 +97,10 @@ function HFScriptsIns_render_submenu_page() {
97
  <h3 class="title"><?php _e( 'Footer Section', 'HFScriptsIns' ) ?></h3>
98
  <div class="inside">
99
  <p><?php _e( 'You can use the field below to add scripts to Footer of your website.', 'HFScriptsIns' ) ?></p>
100
- <textarea cols='50' rows='10' name='HFScriptsIns_settings[footer_beginning]' placeholder="<!-- Before a footers scripts -->"><?php echo esc_attr( $options[footer_beginning] ); ?></textarea>
101
- <p class='help-text'>Scripts from this field will be printed before a footers scripts. Do not place plain text in this!</p>
102
- <textarea cols='50' rows='10' name='HFScriptsIns_settings[footer_end]' placeholder="<!-- After all footers scripts -->"><?php echo esc_attr( $options[footer_end] ); ?></textarea>
103
- <p class='help-text'>Scripts from this field will be printed after all footers scripts. Do not place plain text in this!</p>
104
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
105
  </div>
106
  </div>
8
  /**
9
  * Render Settings Page
10
  *
11
+ * @since 1.2
12
  */
13
  function HFScriptsIns_render_submenu_page() {
14
 
85
  <h3 class="title"><?php _e( 'Header Section', 'HFScriptsIns' ) ?></h3>
86
  <div class="inside">
87
  <p><?php _e( 'You can use the field below to add scripts to Header of your website.', 'HFScriptsIns' ) ?></p>
88
+ <textarea cols='50' rows='10' name='HFScriptsIns_settings[header_beginning]' placeholder="<?php _e( '<!-- Beginning of the <head> tag -->', 'HFScriptsIns' ) ?>"><?php echo esc_attr( $options[header_beginning] ); ?></textarea>
89
+ <p class='help-text'><?php _e( 'Scripts from this field will be printed in the beginning of <b>HEAD</b> section. Do not place plain text in this!', 'HFScriptsIns' ) ?></p>
90
+ <textarea cols='50' rows='10' name='HFScriptsIns_settings[header_end]' placeholder="<?php _e( '<!-- End of the <head> tag -->', 'HFScriptsIns' ) ?>"><?php echo esc_attr( $options[header_end] ); ?></textarea>
91
+ <p class='help-text'><?php _e( 'Scripts from this field will be printed in the end of <b>HEAD</b> section. Do not place plain text in this!', 'HFScriptsIns' ) ?></p>
92
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
93
  </div>
94
  </div>
97
  <h3 class="title"><?php _e( 'Footer Section', 'HFScriptsIns' ) ?></h3>
98
  <div class="inside">
99
  <p><?php _e( 'You can use the field below to add scripts to Footer of your website.', 'HFScriptsIns' ) ?></p>
100
+ <textarea cols='50' rows='10' name='HFScriptsIns_settings[footer_beginning]' placeholder="<?php _e( '<!-- Before a footers scripts -->', 'HFScriptsIns' ) ?>"><?php echo esc_attr( $options[footer_beginning] ); ?></textarea>
101
+ <p class='help-text'><?php _e( 'Scripts from this field will be printed before a footers scripts. Do not place plain text in this!', 'HFScriptsIns' ) ?></p>
102
+ <textarea cols='50' rows='10' name='HFScriptsIns_settings[footer_end]' placeholder="<?php _e( '<!-- After all footers scripts -->', 'HFScriptsIns' ) ?>"><?php echo esc_attr( $options[footer_end] ); ?></textarea>
103
+ <p class='help-text'><?php _e( 'Scripts from this field will be printed after all footers scripts. Do not place plain text in this!', 'HFScriptsIns' ) ?></p>
104
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
105
  </div>
106
  </div>
languages/HFScriptsIns-pl_PL.mo ADDED
Binary file
languages/HFScriptsIns-pl_PL.po ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-02-01 23:32+0300\n"
6
+ "PO-Revision-Date: Sun Mar 06 2016 09:30:50 GMT+0100\n"
7
+ "Last-Translator: psouu <koko887@wp.pl>\n"
8
+ "Language-Team: \n"
9
+ "Language: Polish\n"
10
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10 >= 2 && n%10<=4 "
11
+ "&&(n%100<10||n%100 >= 20)? 1 : 2)\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Loco - https://localise.biz/\n"
17
+ "X-Poedit-Basepath: ..\n"
18
+ "X-Poedit-WPHeader: header-and-footer-scripts-inserter.php\n"
19
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
20
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
21
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
22
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
23
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
24
+ "X-Poedit-SearchPath-0: .\n"
25
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
26
+ "X-Loco-Target-Locale: pl_PL"
27
+
28
+ #: header-and-footer-scripts-inserter.php:58
29
+ msgid "Settings"
30
+ msgstr "Ustawienia"
31
+
32
+ #. Plugin Name of the plugin/theme
33
+ #: header-and-footer-scripts-inserter.php:71 inc/settings_page.php:22
34
+ msgid "Header and Footer Scripts Inserter"
35
+ msgstr "Wstawianie kodu do nagłówka i stopki"
36
+
37
+ #: inc/settings_page.php:25
38
+ msgid ""
39
+ "by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
40
+ "\"Berserkr\" Gareginyan</a>"
41
+ msgstr ""
42
+ "wykonana przez <a href=\"http://www.arthurgareginyan.com\" "
43
+ "target=\"_blank\">Arthura \"Berserkra\" Gareginyana</a>"
44
+
45
+ #: inc/settings_page.php:36
46
+ msgid "About"
47
+ msgstr "O wtyczce"
48
+
49
+ #: inc/settings_page.php:42
50
+ msgid "This plugin allows you to easily insert scripts in your website."
51
+ msgstr "Ta wtyczka pozwala łatwo wstawić kod skryptów na stronę www."
52
+
53
+ #: inc/settings_page.php:45
54
+ msgid ""
55
+ "To use, enter your custom scripts, then click \"Save Changes\". It's that "
56
+ "simple!"
57
+ msgstr ""
58
+ "Aby użyć, wprowadź kod skryptów, a następnie kliknij przycisk \"Zapisz\". To "
59
+ "takie proste!"
60
+
61
+ #: inc/settings_page.php:51
62
+ msgid "Donate"
63
+ msgstr "Wesprzyj"
64
+
65
+ #: inc/settings_page.php:53
66
+ msgid ""
67
+ "If you like this plugin and find it useful, help me to make this plugin even "
68
+ "better and keep it up-to-date."
69
+ msgstr ""
70
+ "Jeśli lubisz tę wtyczkę uważasz że jest przydatna, pomóż mi aby jeszcze "
71
+ "lepsza i bądź na bieżąco z aktualizacjami."
72
+
73
+ #: inc/settings_page.php:59
74
+ msgid "Thanks for your support!"
75
+ msgstr "Dziękujemy za wsparcie!"
76
+
77
+ #: inc/settings_page.php:64
78
+ msgid "Help"
79
+ msgstr "Pomoc"
80
+
81
+ #: inc/settings_page.php:67
82
+ msgid "If you want more options then tell me and I will be happy to add it."
83
+ msgstr "Jeśli potrzebujesz więcej opcji napisz mi o tym. Chętnie je dodam."
84
+
85
+ #: inc/settings_page.php:85
86
+ msgid "Header Section"
87
+ msgstr "Sekcja: Nagłówek"
88
+
89
+ #: inc/settings_page.php:87
90
+ msgid "You can use the field below to add scripts to Header of your website."
91
+ msgstr "Pola poniżej można użyć, aby dodać kody skryptów do nagłówka witryny."
92
+
93
+ #: inc/settings_page.php:88
94
+ msgid "<!-- Beginning of the <head> tag -->"
95
+ msgstr "<!-- Początek sekcji <head> -->"
96
+
97
+ #: inc/settings_page.php:89
98
+ msgid ""
99
+ "Scripts from this field will be printed in the beginning of <b>HEAD</b> "
100
+ "section. Do not place plain text in this!"
101
+ msgstr ""
102
+ "Skrypty z tego pola zostaną dodane na początku sekcji <b>HEAD</b>. Nie "
103
+ "należy tu umieszczać zwykłego tekstu!"
104
+
105
+ #: inc/settings_page.php:90
106
+ msgid "<!-- End of the <head> tag -->"
107
+ msgstr "<!-- Koniec sekcji <head> -->"
108
+
109
+ #: inc/settings_page.php:91
110
+ msgid ""
111
+ "Scripts from this field will be printed in the end of <b>HEAD</b> section. "
112
+ "Do not place plain text in this!"
113
+ msgstr ""
114
+ "Skrypty z tego pola zostaną dodane na końcu sekcji <b>HEAD</b>. Nie należy "
115
+ "tu umieszczać zwykłego tekstu!"
116
+
117
+ #: inc/settings_page.php:92 inc/settings_page.php:104
118
+ msgid "Save Changes"
119
+ msgstr "Zapisz"
120
+
121
+ #: inc/settings_page.php:97
122
+ msgid "Footer Section"
123
+ msgstr "Sekcja: Stopka"
124
+
125
+ #: inc/settings_page.php:99
126
+ msgid "You can use the field below to add scripts to Footer of your website."
127
+ msgstr "Pola poniżej można użyć, aby dodać kody skryptów do stopki witryny."
128
+
129
+ #: inc/settings_page.php:100
130
+ msgid "<!-- Before a footers scripts -->"
131
+ msgstr "<!-- Początek stopki -->"
132
+
133
+ #: inc/settings_page.php:101
134
+ msgid ""
135
+ "Scripts from this field will be printed before a footers scripts. Do not "
136
+ "place plain text in this!"
137
+ msgstr ""
138
+ "Skrypty z tego pola zostaną dodane przed skryptami ze stopki. Nie należy tu "
139
+ "umieszczać zwykłego tekstu!"
140
+
141
+ #: inc/settings_page.php:102
142
+ msgid "<!-- After all footers scripts -->"
143
+ msgstr "<!-- Koniec stopki -->"
144
+
145
+ #: inc/settings_page.php:103
146
+ msgid ""
147
+ "Scripts from this field will be printed after all footers scripts. Do not "
148
+ "place plain text in this!"
149
+ msgstr ""
150
+ "Skrypty z tego pola zostaną dodane za skryptami ze stopki. Nie należy tu "
151
+ "umieszczać zwykłego tekstu!"
152
+
153
+ #. Plugin URI of the plugin/theme
154
+ msgid ""
155
+ "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
156
+ "inserter.html"
157
+ msgstr ""
158
+ "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
159
+ "inserter.html"
160
+
161
+ #. Description of the plugin/theme
162
+ msgid ""
163
+ "Easily add your scripts to the WordPress website's head or/and footer "
164
+ "section. This is a must have tool for authors and website's owners."
165
+ msgstr ""
166
+ "Łatwe dodawanie kodu skryptów do nagłówka i stopki strony opartej na "
167
+ "WordPressie."
168
+
169
+ #. Author of the plugin/theme
170
+ msgid "Arthur \"Berserkr\" Gareginyan"
171
+ msgstr "Arthur \"Berserkr\" Gareginyan"
172
+
173
+ #. Author URI of the plugin/theme
174
+ msgid "http://www.arthurgareginyan.com"
175
+ msgstr "http://www.arthurgareginyan.com"
languages/HFScriptsIns.pot CHANGED
@@ -79,6 +79,22 @@ msgstr ""
79
  msgid "You can use the field below to add scripts to Header of your website."
80
  msgstr ""
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  #: inc/settings_page.php:92 inc/settings_page.php:104
83
  msgid "Save Changes"
84
  msgstr ""
@@ -91,6 +107,22 @@ msgstr ""
91
  msgid "You can use the field below to add scripts to Footer of your website."
92
  msgstr ""
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  #. Plugin URI of the plugin/theme
95
  msgid ""
96
  "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
79
  msgid "You can use the field below to add scripts to Header of your website."
80
  msgstr ""
81
 
82
+ #: inc/settings_page.php:88
83
+ msgid "<!-- Beginning of the <head> tag -->"
84
+ msgstr ""
85
+
86
+ #: inc/settings_page.php:89
87
+ msgid "Scripts from this field will be printed in the beginning of <b>HEAD</b> section. Do not place plain text in this!"
88
+ msgstr ""
89
+
90
+ #: inc/settings_page.php:90
91
+ msgid "<!-- End of the <head> tag -->"
92
+ msgstr ""
93
+
94
+ #: inc/settings_page.php:91
95
+ msgid "Scripts from this field will be printed in the end of <b>HEAD</b> section. Do not place plain text in this!"
96
+ msgstr ""
97
+
98
  #: inc/settings_page.php:92 inc/settings_page.php:104
99
  msgid "Save Changes"
100
  msgstr ""
107
  msgid "You can use the field below to add scripts to Footer of your website."
108
  msgstr ""
109
 
110
+ #: inc/settings_page.php:100
111
+ msgid "<!-- Before a footers scripts -->"
112
+ msgstr ""
113
+
114
+ #: inc/settings_page.php:101
115
+ msgid "Scripts from this field will be printed before a footers scripts. Do not place plain text in this!"
116
+ msgstr ""
117
+
118
+ #: inc/settings_page.php:102
119
+ msgid "<!-- After all footers scripts -->"
120
+ msgstr ""
121
+
122
+ #: inc/settings_page.php:103
123
+ msgid "Scripts from this field will be printed after all footers scripts. Do not place plain text in this!"
124
+ msgstr ""
125
+
126
  #. Plugin URI of the plugin/theme
127
  msgid ""
128
  "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
readme.txt CHANGED
@@ -65,7 +65,7 @@ After installation, a "`Header and Footer Scripts Inserter`" menu item will app
65
 
66
 
67
  == Frequently Asked Questions ==
68
- = Q. Will this Plugin work on my WordPress.com website? =
69
  A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
70
 
71
  = Q. Can I use this plugin on my language? =
@@ -78,6 +78,12 @@ On the plugin's page you find the fields where you can enter your custom scripts
78
  = Q. How much of scripts I can enter in the field? =
79
  A. I don't limit the number of characters.
80
 
 
 
 
 
 
 
81
  = Q. Where to report bug if found? =
82
  A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter) and report.
83
 
@@ -115,6 +121,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
115
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter)
116
 
117
  == Changelog ==
 
 
 
 
118
  = 1.1 =
119
  * Added Russian translation.
120
  * Localization improved.
@@ -128,6 +138,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
128
 
129
 
130
  == Upgrade Notice ==
 
 
 
 
131
  = 1.1 =
132
  Please update to new version! * Added Russian translation. * Localization improved.
133
  = 1.0 =
65
 
66
 
67
  == Frequently Asked Questions ==
68
+ = Q. Will this Plugin work on my WordPress.COM website? =
69
  A. Sorry, this plugin is available for use only on self-hosted (WordPress.org) websites.
70
 
71
  = Q. Can I use this plugin on my language? =
78
  = Q. How much of scripts I can enter in the field? =
79
  A. I don't limit the number of characters.
80
 
81
+ = Q. Does this plugin require modification to the theme? =
82
+ A. Absolutely not. This plugin is added/configured entirely from the website's Admin section.
83
+
84
+ = Q. It's not working. What could be wrong? =
85
+ A. As with every plugin, it's possible that things don't work. The most common reason for this is that the plugin has a conflict with another plugin you're using. It's impossible to tell what could be wrong exactly, but if you post a support request in the plugin's support forum on WordPress.org, I'd be happy to give it a look and try to help out. Please include as much information as possible, including a link to your website where the problem can be seen.
86
+
87
  = Q. Where to report bug if found? =
88
  A. Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter) and report.
89
 
121
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter)
122
 
123
  == Changelog ==
124
+ = 1.2 =
125
+ * Added Polish translation. (Thanks Paweł K.)
126
+ * Localization improved. (Thanks Paweł K.)
127
+ * POT file updated. (Thanks Paweł K.)
128
  = 1.1 =
129
  * Added Russian translation.
130
  * Localization improved.
138
 
139
 
140
  == Upgrade Notice ==
141
+ = 1.2 =
142
+ * Added Polish translation. (Thanks Paweł K.)
143
+ * Localization improved. (Thanks Paweł K.)
144
+ * POT file updated. (Thanks Paweł K.)
145
  = 1.1 =
146
  Please update to new version! * Added Russian translation. * Localization improved.
147
  = 1.0 =