Footer Putter - Version 1.7.1

Version Description

Fix bug when loaded under AJAX

Download this release

Release Info

Developer powerblogservice
Plugin Icon 128x128 Footer Putter
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

Files changed (3) hide show
  1. classes/plugin.php +15 -15
  2. main.php +2 -3
  3. readme.txt +5 -4
classes/plugin.php CHANGED
@@ -1,24 +1,24 @@
1
<?php
2
- $dir = dirname(__FILE__) . '/';
3
- require_once($dir . 'footer-credits.php');
4
- require_once($dir . 'footer-trademarks.php');
5
- if (is_admin()) {
6
- require_once($dir . 'tooltip.php');
7
- require_once($dir . 'admin.php');
8
- require_once($dir . 'footer-credits-admin.php');
9
- require_once($dir . 'footer-trademarks-admin.php');
10
- }
11
-
12
class FooterCreditsPlugin {
13
14
public static function init() {
15
FooterCredits::init();
16
- if (is_admin()) {
17
- FooterPutterAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
18
- FooterCreditsAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
19
- FooterTrademarksAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
20
- }
21
}
22
23
}
24
?>
1
<?php
2
class FooterCreditsPlugin {
3
4
public static function init() {
5
+ $dir = dirname(__FILE__) . '/';
6
+ require_once($dir . 'footer-credits.php');
7
+ require_once($dir . 'footer-trademarks.php');
8
FooterCredits::init();
9
}
10
11
+ public static function admin_init() {
12
+ $dir = dirname(__FILE__) . '/';
13
+ require_once($dir . 'tooltip.php');
14
+ require_once($dir . 'admin.php');
15
+ require_once($dir . 'footer-credits-admin.php');
16
+ require_once($dir . 'footer-trademarks-admin.php');
17
+ FooterPutterAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
18
+ FooterCreditsAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
19
+ FooterTrademarksAdmin::init(FOOTER_PUTTER_PLUGIN_NAME);
20
+ }
21
}
22
+ add_action ('init', array('FooterCreditsPlugin', 'init'), 0);
23
+ if (is_admin()) add_action ('init', array('FooterCreditsPlugin', 'admin_init'), 0);
24
?>
main.php CHANGED
@@ -3,16 +3,15 @@
3
* Plugin Name: Footer Putter
4
* Plugin URI: http://www.diywebmastery.com/plugins/footer-putter/
5
* Description: Put a footer on your site that boosts your credibility with both search engines and human visitors.
6
- * Version: 1.7
7
* Author: Russell Jamieson
8
* Author URI: http://www.diywebmastery.com/about/
9
* License: GPLv2+
10
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
*/
12
- define('FOOTER_PUTTER_VERSION','1.7');
13
define('FOOTER_PUTTER_FRIENDLY_NAME', 'Footer Putter') ;
14
define('FOOTER_PUTTER_PLUGIN_NAME', plugin_basename(dirname(__FILE__))) ;
15
define('FOOTER_PUTTER_HOME_URL','http://www.diywebmastery.com/plugins/footer-putter/');
16
require_once(dirname(__FILE__) . '/classes/plugin.php');
17
- add_action ('init', array('FooterCreditsPlugin', 'init'),0);
18
?>
3
* Plugin Name: Footer Putter
4
* Plugin URI: http://www.diywebmastery.com/plugins/footer-putter/
5
* Description: Put a footer on your site that boosts your credibility with both search engines and human visitors.
6
+ * Version: 1.7.1
7
* Author: Russell Jamieson
8
* Author URI: http://www.diywebmastery.com/about/
9
* License: GPLv2+
10
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
*/
12
+ define('FOOTER_PUTTER_VERSION','1.7.1');
13
define('FOOTER_PUTTER_FRIENDLY_NAME', 'Footer Putter') ;
14
define('FOOTER_PUTTER_PLUGIN_NAME', plugin_basename(dirname(__FILE__))) ;
15
define('FOOTER_PUTTER_HOME_URL','http://www.diywebmastery.com/plugins/footer-putter/');
16
require_once(dirname(__FILE__) . '/classes/plugin.php');
17
?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: powerblogservice, diywebmastery
3
Donate link: http://www.diywebmastery.com/donate/
4
Tags: footer, copyright, trademark
5
Requires at least: 3.0
6
- Tested up to: 3.8
7
- Stable tag: 1.7
8
License: GPLv2+
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -46,6 +46,7 @@ Put a footer on your site that boosts your credibility with both search engines
46
47
== Changelog ==
48
49
= 1.7 = Made email address a mailto link. Added pre-defined classes, tiny and small, to make it easy to use a smaller font size in the footer on pages such as landing pages. Added widget visibility setting to make it easy to either hide or show the footer widgets on landing pages. Replaced the plugin icon image in admin menu with a dashicons font character. Automatically uses HTML5 if theme supports HTML5 - no manual setting required.
50
= 1.6 = Add option to include email address in the copyright footer widget, remove the automatic adding of rel=nofollow in footer links, and add optional sub-footer sections to the privacy and terms pages
51
= 1.5 = Use Javascript for Return To Top link to make it work on HTML5 sites, and strengthen CSS to ensure footer copyright and trademark widgets are full width
@@ -58,8 +59,8 @@ Put a footer on your site that boosts your credibility with both search engines
58
59
== Upgrade Notice ==
60
61
- = 1.7 =
62
- * Optional - Additional predefined footer classes and mailto link.
63
64
== Links ==
65
3
Donate link: http://www.diywebmastery.com/donate/
4
Tags: footer, copyright, trademark
5
Requires at least: 3.0
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.7.1
8
License: GPLv2+
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
46
47
== Changelog ==
48
49
+ = 1.7.1 = Fix bug when loaded under AJAX
50
= 1.7 = Made email address a mailto link. Added pre-defined classes, tiny and small, to make it easy to use a smaller font size in the footer on pages such as landing pages. Added widget visibility setting to make it easy to either hide or show the footer widgets on landing pages. Replaced the plugin icon image in admin menu with a dashicons font character. Automatically uses HTML5 if theme supports HTML5 - no manual setting required.
51
= 1.6 = Add option to include email address in the copyright footer widget, remove the automatic adding of rel=nofollow in footer links, and add optional sub-footer sections to the privacy and terms pages
52
= 1.5 = Use Javascript for Return To Top link to make it work on HTML5 sites, and strengthen CSS to ensure footer copyright and trademark widgets are full width
59
60
== Upgrade Notice ==
61
62
+ = 1.7.1 =
63
+ * Mandatory - Fix bug when loaded under AJAX.
64
65
== Links ==
66