Header and Footer Scripts - Version 1.3.2

Version Description

  • Fixed https issue
Download this release

Release Info

Developer BlogSynthesis
Plugin Icon 128x128 Header and Footer Scripts
Version 1.3.2
Comparing to
See all releases

Version 1.3.2

images/blogsynthesis-100px.png ADDED
Binary file
images/email-16px.png ADDED
Binary file
images/paypal-donate.gif ADDED
Binary file
meta.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <div class="shfs_meta_control">
2
+
3
+ <p>
4
+ <textarea name="_inpost_head_script[synth_header_script]" rows="5" style="width:98%;"><?php if(!empty($meta['synth_header_script'])) echo $meta['synth_header_script']; ?></textarea>
5
+ </p>
6
+
7
+ <p>Add some code to <code>&lt;head&gt;</code>.</p>
8
+ </div>
readme.txt ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Header and Footer Scripts ===
2
+
3
+ Contributors: BlogSynthesis, anand_kumar
4
+ Tags: head, header, footer, scripts, post, admin
5
+ Requires at least: 3.4.1
6
+ Tested up to: 4.1
7
+ Stable tag: 1.3.2
8
+ License: GPLv2 or later
9
+ Donate link: http://www.blogsynthesis.com/#donate
10
+
11
+ Header and Footer Scripts plugin enables you to add scripts to WordPress header and footer.
12
+
13
+ == Description ==
14
+
15
+ Many WordPress Themes do not have any options to insert header and footer scripts in your site `<head>` or `<footer>`. It helps you to keep yourself from theme lock. But, sometimes it also causes some pain for many. like where should I insert Google Analytics code (or any other web-analytics codes). This plugin is one stop and lightweight solution for that. With this "Header and Footer Script" plugin will be able to inject HTML tags, JS and CSS codes to `<head>` and `<footer>` easily.
16
+
17
+ =Benefits of the plugin:=
18
+ * You will be able to [insert Google Analytics][1] or other Web-analytics code, meta-informations, CSS and JS codes to `<head>`
19
+ * You will be able to insert html and/or JavaScript codes to footer of your site. Good place for [Clicky Web Analytics][2], Twitter, Facebook or any other social media script.
20
+ * Easily insert codes to single post and page headers, in addition to default codes.
21
+
22
+ Please note, Not all themes need this plugin and Not all themes supports this plugin. Check `wp_head` and `wp_footer` if this plugin do not works for you. **[more information here][3]**
23
+
24
+ = Important Links =
25
+ * **[Latest FAQs and Help Article][4]**
26
+ * **[Support][5]**
27
+ * **[Donate][6]**
28
+
29
+ PS: For any troubleshooting ask your question in the [BlogSynthesis Forums][7]. I will not be able to provide regular support here.
30
+
31
+ [1]: http://www.blogsynthesis.com/google-analytics-to-wordpress/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs
32
+ [2]: http://bit.ly/ClickyWebAnalytics
33
+ [3]: http://www.blogsynthesis.com/plugins/header-and-footer-scripts/#FAQs
34
+ [4]: http://www.blogsynthesis.com/plugins/header-and-footer-scripts/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs
35
+ [5]: http://my.blogsynthesis.com/forums/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs
36
+ [6]: http://www.blogsynthesis.com/donate/
37
+ [7]: http://my.blogsynthesis.com/forums/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs
38
+
39
+ == Installation ==
40
+
41
+ Upload the plugin to `/wp-content/plugins` and activate. OR Search "Header and Footer Scripts" from `WP Dashbard --> Plugins --> Add New` then hit Install
42
+
43
+ == Screenshots ==
44
+ 1. Access this page from `Dashboard --> Settings --> Header and Footer Scripts`
45
+ 2. This box will appear below somewhere below on compose window on posts and pages.
46
+
47
+ == Frequently Asked Questions ==
48
+
49
+ **Q. I need plugin support. Where should I ask questions?**
50
+
51
+ A. You may ask support related questions at [BlogSynthesis Forums](http://my.blogsynthesis.com/forums/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs). Meanwhile, you should take a look on [this FAQ](http://www.blogsynthesis.com/plugins/header-and-footer-scripts/#utm_source=wporg&utm_medium=wppluginpage&utm_campaign=wpshfs) This page will have most latest FAQs (that depends upon what user asks.) Read that article before asking any questions. It may solve your questions and save time.
52
+
53
+ **How do I disable the site-wide header and footer injection or the post specific header injection?**
54
+
55
+ A. To keep this plugin simple we have not added any such options. You may try another plugin for more or less functionality.
56
+
57
+ **Q: I need more functionality. What should I do?**
58
+
59
+ A. If you want more functionality then check [Enhanced Header/Footer Scripts](http://bit.ly/wp-ehfi).
60
+
61
+ **Q: I need less functionality. What should I do?**
62
+
63
+ A. If you are looking for less functionality then check [Insert Header and Footers](http://bit.ly/wpb-ihf) plugin.
64
+
65
+ **Q: Is there any paid version of the plugin available?**
66
+
67
+ A. No, There is no paid version of this plugin is available.
68
+
69
+ == Changelog ==
70
+
71
+ = 1.3.2 =
72
+ * Fixed https issue
73
+
74
+ = 1.1.0 =
75
+ * Made for official WordPress Repo.
76
+ * Added Single post Header script metabox
77
+ * Minor Bug Fixes
78
+
79
+ = 1.0.0 =
80
+ * Initial Public Release
81
+
82
+ == Upgrade Notice ==
83
+ Upgrade for more functionality and bug fixes.
shfs.php ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Header and Footer Scripts
4
+ Plugin URI: http://www.blogsynthesis.com/plugins/header-and-footer-scripts/
5
+ Description: Allows you to insert code or text in the header or footer of your WordPress blog
6
+ Version: 1.3.2
7
+ Author: Anand Kumar
8
+ Author URI: http://www.blogsynthesis.com
9
+ License: GPLv2 or later
10
+ */
11
+
12
+ /* Copyright 2014 Anand Kumar (email : anand@anandkumar.net)
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
16
+ published by the Free Software Foundation.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
+
27
+ Credits: WPBeginner (http://bit.ly/wpb-ihf) and Farinspace (http://bit.ly/1m9NzM9)
28
+ */
29
+
30
+ define('SHFS_PLUGIN_DIR',str_replace('\\','/',dirname(__FILE__)));
31
+
32
+ if ( !class_exists( 'HeaderAndFooterScripts' ) ) {
33
+
34
+ class HeaderAndFooterScripts {
35
+
36
+ function HeaderAndFooterScripts() {
37
+
38
+ add_action( 'init', array( &$this, 'init' ) );
39
+ add_action( 'admin_init', array( &$this, 'admin_init' ) );
40
+ add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
41
+ add_action( 'wp_head', array( &$this, 'wp_head' ) );
42
+ add_action( 'wp_footer', array( &$this, 'wp_footer' ) );
43
+
44
+ }
45
+
46
+
47
+ function init() {
48
+ load_plugin_textdomain( 'insert-headers-and-footers', false, dirname( plugin_basename ( __FILE__ ) ).'/lang' );
49
+ }
50
+
51
+ function admin_init() {
52
+ register_setting( 'insert-headers-and-footers', 'shfs_insert_header', 'trim' );
53
+ register_setting( 'insert-headers-and-footers', 'shfs_insert_footer', 'trim' );
54
+
55
+ foreach (array('post','page') as $type)
56
+ {
57
+ add_meta_box('shfs_all_post_meta', 'Insert Script to &lt;head&gt;', 'shfs_meta_setup', $type, 'normal', 'high');
58
+ }
59
+
60
+ add_action('save_post','shfs_post_meta_save');
61
+ }
62
+
63
+ function admin_menu() {
64
+ $page = add_submenu_page( 'options-general.php', 'Header and Footer Scripts', 'Header and Footer Scripts', 'manage_options', __FILE__, array( &$this, 'shfs_options_panel' ) );
65
+ }
66
+
67
+ function wp_head() {
68
+ $meta = get_option( 'shfs_insert_header', '' );
69
+ if ( $meta != '' ) {
70
+ echo $meta, "\n";
71
+ }
72
+
73
+ $shfs_post_meta = get_post_meta( get_the_ID(), '_inpost_head_script' , TRUE );
74
+ if ( $shfs_post_meta != '' ) {
75
+ echo $shfs_post_meta['synth_header_script'], "\n";
76
+ }
77
+
78
+ }
79
+
80
+ function wp_footer() {
81
+ if ( !is_admin() && !is_feed() && !is_robots() && !is_trackback() ) {
82
+ $text = get_option( 'shfs_insert_footer', '' );
83
+ $text = convert_smilies( $text );
84
+ $text = do_shortcode( $text );
85
+
86
+ if ( $text != '' ) {
87
+ echo $text, "\n";
88
+ }
89
+ }
90
+ }
91
+
92
+
93
+ function fetch_rss_items( $num, $feed ) {
94
+ include_once( ABSPATH . WPINC . '/feed.php' );
95
+ $rss = fetch_feed( $feed );
96
+
97
+ // Bail if feed doesn't work
98
+ if ( !$rss || is_wp_error( $rss ) )
99
+ return false;
100
+
101
+ $rss_items = $rss->get_items( 0, $rss->get_item_quantity( $num ) );
102
+
103
+ // If the feed was erroneous
104
+ if ( !$rss_items ) {
105
+ $md5 = md5( $feed );
106
+ delete_transient( 'feed_' . $md5 );
107
+ delete_transient( 'feed_mod_' . $md5 );
108
+ $rss = fetch_feed( $feed );
109
+ $rss_items = $rss->get_items( 0, $rss->get_item_quantity( $num ) );
110
+ }
111
+
112
+ return $rss_items;
113
+ }
114
+
115
+
116
+ function shfs_options_panel() { ?>
117
+ <div id="fb-root"></div>
118
+ <div id="shfs-wrap">
119
+ <div class="wrap">
120
+ <?php screen_icon(); ?>
121
+ <h2>Header and Footer Scripts - Options</h2>
122
+ <hr />
123
+ <div class="shfs-wrap" style="width: auto;float: left;margin-right: 2rem;">
124
+
125
+ <div class="shfs-follow">
126
+ <strong style="line-height:3;">Follow:</strong>&nbsp; &nbsp; &nbsp;
127
+ <!-- Place this tag where you want the widget to render. -->
128
+ <div class="g-follow" data-annotation="none" data-height="20" data-href="//plus.google.com/106432349913858405478" data-rel="author"></div>
129
+
130
+ <div class="fb-like" data-href="https://www.facebook.com/BlogSynthesis" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
131
+ </div><hr />
132
+
133
+ <form name="dofollow" action="options.php" method="post">
134
+
135
+ <?php settings_fields( 'insert-headers-and-footers' ); ?>
136
+
137
+ <h3 class="shfs-labels" for="shfs_insert_header">Scripts in header:</h3>
138
+ <textarea rows="5" cols="57" id="insert_header" name="shfs_insert_header"><?php echo esc_html( get_option( 'shfs_insert_header' ) ); ?></textarea><br />
139
+ These scripts will be printed to the <code>&lt;head&gt;</code> section.
140
+
141
+ <h3 class="shfs-labels footerlabel" for="shfs_insert_footer">Scripts in footer:</h3>
142
+ <textarea rows="5" cols="57" id="shfs_insert_footer" name="shfs_insert_footer"><?php echo esc_html( get_option( 'shfs_insert_footer' ) ); ?></textarea><br />
143
+ These scripts will be printed to the <code>&lt;footer&gt;</code> section.
144
+
145
+ <p class="submit">
146
+ <input class="button button-primary" type="submit" name="Submit" value="Save settings" />
147
+ </p>
148
+
149
+ </form>
150
+ </div>
151
+
152
+
153
+ <div class="shfs-sidebar" style="max-width: 270px;float: left;">
154
+ <div class="shfs-improve-site" style="padding: 1rem; background: rgba(0, 0, 0, .02);">
155
+ <h2>Improve Your Site!</h2>
156
+ <p>Want to take your site to the next level? Look behind the scenes of BlogSynthesis to see what you can do!</p>
157
+ <p><a href="http://www.blogsynthesis.com/go/shfs-plugin/" class="button" target="_blank">BlogSynthesis's Blueprint &raquo;</a></p>
158
+ </div>
159
+ <div class="shfs-support" style="padding: 1rem; background: rgba(0, 0, 0, .02);">
160
+ <h2>Need Support?</h2>
161
+ <p>For any help visit our Support Forums</p>
162
+ <p><strong><a href="http://my.blogsynthesis.com/forums/" target="_blank">Support Forums</a></strong></p>
163
+ </div>
164
+ <div class="shfs-donate" style="padding: 1rem; background: rgba(0, 0, 0, .02);">
165
+ <h3>Contribute or Donate!</h3>
166
+ <p>Want to help make this plugin even better? All donations are used to improve this plugin, so donate $10, $20 or $50 now!</p>
167
+ <p><a href="http://www.blogsynthesis.com/go/donate" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>images/paypal-donate.gif" alt="Subscribe to our Blog" style="margin: 0 5px 0 0; vertical-align: top; line-height: 18px;"/> Donate!</a></p>
168
+ </div>
169
+ <div class="shfs-wpb-recent" style="padding: 1rem; background: rgba(0, 0, 0, .02);">
170
+ <h2>Latest From BlogSynthesis</h2>
171
+ <?php
172
+ $rss_items = $this->fetch_rss_items( 3, 'http://feeds.feedburner.com/blogsynthesis' );
173
+ $content = '<ul>';
174
+ if ( !$rss_items ) {
175
+ $content .= '<li class="shfs-list">No news items, feed might be broken...</li>';
176
+ } else {
177
+ foreach ( $rss_items as $item ) {
178
+ $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), null, 'display' ) );
179
+ $content .= '<li class="shfs-list">';
180
+ $content .= '<a href="' . $url . '#utm_source=wpadmin&utm_medium=sidebarwidget&utm_term=newsitem&utm_campaign=shfs" target="_blank">' . esc_html( $item->get_title() ) . '</a> ';
181
+ $content .= '</li>';
182
+ }}
183
+ $content .= '<li class="facebook"><a href="https://www.facebook.com/blogsynthesis" target="_blank">Like BlogSynthesis on Facebook</a></li>';
184
+ $content .= '<li class="twitter"><a href="http://twitter.com/blogsynthesis"target="_blank">Follow BlogSynthesis on Twitter</a></li>';
185
+ $content .= '<li class="googleplus"><a href="https://plus.google.com/+BlogSynthesis/posts" target="_blank">Circle BlogSynthesis on Google+</a></li>';
186
+ $content .= '<li class="email"><a href="http://www.blogsynthesis.com/newsletter/" target="_blank">Subscribe by email</a></li>';
187
+ $content .= '</ul>';
188
+ echo $content;
189
+ ?>
190
+ </div>
191
+ </div>
192
+
193
+ </div>
194
+ </div>
195
+
196
+ <!-- Place this tag after the last widget tag. -->
197
+ <script type="text/javascript">
198
+ (function() {
199
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
200
+ po.src = 'https://apis.google.com/js/platform.js';
201
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
202
+ })();
203
+ </script>
204
+
205
+
206
+ <script>(function(d, s, id) {
207
+ var js, fjs = d.getElementsByTagName(s)[0];
208
+ if (d.getElementById(id)) return;
209
+ js = d.createElement(s); js.id = id;
210
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=383137358414970";
211
+ fjs.parentNode.insertBefore(js, fjs);
212
+ }(document, 'script', 'facebook-jssdk'));</script>
213
+
214
+ <?php
215
+ }
216
+ }
217
+
218
+ function shfs_meta_setup()
219
+ {
220
+ global $post;
221
+
222
+ // using an underscore, prevents the meta variable
223
+ // from showing up in the custom fields section
224
+ $meta = get_post_meta($post->ID,'_inpost_head_script',TRUE);
225
+
226
+ // instead of writing HTML here, lets do an include
227
+ include(SHFS_PLUGIN_DIR . '/meta.php');
228
+
229
+ // create a custom nonce for submit verification later
230
+ echo '<input type="hidden" name="shfs_post_meta_noncename" value="' . wp_create_nonce(__FILE__) . '" />';
231
+ }
232
+
233
+ function shfs_post_meta_save($post_id)
234
+ {
235
+ // authentication checks
236
+
237
+ // make sure data came from our meta box
238
+ if (!wp_verify_nonce($_POST['shfs_post_meta_noncename'],__FILE__)) return $post_id;
239
+
240
+ // check user permissions
241
+ if ($_POST['post_type'] == 'page')
242
+ {
243
+ if (!current_user_can('edit_page', $post_id)) return $post_id;
244
+ }
245
+ else
246
+ {
247
+ if (!current_user_can('edit_post', $post_id)) return $post_id;
248
+ }
249
+
250
+ $current_data = get_post_meta($post_id, '_inpost_head_script', TRUE);
251
+
252
+ $new_data = $_POST['_inpost_head_script'];
253
+
254
+ shfs_post_meta_clean($new_data);
255
+
256
+ if ($current_data)
257
+ {
258
+ if (is_null($new_data)) delete_post_meta($post_id,'_inpost_head_script');
259
+ else update_post_meta($post_id,'_inpost_head_script',$new_data);
260
+ }
261
+ elseif (!is_null($new_data))
262
+ {
263
+ add_post_meta($post_id,'_inpost_head_script',$new_data,TRUE);
264
+ }
265
+
266
+ return $post_id;
267
+ }
268
+
269
+ function shfs_post_meta_clean(&$arr)
270
+ {
271
+ if (is_array($arr))
272
+ {
273
+ foreach ($arr as $i => $v)
274
+ {
275
+ if (is_array($arr[$i]))
276
+ {
277
+ shfs_post_meta_clean($arr[$i]);
278
+
279
+ if (!count($arr[$i]))
280
+ {
281
+ unset($arr[$i]);
282
+ }
283
+ }
284
+ else
285
+ {
286
+ if (trim($arr[$i]) == '')
287
+ {
288
+ unset($arr[$i]);
289
+ }
290
+ }
291
+ }
292
+
293
+ if (!count($arr))
294
+ {
295
+ $arr = NULL;
296
+ }
297
+ }
298
+ }
299
+
300
+
301
+ add_action('wp_dashboard_setup', 'shfs_dashboard_widgets');
302
+
303
+ function shfs_dashboard_widgets() {
304
+ global $wp_meta_boxes;
305
+ wp_add_dashboard_widget('blogsynthesisshfswidget', 'Latest from BlogSynthesis', 'shfs_widget');
306
+ }
307
+
308
+ function shfs_widget() {
309
+ include_once( ABSPATH . WPINC . '/feed.php' );
310
+
311
+ $rss = fetch_feed( 'http://feeds2.feedburner.com/blogsynthesis' );
312
+
313
+ if ( ! is_wp_error( $rss ) ) :
314
+
315
+ // Figure out how many total items there are, but limit it to 10.
316
+ $maxitems = $rss->get_item_quantity( 10 );
317
+
318
+ // Build an array of all the items, starting with element 0 (first element).
319
+ $rss_items = $rss->get_items( 0, $maxitems );
320
+
321
+ endif;
322
+
323
+ { ?>
324
+ <div class="rss-widget">
325
+ <a href="http://www.blogsynthesis.com/#utm_source=wpadmin&utm_medium=dashboardwidget&utm_term=newsitemlogo&utm_campaign=shfs" title="BlogSynthesis - For Bloggers" target="_blank"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>images/blogsynthesis-100px.png" class="alignright" alt="BlogSynthesis"/></a>
326
+ <ul>
327
+ <?php if ( $maxitems == 0 ) : ?>
328
+ <li><?php _e( 'No items', 'shfs-text-domain' ); ?></li>
329
+ <?php else : ?>
330
+ <?php // Loop through each feed item and display each item as a hyperlink. ?>
331
+ <?php foreach ( $rss_items as $item ) : ?>
332
+ <li>
333
+ <a href="<?php echo esc_url( $item->get_permalink() ); ?>#utm_source=wpadmin&utm_medium=dashboardwidget&utm_term=newsitem&utm_campaign=shfs"
334
+ title="<?php printf( __( 'Posted %s', 'shfs-text-domain' ), $item->get_date('j F Y | g:i a') ); ?>" target="_blank">
335
+ <?php echo esc_html( $item->get_title() ); ?>
336
+ </a>
337
+ </li>
338
+ <?php endforeach; ?>
339
+ <?php endif; ?>
340
+ </ul>
341
+ <div style="border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">
342
+ <span class="addthis_toolbox addthis_default_style" style="float:left;">
343
+ <a class="addthis_button_facebook_follow" addthis:userid="blogsynthesis"></a>
344
+ <a class="addthis_button_twitter_follow" addthis:userid="blogsynthesis"></a>
345
+ <a class="addthis_button_google_follow" addthis:userid="+BlogSynthesis"></a>
346
+ <a class="addthis_button_rss_follow" addthis:userid="http://feeds2.feedburner.com/blogsynthesis"></a>
347
+ </span>
348
+ &nbsp; &nbsp; &nbsp;
349
+ <a href="http://www.blogsynthesis.com/newsletter/"><img src="<?php echo plugin_dir_url( __FILE__ ); ?>images/email-16px.png" alt="Subscribe via Email"/> Subscribe by email</a>
350
+ &nbsp; &nbsp; &nbsp;
351
+ <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-525ab1d176544441"></script>
352
+ </div>
353
+ </div>
354
+ <?php }
355
+
356
+ }
357
+
358
+ $shfs_header_and_footer_scripts = new HeaderAndFooterScripts();
359
+
360
+ }
361
+
362
+