Plugin Directory

Changeset 603873


Ignore:
Timestamp:
09/25/2012 10:06:26 PM (13 years ago)
Author:
Antoniocampos
Message:
 
Location:
wp-costum-login-logo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-costum-login-logo/trunk/readme.txt

    r98435 r603873  
    33Tags: login, admin, image, logo
    44Requires at least: 2.7
    5 Tested up to: 2.7
    6 Stable tag: 1.0
     5Tested up to: 3.4.2
     6Stable tag: 1.1
    77
    88This plugin changes the image in the top of login form.
  • wp-costum-login-logo/trunk/wp-custom-login-logo.php

    r98438 r603873  
    55Description: Change the login screen logo.
    66Author: Antonio Campos
    7 Version: 1.0
     7Version: 1.1
    88Author URI: http://antoniocampos.no-ip.com
    99
    10  Copyright 2008  Antonio Campos  (email : [email protected])
     10 Copyright 2012  Antonio Campos  (email : [email protected])
    1111
    1212    This program is free software; you can redistribute it and/or modify
     
    2424    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2525*/
    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\" />";
     26function 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>';
    2930}
     31add_action('login_head', 'login_css');
    3032
    31 function change_wp_login_url() {
    32     echo bloginfo('url');
     33function my_login_logo_url() {
     34    return get_bloginfo( 'url' );
    3335}
     36add_filter( 'login_headerurl', 'my_login_logo_url' );
    3437
    35 add_action('login_head', 'wp_custom_login_css');
    36 add_filter('login_headerurl', 'change_wp_login_url');
     38function my_login_logo_url_title() {
     39    return '';
     40}
     41add_filter( 'login_headertitle', 'my_login_logo_url_title' );
     42
    3743?>
Note: See TracChangeset for help on using the changeset viewer.