You appear to be a bot. Output may be restricted
Description
Display the oik logo image as the login logoCurrently uses simpler logic than Mark Jaquith's login-logo plugin, but plagiarises the CSS3 function Images larger than a certain size may not display well. It's a good idea to use a transparent .png file. If we're displaying our own logo then we will also filter the header URL and header title to link to the current site.
Usage
oik_lazy_login_head();
Parameters
Returns
voidSource
File name: oik/shortcodes/oik-logo.phpLines:
1 to 21 of 21
function oik_lazy_login_head() { $logo_image = bw_get_option( "logo-image" ); bw_trace2( $logo_image, "logo-image" ); if ( $logo_image ) { $login_logo = bw_get_option( "login-logo" ); if ( $login_logo ) { $image_url = bw_get_logo_image_url( $logo_image ); //$upload_dir = wp_upload_dir(); //$baseurl = $upload_dir['baseurl']; //$image_url = $baseurl . $logo_image; stag( "style", null, null, kv( "type", "text/css" ) ); e( ".login h1 a { background-image: url( $image_url ) !important; " ); oik_logo_css3( "background-size", "contain;" ); e( "width: auto; }" ); etag( "style" ); bw_flush(); add_filter( "login_headerurl", "oik_login_headerurl" ); add_filter( "login_headertext", "oik_login_headertitle" ); } } }View on GitHub View on Trac