Head and Footer Scripts Inserter - Version 4.1

Version Description

  • Added new constants: "SLUG", "_PREFIX", "_SETTINGS" and "NAME".
  • Value of the "_VERSION" constant replaced with information from the plugin header data.
  • All references to the plugin name, slug, prefix are replaced with constants.
  • The "name" attribute removed from the "
    " tag.
  • Code formatting improved.
  • F.A.Q. section updated.
Download this release

Release Info

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

Code changes from version 4.0.1 to 4.1

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.0.1
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
@@ -50,19 +50,23 @@
50
  *
51
  * @since 0.1
52
  */
53
- defined('ABSPATH') or die("Restricted access!");
54
 
55
  /**
56
  * Define global constants
57
  *
58
- * @since 3.3
59
  */
60
- defined('HFSINS_DIR') or define('HFSINS_DIR', dirname(plugin_basename(__FILE__)));
61
- defined('HFSINS_BASE') or define('HFSINS_BASE', plugin_basename(__FILE__));
62
- defined('HFSINS_URL') or define('HFSINS_URL', plugin_dir_url(__FILE__));
63
- defined('HFSINS_PATH') or define('HFSINS_PATH', plugin_dir_path(__FILE__));
64
- defined('HFSINS_TEXT') or define('HFSINS_TEXT', 'header-and-footer-scripts-inserter');
65
- defined('HFSINS_VERSION') or define('HFSINS_VERSION', '4.0.1');
 
 
 
 
66
 
67
  /**
68
  * Load the plugin modules
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.1
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
50
  *
51
  * @since 0.1
52
  */
53
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
54
 
55
  /**
56
  * Define global constants
57
  *
58
+ * @since 4.1
59
  */
60
+ defined( 'HFSINS_DIR' ) or define( 'HFSINS_DIR', dirname( plugin_basename( __FILE__ ) ) );
61
+ defined( 'HFSINS_BASE' ) or define( 'HFSINS_BASE', plugin_basename( __FILE__ ) );
62
+ defined( 'HFSINS_URL' ) or define( 'HFSINS_URL', plugin_dir_url( __FILE__ ) );
63
+ defined( 'HFSINS_PATH' ) or define( 'HFSINS_PATH', plugin_dir_path( __FILE__ ) );
64
+ defined( 'HFSINS_TEXT' ) or define( 'HFSINS_TEXT', 'header-and-footer-scripts-inserter' );
65
+ defined( 'HFSINS_SLUG' ) or define( 'HFSINS_SLUG', 'header-and-footer-scripts-inserter' );
66
+ defined( 'HFSINS_PREFIX' ) or define( 'HFSINS_PREFIX', 'HFScriptsIns' );
67
+ defined( 'HFSINS_SETTINGS' ) or define( 'HFSINS_SETTINGS', 'HFScriptsIns' );
68
+ defined( 'HFSINS_NAME' ) or define( 'HFSINS_NAME', 'Head and Footer Scripts Inserter' );
69
+ defined( 'HFSINS_VERSION' ) or define( 'HFSINS_VERSION', get_file_data( __FILE__, array( 'Version' ) ) );
70
 
71
  /**
72
  * Load the plugin modules
inc/php/core.php CHANGED
@@ -5,17 +5,17 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Register text domain
12
  *
13
- * @since 3.3
14
  */
15
  function HFScriptsIns_textdomain() {
16
  load_plugin_textdomain( HFSINS_TEXT, false, HFSINS_DIR . '/languages/' );
17
  }
18
- add_action( 'init', 'HFScriptsIns_textdomain' );
19
 
20
  /**
21
  * Print direct link to plugin admin page
@@ -23,25 +23,25 @@ add_action( 'init', 'HFScriptsIns_textdomain' );
23
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
24
  * and inserts a link to the plugin admin page
25
  *
26
- * @since 3.3
27
  * @param array $links Array of links generated by WP in Plugin Admin page.
28
  * @return array Array of links to be output on Plugin Admin page.
29
  */
30
  function HFScriptsIns_settings_link( $links ) {
31
- $page = '<a href="' . admin_url( 'options-general.php?page=header-and-footer-scripts-inserter.php' ) .'">' . __( 'Settings', HFSINS_TEXT ) . '</a>';
32
  array_unshift( $links, $page );
33
  return $links;
34
  }
35
- add_filter( 'plugin_action_links_'.HFSINS_BASE, 'HFScriptsIns_settings_link' );
36
 
37
  /**
38
  * Print additional links to plugin meta row
39
  *
40
- * @since 4.0
41
  */
