Make WordPress Core

Changeset 4359 for trunk/wp-login.php


Ignore:
Timestamp:
10/07/2006 07:12:33 PM (17 years ago)
Author:
ryan
Message:

RTL support for login sand wp_die() from Sewar. fixes #3136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r4354 r4359  
    2424// Rather than duplicating this HTML all over the place, we'll stick it in function
    2525function login_header($title = 'Login', $message = '') {
    26     global $errors, $error;
     26    global $errors, $error, $wp_locale;
    2727
    2828    ?>
    2929<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    30 <html xmlns="http://www.w3.org/1999/xhtml">
     30<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    3131<head>
    3232    <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
    3333    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    3434    <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     35<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
     36    <link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     37<?php endif; ?>
    3538    <!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login ul { padding-bottom: 65px; }</style><![endif]--><!-- Curse you, IE! -->
    3639    <script type="text/javascript">
     
    4447<body>
    4548
    46 <div id="login">
    47 <h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
     49<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
    4850<?php
    4951    if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n";
Note: See TracChangeset for help on using the changeset viewer.