Head and Footer Scripts Inserter - Version 1.1

Version Description

  • Added Russian translation.
  • Localization improved.
Download this release

Release Info

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

Code changes from version 1.0 to 1.1

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.0
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.1
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.0
12
  */
13
  function HFScriptsIns_render_submenu_page() {
14
 
@@ -33,7 +33,7 @@ function HFScriptsIns_render_submenu_page() {
33
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
34
 
35
  <div id="about" class="postbox">
36
- <h3 class="title">About</a></h3>
37
  <div class="inside">
38
  <p class="about">
39
  <img src="<?php echo plugins_url('thanks.png', __FILE__); ?>">
@@ -48,23 +48,23 @@ function HFScriptsIns_render_submenu_page() {
48
  </div>
49
 
50
  <div id="donate" class="postbox">
51
- <h3 class="title">Donate</h3>
52
  <div class="inside">
53
- <p class="donate">If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.</p>
54
  <div class="aligncenter">
55
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
56
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
57
  </a>
58
  </div>
59
- <p class="donate">Thanks for your support!</p>
60
  </div>
61
  </div>
62
 
63
  <div id="help" class="postbox">
64
- <h3 class="title">Help</h3>
65
  <div class="inside">
66
  <div class="aligncenter">
67
- <p>If you want more options then tell me and I will be happy to add it.</p>
68
  </div>
69
  </div>
70
  </div>
@@ -82,25 +82,25 @@ function HFScriptsIns_render_submenu_page() {
82
  <?php settings_fields( 'HFScriptsIns_settings_group' ); ?>
83
 
84
  <div class="postbox" id="Header">
85
- <h3 class="title">Header Section</h3>
86
  <div class="inside">
87
- <p>You can use the field below to add scripts to Header of your website.</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.</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.</p>
92
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
93
  </div>
94
  </div>
95
 
96
  <div class="postbox" id="Footer">
97
- <h3 class="title">Footer Section</h3>
98
  <div class="inside">
99
- <p>You can use the field below to add scripts to Footer of your website.</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.</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.</p>
104
  <?php submit_button( __( 'Save Changes', 'HFScriptsIns' ), 'primary', 'submit', true ); ?>
105
  </div>
106
  </div>
8
  /**
9
  * Render Settings Page
10
  *
11
+ * @since 1.1
12
  */
13
  function HFScriptsIns_render_submenu_page() {
14
 
33
  <div id="side-sortables" class="meta-box-sortabless ui-sortable">
34
 
35
  <div id="about" class="postbox">
36
+ <h3 class="title"><?php _e( 'About', 'HFScriptsIns' ) ?></a></h3>
37
  <div class="inside">
38
  <p class="about">
39
  <img src="<?php echo plugins_url('thanks.png', __FILE__); ?>">
48
  </div>
49
 
50
  <div id="donate" class="postbox">
51
+ <h3 class="title"><?php _e( 'Donate', 'HFScriptsIns' ) ?></h3>
52
  <div class="inside">
53
+ <p class="donate"><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'HFScriptsIns' ) ?></p>
54
  <div class="aligncenter">
55
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
56
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
57
  </a>
58
  </div>
59
+ <p class="donate"><?php _e( 'Thanks for your support!', 'HFScriptsIns' ) ?></p>
60
  </div>
61
  </div>
62
 
63
  <div id="help" class="postbox">
64
+ <h3 class="title"><?php _e( 'Help', 'HFScriptsIns' ) ?></h3>
65
  <div class="inside">
66
  <div class="aligncenter">
67
+ <p><?php _e( 'If you want more options then tell me and I will be happy to add it.', 'HFScriptsIns' ) ?></p>
68
  </div>
69
  </div>
70
  </div>
82
  <?php settings_fields( 'HFScriptsIns_settings_group' ); ?>
83
 
84
  <div class="postbox" id="Header">
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>
95
 
96
  <div class="postbox" id="Footer">
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>
languages/HFScriptsIns-ru_RU.mo ADDED
Binary file
languages/HFScriptsIns-ru_RU.po ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Header and Footer Scripts Inserter\n"
4
+ "POT-Creation-Date: 2016-02-01 23:32+0300\n"
5
+ "PO-Revision-Date: 2016-02-02 00:53+0300\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: ru\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
13
+ "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
14
+ "X-Generator: Poedit 1.8.4\n"
15
+ "X-Poedit-Basepath: ..\n"
16
+ "X-Poedit-WPHeader: header-and-footer-scripts-inserter.php\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
19
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
23
+
24
+ #: header-and-footer-scripts-inserter.php:58
25
+ msgid "Settings"
26
+ msgstr "Настройки"
27
+
28
+ #. Plugin Name of the plugin/theme
29
+ #: header-and-footer-scripts-inserter.php:71 inc/settings_page.php:22
30
+ msgid "Header and Footer Scripts Inserter"
31
+ msgstr ""
32
+
33
+ #: inc/settings_page.php:25
34
+ msgid ""
35
+ "by <a href=\"http://www.arthurgareginyan.com\" target=\"_blank\">Arthur "
36
+ "\"Berserkr\" Gareginyan</a>"
37
+ msgstr ""
38
+ "от <a href=“http://www.arthurgareginyan.com” target=“_blank”>Артур "
39
+ "“Berserkr” Гарегинян</a>"
40
+
41
+ #: inc/settings_page.php:36
42
+ msgid "About"
43
+ msgstr ""
44
+
45
+ #: inc/settings_page.php:42
46
+ msgid "This plugin allows you to easily insert scripts in your website."
47
+ msgstr "Этот плагин позволяет легко вставлять скрипты в ваш веб-сайте."
48
+
49
+ #: inc/settings_page.php:45
50
+ msgid ""
51
+ "To use, enter your custom scripts, then click \"Save Changes\". It's that "
52
+ "simple!"
53
+ msgstr ""
54
+ "Для использования, вставьте ваши пользовательские скрипты, затем нажмите "
55
+ "кнопку “Сохранить изменения”. Это так просто!"
56
+
57
+ #: inc/settings_page.php:51
58
+ msgid "Donate"
59
+ msgstr "Пожертвование"
60
+
61
+ #: inc/settings_page.php:53
62
+ msgid ""
63
+ "If you like this plugin and find it useful, help me to make this plugin even "
64
+ "better and keep it up-to-date."
65
+ msgstr ""
66
+ "Если вам нравится этот плагин и вы находите его полезным, то помогите мне "
67
+ "сделать его ещё лучше."
68
+
69
+ #: inc/settings_page.php:59
70
+ msgid "Thanks for your support!"
71
+ msgstr "Спасибо за вашу поддержку!"
72
+
73
+ #: inc/settings_page.php:64
74
+ msgid "Help"
75
+ msgstr "Помощь"
76
+
77
+ #: inc/settings_page.php:67
78
+ msgid "If you want more options then tell me and I will be happy to add it."
79
+ msgstr ""
80
+ "Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
81
+ "добавить их."
82
+
83
+ #: inc/settings_page.php:85
84
+ msgid "Header Section"
85
+ msgstr "Раздел HEADER"
86
+
87
+ #: inc/settings_page.php:87
88
+ msgid "You can use the field below to add scripts to Header of your website."
89
+ msgstr ""
90
+ "Используйте поле расположение ниже для того, чтобы добавить скрипты в "
91
+ "верхний колонтитул вашего сайта."
92
+
93
+ #: inc/settings_page.php:92 inc/settings_page.php:104
94
+ msgid "Save Changes"
95
+ msgstr "Сохранить изменения"
96
+
97
+ #: inc/settings_page.php:97
98
+ msgid "Footer Section"
99
+ msgstr "Раздел FOOTER"
100
+
101
+ #: inc/settings_page.php:99
102
+ msgid "You can use the field below to add scripts to Footer of your website."
103
+ msgstr ""
104
+ "Используйте поле расположение ниже для того, чтобы добавить скрипты в нижний "
105
+ "колонтитул вашего сайта."
106
+
107
+ #. Plugin URI of the plugin/theme
108
+ msgid ""
109
+ "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
110
+ "inserter.html"
111
+ msgstr ""
112
+
113
+ #. Description of the plugin/theme
114
+ msgid ""
115
+ "Easily add your scripts to the WordPress website's head or/and footer "
116
+ "section. This is a must have tool for authors and website's owners."
117
+ msgstr ""
118
+ "Легко добавляйте ваши скрипты в шапку и/или колонтитул вашего WordPress веб-"
119
+ "сайта. Это необходимый инструмент для авторов и владельцев веб-сайтов."
120
+
121
+ #. Author of the plugin/theme
122
+ msgid "Arthur \"Berserkr\" Gareginyan"
123
+ msgstr "Артур “Берсеркр” Гарегинян"
124
+
125
+ #. Author URI of the plugin/theme
126
+ msgid "http://www.arthurgareginyan.com"
127
+ msgstr ""
languages/HFScriptsIns.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: 2016-01-30 11:45+0300\n"
7
  "PO-Revision-Date: 2016-01-30 11:39+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -35,6 +35,10 @@ msgid ""
35
  "\"Berserkr\" Gareginyan</a>"
36
  msgstr ""
37
 
 
 
 
 
38
  #: inc/settings_page.php:42
39
  msgid "This plugin allows you to easily insert scripts in your website."
40
  msgstr ""
@@ -45,10 +49,48 @@ msgid ""
45
  "simple!"
46
  msgstr ""
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  #: inc/settings_page.php:92 inc/settings_page.php:104
49
  msgid "Save Changes"
50
  msgstr ""
51
 
 
 
 
 
 
 
 
 
52
  #. Plugin URI of the plugin/theme
53
  msgid ""
54
  "http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-"
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Header and Footer Scripts Inserter\n"
6
+ "POT-Creation-Date: 2016-02-01 23:32+0300\n"
7
  "PO-Revision-Date: 2016-01-30 11:39+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
35
  "\"Berserkr\" Gareginyan</a>"
36
  msgstr ""
37
 
38
+ #: inc/settings_page.php:36
39
+ msgid "About"
40
+ msgstr ""
41
+
42
  #: inc/settings_page.php:42
43
  msgid "This plugin allows you to easily insert scripts in your website."
44
  msgstr ""
49
  "simple!"
50
  msgstr ""
51
 
52
+ #: inc/settings_page.php:51
53
+ msgid "Donate"
54
+ msgstr ""
55
+
56
+ #: inc/settings_page.php:53
57
+ msgid ""
58
+ "If you like this plugin and find it useful, help me to make this plugin "
59
+ "even better and keep it up-to-date."
60
+ msgstr ""
61
+
62
+ #: inc/settings_page.php:59
63
+ msgid "Thanks for your support!"
64
+ msgstr ""
65
+
66
+ #: inc/settings_page.php:64
67
+ msgid "Help"
68
+ msgstr ""
69
+
70
+ #: inc/settings_page.php:67
71
+ msgid "If you want more options then tell me and I will be happy to add it."
72
+ msgstr ""
73
+
74
+ #: inc/settings_page.php:85
75
+ msgid "Header Section"
76
+ msgstr ""
77
+
78
+ #: inc/settings_page.php:87
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 ""
85
 
86
+ #: inc/settings_page.php:97
87
+ msgid "Footer Section"
88
+ msgstr ""
89
+
90
+ #: inc/settings_page.php:99
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-"
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Header and Footer Scripts Inserter ===
2
  Contributors: Arthur Gareginyan
3
- Tags: code, script, javascript, css, html, php, insert, inject, header, footer,
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.4
7
- Stable tag: 1.0
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -114,7 +114,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
114
  * [Dedicated Plugin Page](http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-inserter.html)
115
  * [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter)
116
 
117
- == Changelog ==
 
 
 
118
  = 1.0 =
119
  * Initial release.
120
  * Added ready for translation (.pot file included).
@@ -124,7 +127,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
124
  * Alfa version.
125
 
126
 
127
- == Upgrade Notice ==
 
 
128
  = 1.0 =
129
  Please update to first stable release!
130
  * Added ready for translation (.pot file included).
1
  === Header and Footer Scripts Inserter ===
2
  Contributors: Arthur Gareginyan
3
+ Tags: inject, insert, insert scripts, insert javascript, insert js, insert html, insert css, insert custom scripts, insert custom code, html, javascript, php, js, css, code, custom code, script, scripts, custom scripts, meta, meta tags, head, header, head section, head area, footer, footer section, footer area,
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.4
7
+ Stable tag: 1.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
114
  * [Dedicated Plugin Page](http://mycyberuniverse.com/my_programs/wp-plugin-header-and-footer-scripts-inserter.html)
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.
121
  = 1.0 =
122
  * Initial release.
123
  * Added ready for translation (.pot file included).
127
  * Alfa version.
128
 
129
 
130
+ == Upgrade Notice ==
131
+ = 1.1 =
132
+ Please update to new version! * Added Russian translation. * Localization improved.
133
  = 1.0 =
134
  Please update to first stable release!
135
  * Added ready for translation (.pot file included).