42
  function HFScriptsIns_plugin_row_meta( $links, $file ) {
43
 
44
- if ( strpos( $file, 'header-and-footer-scripts-inserter.php' ) !== false ) {
45
 
46
  $new_links = array(
47
  'donate' => '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', HFSINS_TEXT ) . '</a>'
@@ -51,25 +51,27 @@ function HFScriptsIns_plugin_row_meta( $links, $file ) {
51
 
52
  return $links;
53
  }
54
- add_filter( 'plugin_row_meta', 'HFScriptsIns_plugin_row_meta', 10, 2 );
55
 
56
  /**
57
  * Register plugin's submenu in the "Settings" Admin Menu
58
  *
59
- * @since 4.0
60
  */
61
  function HFScriptsIns_register_submenu_page() {
62
- add_options_page( __( 'Head and Footer Scripts Inserter', HFSINS_TEXT ), __( 'Head and Footer Scripts Inserter', HFSINS_TEXT ), 'manage_options', 'header-and-footer-scripts-inserter', 'HFScriptsIns_render_submenu_page' );
 
 
63
  }
64
- add_action( 'admin_menu', 'HFScriptsIns_register_submenu_page' );
65
 
66
  /**
67
  * Register settings
68
  *
69
- * @since 4.0
70
  */
71
  function HFScriptsIns_register_settings() {
72
- register_setting( 'HFScriptsIns_settings_group', 'HFScriptsIns_settings' );
73
- register_setting( 'HFScriptsIns_settings_group', 'HFScriptsIns_service_info' );
74
  }
75
- add_action( 'admin_init', 'HFScriptsIns_register_settings' );
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Register text domain
12
  *
13
+ * @since 4.1
14
  */
15
  function HFScriptsIns_textdomain() {
16
  load_plugin_textdomain( HFSINS_TEXT, false, HFSINS_DIR . '/languages/' );
17
  }
18
+ add_action( 'init', HFSINS_PREFIX . '_textdomain' );
19
 
20
  /**
21
  * Print direct link to plugin admin page
23
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
24
  * and inserts a link to the plugin admin page
25
  *
26
+ * @since 4.1
27
  * @param array $links Array of links generated by WP in Plugin Admin page.
28
  * @return array Array of links to be output on Plugin Admin page.
29
  */
30
  function HFScriptsIns_settings_link( $links ) {
31
+ $page = '<a href="' . admin_url( 'options-general.php?page=' . HFSINS_SLUG . '.php' ) .'">' . __( 'Settings', HFSINS_TEXT ) . '</a>';
32
  array_unshift( $links, $page );
33
  return $links;
34
  }
35
+ add_filter( 'plugin_action_links_' . HFSINS_BASE, HFSINS_PREFIX . '_settings_link' );
36
 
37
  /**
38
  * Print additional links to plugin meta row
39
  *
40
+ * @since 4.1
41
  */
42
  function HFScriptsIns_plugin_row_meta( $links, $file ) {
43
 
44
+ if ( strpos( $file, HFSINS_SLUG . '.php' ) !== false ) {
45
 
46
  $new_links = array(
47
  'donate' => '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', HFSINS_TEXT ) . '</a>'
51
 
52
  return $links;
53
  }
54
+ add_filter( 'plugin_row_meta', HFSINS_PREFIX . '_plugin_row_meta', 10, 2 );
55
 
56
  /**
57
  * Register plugin's submenu in the "Settings" Admin Menu
58
  *
59
+ * @since 4.1
60
  */
61
  function HFScriptsIns_register_submenu_page() {
62
+ $menu_title = HFSINS_NAME;
63
+ $capability = 'manage_options';
64
+ add_options_page( HFSINS_NAME, $menu_title, $capability, HFSINS_SLUG, HFSINS_PREFIX . '_render_submenu_page' );
65
  }
66
+ add_action( 'admin_menu', HFSINS_PREFIX . '_register_submenu_page' );
67
 
68
  /**
69
  * Register settings
70
  *
71
+ * @since 4.1
72
  */
73
  function HFScriptsIns_register_settings() {
74
+ register_setting( HFSINS_SETTINGS . '_settings_group', HFSINS_SETTINGS . '_settings' );
75
+ register_setting( HFSINS_SETTINGS . '_settings_group', HFSINS_SETTINGS . '_service_info' );
76
  }
77
+ add_action( 'admin_init', HFSINS_PREFIX . '_register_settings' );
inc/php/enqueue.php CHANGED
@@ -5,39 +5,40 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Load scripts and style sheet for settings page
12
  *
13
- * @since 4.0
14
  */
15
- function HFScriptsIns_load_scripts_admin($hook) {
16
 
17
  // Return if the page is not a settings page of this plugin
18
- if ( 'settings_page_header-and-footer-scripts-inserter' != $hook ) {
 
19
  return;
20
  }
21
 
22
  // Style sheet
23
- wp_enqueue_style( 'HFScriptsIns-admin-css', HFSINS_URL . 'inc/css/admin.css' );
24
 
25
  // JavaScript
26
- wp_enqueue_script( 'HFScriptsIns-admin-js', HFSINS_URL . 'inc/js/admin.js', array(), false, true );
27
 
28
  // Bootstrap library
29
- wp_enqueue_style( 'HFScriptsIns-bootstrap-css', HFSINS_URL . 'inc/lib/bootstrap/bootstrap.css' );
30
- wp_enqueue_style( 'HFScriptsIns-bootstrap-theme-css', HFSINS_URL . 'inc/lib/bootstrap/bootstrap-theme.css' );
31
- wp_enqueue_script( 'HFScriptsIns-bootstrap-js', HFSINS_URL . 'inc/lib/bootstrap/bootstrap.js' );
32
 
33
  // CodeMirror library
34
- wp_enqueue_style( 'HFScriptsIns-codemirror-css', HFSINS_URL . 'inc/lib/codemirror/codemirror.css' );
35
- wp_enqueue_script( 'HFScriptsIns-codemirror-js', HFSINS_URL . 'inc/lib/codemirror/codemirror.js' );
36
- wp_enqueue_script( 'HFScriptsIns-codemirror-mode-htmlmixed-js', HFSINS_URL . 'inc/lib/codemirror/mode/htmlmixed.js' );
37
- wp_enqueue_script( 'HFScriptsIns-codemirror-mode-javascript-js', HFSINS_URL . 'inc/lib/codemirror/mode/javascript.js' );
38
- wp_enqueue_script( 'HFScriptsIns-codemirror-mode-xml-js', HFSINS_URL . 'inc/lib/codemirror/mode/xml.js' );
39
- wp_enqueue_script( 'HFScriptsIns-codemirror-mode-css-js', HFSINS_URL . 'inc/lib/codemirror/mode/css.js' );
40
- wp_enqueue_script( 'HFScriptsIns-codemirror-mode-active-line-js', HFSINS_URL . 'inc/lib/codemirror/addons/active-line.js' );
41
 
42
  }
43
- add_action( 'admin_enqueue_scripts', 'HFScriptsIns_load_scripts_admin' );
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Load scripts and style sheet for settings page
12
  *
13
+ * @since 4.1
14
  */
15
+ function HFScriptsIns_load_scripts_admin( $hook ) {
16
 
17
  // Return if the page is not a settings page of this plugin
18
+ $settings_page = 'settings_page_' . HFSINS_SLUG;
19
+ if ( $settings_page != $hook ) {
20
  return;
21
  }
22
 
23
  // Style sheet
24
+ wp_enqueue_style( HFSINS_PREFIX . '-admin-css', HFSINS_URL . 'inc/css/admin.css' );
25
 
26
  // JavaScript
27
+ wp_enqueue_script( HFSINS_PREFIX . '-admin-js', HFSINS_URL . 'inc/js/admin.js', array(), false, true );
28
 
29
  // Bootstrap library
30
+ wp_enqueue_style( HFSINS_PREFIX . '-bootstrap-css', HFSINS_URL . 'inc/lib/bootstrap/bootstrap.css' );
31
+ wp_enqueue_style( HFSINS_PREFIX . '-bootstrap-theme-css', HFSINS_URL . 'inc/lib/bootstrap/bootstrap-theme.css' );
32
+ wp_enqueue_script( HFSINS_PREFIX . '-bootstrap-js', HFSINS_URL . 'inc/lib/bootstrap/bootstrap.js' );
33
 
34
  // CodeMirror library
35
+ wp_enqueue_style( HFSINS_PREFIX . '-codemirror-css', HFSINS_URL . 'inc/lib/codemirror/codemirror.css' );
36
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-js', HFSINS_URL . 'inc/lib/codemirror/codemirror.js' );
37
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-mode-htmlmixed-js', HFSINS_URL . 'inc/lib/codemirror/mode/htmlmixed.js' );
38
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-mode-javascript-js', HFSINS_URL . 'inc/lib/codemirror/mode/javascript.js' );
39
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-mode-xml-js', HFSINS_URL . 'inc/lib/codemirror/mode/xml.js' );
40
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-mode-css-js', HFSINS_URL . 'inc/lib/codemirror/mode/css.js' );
41
+ wp_enqueue_script( HFSINS_PREFIX . '-codemirror-mode-active-line-js', HFSINS_URL . 'inc/lib/codemirror/addons/active-line.js' );
42
 
43
  }
44
+ add_action( 'admin_enqueue_scripts', HFSINS_PREFIX . '_load_scripts_admin' );
inc/php/functional.php CHANGED
@@ -5,17 +5,17 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Inject scripts in the frontend head and footer
12
  *
13
- * @since 1.0
14
  */
15
- add_action( 'wp_head', 'HFScriptsIns_inject_head_beginning', 0 );
16
- add_action( 'wp_head', 'HFScriptsIns_inject_head_end', 1000 );
17
- add_action( 'wp_footer', 'HFScriptsIns_inject_footer_beginning', 0 );
18
- add_action( 'wp_footer', 'HFScriptsIns_inject_footer_end', 1000 );
19
 
20
  /**
21
  * Prepare scripts for outputing
@@ -33,9 +33,9 @@ function HFScriptsIns_inject_footer_end() { HFScriptsIns_output('footer_end'); }
33
  * @param string $option Option Name
34
  * @return output
35
  *
36
- * @since 3.0
37
  */
38
- function HFScriptsIns_output($option) {
39
 
40
  // Ignore admin, feed, robots or trackbacks
41
  if (is_admin() || is_feed() || is_robots() || is_trackback()) {
@@ -43,7 +43,7 @@ function HFScriptsIns_output($option) {
43
  }
44
 
45
  // Read options from BD and declare variables
46
- $options = get_option( 'HFScriptsIns_settings' );
47
  $data = $options[$option];
48
 
49
  // If data is empty then exit
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Inject scripts in the frontend head and footer
12
  *
13
+ * @since 4.1
14
  */
15
+ add_action( 'wp_head', HFSINS_PREFIX . '_inject_head_beginning', 0 );
16
+ add_action( 'wp_head', HFSINS_PREFIX . '_inject_head_end', 1000 );
17
+ add_action( 'wp_footer', HFSINS_PREFIX . '_inject_footer_beginning', 0 );
18
+ add_action( 'wp_footer', HFSINS_PREFIX . '_inject_footer_end', 1000 );
19
 
20
  /**
21
  * Prepare scripts for outputing
33
  * @param string $option Option Name
34
  * @return output
35
  *
36
+ * @since 4.1
37
  */
38
+ function HFScriptsIns_output( $option ) {
39
 
40
  // Ignore admin, feed, robots or trackbacks
41
  if (is_admin() || is_feed() || is_robots() || is_trackback()) {
43
  }
44
 
45
  // Read options from BD and declare variables
46
+ $options = get_option( HFSINS_SETTINGS . '_settings' );
47
  $data = $options[$option];
48
 
49
  // If data is empty then exit
inc/php/messages.php CHANGED
@@ -5,18 +5,18 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Hello message - Bootstrap Modal
12
  *
13
- * @since 4.0
14
  */
15
  function HFScriptsIns_hello_message() {
16
 
17
- $options = get_option( 'HFScriptsIns_settings' );
18
 
19
- if ( !empty($options) ) {
20
  return;
21
  }
22
 
@@ -48,11 +48,11 @@ function HFScriptsIns_hello_message() {
48
  /**
49
  * Error message (When the old version of plugin installed) - Bootstrap Modal
50
  *
51
- * @since 4.0
52
  */
53
  function HFScriptsIns_error_message() {
54
 
55
- $info = get_option( 'HFScriptsIns_service_info' );
56
  $old_version = isset( $info['old_version'] ) && !empty( $info['old_version'] ) ? $info['old_version'] : '0';
57
 
58
  if ( $old_version != '1' ) {
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Hello message - Bootstrap Modal
12
  *
13
+ * @since 4.1
14
  */
15
  function HFScriptsIns_hello_message() {
16
 
17
+ $options = get_option( HFSINS_SETTINGS . '_settings' );
18
 
19
+ if ( !empty( $options ) ) {
20
  return;
21
  }
22
 
48
  /**
49
  * Error message (When the old version of plugin installed) - Bootstrap Modal
50
  *
51
+ * @since 4.1
52
  */
53
  function HFScriptsIns_error_message() {
54
 
55
+ $info = get_option( HFSINS_SETTINGS . '_service_info' );
56
  $old_version = isset( $info['old_version'] ) && !empty( $info['old_version'] ) ? $info['old_version'] : '0';
57
 
58
  if ( $old_version != '1' ) {
inc/php/page.php CHANGED
@@ -5,12 +5,12 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Render Settings Page
12
  *
13
- * @since 3.3
14
  */
15
  function HFScriptsIns_render_submenu_page() {
16
 
@@ -23,7 +23,7 @@ function HFScriptsIns_render_submenu_page() {
23
  ?>
24
  <div class="wrap">
25
  <h2>
26
- <?php _e( 'Head and Footer Scripts Inserter', HFSINS_TEXT ); ?>
27
  <span>
28
  <?php printf(
29
  __( 'by %s Arthur Gareginyan %s', HFSINS_TEXT ),
@@ -47,7 +47,6 @@ function HFScriptsIns_render_submenu_page() {
47
  </ul>
48
  <!-- END-TABS NAVIGATION MENU -->
49
 
50
-
51
  <!-- TAB 1 -->
52
  <div class="tab-page fade active in" id="tab-core">
53
 
@@ -95,7 +94,7 @@ function HFScriptsIns_render_submenu_page() {
95
 
96
  <div class="panel-group" id="collapse-group">
97
  <?php
98
- $loopvalue = '10';
99
  for ( $i = 1; $i <= $loopvalue; $i++ ) {
100
  echo '<div class="panel panel-default">
101
  <div class="panel-heading">
@@ -138,24 +137,27 @@ function HFScriptsIns_render_submenu_page() {
138
  <div class="answer-7"><?php _e( 'As with every plugin, it\'s possible that things don\'t work. The most common reason for this is a web browser\'s cache. Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser\'s cache.​ Clearing your browser\'s cache may solve the problem.', HFSINS_TEXT ); ?><br><br>
139
  <?php _e( '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.', HFSINS_TEXT ); ?></div>
140
 
141
- <div class="question-8 question-red"><?php _e( 'Where to report bug if found?', HFSINS_TEXT ); ?></div>
142
- <div class="answer-8"><?php printf(
 
 
 
143
  __( 'Please visit the %s Dedicated Plugin Page on GitHub %s and report.', HFSINS_TEXT ),
144
  '<a href="https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter" target="_blank">',
145
  '</a>'
146
  );
147
  ?></div>
148
 
149
- <div class="question-9"><?php _e( 'Where to share any ideas or suggestions to make the plugin better?', HFSINS_TEXT ); ?></div>
150
- <div class="answer-9"><?php printf(
151
  __( 'Any suggestions are very welcome! Please send me an email to %s arthurgareginyan@gmail.com %s. Thank you!', HFSINS_TEXT ),
152
  '<a href="mailto:arthurgareginyan@gmail.com?subject=Head and Footer Scripts Inserter">',
153
  '</a>'
154
  );
155
  ?></div>
156
 
157
- <div class="question-10"><?php _e( 'I love this plugin! Can I help somehow?', HFSINS_TEXT ); ?></div>
158
- <div class="answer-10"><?php printf(
159
  __( 'Yes, any financial contributions are welcome! Just visit %s my website %s, click on the donate button, and thank you!', HFSINS_TEXT ),
160
  '<a href="http://www.arthurgareginyan.com/donate.html" target="_blank">',
161
  '</a>'
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Render Settings Page
12
  *
13
+ * @since 4.1
14
  */
15
  function HFScriptsIns_render_submenu_page() {
16
 
23
  ?>
24
  <div class="wrap">
25
  <h2>
26
+ <?php echo HFSINS_NAME; ?>
27
  <span>
28
  <?php printf(
29
  __( 'by %s Arthur Gareginyan %s', HFSINS_TEXT ),
47
  </ul>
48
  <!-- END-TABS NAVIGATION MENU -->
49
 
 
50
  <!-- TAB 1 -->
51
  <div class="tab-page fade active in" id="tab-core">
52
 
94
 
95
  <div class="panel-group" id="collapse-group">
96
  <?php
97
+ $loopvalue = '11';
98
  for ( $i = 1; $i <= $loopvalue; $i++ ) {
99
  echo '<div class="panel panel-default">
100
  <div class="panel-heading">
137
  <div class="answer-7"><?php _e( 'As with every plugin, it\'s possible that things don\'t work. The most common reason for this is a web browser\'s cache. Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser\'s cache.​ Clearing your browser\'s cache may solve the problem.', HFSINS_TEXT ); ?><br><br>
138
  <?php _e( '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.', HFSINS_TEXT ); ?></div>
139
 
140
+ <div class="question-8 question-red"><?php _e( 'The last WordPress update is preventing me from editing my website that is using this plugin. Why is this?', HFSINS_TEXT ); ?></div>
141
+ <div class="answer-8"><?php _e( 'This plugin can not cause such problem. More likely, the problem are related to the settings of the website. It could just be a cache, so please try to clear your website\'s cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser. Also please try to re-login to the website, this too can help.', HFSINS_TEXT ); ?></div>
142
+
143
+ <div class="question-9 question-red"><?php _e( 'Where to report bug if found?', HFSINS_TEXT ); ?></div>
144
+ <div class="answer-9"><?php printf(
145
  __( 'Please visit the %s Dedicated Plugin Page on GitHub %s and report.', HFSINS_TEXT ),
146
  '<a href="https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter" target="_blank">',
147
  '</a>'
148
  );
149
  ?></div>
150
 
151
+ <div class="question-10"><?php _e( 'Where to share any ideas or suggestions to make the plugin better?', HFSINS_TEXT ); ?></div>
152
+ <div class="answer-10"><?php printf(
153
  __( 'Any suggestions are very welcome! Please send me an email to %s arthurgareginyan@gmail.com %s. Thank you!', HFSINS_TEXT ),
154
  '<a href="mailto:arthurgareginyan@gmail.com?subject=Head and Footer Scripts Inserter">',
155
  '</a>'
156
  );
157
  ?></div>
158
 
159
+ <div class="question-11"><?php _e( 'I love this plugin! Can I help somehow?', HFSINS_TEXT ); ?></div>
160
+ <div class="answer-11"><?php printf(
161
  __( 'Yes, any financial contributions are welcome! Just visit %s my website %s, click on the donate button, and thank you!', HFSINS_TEXT ),
162
  '<a href="http://www.arthurgareginyan.com/donate.html" target="_blank">',
163
  '</a>'
inc/php/settings.php CHANGED
@@ -5,12 +5,12 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Render Settings Tab
12
  *
13
- * @since 3.3
14
  */
15
  ?>
16
  <!-- SIDEBAR -->
@@ -37,7 +37,7 @@ defined('ABSPATH') or die("Restricted access!");
37
  <h3 class="title"><?php _e( 'Help', HFSINS_TEXT ); ?></h3>
38
  <div class="inside">
39
  <p><?php _e( 'Got something to say? Need help?', HFSINS_TEXT ); ?></p>
40
- <p><a href="mailto:arthurgareginyan@gmail.com?subject=Head and Footer Scripts Inserter">arthurgareginyan@gmail.com</a></p>
41
  </div>
42
  </div>
43
 
@@ -50,22 +50,22 @@ defined('ABSPATH') or die("Restricted access!");
50
  <div id="post-body-content" class="has-sidebar-content">
51
  <div class="meta-box-sortabless">
52
 
53
- <form name="HFScriptsIns-form" action="options.php" method="post" enctype="multipart/form-data">
54
- <?php settings_fields( 'HFScriptsIns_settings_group' ); ?>
55
 
56
  <?php
57
  // Get options from the BD
58
- $options = get_option( 'HFScriptsIns_settings' );
59
 
60
- // Declare variables
61
  $header_beginning = isset( $options['header_beginning'] ) && !empty( $options['header_beginning'] ) ? esc_attr( $options['header_beginning'] ) : '';
62
  $header_end = isset( $options['header_end'] ) && !empty( $options['header_end'] ) ? esc_attr( $options['header_end'] ) : '';
63
  $footer_beginning = isset( $options['footer_beginning'] ) && !empty( $options['footer_beginning'] ) ? esc_attr( $options['footer_beginning'] ) : '';
64
  $footer_end = isset( $options['footer_end'] ) && !empty( $options['footer_end'] ) ? esc_attr( $options['footer_end'] ) : '';
65
-
66
  // Add rows if all the rows is less than 10
67
  $type = array("header_beginning", "header_end", "footer_beginning", "footer_end");
68
- foreach ($type as $value) {
69
  $i = count(explode("\n", $$value));
70
  for ( $i = $i; $i < 10; $i++) {
71
  $$value .= "\n";
@@ -97,7 +97,7 @@ defined('ABSPATH') or die("Restricted access!");
97
  </div>
98
  </div>
99
 
100
- <div id="support-addition" class="postbox">
101
  <h3 class="title"><?php _e( 'Support', HFSINS_TEXT ); ?></h3>
102
  <div class="inside">
103
  <p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', HFSINS_TEXT ); ?></p>
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Render Settings Tab
12
  *
13
+ * @since 4.1
14
  */
15
  ?>
16
  <!-- SIDEBAR -->
37
  <h3 class="title"><?php _e( 'Help', HFSINS_TEXT ); ?></h3>
38
  <div class="inside">
39
  <p><?php _e( 'Got something to say? Need help?', HFSINS_TEXT ); ?></p>
40
+ <p><a href="mailto:arthurgareginyan@gmail.com?subject=<?php echo HFSINS_NAME; ?>">arthurgareginyan@gmail.com</a></p>
41
  </div>
42
  </div>
43
 
50
  <div id="post-body-content" class="has-sidebar-content">
51
  <div class="meta-box-sortabless">
52
 
53
+ <form action="options.php" method="post" enctype="multipart/form-data">
54
+ <?php settings_fields( HFSINS_SETTINGS . '_settings_group' ); ?>
55
 
56
  <?php
57
  // Get options from the BD
58
+ $options = get_option( HFSINS_SETTINGS . '_settings' );
59
 
60
+ // Set default value if the option is empty
61
  $header_beginning = isset( $options['header_beginning'] ) && !empty( $options['header_beginning'] ) ? esc_attr( $options['header_beginning'] ) : '';
62
  $header_end = isset( $options['header_end'] ) && !empty( $options['header_end'] ) ? esc_attr( $options['header_end'] ) : '';
63
  $footer_beginning = isset( $options['footer_beginning'] ) && !empty( $options['footer_beginning'] ) ? esc_attr( $options['footer_beginning'] ) : '';
64
  $footer_end = isset( $options['footer_end'] ) && !empty( $options['footer_end'] ) ? esc_attr( $options['footer_end'] ) : '';
65
+
66
  // Add rows if all the rows is less than 10
67
  $type = array("header_beginning", "header_end", "footer_beginning", "footer_end");
68
+ foreach ( $type as $value ) {
69
  $i = count(explode("\n", $$value));
70
  for ( $i = $i; $i < 10; $i++) {
71
  $$value .= "\n";
97
  </div>
98
  </div>
99
 
100
+ <div class="postbox" id="support-addition">
101
  <h3 class="title"><?php _e( 'Support', HFSINS_TEXT ); ?></h3>
102
  <div class="inside">
103
  <p><?php _e( 'I\'m an independent developer, without a regular income, so every little contribution helps cover my costs and lets me spend more time building things for people like you to enjoy.', HFSINS_TEXT ); ?></p>
inc/php/uninstall.php CHANGED
@@ -5,14 +5,14 @@
5
  *
6
  * @since 0.1
7
  */
8
- defined('ABSPATH') or die("Restricted access!");
9
 
10
  /**
11
  * Delete options on uninstall
12
  *
13
- * @since 0.1
14
  */
15
  function HFScriptsIns_uninstall() {
16
- delete_option( 'HFScriptsIns_settings' );
17
  }
18
- register_uninstall_hook( __FILE__, 'HFScriptsIns_uninstall' );
5
  *
6
  * @since 0.1
7
  */
8
+ defined( 'ABSPATH' ) or die( "Restricted access!" );
9
 
10
  /**
11
  * Delete options on uninstall
12
  *
13
+ * @since 4.1
14
  */
15
  function HFScriptsIns_uninstall() {
16
+ delete_option( HFSINS_SETTINGS . '_settings' );
17
  }
18
+ register_uninstall_hook( __FILE__, HFSINS_PREFIX . '_uninstall' );
inc/php/version.php CHANGED
@@ -5,12 +5,12 @@
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.0.1
14
  */
15
  function HFScriptsIns_plugin_version_number() {
16
 
@@ -19,7 +19,7 @@ function HFScriptsIns_plugin_version_number() {
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( 'HFScriptsIns_service_info' );
23
  if ( !is_array( $info ) ) {
24
  $info = array();
25
  }
@@ -39,7 +39,7 @@ function HFScriptsIns_plugin_version_number() {
39
  if ( $info['old_version'] == '1' ) {
40
 
41
  $info['old_version'] = '0';
42
- update_option( 'HFScriptsIns_service_info', $info );
43
 
44
  }
45
 
@@ -54,7 +54,7 @@ function HFScriptsIns_plugin_version_number() {
54
 
55
  $info['version'] = $new_number;
56
  $info['old_version'] = '0';
57
- update_option( 'HFScriptsIns_service_info', $info );
58
 
59
  return;
60
  }
@@ -65,7 +65,7 @@ function HFScriptsIns_plugin_version_number() {
65
  if ( $new_number < $current_number ) {
66
 
67
  $info['old_version'] = '1';
68
- update_option( 'HFScriptsIns_service_info', $info );
69
 
70
  return;
71
  }
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.1
14
  */
15
  function HFScriptsIns_plugin_version_number() {
16
 
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
  }
39
  if ( $info['old_version'] == '1' ) {
40
 
41
  $info['old_version'] = '0';
42
+ update_option( HFSINS_SETTINGS . '_service_info', $info );
43
 
44
  }
45
 
54
 
55
  $info['version'] = $new_number;
56
  $info['old_version'] = '0';
57
+ update_option( HFSINS_SETTINGS . '_service_info', $info );
58
 
59
  return;
60
  }
65
  if ( $new_number < $current_number ) {
66
 
67
  $info['old_version'] = '1';
68
+ update_option( HFSINS_SETTINGS . '_service_info', $info );
69
 
70
  return;
71
  }
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-07 13:22+0300\n"
6
- "PO-Revision-Date: 2017-05-07 13:23+0300\n"
7
  "Last-Translator: psouu <koko887@wp.pl>\n"
8
  "Language-Team: \n"
9
  "Language: pl\n"
@@ -33,11 +33,6 @@ msgstr "Ustawienia"
33
  msgid "Donate"
34
  msgstr "Wesprzyj"
35
 
36
- #. Plugin Name of the plugin/theme
37
- #: inc/php/core.php:62 inc/php/page.php:26
38
- msgid "Head and Footer Scripts Inserter"
39
- msgstr "Wstawianie kodu do nagłówka i stopki"
40
-
41
  #: inc/php/messages.php:30
42
  msgid "Hello. I'm Arthur, the author of this plugin."
43
  msgstr ""
@@ -68,7 +63,7 @@ msgstr "wykonana przez %s Arthur Gareginyan %s"
68
  msgid "Main"
69
  msgstr ""
70
 
71
- #: inc/php/page.php:42 inc/php/page.php:62
72
  msgid "Usage"
73
  msgstr "Wykorzystanie"
74
 
@@ -76,11 +71,11 @@ msgstr "Wykorzystanie"
76
  msgid "F.A.Q."
77
  msgstr "FAQ"
78
 
79
- #: inc/php/page.php:44 inc/php/page.php:173
80
  msgid "Author"
81
  msgstr "Autor"
82
 
83
- #: inc/php/page.php:45 inc/php/page.php:182 inc/php/settings.php:28
84
  #: inc/php/settings.php:101
85
  msgid "Support"
86
  msgstr ""
@@ -89,19 +84,19 @@ msgstr ""
89
  msgid "Family"
90
  msgstr "Rodzina"
91
 
92
- #: inc/php/page.php:64
93
  msgid "To add the script to your website, simply follow these steps:"
94
  msgstr ""
95
 
96
- #: inc/php/page.php:66
97
  msgid "Go to the \"Main\" tab."
98
  msgstr ""
99
 
100
- #: inc/php/page.php:67
101
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
102
  msgstr ""
103
 
104
- #: inc/php/page.php:68
105
  msgid ""
106
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code "
107
  "must be wrapped in the corresponding HTML tag. For JavaScript code use the "
@@ -109,41 +104,41 @@ msgid ""
109
  "</code> tag. Example:"
110
  msgstr ""
111
 
112
- #: inc/php/page.php:82
113
  msgid "Enjoy the result of applying your scripts."
114
  msgstr ""
115
 
116
- #: inc/php/page.php:82
117
  msgid "It's that simple!"
118
  msgstr ""
119
 
120
- #: inc/php/page.php:84
121
  msgid "Note!"
122
  msgstr ""
123
 
124
- #: inc/php/page.php:84
125
  msgid "If you want more options then tell me and I will be happy to add it."
126
  msgstr "Jeśli potrzebujesz więcej opcji napisz mi o tym. Chętnie je dodam."
127
 
128
- #: inc/php/page.php:93
129
  msgid "Frequently Asked Questions"
130
  msgstr "Często zadawane pytania"
131
 
132
- #: inc/php/page.php:115
133
  msgid "Will this plugin work on my WordPress.COM website?"
134
  msgstr ""
135
 
136
- #: inc/php/page.php:116
137
  msgid ""
138
  "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) "
139
  "websites."
140
  msgstr ""
141
 
142
- #: inc/php/page.php:118
143
  msgid "Can I use this plugin on my language?"
144
  msgstr ""
145
 
146
- #: inc/php/page.php:120
147
  #, php-format
148
  msgid ""
149
  "Yes. But If your language is not available then you can make one. This "
@@ -154,51 +149,51 @@ msgid ""
154
  "include the translation within the next plugin update."
155
  msgstr ""
156
 
157
- #: inc/php/page.php:125
158
  msgid "How does it work?"
159
  msgstr ""
160
 
161
- #: inc/php/page.php:126
162
  msgid ""
163
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save "
164
  "Changes\" button. Enjoy the result of applying your scripts. It's that "
165
  "simple!"
166
  msgstr ""
167
 
168
- #: inc/php/page.php:128
169
  msgid "How much of scripts I can enter in the field?"
170
  msgstr ""
171
 
172
- #: inc/php/page.php:129
173
  msgid "I don't limit the number of characters."
174
  msgstr ""
175
 
176
- #: inc/php/page.php:131
177
  msgid "Does this plugin requires any modification of the theme?"
178
  msgstr ""
179
 
180
- #: inc/php/page.php:132
181
  msgid ""
182
  "Absolutely not. This plugin is configurable entirely from the plugin "
183
  "settings page."
184
  msgstr ""
185
 
186
- #: inc/php/page.php:134
187
  msgid "Does this require any knowledge of HTML or CSS?"
188
  msgstr ""
189
 
190
- #: inc/php/page.php:135
191
  msgid ""
192
  "This plugin can be configured with no knowledge of HTML or CSS, using an "
193
  "easy-to-use plugin settings page. But you need to know the HTML or CSS in "
194
  "order to add/remove/modify the HTML or CSS code by using this plugin."
195
  msgstr ""
196
 
197
- #: inc/php/page.php:137
198
  msgid "It's not working. What could be wrong?"
199
  msgstr ""
200
 
201
- #: inc/php/page.php:138
202
  msgid ""
203
  "As with every plugin, it's possible that things don't work. The most common "
204
  "reason for this is a web browser's cache. Every web browser stores a cache "
@@ -207,7 +202,7 @@ msgid ""
207
  "browser's cache may solve the problem."
208
  msgstr ""
209
 
210
- #: inc/php/page.php:139
211
  msgid ""
212
  "It's impossible to tell what could be wrong exactly, but if you post a "
213
  "support request in the plugin's support forum on WordPress.org, I'd be happy "
@@ -215,31 +210,46 @@ msgid ""
215
  "possible, including a link to your website where the problem can be seen."
216
  msgstr ""
217
 
 
 
 
 
 
 
218
  #: inc/php/page.php:141
219
- msgid "Where to report bug if found?"
 
 
 
 
 
220
  msgstr ""
221
 
222
  #: inc/php/page.php:143
 
 
 
 
223
  #, php-format
224
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
225
  msgstr ""
226
 
227
- #: inc/php/page.php:149
228
  msgid "Where to share any ideas or suggestions to make the plugin better?"
229
  msgstr ""
230
 
231
- #: inc/php/page.php:151
232
  #, php-format
233
  msgid ""
234
  "Any suggestions are very welcome! Please send me an email to %s "
235
  "arthurgareginyan@gmail.com %s. Thank you!"
236
  msgstr ""
237
 
238
- #: inc/php/page.php:157
239
  msgid "I love this plugin! Can I help somehow?"
240
  msgstr ""
241
 
242
- #: inc/php/page.php:159
243
  #, php-format
244
  msgid ""
245
  "Yes, any financial contributions are welcome! Just visit %s my website %s, "
@@ -332,6 +342,10 @@ msgstr ""
332
  "Skrypty z tego pola zostaną dodane za skryptami ze stopki. Nie należy tu "
333
  "umieszczać zwykłego tekstu!"
334
 
 
 
 
 
335
  #. Plugin URI of the plugin/theme
336
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
337
  msgstr "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
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"
33
  msgid "Donate"
34
  msgstr "Wesprzyj"
35
 
 
 
 
 
 
36
  #: inc/php/messages.php:30
37
  msgid "Hello. I'm Arthur, the author of this plugin."
38
  msgstr ""
63
  msgid "Main"
64
  msgstr ""
65
 
66
+ #: inc/php/page.php:42 inc/php/page.php:61
67
  msgid "Usage"
68
  msgstr "Wykorzystanie"
69
 
71
  msgid "F.A.Q."
72
  msgstr "FAQ"
73
 
74
+ #: inc/php/page.php:44 inc/php/page.php:175
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 ""
84
  msgid "Family"
85
  msgstr "Rodzina"
86
 
87
+ #: inc/php/page.php:63
88
  msgid "To add the script to your website, simply follow these steps:"
89
  msgstr ""
90
 
91
+ #: inc/php/page.php:65
92
  msgid "Go to the \"Main\" tab."
93
  msgstr ""
94
 
95
+ #: inc/php/page.php:66
96
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
97
  msgstr ""
98
 
99
+ #: inc/php/page.php:67
100
  msgid ""
101
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code "
102
  "must be wrapped in the corresponding HTML tag. For JavaScript code use the "
104
  "</code> tag. Example:"
105
  msgstr ""
106
 
107
+ #: inc/php/page.php:81
108
  msgid "Enjoy the result of applying your scripts."
109
  msgstr ""
110
 
111
+ #: inc/php/page.php:81
112
  msgid "It's that simple!"
113
  msgstr ""
114
 
115
+ #: inc/php/page.php:83
116
  msgid "Note!"
117
  msgstr ""
118
 
119
+ #: inc/php/page.php:83
120
  msgid "If you want more options then tell me and I will be happy to add it."
121
  msgstr "Jeśli potrzebujesz więcej opcji napisz mi o tym. Chętnie je dodam."
122
 
123
+ #: inc/php/page.php:92
124
  msgid "Frequently Asked Questions"
125
  msgstr "Często zadawane pytania"
126
 
127
+ #: inc/php/page.php:114
128
  msgid "Will this plugin work on my WordPress.COM website?"
129
  msgstr ""
130
 
131
+ #: inc/php/page.php:115
132
  msgid ""
133
  "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) "
134
  "websites."
135
  msgstr ""
136
 
137
+ #: inc/php/page.php:117
138
  msgid "Can I use this plugin on my language?"
139
  msgstr ""
140
 
141
+ #: inc/php/page.php:119
142
  #, php-format
143
  msgid ""
144
  "Yes. But If your language is not available then you can make one. This "
149
  "include the translation within the next plugin update."
150
  msgstr ""
151
 
152
+ #: inc/php/page.php:124
153
  msgid "How does it work?"
154
  msgstr ""
155
 
156
+ #: inc/php/page.php:125
157
  msgid ""
158
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save "
159
  "Changes\" button. Enjoy the result of applying your scripts. It's that "
160
  "simple!"
161
  msgstr ""
162
 
163
+ #: inc/php/page.php:127
164
  msgid "How much of scripts I can enter in the field?"
165
  msgstr ""
166
 
167
+ #: inc/php/page.php:128
168
  msgid "I don't limit the number of characters."
169
  msgstr ""
170
 
171
+ #: inc/php/page.php:130
172
  msgid "Does this plugin requires any modification of the theme?"
173
  msgstr ""
174
 
175
+ #: inc/php/page.php:131
176
  msgid ""
177
  "Absolutely not. This plugin is configurable entirely from the plugin "
178
  "settings page."
179
  msgstr ""
180
 
181
+ #: inc/php/page.php:133
182
  msgid "Does this require any knowledge of HTML or CSS?"
183
  msgstr ""
184
 
185
+ #: inc/php/page.php:134
186
  msgid ""
187
  "This plugin can be configured with no knowledge of HTML or CSS, using an "
188
  "easy-to-use plugin settings page. But you need to know the HTML or CSS in "
189
  "order to add/remove/modify the HTML or CSS code by using this plugin."
190
  msgstr ""
191
 
192
+ #: inc/php/page.php:136
193
  msgid "It's not working. What could be wrong?"
194
  msgstr ""
195
 
196
+ #: inc/php/page.php:137
197
  msgid ""
198
  "As with every plugin, it's possible that things don't work. The most common "
199
  "reason for this is a web browser's cache. Every web browser stores a cache "
202
  "browser's cache may solve the problem."
203
  msgstr ""
204
 
205
+ #: inc/php/page.php:138
206
  msgid ""
207
  "It's impossible to tell what could be wrong exactly, but if you post a "
208
  "support request in the plugin's support forum on WordPress.org, I'd be happy "
210
  "possible, including a link to your website where the problem can be seen."
211
  msgstr ""
212
 
213
+ #: inc/php/page.php:140
214
+ msgid ""
215
+ "The last WordPress update is preventing me from editing my website that is "
216
+ "using this plugin. Why is this?"
217
+ msgstr ""
218
+
219
  #: inc/php/page.php:141
220
+ msgid ""
221
+ "This plugin can not cause such problem. More likely, the problem are related "
222
+ "to the settings of the website. It could just be a cache, so please try to "
223
+ "clear your website's cache (may be you using a caching plugin, or some web "
224
+ "service such as the CloudFlare) and then the cache of your web browser. Also "
225
+ "please try to re-login to the website, this too can help."
226
  msgstr ""
227
 
228
  #: inc/php/page.php:143
229
+ msgid "Where to report bug if found?"
230
+ msgstr ""
231
+
232
+ #: inc/php/page.php:145
233
  #, php-format
234
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
235
  msgstr ""
236
 
237
+ #: inc/php/page.php:151
238
  msgid "Where to share any ideas or suggestions to make the plugin better?"
239
  msgstr ""
240
 
241
+ #: inc/php/page.php:153
242
  #, php-format
243
  msgid ""
244
  "Any suggestions are very welcome! Please send me an email to %s "
245
  "arthurgareginyan@gmail.com %s. Thank you!"
246
  msgstr ""
247
 
248
+ #: inc/php/page.php:159
249
  msgid "I love this plugin! Can I help somehow?"
250
  msgstr ""
251
 
252
+ #: inc/php/page.php:161
253
  #, php-format
254
  msgid ""
255
  "Yes, any financial contributions are welcome! Just visit %s my website %s, "
342
  "Skrypty z tego pola zostaną dodane za skryptami ze stopki. Nie należy tu "
343
  "umieszczać zwykłego tekstu!"
344
 
345
+ #. Plugin Name of the plugin/theme
346
+ msgid "Head and Footer Scripts Inserter"
347
+ msgstr "Wstawianie kodu do nagłówka i stopki"
348
+
349
  #. Plugin URI of the plugin/theme
350
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
351
  msgstr "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
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-07 13:23+0300\n"
5
- "PO-Revision-Date: 2017-05-07 17:36+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
@@ -29,11 +29,6 @@ msgstr "Настройки"
29
  msgid "Donate"
30
  msgstr "Поддержать разработку"
31
 
32
- #. Plugin Name of the plugin/theme
33
- #: inc/php/core.php:62 inc/php/page.php:26
34
- msgid "Head and Footer Scripts Inserter"
35
- msgstr "Head and Footer Scripts Inserter"
36
-
37
  #: inc/php/messages.php:30
38
  msgid "Hello. I'm Arthur, the author of this plugin."
39
  msgstr "Привет! Я Артур, автор этого плагина."
@@ -64,7 +59,7 @@ msgstr "от %s Артура Гарегинян %s"
64
  msgid "Main"
65
  msgstr "Главная"
66
 
67
- #: inc/php/page.php:42 inc/php/page.php:62
68
  msgid "Usage"
69
  msgstr "Применение"
70
 
@@ -72,11 +67,11 @@ msgstr "Применение"
72
  msgid "F.A.Q."
73
  msgstr "F.A.Q."
74
 
75
- #: inc/php/page.php:44 inc/php/page.php:173
76
  msgid "Author"
77
  msgstr "Автор"
78
 
79
- #: inc/php/page.php:45 inc/php/page.php:182 inc/php/settings.php:28
80
  #: inc/php/settings.php:101
81
  msgid "Support"
82
  msgstr "Поддержка"
@@ -85,19 +80,19 @@ msgstr "Поддержка"
85
  msgid "Family"
86
  msgstr "Семья"
87
 
88
- #: inc/php/page.php:64
89
  msgid "To add the script to your website, simply follow these steps:"
90
  msgstr ""
91
 
92
- #: inc/php/page.php:66
93
  msgid "Go to the \"Main\" tab."
94
  msgstr "Перейдите на вкладку «Главная»."
95
 
96
- #: inc/php/page.php:67
97
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
98
  msgstr ""
99
 
100
- #: inc/php/page.php:68
101
  msgid ""
102
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code "
103
  "must be wrapped in the corresponding HTML tag. For JavaScript code use the "
@@ -105,33 +100,33 @@ msgid ""
105
  "</code> tag. Example:"
106
  msgstr ""
107
 
108
- #: inc/php/page.php:82
109
  msgid "Enjoy the result of applying your scripts."
110
  msgstr ""
111
 
112
- #: inc/php/page.php:82
113
  msgid "It's that simple!"
114
  msgstr "Вот так просто!"
115
 
116
- #: inc/php/page.php:84
117
  msgid "Note!"
118
  msgstr "Примечание!"
119
 
120
- #: inc/php/page.php:84
121
  msgid "If you want more options then tell me and I will be happy to add it."
122
  msgstr ""
123
  "Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
124
  "добавить их."
125
 
126
- #: inc/php/page.php:93
127
  msgid "Frequently Asked Questions"
128
  msgstr "Часто задаваемые вопросы"
129
 
130
- #: inc/php/page.php:115
131
  msgid "Will this plugin work on my WordPress.COM website?"
132
  msgstr "Этот плагин будет работать на моем сайте WordPress.COM?"
133
 
134
- #: inc/php/page.php:116
135
  msgid ""
136
  "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) "
137
  "websites."
@@ -139,11 +134,11 @@ msgstr ""
139
  "К сожалению, этот плагин доступен для использования только на самостоятельно "
140
  "размещённых веб-сайтах (WordPress.ORG)."
141
 
142
- #: inc/php/page.php:118
143
  msgid "Can I use this plugin on my language?"
144
  msgstr "Можно ли использовать этот плагин на моём языке?"
145
 
146
- #: inc/php/page.php:120
147
  #, php-format
148
  msgid ""
149
  "Yes. But If your language is not available then you can make one. This "
@@ -154,30 +149,30 @@ msgid ""
154
  "include the translation within the next plugin update."
155
  msgstr ""
156
 
157
- #: inc/php/page.php:125
158
  msgid "How does it work?"
159
  msgstr "Как оно работает?"
160
 
161
- #: inc/php/page.php:126
162
  msgid ""
163
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save "
164
  "Changes\" button. Enjoy the result of applying your scripts. It's that "
165
  "simple!"
166
  msgstr ""
167
 
168
- #: inc/php/page.php:128
169
  msgid "How much of scripts I can enter in the field?"
170
  msgstr ""
171
 
172
- #: inc/php/page.php:129
173
  msgid "I don't limit the number of characters."
174
  msgstr ""
175
 
176
- #: inc/php/page.php:131
177
  msgid "Does this plugin requires any modification of the theme?"
178
  msgstr "Этот плагин требует изменения темы?"
179
 
180
- #: inc/php/page.php:132
181
  msgid ""
182
  "Absolutely not. This plugin is configurable entirely from the plugin "
183
  "settings page."
@@ -185,11 +180,11 @@ msgstr ""
185
  "Абсолютно нет. Этот плагин настраивается полностью на странице настроек "
186
  "плагина."
187
 
188
- #: inc/php/page.php:134
189
  msgid "Does this require any knowledge of HTML or CSS?"
190
  msgstr "Требуются ли какие-либо знания HTML или CSS?"
191
 
192
- #: inc/php/page.php:135
193
  msgid ""
194
  "This plugin can be configured with no knowledge of HTML or CSS, using an "
195
  "easy-to-use plugin settings page. But you need to know the HTML or CSS in "
@@ -200,11 +195,11 @@ msgstr ""
200
  "для того, чтобы добавить/удалить/изменить код HTML или CSS, используя этот "
201
  "плагин."
202
 
203
- #: inc/php/page.php:137
204
  msgid "It's not working. What could be wrong?"
205
  msgstr "Оно не работает. Что может быть не так?"
206
 
207
- #: inc/php/page.php:138
208
  msgid ""
209
  "As with every plugin, it's possible that things don't work. The most common "
210
  "reason for this is a web browser's cache. Every web browser stores a cache "
@@ -213,7 +208,7 @@ msgid ""
213
  "browser's cache may solve the problem."
214
  msgstr ""
215
 
216
- #: inc/php/page.php:139
217
  msgid ""
218
  "It's impossible to tell what could be wrong exactly, but if you post a "
219
  "support request in the plugin's support forum on WordPress.org, I'd be happy "
@@ -221,33 +216,48 @@ msgid ""
221
  "possible, including a link to your website where the problem can be seen."
222
  msgstr ""
223
 
 
 
 
 
 
 
224
  #: inc/php/page.php:141
 
 
 
 
 
 
 
 
 
225
  msgid "Where to report bug if found?"
226
  msgstr "Где можно сообщить об ошибке?"
227
 
228
- #: inc/php/page.php:143
229
  #, php-format
230
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
231
  msgstr ""
232
  "Пожалуйста, посетите %s страницу плагина на GitHub %s и сообщите об ошибке."
233
 
234
- #: inc/php/page.php:149
235
  msgid "Where to share any ideas or suggestions to make the plugin better?"
236
  msgstr ""
237
  "Где можно поделиться идеями или предложениями, чтобы сделать плагин лучше?"
238
 
239
- #: inc/php/page.php:151
240
  #, php-format
241
  msgid ""
242
  "Any suggestions are very welcome! Please send me an email to %s "
243
  "arthurgareginyan@gmail.com %s. Thank you!"
244
  msgstr ""
245
 
246
- #: inc/php/page.php:157
247
  msgid "I love this plugin! Can I help somehow?"
248
  msgstr "Мне нравится этот плагин! Могу Я чем-то помочь?"
249
 
250
- #: inc/php/page.php:159
251
  #, php-format
252
  msgid ""
253
  "Yes, any financial contributions are welcome! Just visit %s my website %s, "
@@ -347,6 +357,10 @@ msgstr ""
347
  "Скрипты из этой области будут напечатаны в конце нижнего колонтитула. Не "
348
  "помещайте сюда обычный текст!"
349
 
 
 
 
 
350
  #. Plugin URI of the plugin/theme
351
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
352
  msgstr "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
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"
29
  msgid "Donate"
30
  msgstr "Поддержать разработку"
31
 
 
 
 
 
 
32
  #: inc/php/messages.php:30
33
  msgid "Hello. I'm Arthur, the author of this plugin."
34
  msgstr "Привет! Я Артур, автор этого плагина."
59
  msgid "Main"
60
  msgstr "Главная"
61
 
62
+ #: inc/php/page.php:42 inc/php/page.php:61
63
  msgid "Usage"
64
  msgstr "Применение"
65
 
67
  msgid "F.A.Q."
68
  msgstr "F.A.Q."
69
 
70
+ #: inc/php/page.php:44 inc/php/page.php:175
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 "Поддержка"
80
  msgid "Family"
81
  msgstr "Семья"
82
 
83
+ #: inc/php/page.php:63
84
  msgid "To add the script to your website, simply follow these steps:"
85
  msgstr ""
86
 
87
+ #: inc/php/page.php:65
88
  msgid "Go to the \"Main\" tab."
89
  msgstr "Перейдите на вкладку «Главная»."
90
 
91
+ #: inc/php/page.php:66
92
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
93
  msgstr ""
94
 
95
+ #: inc/php/page.php:67
96
  msgid ""
97
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code "
98
  "must be wrapped in the corresponding HTML tag. For JavaScript code use the "
100
  "</code> tag. Example:"
101
  msgstr ""
102
 
103
+ #: inc/php/page.php:81
104
  msgid "Enjoy the result of applying your scripts."
105
  msgstr ""
106
 
107
+ #: inc/php/page.php:81
108
  msgid "It's that simple!"
109
  msgstr "Вот так просто!"
110
 
111
+ #: inc/php/page.php:83
112
  msgid "Note!"
113
  msgstr "Примечание!"
114
 
115
+ #: inc/php/page.php:83
116
  msgid "If you want more options then tell me and I will be happy to add it."
117
  msgstr ""
118
  "Если вы хотите больше опций, то скажите мне об этом и я буду счастлив "
119
  "добавить их."
120
 
121
+ #: inc/php/page.php:92
122
  msgid "Frequently Asked Questions"
123
  msgstr "Часто задаваемые вопросы"
124
 
125
+ #: inc/php/page.php:114
126
  msgid "Will this plugin work on my WordPress.COM website?"
127
  msgstr "Этот плагин будет работать на моем сайте WordPress.COM?"
128
 
129
+ #: inc/php/page.php:115
130
  msgid ""
131
  "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) "
132
  "websites."
134
  "К сожалению, этот плагин доступен для использования только на самостоятельно "
135
  "размещённых веб-сайтах (WordPress.ORG)."
136
 
137
+ #: inc/php/page.php:117
138
  msgid "Can I use this plugin on my language?"
139
  msgstr "Можно ли использовать этот плагин на моём языке?"
140
 
141
+ #: inc/php/page.php:119
142
  #, php-format
143
  msgid ""
144
  "Yes. But If your language is not available then you can make one. This "
149
  "include the translation within the next plugin update."
150
  msgstr ""
151
 
152
+ #: inc/php/page.php:124
153
  msgid "How does it work?"
154
  msgstr "Как оно работает?"
155
 
156
+ #: inc/php/page.php:125
157
  msgid ""
158
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save "
159
  "Changes\" button. Enjoy the result of applying your scripts. It's that "
160
  "simple!"
161
  msgstr ""
162
 
163
+ #: inc/php/page.php:127
164
  msgid "How much of scripts I can enter in the field?"
165
  msgstr ""
166
 
167
+ #: inc/php/page.php:128
168
  msgid "I don't limit the number of characters."
169
  msgstr ""
170
 
171
+ #: inc/php/page.php:130
172
  msgid "Does this plugin requires any modification of the theme?"
173
  msgstr "Этот плагин требует изменения темы?"
174
 
175
+ #: inc/php/page.php:131
176
  msgid ""
177
  "Absolutely not. This plugin is configurable entirely from the plugin "
178
  "settings page."
180
  "Абсолютно нет. Этот плагин настраивается полностью на странице настроек "
181
  "плагина."
182
 
183
+ #: inc/php/page.php:133
184
  msgid "Does this require any knowledge of HTML or CSS?"
185
  msgstr "Требуются ли какие-либо знания HTML или CSS?"
186
 
187
+ #: inc/php/page.php:134
188
  msgid ""
189
  "This plugin can be configured with no knowledge of HTML or CSS, using an "
190
  "easy-to-use plugin settings page. But you need to know the HTML or CSS in "
195
  "для того, чтобы добавить/удалить/изменить код HTML или CSS, используя этот "
196
  "плагин."
197
 
198
+ #: inc/php/page.php:136
199
  msgid "It's not working. What could be wrong?"
200
  msgstr "Оно не работает. Что может быть не так?"
201
 
202
+ #: inc/php/page.php:137
203
  msgid ""
204
  "As with every plugin, it's possible that things don't work. The most common "
205
  "reason for this is a web browser's cache. Every web browser stores a cache "
208
  "browser's cache may solve the problem."
209
  msgstr ""
210
 
211
+ #: inc/php/page.php:138
212
  msgid ""
213
  "It's impossible to tell what could be wrong exactly, but if you post a "
214
  "support request in the plugin's support forum on WordPress.org, I'd be happy "
216
  "possible, including a link to your website where the problem can be seen."
217
  msgstr ""
218
 
219
+ #: inc/php/page.php:140
220
+ msgid ""
221
+ "The last WordPress update is preventing me from editing my website that is "
222
+ "using this plugin. Why is this?"
223
+ msgstr ""
224
+
225
  #: inc/php/page.php:141
226
+ msgid ""
227
+ "This plugin can not cause such problem. More likely, the problem are related "
228
+ "to the settings of the website. It could just be a cache, so please try to "
229
+ "clear your website's cache (may be you using a caching plugin, or some web "
230
+ "service such as the CloudFlare) and then the cache of your web browser. Also "
231
+ "please try to re-login to the website, this too can help."
232
+ msgstr ""
233
+
234
+ #: inc/php/page.php:143
235
  msgid "Where to report bug if found?"
236
  msgstr "Где можно сообщить об ошибке?"
237
 
238
+ #: inc/php/page.php:145
239
  #, php-format
240
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
241
  msgstr ""
242
  "Пожалуйста, посетите %s страницу плагина на GitHub %s и сообщите об ошибке."
243
 
244
+ #: inc/php/page.php:151
245
  msgid "Where to share any ideas or suggestions to make the plugin better?"
246
  msgstr ""
247
  "Где можно поделиться идеями или предложениями, чтобы сделать плагин лучше?"
248
 
249
+ #: inc/php/page.php:153
250
  #, php-format
251
  msgid ""
252
  "Any suggestions are very welcome! Please send me an email to %s "
253
  "arthurgareginyan@gmail.com %s. Thank you!"
254
  msgstr ""
255
 
256
+ #: inc/php/page.php:159
257
  msgid "I love this plugin! Can I help somehow?"
258
  msgstr "Мне нравится этот плагин! Могу Я чем-то помочь?"
259
 
260
+ #: inc/php/page.php:161
261
  #, php-format
262
  msgid ""
263
  "Yes, any financial contributions are welcome! Just visit %s my website %s, "
357
  "Скрипты из этой области будут напечатаны в конце нижнего колонтитула. Не "
358
  "помещайте сюда обычный текст!"
359
 
360
+ #. Plugin Name of the plugin/theme
361
+ msgid "Head and Footer Scripts Inserter"
362
+ msgstr "Head and Footer Scripts Inserter"
363
+
364
  #. Plugin URI of the plugin/theme
365
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
366
  msgstr "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
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-07 13:23+0300\n"
7
  "PO-Revision-Date: 2016-01-30 11:39+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -27,11 +27,6 @@ msgstr ""
27
  msgid "Donate"
28
  msgstr ""
29
 
30
- #. Plugin Name of the plugin/theme
31
- #: inc/php/core.php:62 inc/php/page.php:26
32
- msgid "Head and Footer Scripts Inserter"
33
- msgstr ""
34
-
35
  #: inc/php/messages.php:30
36
  msgid "Hello. I'm Arthur, the author of this plugin."
37
  msgstr ""
@@ -62,7 +57,7 @@ msgstr ""
62
  msgid "Main"
63
  msgstr ""
64
 
65
- #: inc/php/page.php:42 inc/php/page.php:62
66
  msgid "Usage"
67
  msgstr ""
68
 
@@ -70,11 +65,11 @@ msgstr ""
70
  msgid "F.A.Q."
71
  msgstr ""
72
 
73
- #: inc/php/page.php:44 inc/php/page.php:173
74
  msgid "Author"
75
  msgstr ""
76
 
77
- #: inc/php/page.php:45 inc/php/page.php:182 inc/php/settings.php:28 inc/php/settings.php:101
78
  msgid "Support"
79
  msgstr ""
80
 
@@ -82,57 +77,57 @@ msgstr ""
82
  msgid "Family"
83
  msgstr ""
84
 
85
- #: inc/php/page.php:64
86
  msgid "To add the script to your website, simply follow these steps:"
87
  msgstr ""
88
 
89
- #: inc/php/page.php:66
90
  msgid "Go to the \"Main\" tab."
91
  msgstr ""
92
 
93
- #: inc/php/page.php:67
94
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
95
  msgstr ""
96
 
97
- #: inc/php/page.php:68
98
  msgid ""
99
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code must be wrapped in the corresponding HTML tag. For JavaScript code "
100
  "use the <code>&lt;script&gt;</code> tag, and for CSS code use the <code>&lt;style&gt;</code> tag. Example:"
101
  msgstr ""
102
 
103
- #: inc/php/page.php:82
104
  msgid "Enjoy the result of applying your scripts."
105
  msgstr ""
106
 
107
- #: inc/php/page.php:82
108
  msgid "It's that simple!"
109
  msgstr ""
110
 
111
- #: inc/php/page.php:84
112
  msgid "Note!"
113
  msgstr ""
114
 
115
- #: inc/php/page.php:84
116
  msgid "If you want more options then tell me and I will be happy to add it."
117
  msgstr ""
118
 
119
- #: inc/php/page.php:93
120
  msgid "Frequently Asked Questions"
121
  msgstr ""
122
 
123
- #: inc/php/page.php:115
124
  msgid "Will this plugin work on my WordPress.COM website?"
125
  msgstr ""
126
 
127
- #: inc/php/page.php:116
128
  msgid "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) websites."
129
  msgstr ""
130
 
131
- #: inc/php/page.php:118
132
  msgid "Can I use this plugin on my language?"
133
  msgstr ""
134
 
135
- #: inc/php/page.php:120
136
  #, php-format
137
  msgid ""
138
  "Yes. But If your language is not available then you can make one. This plugin is ready for translation. The<code>.pot</code>file is included and "
@@ -140,83 +135,94 @@ msgid ""
140
  "send the translation files (<code>*.po, *.mo</code>) to me at the %s and I will include the translation within the next plugin update."
141
  msgstr ""
142
 
143
- #: inc/php/page.php:125
144
  msgid "How does it work?"
145
  msgstr ""
146
 
147
- #: inc/php/page.php:126
148
  msgid ""
149
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save Changes\" button. Enjoy the result of applying your scripts. It's "
150
  "that simple!"
151
  msgstr ""
152
 
153
- #: inc/php/page.php:128
154
  msgid "How much of scripts I can enter in the field?"
155
  msgstr ""
156
 
157
- #: inc/php/page.php:129
158
  msgid "I don't limit the number of characters."
159
  msgstr ""
160
 
161
- #: inc/php/page.php:131
162
  msgid "Does this plugin requires any modification of the theme?"
163
  msgstr ""
164
 
165
- #: inc/php/page.php:132
166
  msgid "Absolutely not. This plugin is configurable entirely from the plugin settings page."
167
  msgstr ""
168
 
169
- #: inc/php/page.php:134
170
  msgid "Does this require any knowledge of HTML or CSS?"
171
  msgstr ""
172
 
173
- #: inc/php/page.php:135
174
  msgid ""
175
  "This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page. But you need to know the HTML or CSS "
176
  "in order to add/remove/modify the HTML or CSS code by using this plugin."
177
  msgstr ""
178
 
179
- #: inc/php/page.php:137
180
  msgid "It's not working. What could be wrong?"
181
  msgstr ""
182
 
183
- #: inc/php/page.php:138
184
  msgid ""
185
  "As with every plugin, it's possible that things don't work. The most common reason for this is a web browser's cache. Every web browser stores a "
186
  "cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser's cache.​ "
187
  "Clearing your browser's cache may solve the problem."
188
  msgstr ""
189
 
190
- #: inc/php/page.php:139
191
  msgid ""
192
  "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 "
193
  "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 "
194
  "can be seen."
195
  msgstr ""
196
 
 
 
 
 
197
  #: inc/php/page.php:141
198
- msgid "Where to report bug if found?"
 
 
 
199
  msgstr ""
200
 
201
  #: inc/php/page.php:143
 
 
 
 
202
  #, php-format
203
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
204
  msgstr ""
205
 
206
- #: inc/php/page.php:149
207
  msgid "Where to share any ideas or suggestions to make the plugin better?"
208
  msgstr ""
209
 
210
- #: inc/php/page.php:151
211
  #, php-format
212
  msgid "Any suggestions are very welcome! Please send me an email to %s arthurgareginyan@gmail.com %s. Thank you!"
213
  msgstr ""
214
 
215
- #: inc/php/page.php:157
216
  msgid "I love this plugin! Can I help somehow?"
217
  msgstr ""
218
 
219
- #: inc/php/page.php:159
220
  #, php-format
221
  msgid "Yes, any financial contributions are welcome! Just visit %s my website %s, click on the donate button, and thank you!"
222
  msgstr ""
@@ -287,6 +293,10 @@ msgstr ""
287
  msgid "Scripts from this field will be printed after all footers scripts. Do not place plain text in this!"
288
  msgstr ""
289
 
 
 
 
 
290
  #. Plugin URI of the plugin/theme
291
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
292
  msgstr ""
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"
27
  msgid "Donate"
28
  msgstr ""
29
 
 
 
 
 
 
30
  #: inc/php/messages.php:30
31
  msgid "Hello. I'm Arthur, the author of this plugin."
32
  msgstr ""
57
  msgid "Main"
58
  msgstr ""
59
 
60
+ #: inc/php/page.php:42 inc/php/page.php:61
61
  msgid "Usage"
62
  msgstr ""
63
 
65
  msgid "F.A.Q."
66
  msgstr ""
67
 
68
+ #: inc/php/page.php:44 inc/php/page.php:175
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
 
77
  msgid "Family"
78
  msgstr ""
79
 
80
+ #: inc/php/page.php:63
81
  msgid "To add the script to your website, simply follow these steps:"
82
  msgstr ""
83
 
84
+ #: inc/php/page.php:65
85
  msgid "Go to the \"Main\" tab."
86
  msgstr ""
87
 
88
+ #: inc/php/page.php:66
89
  msgid "Add your scripts to the field and click the \"Save Changes\" button."
90
  msgstr ""
91
 
92
+ #: inc/php/page.php:67
93
  msgid ""
94
  "Note that the fields are for inserting HTML code, so JavaScript and CSS code must be wrapped in the corresponding HTML tag. For JavaScript code "
95
  "use the <code>&lt;script&gt;</code> tag, and for CSS code use the <code>&lt;style&gt;</code> tag. Example:"
96
  msgstr ""
97
 
98
+ #: inc/php/page.php:81
99
  msgid "Enjoy the result of applying your scripts."
100
  msgstr ""
101
 
102
+ #: inc/php/page.php:81
103
  msgid "It's that simple!"
104
  msgstr ""
105
 
106
+ #: inc/php/page.php:83
107
  msgid "Note!"
108
  msgstr ""
109
 
110
+ #: inc/php/page.php:83
111
  msgid "If you want more options then tell me and I will be happy to add it."
112
  msgstr ""
113
 
114
+ #: inc/php/page.php:92
115
  msgid "Frequently Asked Questions"
116
  msgstr ""
117
 
118
+ #: inc/php/page.php:114
119
  msgid "Will this plugin work on my WordPress.COM website?"
120
  msgstr ""
121
 
122
+ #: inc/php/page.php:115
123
  msgid "Sorry, this plugin is available for use only on self-hosted (WordPress.ORG) websites."
124
  msgstr ""
125
 
126
+ #: inc/php/page.php:117
127
  msgid "Can I use this plugin on my language?"
128
  msgstr ""
129
 
130
+ #: inc/php/page.php:119
131
  #, php-format
132
  msgid ""
133
  "Yes. But If your language is not available then you can make one. This plugin is ready for translation. The<code>.pot</code>file is included and "
135
  "send the translation files (<code>*.po, *.mo</code>) to me at the %s and I will include the translation within the next plugin update."
136
  msgstr ""
137
 
138
+ #: inc/php/page.php:124
139
  msgid "How does it work?"
140
  msgstr ""
141
 
142
+ #: inc/php/page.php:125
143
  msgid ""
144
  "On the \"Settings\" tab, add your scripts to the field and click the \"Save Changes\" button. Enjoy the result of applying your scripts. It's "
145
  "that simple!"
146
  msgstr ""
147
 
148
+ #: inc/php/page.php:127
149
  msgid "How much of scripts I can enter in the field?"
150
  msgstr ""
151
 
152
+ #: inc/php/page.php:128
153
  msgid "I don't limit the number of characters."
154
  msgstr ""
155
 
156
+ #: inc/php/page.php:130
157
  msgid "Does this plugin requires any modification of the theme?"
158
  msgstr ""
159
 
160
+ #: inc/php/page.php:131
161
  msgid "Absolutely not. This plugin is configurable entirely from the plugin settings page."
162
  msgstr ""
163
 
164
+ #: inc/php/page.php:133
165
  msgid "Does this require any knowledge of HTML or CSS?"
166
  msgstr ""
167
 
168
+ #: inc/php/page.php:134
169
  msgid ""
170
  "This plugin can be configured with no knowledge of HTML or CSS, using an easy-to-use plugin settings page. But you need to know the HTML or CSS "
171
  "in order to add/remove/modify the HTML or CSS code by using this plugin."
172
  msgstr ""
173
 
174
+ #: inc/php/page.php:136
175
  msgid "It's not working. What could be wrong?"
176
  msgstr ""
177
 
178
+ #: inc/php/page.php:137
179
  msgid ""
180
  "As with every plugin, it's possible that things don't work. The most common reason for this is a web browser's cache. Every web browser stores a "
181
  "cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser's cache.​ "
182
  "Clearing your browser's cache may solve the problem."
183
  msgstr ""
184
 
185
+ #: inc/php/page.php:138
186
  msgid ""
187
  "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 "
188
  "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 "
189
  "can be seen."
190
  msgstr ""
191
 
192
+ #: inc/php/page.php:140
193
+ msgid "The last WordPress update is preventing me from editing my website that is using this plugin. Why is this?"
194
+ msgstr ""
195
+
196
  #: inc/php/page.php:141
197
+ msgid ""
198
+ "This plugin can not cause such problem. More likely, the problem are related to the settings of the website. It could just be a cache, so please "
199
+ "try to clear your website's cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web "
200
+ "browser. Also please try to re-login to the website, this too can help."
201
  msgstr ""
202
 
203
  #: inc/php/page.php:143
204
+ msgid "Where to report bug if found?"
205
+ msgstr ""
206
+
207
+ #: inc/php/page.php:145
208
  #, php-format
209
  msgid "Please visit the %s Dedicated Plugin Page on GitHub %s and report."
210
  msgstr ""
211
 
212
+ #: inc/php/page.php:151
213
  msgid "Where to share any ideas or suggestions to make the plugin better?"
214
  msgstr ""
215
 
216
+ #: inc/php/page.php:153
217
  #, php-format
218
  msgid "Any suggestions are very welcome! Please send me an email to %s arthurgareginyan@gmail.com %s. Thank you!"
219
  msgstr ""
220
 
221
+ #: inc/php/page.php:159
222
  msgid "I love this plugin! Can I help somehow?"
223
  msgstr ""
224
 
225
+ #: inc/php/page.php:161
226
  #, php-format
227
  msgid "Yes, any financial contributions are welcome! Just visit %s my website %s, click on the donate button, and thank you!"
228
  msgstr ""
293
  msgid "Scripts from this field will be printed after all footers scripts. Do not place plain text in this!"
294
  msgstr ""
295
 
296
+ #. Plugin Name of the plugin/theme
297
+ msgid "Head and Footer Scripts Inserter"
298
+ msgstr ""
299
+
300
  #. Plugin URI of the plugin/theme
301
  msgid "https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter"
302
  msgstr ""
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.7
7
- Stable tag: 4.0.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -106,6 +106,9 @@ A. This plugin can be configured with no knowledge of HTML or CSS, using an easy
106
  A. As with every plugin, it's possible that things don't work. The most common reason for this is a web browser's cache. Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser's cache.​ Clearing your browser's cache may solve the problem.
107
 
108
  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.
 
 
 
109
 
110
  = Q. Where to report bug if found? =
111
  A. Please visit the [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter) and report.
@@ -146,6 +149,14 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
146
 
147
  == Changelog ==
148
 
 
 
 
 
 
 
 
 
149
  = 4.0.1 =
150
  * Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
151
 
@@ -267,11 +278,15 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
267
 
268
 
269
  == Upgrade Notice ==
 
270
  = 4.0 =
271
  Please update to new release!
 
272
  = 3.0 =
273
  Please update to new release!
 
274
  = 2.0 =
275
  Please update to new release!
 
276
  = 1.0 =
277
  Please update to first stable release!
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.7
7
+ Stable tag: 4.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
106
  A. As with every plugin, it's possible that things don't work. The most common reason for this is a web browser's cache. Every web browser stores a cache of the websites you visit (pages, images, and etc.) to reduce bandwidth usage and server load. This is called the browser's cache.​ Clearing your browser's cache may solve the problem.
107
 
108
  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.
109
+
110
+ = Q. The last WordPress update is preventing me from editing my website that is using this plugin. Why is this? =
111
+ A. This plugin can not cause such problem. More likely, the problem are related to the settings of the website. It could just be a cache, so please try to clear your website's cache (may be you using a caching plugin, or some web service such as the CloudFlare) and then the cache of your web browser. Also please try to re-login to the website, this too can help.
112
 
113
  = Q. Where to report bug if found? =
114
  A. Please visit the [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/header-and-footer-scripts-inserter) and report.
149
 
150
  == Changelog ==
151
 
152
+ = 4.1 =
153
+ * Added new constants: "_SLUG", "_PREFIX", "_SETTINGS" and "_NAME".
154
+ * Value of the "_VERSION" constant replaced with information from the plugin header data.
155
+ * All references to the plugin name, slug, prefix are replaced with constants.
156
+ * The "name" attribute removed from the "<form>" tag.
157
+ * Code formatting improved.
158
+ * F.A.Q. section updated.
159
+
160
  = 4.0.1 =
161
  * Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
162
 
278
 
279
 
280
  == Upgrade Notice ==
281
+
282
  = 4.0 =
283
  Please update to new release!
284
+
285
  = 3.0 =
286
  Please update to new release!
287
+
288
  = 2.0 =
289
  Please update to new release!
290
+
291
  = 1.0 =
292
  Please update to first stable release!