Footer Putter - Version 1.4.1

Version Description

Reinstate support for PHP 5.2

Download this release

Release Info

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

Code changes from version 1.4 to 1.4.1

classes/admin.php CHANGED
@@ -7,7 +7,6 @@ class FooterPutterAdmin {
7
  private static $path = FOOTER_PUTTER_PATH;
8
  private static $slug;
9
  private static $screen_id;
10
- private static $initialized = false;
11
 
12
  private static function get_slug(){
13
  return self::$slug;
@@ -18,22 +17,10 @@ class FooterPutterAdmin {
18
  }
19
 
20
  static function init($root) {
21
- if (self::$initialized) return true;
22
  self::$slug = $root;
23
- self::$initialized = true;
24
  add_filter('plugin_action_links',array(self::CLASSNAME, 'plugin_action_links'), 10, 2 );
25
- add_filter('screen_layout_columns', array(self::CLASSNAME, 'screen_layout_columns'), 10, 2);
26
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
27
- add_filter('pre_option_link_manager_enabled', '__return_true' );
28
- }
29
-
30
- static function screen_layout_columns($columns, $screen) {
31
- if (!defined( 'WP_NETWORK_ADMIN' ) && !defined( 'WP_USER_ADMIN' )) {
32
- if ($screen == self::get_screen_id()) {
33
- $columns[self::get_screen_id()] = 2;
34
- }
35
- }
36
- return $columns;
37
  }
38
 
39
  static function plugin_action_links( $links, $file ) {
7
  private static $path = FOOTER_PUTTER_PATH;
8
  private static $slug;
9
  private static $screen_id;
 
10
 
11
  private static function get_slug(){
12
  return self::$slug;
17
  }
18
 
19
  static function init($root) {
 
20
  self::$slug = $root;
21
+ add_filter('pre_option_link_manager_enabled', '__return_true' );
22
  add_filter('plugin_action_links',array(self::CLASSNAME, 'plugin_action_links'), 10, 2 );
 
23
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
  static function plugin_action_links( $links, $file ) {
classes/footer-credits-admin.php CHANGED
@@ -9,7 +9,6 @@ class FooterCreditsAdmin {
9
  private static $parenthook;
10
  private static $slug;
11
  private static $screen_id;
12
- private static $initialized = false;
13
  private static $keys = array('owner', 'site', 'address', 'country', 'telephone',
14
  'email', 'courts', 'updated', 'copyright_start_year', 'return_text', 'return_href', 'return_class',
15
  'footer_class','footer_hook','footer_remove','footer_filter_hook','enable_html5');
@@ -34,14 +33,10 @@ class FooterCreditsAdmin {
34
  private static $tooltips;
35
 
36
  public static function init($parent) {
37
- if (self::$initialized) return true;
38
- self::$initialized = true;
39
  self::$version = FooterCredits::VERSION;
40
  self::$parenthook = $parent;
41
  self::$slug = self::$parenthook . '-' . self::SLUG;
42
- add_filter('screen_layout_columns', array(self::CLASSNAME, 'screen_layout_columns'), 10, 2);
43
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
44
- self::$tooltips = new DIYTooltip(self::$tips);
45
  }
46
 
47
  private static function get_parenthook(){
@@ -74,15 +69,6 @@ class FooterCreditsAdmin {
74
  else
75
  return $show_screen;
76
  }
77
-
78
- public static function screen_layout_columns($columns, $screen) {
79
- if (!defined( 'WP_NETWORK_ADMIN' ) && !defined( 'WP_USER_ADMIN' )) {
80
- if ($screen == self::get_screen_id()) {
81
- $columns[self::get_screen_id()] = 2;
82
- }
83
- }
84
- return $columns;
85
- }
86
 
87
  public static function admin_menu() {
88
  self::$screen_id = add_submenu_page(self::get_parenthook(), __('Footer Credits'), __('Footer Credits'), 'manage_options',
@@ -104,6 +90,7 @@ class FooterCreditsAdmin {
104
  add_meta_box(self::CODE.'-advanced', __('Advanced',self::DOMAIN), array(self::CLASSNAME, 'advanced_panel'), self::get_screen_id(), 'normal', 'core', $callback_params);
105
  add_action('admin_enqueue_scripts', array(self::CLASSNAME, 'enqueue_styles'));
106
  add_action('admin_enqueue_scripts',array(self::CLASSNAME, 'enqueue_scripts'));
 
107
  }
108
 
109
  public static function enqueue_styles() {
9
  private static $parenthook;
10
  private static $slug;
11
  private static $screen_id;
 
12
  private static $keys = array('owner', 'site', 'address', 'country', 'telephone',
13
  'email', 'courts', 'updated', 'copyright_start_year', 'return_text', 'return_href', 'return_class',
14
  'footer_class','footer_hook','footer_remove','footer_filter_hook','enable_html5');
33
  private static $tooltips;
34
 
35
  public static function init($parent) {
 
 
36
  self::$version = FooterCredits::VERSION;
37
  self::$parenthook = $parent;
38
  self::$slug = self::$parenthook . '-' . self::SLUG;
 
39
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
 
40
  }
41
 
42
  private static function get_parenthook(){
69
  else
70
  return $show_screen;
71
  }
 
 
 
 
 
 
 
 
 
72
 
73
  public static function admin_menu() {
74
  self::$screen_id = add_submenu_page(self::get_parenthook(), __('Footer Credits'), __('Footer Credits'), 'manage_options',
90
  add_meta_box(self::CODE.'-advanced', __('Advanced',self::DOMAIN), array(self::CLASSNAME, 'advanced_panel'), self::get_screen_id(), 'normal', 'core', $callback_params);
91
  add_action('admin_enqueue_scripts', array(self::CLASSNAME, 'enqueue_styles'));
92
  add_action('admin_enqueue_scripts',array(self::CLASSNAME, 'enqueue_scripts'));
93
+ self::$tooltips = new DIYTooltip(self::$tips);
94
  }
95
 
96
  public static function enqueue_styles() {
classes/footer-trademarks-admin.php CHANGED
@@ -6,23 +6,19 @@ class FooterTrademarksAdmin {
6
  const SLUG = 'trademarks';
7
  const FIELDNAME = 'not_on_404';
8
 
9
- private static $initialized = false;
10
  private static $version;
11
  private static $parenthook;
12
  private static $slug;
13
  private static $screen_id;
14
 
15
  public static function init($parent) {
16
- if (self::$initialized) return true;
17
- self::$initialized = true;
18
  self::$version = FooterCredits::VERSION;
19
  self::$parenthook = $parent;
20
  self::$slug = self::$parenthook . '-' . self::SLUG;
21
  self::$screen_id = self::$parenthook.'_page_' . self::$slug;
22
- add_filter('screen_layout_columns', array(self::CLASSNAME, 'screen_layout_columns'), 10, 2);
23
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
24
  }
25
-
26
  private static function get_version(){
27
  return self::$version;
28
  }
@@ -45,15 +41,6 @@ class FooterTrademarksAdmin {
45
  else
46
  return $show_screen;
47
  }
48
-
49
- public static function screen_layout_columns($columns, $screen) {
50
- if (!defined( 'WP_NETWORK_ADMIN' ) && !defined( 'WP_USER_ADMIN' )) {
51
- if ($screen == self::get_screen_id()) {
52
- $columns[self::get_screen_id()] = 2;
53
- }
54
- }
55
- return $columns;
56
- }
57
 
58
  public static function admin_menu() {
59
  add_submenu_page(self::get_parenthook(), __('Trademarks'), __('Trademarks'), 'manage_options',
@@ -66,7 +53,7 @@ class FooterTrademarksAdmin {
66
  }
67
 
68
  public static function enqueue_styles() {
69
- wp_enqueue_style(self::CODE.'-admin', plugins_url('styles/admin.css', dirname(__FILE__)), array(),self::get_version());
70
  }
71
 
72
  public static function settings_panel() {
6
  const SLUG = 'trademarks';
7
  const FIELDNAME = 'not_on_404';
8
 
 
9
  private static $version;
10
  private static $parenthook;
11
  private static $slug;
12
  private static $screen_id;
13
 
14
  public static function init($parent) {
 
 
15
  self::$version = FooterCredits::VERSION;
16
  self::$parenthook = $parent;
17
  self::$slug = self::$parenthook . '-' . self::SLUG;
18
  self::$screen_id = self::$parenthook.'_page_' . self::$slug;
 
19
  add_action('admin_menu',array(self::CLASSNAME, 'admin_menu'));
20
  }
21
+
22
  private static function get_version(){
23
  return self::$version;
24
  }
41
  else
42
  return $show_screen;
43
  }
 
 
 
 
 
 
 
 
 
44
 
45
  public static function admin_menu() {
46
  add_submenu_page(self::get_parenthook(), __('Trademarks'), __('Trademarks'), 'manage_options',
53
  }
54
 
55
  public static function enqueue_styles() {
56
+ wp_enqueue_style(self::CODE.'-admin', plugins_url('styles/admin.css', dirname(__FILE__)), array(), self::get_version());
57
  }
58
 
59
  public static function settings_panel() {
main.php CHANGED
@@ -3,15 +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.4
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.4');
13
  define('FOOTER_PUTTER_FRIENDLY_NAME', 'Footer Putter') ;
14
- define('FOOTER_PUTTER_PLUGIN_NAME', plugin_basename(__DIR__)) ;
15
  define('FOOTER_PUTTER_HOME_URL','http://www.diywebmastery.com/plugins/footer-putter/');
16
  $dir = dirname(__FILE__) . '/classes/';
17
  require_once($dir . 'footer-credits.php');
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.4.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.4.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
  $dir = dirname(__FILE__) . '/classes/';
17
  require_once($dir . 'footer-credits.php');
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: powerblogservice, diywebmastery
3
  Donate link: http://www.diywebmastery.com/donate/
4
  Tags: footer, copyright, rel=nofollow
5
  Requires at least: 3.0
6
- Tested up to: 3.5.2
7
- Stable tag: 1.4
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -38,6 +38,7 @@ Put a footer on your site that boosts your credibility with both search engines
38
 
39
  == Changelog ==
40
 
 
41
  = 1.4 = Added support for HTML5 themes
42
  = 1.3 = Pre-configure according to the WordPress theme
43
  = 1.2 = Fix display of telephone number
@@ -46,8 +47,8 @@ Put a footer on your site that boosts your credibility with both search engines
46
 
47
  == Upgrade Notice ==
48
 
49
- = 1.4 =
50
- * Optional - Add HTML5 support.
51
 
52
  == Links ==
53
 
3
  Donate link: http://www.diywebmastery.com/donate/
4
  Tags: footer, copyright, rel=nofollow
5
  Requires at least: 3.0
6
+ Tested up to: 3.6
7
+ Stable tag: 1.4.1
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
38
 
39
  == Changelog ==
40
 
41
+ = 1.4.1 = Reinstate support for PHP 5.2
42
  = 1.4 = Added support for HTML5 themes
43
  = 1.3 = Pre-configure according to the WordPress theme
44
  = 1.2 = Fix display of telephone number
47
 
48
  == Upgrade Notice ==
49
 
50
+ = 1.4.1 =
51
+ * Optional - Reinstate support for PHP 5.2
52
 
53
  == Links ==
54