Version Description
- Tested compatibility with WordPress 5.2
- Updated text-domain standards and in plugin header
Download this release
Release Info
Developer | deb255 |
Plugin | Insert Headers and Footers |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- ihaf.php +11 -9
- languages/insert-headers-and-footers.pot +100 -65
- readme.txt +6 -2
- views/dashboard-notices.php +9 -1
- views/settings.php +8 -8
- views/sidebar.php +21 -15
ihaf.php
CHANGED
@@ -2,14 +2,16 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Insert Headers and Footers
|
4 |
* Plugin URI: http://www.wpbeginner.com/
|
5 |
-
* Version: 1.4.
|
6 |
* Author: WPBeginner
|
7 |
* Author URI: http://www.wpbeginner.com/
|
8 |
* Description: Allows you to insert code or text in the header or footer of your WordPress blog
|
9 |
* License: GPL2
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
-
/* Copyright
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -38,7 +40,7 @@ class InsertHeadersAndFooters {
|
|
38 |
$this->plugin = new stdClass;
|
39 |
$this->plugin->name = 'insert-headers-and-footers'; // Plugin Folder
|
40 |
$this->plugin->displayName = 'Insert Headers and Footers'; // Plugin Name
|
41 |
-
$this->plugin->version = '1.4.
|
42 |
$this->plugin->folder = plugin_dir_path( __FILE__ );
|
43 |
$this->plugin->url = plugin_dir_url( __FILE__ );
|
44 |
$this->plugin->db_welcome_dismissed_key = $this->plugin->name . '_welcome_dismissed_key';
|
@@ -140,7 +142,7 @@ class InsertHeadersAndFooters {
|
|
140 |
function adminPanel() {
|
141 |
// only admin user can access this page
|
142 |
if ( !current_user_can( 'administrator' ) ) {
|
143 |
-
echo '<p>' . __( 'Sorry, you are not allowed to access this page.',
|
144 |
return;
|
145 |
}
|
146 |
|
@@ -149,10 +151,10 @@ class InsertHeadersAndFooters {
|
|
149 |
// Check nonce
|
150 |
if ( !isset( $_REQUEST[$this->plugin->name.'_nonce'] ) ) {
|
151 |
// Missing nonce
|
152 |
-
$this->errorMessage = __( 'nonce field is missing. Settings NOT saved.',
|
153 |
} elseif ( !wp_verify_nonce( $_REQUEST[$this->plugin->name.'_nonce'], $this->plugin->name ) ) {
|
154 |
// Invalid nonce
|
155 |
-
$this->errorMessage = __( 'Invalid nonce specified. Settings NOT saved.',
|
156 |
} else {
|
157 |
// Save
|
158 |
// $_REQUEST has already been slashed by wp_magic_quotes in wp-settings
|
@@ -160,7 +162,7 @@ class InsertHeadersAndFooters {
|
|
160 |
update_option( 'ihaf_insert_header', $_REQUEST['ihaf_insert_header'] );
|
161 |
update_option( 'ihaf_insert_footer', $_REQUEST['ihaf_insert_footer'] );
|
162 |
update_option( $this->plugin->db_welcome_dismissed_key, 1 );
|
163 |
-
$this->message = __( 'Settings Saved.',
|
164 |
}
|
165 |
}
|
166 |
|
@@ -171,14 +173,14 @@ class InsertHeadersAndFooters {
|
|
171 |
);
|
172 |
|
173 |
// Load Settings Form
|
174 |
-
include_once(
|
175 |
}
|
176 |
|
177 |
/**
|
178 |
* Loads plugin textdomain
|
179 |
*/
|
180 |
function loadLanguageFiles() {
|
181 |
-
load_plugin_textdomain(
|
182 |
}
|
183 |
|
184 |
/**
|
2 |
/**
|
3 |
* Plugin Name: Insert Headers and Footers
|
4 |
* Plugin URI: http://www.wpbeginner.com/
|
5 |
+
* Version: 1.4.4
|
6 |
* Author: WPBeginner
|
7 |
* Author URI: http://www.wpbeginner.com/
|
8 |
* Description: Allows you to insert code or text in the header or footer of your WordPress blog
|
9 |
* License: GPL2
|
10 |
+
* Text Domain: insert-headers-and-footers
|
11 |
+
* Domain Path: languages
|
12 |
*/
|
13 |
|
14 |
+
/* Copyright 2019 WPBeginner
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
40 |
$this->plugin = new stdClass;
|
41 |
$this->plugin->name = 'insert-headers-and-footers'; // Plugin Folder
|
42 |
$this->plugin->displayName = 'Insert Headers and Footers'; // Plugin Name
|
43 |
+
$this->plugin->version = '1.4.4';
|
44 |
$this->plugin->folder = plugin_dir_path( __FILE__ );
|
45 |
$this->plugin->url = plugin_dir_url( __FILE__ );
|
46 |
$this->plugin->db_welcome_dismissed_key = $this->plugin->name . '_welcome_dismissed_key';
|
142 |
function adminPanel() {
|
143 |
// only admin user can access this page
|
144 |
if ( !current_user_can( 'administrator' ) ) {
|
145 |
+
echo '<p>' . __( 'Sorry, you are not allowed to access this page.', 'insert-headers-and-footers' ) . '</p>';
|
146 |
return;
|
147 |
}
|
148 |
|
151 |
// Check nonce
|
152 |
if ( !isset( $_REQUEST[$this->plugin->name.'_nonce'] ) ) {
|
153 |
// Missing nonce
|
154 |
+
$this->errorMessage = __( 'nonce field is missing. Settings NOT saved.', 'insert-headers-and-footers' );
|
155 |
} elseif ( !wp_verify_nonce( $_REQUEST[$this->plugin->name.'_nonce'], $this->plugin->name ) ) {
|
156 |
// Invalid nonce
|
157 |
+
$this->errorMessage = __( 'Invalid nonce specified. Settings NOT saved.', 'insert-headers-and-footers' );
|
158 |
} else {
|
159 |
// Save
|
160 |
// $_REQUEST has already been slashed by wp_magic_quotes in wp-settings
|
162 |
update_option( 'ihaf_insert_header', $_REQUEST['ihaf_insert_header'] );
|
163 |
update_option( 'ihaf_insert_footer', $_REQUEST['ihaf_insert_footer'] );
|
164 |
update_option( $this->plugin->db_welcome_dismissed_key, 1 );
|
165 |
+
$this->message = __( 'Settings Saved.', 'insert-headers-and-footers' );
|
166 |
}
|
167 |
}
|
168 |
|
173 |
);
|
174 |
|
175 |
// Load Settings Form
|
176 |
+
include_once( $this->plugin->folder . '/views/settings.php' );
|
177 |
}
|
178 |
|
179 |
/**
|
180 |
* Loads plugin textdomain
|
181 |
*/
|
182 |
function loadLanguageFiles() {
|
183 |
+
load_plugin_textdomain( 'insert-headers-and-footers', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
184 |
}
|
185 |
|
186 |
/**
|
languages/insert-headers-and-footers.pot
CHANGED
@@ -1,119 +1,154 @@
|
|
1 |
-
# Copyright (C)
|
2 |
-
# This file is distributed under the same license as the Insert Headers and Footers
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Insert Headers and Footers 1.
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"
|
8 |
-
"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
-
msgid "
|
18 |
msgstr ""
|
19 |
|
20 |
-
|
21 |
-
msgid "
|
22 |
msgstr ""
|
23 |
|
24 |
-
#:
|
25 |
-
|
|
|
26 |
msgstr ""
|
27 |
|
28 |
-
#:
|
29 |
-
msgid "
|
30 |
msgstr ""
|
31 |
|
32 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
msgid "Improve Your Site"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#:
|
37 |
-
msgid ""
|
38 |
-
"Want to take your site to the next level? Look behind the scenes of "
|
39 |
-
"WPBeginner to see what you can do!"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#:
|
43 |
-
msgid "WPBeginner
|
44 |
msgstr ""
|
45 |
|
46 |
-
#:
|
47 |
-
msgid "
|
48 |
msgstr ""
|
49 |
|
50 |
-
#:
|
51 |
-
msgid ""
|
52 |
-
"Want to help make this plugin even better? All donations are used to improve "
|
53 |
-
"this plugin, so donate $10, $20 or $50 now!"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#:
|
57 |
-
msgid "
|
58 |
msgstr ""
|
59 |
|
60 |
-
#:
|
61 |
-
msgid "
|
62 |
msgstr ""
|
63 |
|
64 |
-
#:
|
65 |
-
msgid "
|
66 |
msgstr ""
|
67 |
|
68 |
-
#:
|
69 |
-
msgid "
|
70 |
msgstr ""
|
71 |
|
72 |
-
#:
|
73 |
-
msgid "
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: views/
|
77 |
-
msgid "
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: views/
|
81 |
-
msgid "
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: views/
|
85 |
-
msgid "
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: views/
|
89 |
-
msgid "
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: views/
|
93 |
-
msgid "
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: views/
|
97 |
-
msgid "
|
98 |
msgstr ""
|
99 |
|
100 |
-
|
101 |
-
msgid "
|
102 |
msgstr ""
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
#. #-#-#-#-# insert-headers-and-footers.pot (Insert Headers and Footers 1.3.2) #-#-#-#-#
|
107 |
-
#. Author URI of the plugin/theme
|
108 |
-
msgid "http://www.wpbeginner.com/"
|
109 |
msgstr ""
|
110 |
|
111 |
-
|
112 |
-
msgid ""
|
113 |
-
"Allows you to insert code or text in the header or footer of your WordPress "
|
114 |
-
"blog"
|
115 |
msgstr ""
|
116 |
|
117 |
-
|
118 |
-
msgid "
|
|
|
|
|
|
|
|
|
119 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPBeginner
|
2 |
+
# This file is distributed under the same license as the Insert Headers and Footers plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Insert Headers and Footers 1.4.4\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/insert-headers-and-footers\n"
|
7 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2019-05-08T12:58:16+00:00\n"
|
13 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.2.0\n"
|
15 |
+
"X-Domain: insert-headers-and-footers\n"
|
16 |
+
|
17 |
+
#. Plugin Name of the plugin
|
18 |
+
msgid "Insert Headers and Footers"
|
19 |
+
msgstr ""
|
20 |
+
|
21 |
+
#. Plugin URI of the plugin
|
22 |
+
#. Author URI of the plugin
|
23 |
+
msgid "http://www.wpbeginner.com/"
|
24 |
+
msgstr ""
|
25 |
|
26 |
+
#. Description of the plugin
|
27 |
+
msgid "Allows you to insert code or text in the header or footer of your WordPress blog"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#. Author of the plugin
|
31 |
+
msgid "WPBeginner"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: views/settings.php:2
|
35 |
+
#: views/settings.php:23
|
36 |
+
msgid "Settings"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: views/settings.php:28
|
40 |
+
msgid "Scripts in Header"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: views/settings.php:30
|
44 |
+
msgid "These scripts will be printed in the <code><head></code> section."
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: views/settings.php:33
|
48 |
+
msgid "Scripts in Footer"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: views/settings.php:35
|
52 |
+
msgid "These scripts will be printed above the <code></body></code> tag."
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: views/settings.php:39
|
56 |
+
msgid "Save"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#. translators: %s: Name of this plugin
|
60 |
+
#: views/dashboard-notices.php:11
|
61 |
+
msgid "Thank you for installing %1$s!"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: views/dashboard-notices.php:14
|
65 |
+
msgid "Click here"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: views/dashboard-notices.php:14
|
69 |
+
msgid "to configure the plugin."
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: views/sidebar.php:9
|
73 |
msgid "Improve Your Site"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: views/sidebar.php:14
|
77 |
+
msgid "Want to take your site to the next level? Check out our daily free WordPress tutorials on "
|
|
|
|
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: views/sidebar.php:15
|
81 |
+
msgid "WPBeginner blog"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: views/sidebar.php:19
|
85 |
+
msgid "Some of our popular guides:"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: views/sidebar.php:24
|
89 |
+
msgid "Speed Up WordPress"
|
|
|
|
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: views/sidebar.php:27
|
93 |
+
msgid "Improve WordPress Security"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: views/sidebar.php:31
|
97 |
+
msgid "Boost Your WordPress SEO"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: views/sidebar.php:41
|
101 |
+
msgid "Our WordPress Plugins"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: views/sidebar.php:45
|
105 |
+
msgid "Like this plugin? Check out our other WordPress plugins:"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: views/sidebar.php:49
|
109 |
+
msgid "WPForms"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: views/sidebar.php:51
|
113 |
+
msgid " - Drag & Drop WordPress Form Builder"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: views/sidebar.php:55
|
117 |
+
msgid "MonsterInsights"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: views/sidebar.php:57
|
121 |
+
msgid " - Google Analytics Made Easy for WordPress"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: views/sidebar.php:61
|
125 |
+
msgid "OptinMonster"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: views/sidebar.php:63
|
129 |
+
msgid " - Best WordPress Lead Generation Plugin"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: views/sidebar.php:67
|
133 |
+
msgid "SeedProd"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: views/sidebar.php:69
|
137 |
+
msgid " - Get the best WordPress Coming Soon Page plugin"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ihaf.php:145
|
141 |
+
msgid "Sorry, you are not allowed to access this page."
|
|
|
|
|
|
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ihaf.php:154
|
145 |
+
msgid "nonce field is missing. Settings NOT saved."
|
|
|
|
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ihaf.php:157
|
149 |
+
msgid "Invalid nonce specified. Settings NOT saved."
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: ihaf.php:165
|
153 |
+
msgid "Settings Saved."
|
154 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: WPbeginner, smub, deb255
|
3 |
Tags: code, content, css, facebook pixel, footer, footer code, footer scripts, footers, google analytics, head, header, header code, header scripts, headers, insert, insert code, insert scripts, js, meta, meta tags, scripts, wpmu
|
4 |
Requires at least: 3.6
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -85,6 +85,10 @@ Syed Balkhi
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
88 |
= 1.4.3 =
|
89 |
* Update FAQs
|
90 |
* Introduce three new filters: disable_ihaf, disable_ihaf_footer, disable_ihaf_header
|
2 |
Contributors: WPbeginner, smub, deb255
|
3 |
Tags: code, content, css, facebook pixel, footer, footer code, footer scripts, footers, google analytics, head, header, header code, header scripts, headers, insert, insert code, insert scripts, js, meta, meta tags, scripts, wpmu
|
4 |
Requires at least: 3.6
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 1.4.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.4.4 =
|
89 |
+
* Tested compatibility with WordPress 5.2
|
90 |
+
* Updated text-domain standards and in plugin header
|
91 |
+
|
92 |
= 1.4.3 =
|
93 |
* Update FAQs
|
94 |
* Introduce three new filters: disable_ihaf, disable_ihaf_footer, disable_ihaf_header
|
views/dashboard-notices.php
CHANGED
@@ -4,7 +4,15 @@
|
|
4 |
*/
|
5 |
?>
|
6 |
<div class="notice notice-success is-dismissible <?php echo $this->plugin->name; ?>-notice-welcome">
|
7 |
-
<p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</div>
|
9 |
<script type="text/javascript">
|
10 |
jQuery(document).ready( function($) {
|
4 |
*/
|
5 |
?>
|
6 |
<div class="notice notice-success is-dismissible <?php echo $this->plugin->name; ?>-notice-welcome">
|
7 |
+
<p>
|
8 |
+
<?php
|
9 |
+
printf(
|
10 |
+
/* translators: %s: Name of this plugin */
|
11 |
+
__( 'Thank you for installing %1$s!', 'insert-headers-and-footers' ),
|
12 |
+
$this->plugin->displayName
|
13 |
+
); ?>
|
14 |
+
<a href="<?php echo $setting_page; ?>"><?php esc_html_e( 'Click here', 'insert-headers-and-footers' ); ?></a> <?php esc_html_e( 'to configure the plugin.', 'insert-headers-and-footers' ); ?>
|
15 |
+
</p>
|
16 |
</div>
|
17 |
<script type="text/javascript">
|
18 |
jQuery(document).ready( function($) {
|
views/settings.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="wrap">
|
2 |
-
<h2><?php echo $this->plugin->displayName; ?> » <?php
|
3 |
|
4 |
<?php
|
5 |
if ( isset( $this->message ) ) {
|
@@ -20,23 +20,23 @@
|
|
20 |
<div id="post-body-content">
|
21 |
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
|
22 |
<div class="postbox">
|
23 |
-
<h3 class="hndle"><?php
|
24 |
|
25 |
<div class="inside">
|
26 |
<form action="options-general.php?page=<?php echo $this->plugin->name; ?>" method="post">
|
27 |
<p>
|
28 |
-
<label for="ihaf_insert_header"><strong><?php
|
29 |
<textarea name="ihaf_insert_header" id="ihaf_insert_header" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_header']; ?></textarea>
|
30 |
-
<?php
|
31 |
</p>
|
32 |
<p>
|
33 |
-
<label for="ihaf_insert_footer"><strong><?php
|
34 |
<textarea name="ihaf_insert_footer" id="ihaf_insert_footer" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_footer']; ?></textarea>
|
35 |
-
<?php
|
36 |
</p>
|
37 |
-
<?php wp_nonce_field( $this->plugin->name, $this->plugin->name.'_nonce' ); ?>
|
38 |
<p>
|
39 |
-
<input name="submit" type="submit" name="Submit" class="button button-primary" value="<?php
|
40 |
</p>
|
41 |
</form>
|
42 |
</div>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php echo $this->plugin->displayName; ?> » <?php esc_html_e( 'Settings', 'insert-headers-and-footers' ); ?></h2>
|
3 |
|
4 |
<?php
|
5 |
if ( isset( $this->message ) ) {
|
20 |
<div id="post-body-content">
|
21 |
<div id="normal-sortables" class="meta-box-sortables ui-sortable">
|
22 |
<div class="postbox">
|
23 |
+
<h3 class="hndle"><?php esc_html_e( 'Settings', 'insert-headers-and-footers' ); ?></h3>
|
24 |
|
25 |
<div class="inside">
|
26 |
<form action="options-general.php?page=<?php echo $this->plugin->name; ?>" method="post">
|
27 |
<p>
|
28 |
+
<label for="ihaf_insert_header"><strong><?php esc_html_e( 'Scripts in Header', 'insert-headers-and-footers' ); ?></strong></label>
|
29 |
<textarea name="ihaf_insert_header" id="ihaf_insert_header" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_header']; ?></textarea>
|
30 |
+
<?php esc_html_e( 'These scripts will be printed in the <code><head></code> section.', 'insert-headers-and-footers' ); ?>
|
31 |
</p>
|
32 |
<p>
|
33 |
+
<label for="ihaf_insert_footer"><strong><?php esc_html_e( 'Scripts in Footer', 'insert-headers-and-footers' ); ?></strong></label>
|
34 |
<textarea name="ihaf_insert_footer" id="ihaf_insert_footer" class="widefat" rows="8" style="font-family:Courier New;"><?php echo $this->settings['ihaf_insert_footer']; ?></textarea>
|
35 |
+
<?php esc_html_e( 'These scripts will be printed above the <code></body></code> tag.', 'insert-headers-and-footers' ); ?>
|
36 |
</p>
|
37 |
+
<?php wp_nonce_field( $this->plugin->name, $this->plugin->name . '_nonce' ); ?>
|
38 |
<p>
|
39 |
+
<input name="submit" type="submit" name="Submit" class="button button-primary" value="<?php esc_html_e( 'Save', 'insert-headers-and-footers' ); ?>" />
|
40 |
</p>
|
41 |
</form>
|
42 |
</div>
|
views/sidebar.php
CHANGED
@@ -6,29 +6,29 @@
|
|
6 |
<!-- Improve Your Site -->
|
7 |
<div class="postbox">
|
8 |
<h3 class="hndle">
|
9 |
-
<span><?php
|
10 |
</h3>
|
11 |
|
12 |
<div class="inside">
|
13 |
<p>
|
14 |
-
<?php
|
15 |
-
<a href="http://www.wpbeginner.com/?utm_source=wpadmin&utm_campaign=freeplugins"><?php
|
16 |
</p>
|
17 |
|
18 |
<p>
|
19 |
-
<?php
|
20 |
</p>
|
21 |
|
22 |
<ul>
|
23 |
<li><a href="http://www.wpbeginner.com/wordpress-performance-speed/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
24 |
-
<?php
|
25 |
</a></li>
|
26 |
<li><a href="http://www.wpbeginner.com/wordpress-security/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
27 |
-
<?php
|
28 |
</a></li>
|
29 |
|
30 |
<li><a href="http://www.wpbeginner.com/wordpress-seo/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
31 |
-
<?php
|
32 |
</a></li>
|
33 |
</ul>
|
34 |
|
@@ -38,29 +38,35 @@
|
|
38 |
<!-- Donate -->
|
39 |
<div class="postbox">
|
40 |
<h3 class="hndle">
|
41 |
-
<span><?php
|
42 |
</h3>
|
43 |
<div class="inside">
|
44 |
<p>
|
45 |
-
<?php
|
46 |
</p>
|
47 |
<p>
|
48 |
<a href="https://wordpress.org/plugins/wpforms-lite/" target="_blank">
|
49 |
-
<?php
|
50 |
</a>
|
51 |
-
<?php
|
52 |
</p>
|
53 |
<p>
|
54 |
<a href="https://wordpress.org/plugins/google-analytics-for-wordpress/" target="_blank">
|
55 |
-
<?php
|
56 |
</a>
|
57 |
-
<?php
|
58 |
</p>
|
59 |
<p>
|
60 |
<a href="http://optinmonster.com/" target="_blank">
|
61 |
-
<?php
|
62 |
</a>
|
63 |
-
<?php
|
64 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</div>
|
66 |
</div>
|
6 |
<!-- Improve Your Site -->
|
7 |
<div class="postbox">
|
8 |
<h3 class="hndle">
|
9 |
+
<span><?php esc_html_e('Improve Your Site', 'insert-headers-and-footers' ); ?></span>
|
10 |
</h3>
|
11 |
|
12 |
<div class="inside">
|
13 |
<p>
|
14 |
+
<?php esc_html_e( 'Want to take your site to the next level? Check out our daily free WordPress tutorials on ', 'insert-headers-and-footers' ); ?>
|
15 |
+
<a href="http://www.wpbeginner.com/?utm_source=wpadmin&utm_campaign=freeplugins"><?php esc_html_e( 'WPBeginner blog', 'insert-headers-and-footers' ); ?></a>.
|
16 |
</p>
|
17 |
|
18 |
<p>
|
19 |
+
<?php esc_html_e( 'Some of our popular guides:', 'insert-headers-and-footers' ); ?>
|
20 |
</p>
|
21 |
|
22 |
<ul>
|
23 |
<li><a href="http://www.wpbeginner.com/wordpress-performance-speed/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
24 |
+
<?php esc_html_e( 'Speed Up WordPress', 'insert-headers-and-footers' ); ?>
|
25 |
</a></li>
|
26 |
<li><a href="http://www.wpbeginner.com/wordpress-security/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
27 |
+
<?php esc_html_e( 'Improve WordPress Security', 'insert-headers-and-footers' ); ?>
|
28 |
</a></li>
|
29 |
|
30 |
<li><a href="http://www.wpbeginner.com/wordpress-seo/?utm_source=wpadmin&utm_campaign=freeplugins" target="_blank">
|
31 |
+
<?php esc_html_e( 'Boost Your WordPress SEO', 'insert-headers-and-footers' ); ?>
|
32 |
</a></li>
|
33 |
</ul>
|
34 |
|
38 |
<!-- Donate -->
|
39 |
<div class="postbox">
|
40 |
<h3 class="hndle">
|
41 |
+
<span><?php esc_html_e( 'Our WordPress Plugins', 'insert-headers-and-footers' ); ?></span>
|
42 |
</h3>
|
43 |
<div class="inside">
|
44 |
<p>
|
45 |
+
<?php esc_html_e( 'Like this plugin? Check out our other WordPress plugins:', 'insert-headers-and-footers' ); ?>
|
46 |
</p>
|
47 |
<p>
|
48 |
<a href="https://wordpress.org/plugins/wpforms-lite/" target="_blank">
|
49 |
+
<?php esc_html_e( 'WPForms', 'insert-headers-and-footers' ); ?>
|
50 |
</a>
|
51 |
+
<?php esc_html_e( ' - Drag & Drop WordPress Form Builder', 'insert-headers-and-footers' ); ?>
|
52 |
</p>
|
53 |
<p>
|
54 |
<a href="https://wordpress.org/plugins/google-analytics-for-wordpress/" target="_blank">
|
55 |
+
<?php esc_html_e( 'MonsterInsights', 'insert-headers-and-footers' ); ?>
|
56 |
</a>
|
57 |
+
<?php esc_html_e( ' - Google Analytics Made Easy for WordPress', 'insert-headers-and-footers' ); ?>
|
58 |
</p>
|
59 |
<p>
|
60 |
<a href="http://optinmonster.com/" target="_blank">
|
61 |
+
<?php esc_html_e( 'OptinMonster', 'insert-headers-and-footers' ); ?>
|
62 |
</a>
|
63 |
+
<?php esc_html_e( ' - Best WordPress Lead Generation Plugin', 'insert-headers-and-footers' ); ?>
|
64 |
</p>
|
65 |
+
<p>
|
66 |
+
<a href="https://www.seedprod.com/" target="_blank">
|
67 |
+
<?php esc_html_e( 'SeedProd', 'insert-headers-and-footers' ); ?>
|
68 |
+
</a>
|
69 |
+
<?php esc_html_e( ' - Get the best WordPress Coming Soon Page plugin', 'insert-headers-and-footers' ); ?>
|
70 |
+
</p>
|
71 |
</div>
|
72 |
</div>
|