Changeset 603873
- Timestamp:
- 09/25/2012 10:06:26 PM (13 years ago)
- Location:
- wp-costum-login-logo/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-custom-login-logo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-costum-login-logo/trunk/readme.txt
r98435 r603873 3 3 Tags: login, admin, image, logo 4 4 Requires at least: 2.7 5 Tested up to: 2.76 Stable tag: 1. 05 Tested up to: 3.4.2 6 Stable tag: 1.1 7 7 8 8 This plugin changes the image in the top of login form. -
wp-costum-login-logo/trunk/wp-custom-login-logo.php
r98438 r603873 5 5 Description: Change the login screen logo. 6 6 Author: Antonio Campos 7 Version: 1. 07 Version: 1.1 8 8 Author URI: http://antoniocampos.no-ip.com 9 9 10 Copyright 20 08Antonio Campos (email : [email protected])10 Copyright 2012 Antonio Campos (email : [email protected]) 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 24 24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 25 */ 26 function wp_custom_login_css() { 27 $cssPath = get_bloginfo('url')."/wp-content/plugins/wp-costum-login-logo/wp-custom-login-logo.css"; 28 echo "<link rel=\"stylesheet\" href=\"" . $cssPath . "\" type=\"text/css\" />"; 26 function login_css() { 27 echo '<style type="text/css"> 28 #login h1 a { background-image: url('.get_bloginfo('url').'/wp-content/plugins/wp-costum-login-logo/wp-custom-login-logo.png) !important; } 29 </style>'; 29 30 } 31 add_action('login_head', 'login_css'); 30 32 31 function change_wp_login_url() {32 echo bloginfo('url');33 function my_login_logo_url() { 34 return get_bloginfo( 'url' ); 33 35 } 36 add_filter( 'login_headerurl', 'my_login_logo_url' ); 34 37 35 add_action('login_head', 'wp_custom_login_css'); 36 add_filter('login_headerurl', 'change_wp_login_url'); 38 function my_login_logo_url_title() { 39 return ''; 40 } 41 add_filter( 'login_headertitle', 'my_login_logo_url_title' ); 42 37 43 ?>
Note: See TracChangeset
for help on using the changeset viewer.