Version Description
- Code cleanups
Download this release
Release Info
Developer | deb255 |
Plugin | Insert Headers and Footers |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- ihaf.php +4 -5
- readme.txt +10 -5
- views/dashboard-notices.php +6 -6
ihaf.php
CHANGED
@@ -2,14 +2,14 @@
|
|
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 +38,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';
|
@@ -221,5 +221,4 @@ class InsertHeadersAndFooters {
|
|
221 |
}
|
222 |
}
|
223 |
|
224 |
-
$ihaf = new InsertHeadersAndFooters();
|
225 |
-
?>
|
2 |
/**
|
3 |
* Plugin Name: Insert Headers and Footers
|
4 |
* Plugin URI: http://www.wpbeginner.com/
|
5 |
+
* Version: 1.4.2
|
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 2016 WPBeginner
|
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 |
$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.2';
|
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';
|
221 |
}
|
222 |
}
|
223 |
|
224 |
+
$ihaf = new InsertHeadersAndFooters();
|
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Insert Headers and Footers ===
|
2 |
Contributors: WPbeginner, smub, deb255
|
3 |
-
Tags: code, content, css, 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: 4.
|
6 |
-
Stable tag:
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -13,7 +13,7 @@ This plugin allows you to add extra scripts to the header and footer of your blo
|
|
13 |
|
14 |
= Easily Insert Header and Footer Code =
|
15 |
|
16 |
-
Insert Headers and Footers is a simple plugin that lets you insert code like Google Analytics to your WordPress site header and footer. No need to edit your theme files!
|
17 |
|
18 |
The simple interface of the Insert Headers and Footers plugin gives you one place where you can insert scripts, rather than dealing with dozens of different plugins.
|
19 |
|
@@ -22,7 +22,9 @@ The simple interface of the Insert Headers and Footers plugin gives you one plac
|
|
22 |
* Quick to set up
|
23 |
* Simple to insert scripts
|
24 |
* Insert header code and/or footer code
|
25 |
-
* Add Google Analytics code to any theme
|
|
|
|
|
26 |
* Insert any code or script, including HTML and Javascript
|
27 |
|
28 |
= Credits =
|
@@ -77,6 +79,9 @@ Syed Balkhi
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= 1.4.1 =
|
81 |
* Fixes for users running PHP version less than 5.5
|
82 |
|
1 |
=== Insert Headers and Footers ===
|
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: 4.8
|
6 |
+
Stable tag: 1.4.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
13 |
|
14 |
= Easily Insert Header and Footer Code =
|
15 |
|
16 |
+
Insert Headers and Footers is a simple plugin that lets you insert code like Google Analytics, custom CSS, Facebook Pixel, and more to your WordPress site header and footer. No need to edit your theme files!
|
17 |
|
18 |
The simple interface of the Insert Headers and Footers plugin gives you one place where you can insert scripts, rather than dealing with dozens of different plugins.
|
19 |
|
22 |
* Quick to set up
|
23 |
* Simple to insert scripts
|
24 |
* Insert header code and/or footer code
|
25 |
+
* Add <strong>Google Analytics</strong> code to any theme
|
26 |
+
* Add <strong>custom CSS</strong> across themes
|
27 |
+
* Insert <strong>Facebook pixel code</strong>
|
28 |
* Insert any code or script, including HTML and Javascript
|
29 |
|
30 |
= Credits =
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 1.4.2 =
|
83 |
+
* Code cleanups
|
84 |
+
|
85 |
= 1.4.1 =
|
86 |
* Fixes for users running PHP version less than 5.5
|
87 |
|
views/dashboard-notices.php
CHANGED
@@ -3,18 +3,18 @@
|
|
3 |
* Notices template
|
4 |
*/
|
5 |
?>
|
6 |
-
<div class="notice notice-success is-dismissible
|
7 |
-
<p>Thank you for installing
|
8 |
</div>
|
9 |
<script type="text/javascript">
|
10 |
jQuery(document).ready( function($) {
|
11 |
-
$(document).on( 'click', '
|
12 |
event.preventDefault();
|
13 |
$.post( ajaxurl, {
|
14 |
-
action: '
|
15 |
-
nonce: '
|
16 |
});
|
17 |
-
$('
|
18 |
});
|
19 |
});
|
20 |
</script>
|
3 |
* Notices template
|
4 |
*/
|
5 |
?>
|
6 |
+
<div class="notice notice-success is-dismissible <?php echo $this->plugin->name; ?>-notice-welcome">
|
7 |
+
<p>Thank you for installing <?php echo $this->plugin->displayName; ?>! <a href="<?php echo $setting_page; ?>">Click here</a> to configure the plugin.</p>
|
8 |
</div>
|
9 |
<script type="text/javascript">
|
10 |
jQuery(document).ready( function($) {
|
11 |
+
$(document).on( 'click', '.<?php echo $this->plugin->name; ?>-notice-welcome button.notice-dismiss', function( event ) {
|
12 |
event.preventDefault();
|
13 |
$.post( ajaxurl, {
|
14 |
+
action: '<?php echo $this->plugin->name . '_dismiss_dashboard_notices'; ?>',
|
15 |
+
nonce: '<?php echo wp_create_nonce( $this->plugin->name . '-nonce' ); ?>'
|
16 |
});
|
17 |
+
$('.<?php echo $this->plugin->name; ?>-notice-welcome').remove();
|
18 |
});
|
19 |
});
|
20 |
</script>
|