Ticket #10159: rtl-admin-fixes-with-get-bloginfo.diff
File rtl-admin-fixes-with-get-bloginfo.diff, 1.6 KB (added by , 12 years ago) |
---|
-
wp-content/plugins/hello.php
2 2 /** 3 3 * @package Hello_Dolly 4 4 * @author Matt Mullenweg 5 * @version 1.5 5 * @version 1.5.1 6 6 */ 7 7 /* 8 8 Plugin Name: Hello Dolly 9 9 Plugin URI: http://wordpress.org/# 10 10 Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page. 11 11 Author: Matt Mullenweg 12 Version: 1.5 12 Version: 1.5.1 13 13 Author URI: http://ma.tt/ 14 14 */ 15 15 … … 62 62 63 63 // We need some CSS to position the paragraph 64 64 function dolly_css() { 65 // This makes sure that the posinioning is also good for right-to-left languages 66 $x = ( 'rtl' == get_bloginfo( 'text_direction' ) ) ? 'left' : 'right'; 67 65 68 echo " 66 69 <style type='text/css'> 67 70 #dolly { … … 69 72 top: 4.5em; 70 73 margin: 0; 71 74 padding: 0; 72 right: 215px;75 $x: 215px; 73 76 font-size: 11px; 74 77 } 75 78 </style> -
wp-admin/rtl.css
138 138 .folded #adminmenu img.wp-menu-image { 139 139 padding: 7px 6px 0 0; 140 140 } 141 #adminmenu a.separator { 142 cursor: e-resize; 143 } 144 .folded #adminmenu a.separator { 145 cursor: w-resize; 146 } 141 147 #adminmenu .wp-submenu .wp-submenu-head { 142 148 padding: 6px 10px 6px 4px; 143 149 }