Uber Login Logo - Version 0.4

Version Description

Download this release

Release Info

Developer uberweb
Plugin Icon wp plugin Uber Login Logo
Version 0.4
Comparing to
See all releases

Code changes from version 0.3 to 0.4

Files changed (2) hide show
  1. readme.txt +5 -2
  2. uber-login-logo.php +7 -7
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: uberweb
3
  Tags: login, logo, login logo, admin, customisation, customization, custom login, media uploader, AJAX, wp-login
4
  Requires at least: 3.0
5
- Tested up to: 3.3.1
6
- Stable tag: 0.3
7
 
8
  A simple, lightweight WordPress plugin to change your login logo.
9
 
@@ -45,3 +45,6 @@ I'd like to keep this plugin simple, but if you think you have a good idea leave
45
 
46
  * Updated the link to the home URL for Jamie.
47
 
 
 
 
2
  Contributors: uberweb
3
  Tags: login, logo, login logo, admin, customisation, customization, custom login, media uploader, AJAX, wp-login
4
  Requires at least: 3.0
5
+ Tested up to: 3.4
6
+ Stable tag: 0.4
7
 
8
  A simple, lightweight WordPress plugin to change your login logo.
9
 
45
 
46
  * Updated the link to the home URL for Jamie.
47
 
48
+ = Version 0.4 =
49
+
50
+ * Updated CSS for better compatibility with WordPress 3.4.
uber-login-logo.php CHANGED
@@ -6,7 +6,7 @@
6
  * @link http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
7
  *
8
  * @author Alex Rogers
9
- * @version 0.3
10
  * @package Uber_Login_Logo
11
  */
12
 
@@ -14,7 +14,7 @@
14
  Plugin Name: Uber Login Logo
15
  Plugin URI: http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
16
  Description: Change login logo.
17
- Version: 0.3
18
  Author: UberWeb
19
  Author URI: http://www.uberweb.com.au/
20
  License: GPLv2 or later
@@ -54,7 +54,7 @@ class UberLoginLogo
54
  /**
55
  * @const VERSION The current plugin version
56
  */
57
- const VERSION = '0.3';
58
 
59
  /**
60
  * @const UBERURL Link to uberweb site
@@ -87,7 +87,7 @@ class UberLoginLogo
87
  {
88
  wp_enqueue_script('media-upload');
89
  wp_enqueue_script('thickbox');
90
- wp_register_script('uber-login-logo', self::getPluginDir() . '/uber-login-logo-min.js', array('jquery','media-upload','thickbox'), '0.1');
91
  wp_enqueue_script('uber-login-logo');
92
  }
93
 
@@ -97,7 +97,7 @@ class UberLoginLogo
97
  public static function myAdminStyles()
98
  {
99
  wp_enqueue_style('thickbox');
100
- wp_register_style('uber-login-logo', self::getPluginDir() . '/uber-login-logo-min.css', array(), '0.1');
101
  wp_enqueue_style('uber-login-logo');
102
  }
103
 
@@ -182,8 +182,8 @@ class UberLoginLogo
182
  $img_data = get_option('uber_login_logo');
183
  if ($img_data) {
184
  $style = '<style type="text/css">';
185
- $style .= '#login h1 a { background: url(' . $img_data['src'] . ') no-repeat center top; height: ' . $img_data['height'] . 'px;}';
186
- $style .= '</style>';
187
  $style .= "\r\n" . '<!-- Uber Login Logo ' . self::VERSION . ' ' . self::UBERURL . ' -->' . "\r\n";
188
  echo $style;
189
  }
6
  * @link http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
7
  *
8
  * @author Alex Rogers
9
+ * @version 0.4
10
  * @package Uber_Login_Logo
11
  */
12
 
14
  Plugin Name: Uber Login Logo
15
  Plugin URI: http://www.uberweb.com.au/uber-login-logo-wordpress-plugin/
16
  Description: Change login logo.
17
+ Version: 0.4
18
  Author: UberWeb
19
  Author URI: http://www.uberweb.com.au/
20
  License: GPLv2 or later
54
  /**
55
  * @const VERSION The current plugin version
56
  */
57
+ const VERSION = '0.4';
58
 
59
  /**
60
  * @const UBERURL Link to uberweb site
87
  {
88
  wp_enqueue_script('media-upload');
89
  wp_enqueue_script('thickbox');
90
+ wp_register_script('uber-login-logo', self::getPluginDir() . '/uber-login-logo-min.js', array('jquery','media-upload','thickbox'), self::VERSION);
91
  wp_enqueue_script('uber-login-logo');
92
  }
93
 
97
  public static function myAdminStyles()
98
  {
99
  wp_enqueue_style('thickbox');
100
+ wp_register_style('uber-login-logo', self::getPluginDir() . '/uber-login-logo-min.css', array(), self::VERSION);
101
  wp_enqueue_style('uber-login-logo');
102
  }
103
 
182
  $img_data = get_option('uber_login_logo');
183
  if ($img_data) {
184
  $style = '<style type="text/css">';
185
+ $style .= sprintf('.login h1 a { background: transparent url("%s") no-repeat center top; background-size:%spx %spx; height: %spx;}', $img_data['src'], $img_data['width'], $img_data['height'], $img_data['height']);
186
+ $style .= '</style>';
187
  $style .= "\r\n" . '<!-- Uber Login Logo ' . self::VERSION . ' ' . self::UBERURL . ' -->' . "\r\n";
188
  echo $style;
189
  }