Ticket #3136: RTL.r4347.diff
| File RTL.r4347.diff, 4.4 KB (added by , 19 years ago) |
|---|
-
wp-login.php
23 23 24 24 // Rather than duplicating this HTML all over the place, we'll stick it in function 25 25 function login_header($title = 'Login', $message = '') { 26 global $errors, $error ;26 global $errors, $error, $wp_locale; 27 27 28 28 ?> 29 29 <!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(); ?>> 31 31 <head> 32 32 <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title> 33 33 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 34 34 <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; ?> 35 38 <!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login ul { padding-bottom: 65px; }</style><![endif]--><!-- Curse you, IE! --> 36 39 <script type="text/javascript"> 37 40 function focusit() { … … 43 46 </head> 44 47 <body> 45 48 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> 48 50 <?php 49 51 if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n"; 50 52 -
wp-includes/functions.php
1095 1095 } 1096 1096 1097 1097 function wp_die($message, $title = '') { 1098 global $wp_locale; 1099 1098 1100 header('Content-Type: text/html; charset=utf-8'); 1099 1101 1100 1102 if ( empty($title) ) 1101 1103 $title = __('WordPress › Error'); 1102 1104 1103 1105 if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) 1104 $ logo_src = 'images/wordpress-logo.png';1106 $admin_dir = ''; 1105 1107 else 1106 $ logo_src = 'wp-admin/images/wordpress-logo.png';1108 $admin_dir = 'wp-admin/'; 1107 1109 1108 1110 ?> 1109 1111 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1110 <html xmlns="http://www.w3.org/1999/xhtml" >1112 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 1111 1113 <head> 1112 1114 <title><?php echo $title ?></title> 1113 1115 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 1114 <style media="screen" type="text/css"> 1115 <!-- 1116 html { 1117 background: #eee; 1118 } 1119 body { 1120 background: #fff; 1121 color: #000; 1122 font-family: Georgia, "Times New Roman", Times, serif; 1123 margin-left: 25%; 1124 margin-right: 25%; 1125 padding: .2em 2em; 1126 } 1127 1128 h1 { 1129 color: #006; 1130 font-size: 18px; 1131 font-weight: lighter; 1132 } 1133 1134 h2 { 1135 font-size: 16px; 1136 } 1137 1138 p, li, dt { 1139 line-height: 140%; 1140 padding-bottom: 2px; 1141 } 1142 1143 ul, ol { 1144 padding: 5px 5px 5px 20px; 1145 } 1146 #logo { 1147 margin-bottom: 2em; 1148 } 1149 --> 1150 </style> 1116 <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" /> 1117 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 1118 <link rel="stylesheet" href="<?php echo $admin_dir; ?>install-rtl.css" type="text/css" /> 1119 <?php endif; ?> 1151 1120 </head> 1152 1121 <body> 1153 <h1 id="logo"><img alt="WordPress" src="<?php echo $ logo_src; ?>" /></h1>1122 <h1 id="logo"><img alt="WordPress" src="<?php echo $admin_dir; ?>images/wordpress-logo.png" /></h1> 1154 1123 <p><?php echo $message; ?></p> 1155 1124 </body> 1156 1125 </html> -
wp-admin/rtl.css
6 6 float: left; 7 7 } 8 8 9 #login ,#send, .widefat th {9 #login #send, .widefat th { 10 10 text-align: right 11 11 } 12 12 … … 101 101 padding-left: 8px; 102 102 } 103 103 104 #login h1 {105 left: auto;106 right: 137px;107 }108 109 #login h1 a {110 display: none;111 }112 113 104 #searchform { 114 105 float: right; 115 106 margin-right: auto;