Changeset 4258

Show
Ignore:
Timestamp:
09/27/06 00:51:17 (2 years ago)
Author:
ryan
Message:

RTL enhancements from Sewar. #3136

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r4220 r4258  
    751751    $category->link_count = number_format( $category->link_count ); 
    752752    return "<tr id='cat-$category->cat_ID'$class> 
    753         <th scope='row'>$category->cat_ID</th> 
     753        <th scope='row' style='text-align: center'>$category->cat_ID</th> 
    754754        <td>" . ( $name_override ? $name_override : $pad . ' ' . $category->cat_name ) . "</td> 
    755755        <td>$category->category_description</td> 
     
    779779?> 
    780780  <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'>  
    781     <th scope="row"><?php echo $post->ID; ?></th>  
     781    <th scope="row" style="text-align: center"><?php echo $post->ID; ?></th>  
    782782    <td> 
    783783      <?php echo $pad; ?><?php the_title() ?> 
  • trunk/wp-admin/categories.php

    r4022 r4258  
    9090    <thead> 
    9191    <tr> 
    92         <th scope="col"><?php _e('ID') ?></th> 
    93         <th scope="col" style="text-align: left"><?php _e('Name') ?></th> 
    94         <th scope="col" style="text-align: left"><?php _e('Description') ?></th> 
    95         <th scope="col" width="90"><?php _e('Posts') ?></th> 
    96         <th scope="col" width="90"><?php _e('Bookmarks') ?></th> 
    97         <th colspan="2"><?php _e('Action') ?></th> 
     92        <th scope="col" style="text-align: center"><?php _e('ID') ?></th> 
     93        <th scope="col"><?php _e('Name') ?></th> 
     94        <th scope="col"><?php _e('Description') ?></th> 
     95        <th scope="col" width="90" style="text-align: center"><?php _e('Posts') ?></th> 
     96        <th scope="col" width="90" style="text-align: center"><?php _e('Bookmarks') ?></th> 
     97        <th colspan="2" style="text-align: center"><?php _e('Action') ?></th> 
    9898    </tr> 
    9999    </thead> 
  • trunk/wp-admin/edit-comments.php

    r4133 r4258  
    156156<thead> 
    157157  <tr> 
    158     <th scope="col"><input type="checkbox" onclick="checkAll(document.getElementById(\'deletecomments\'));" /></th> 
    159     <th scope="col" style="text-align: left">' .  __('Name') . '</th> 
    160     <th scope="col" style="text-align: left">' .  __('E-mail') . '</th> 
    161     <th scope="col" style="text-align: left">' . __('IP') . '</th> 
    162     <th scope="col" style="text-align: left">' . __('Comment Excerpt') . '</th> 
    163     <th scope="col" colspan="3">' .  __('Actions') . '</th> 
     158    <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById(\'deletecomments\'));" /></th> 
     159    <th scope="col">' .  __('Name') . '</th> 
     160    <th scope="col">' .  __('E-mail') . '</th> 
     161    <th scope="col">' . __('IP') . '</th> 
     162    <th scope="col">' . __('Comment Excerpt') . '</th> 
     163    <th scope="col" colspan="3" style="text-align: center">' .  __('Actions') . '</th> 
    164164  </tr> 
    165165</thead>'; 
  • trunk/wp-admin/edit-pages.php

    r3788 r4258  
    3232  <thead> 
    3333  <tr> 
    34     <th scope="col"><?php _e('ID') ?></th> 
    35     <th scope="col" style="text-align: left"><?php _e('Title') ?></th> 
    36     <th scope="col" style="text-align: left"><?php _e('Owner') ?></th> 
    37     <th scope="col" style="text-align: left"><?php _e('Updated') ?></th> 
    38     <th scope="col" colspan="3"><?php _e('Action'); ?></th> 
     34    <th scope="col" style="text-align: center"><?php _e('ID') ?></th> 
     35    <th scope="col"><?php _e('Title') ?></th> 
     36    <th scope="col"><?php _e('Owner') ?></th> 
     37    <th scope="col"><?php _e('Updated') ?></th> 
     38    <th scope="col" colspan="3" style="text-align: center"><?php _e('Action'); ?></th> 
    3939  </tr> 
    4040  </thead> 
  • trunk/wp-admin/edit.php

    r4165 r4258  
    7474</h2> 
    7575 
    76 <form name="searchform" action="" method="get" style="float: left; width: 16em; margin-right: 3em;">  
     76<form name="searchform" id="searchform" action="" method="get"> 
    7777  <fieldset>  
    7878  <legend><?php _e('Search Posts&hellip;') ?></legend>  
     
    8686if ( count($arc_result) ) { ?> 
    8787 
    88 <form name="viewarc" action="" method="get" style="float: left; width: 20em; margin-bottom: 1em;"> 
     88<form name="viewarc" id="viewarc" action="" method="get"> 
    8989    <fieldset> 
    9090    <legend><?php _e('Browse Month&hellip;') ?></legend> 
     
    113113<?php } ?> 
    114114 
    115 <form name="viewcat" action="" method="get" style="float: left; width: 30em; margin-bottom: 1em;"> 
     115<form name="viewcat" id="viewcat" action="" method="get"> 
    116116    <fieldset> 
    117117    <legend><?php _e('Browse Category&hellip;') ?></legend> 
     
    170170    case 'id': 
    171171        ?> 
    172         <th scope="row"><?php echo $id ?></th> 
     172        <th scope="row" style="text-align: center"><?php echo $id ?></th> 
    173173        <?php 
    174174        break; 
  • trunk/wp-admin/link-manager.php

    r4133 r4258  
    105105    <thead> 
    106106    <tr> 
    107         <th width="15%" style="text-align: left"><?php _e('Name') ?></th> 
    108         <th style="text-align: left"><?php _e('URL') ?></th> 
    109         <th style="text-align: left"><?php _e('Categories') ?></th> 
    110         <th><?php _e('rel') ?></th> 
    111         <th><?php _e('Visible') ?></th> 
    112         <th colspan="2"><?php _e('Action') ?></th> 
    113         <th><input type="checkbox" onclick="checkAll(document.getElementById('links'));" /></th> 
     107        <th width="15%"><?php _e('Name') ?></th> 
     108        <th><?php _e('URL') ?></th> 
     109        <th><?php _e('Categories') ?></th> 
     110        <th style="text-align: center"><?php _e('rel') ?></th> 
     111        <th style="text-align: center"><?php _e('Visible') ?></th> 
     112        <th colspan="2" style="text-align: center"><?php _e('Action') ?></th> 
     113        <th style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('links'));" /></th> 
    114114    </tr> 
    115115    </thead> 
  • trunk/wp-admin/moderation.php

    r4144 r4258  
    2121    check_admin_referer('moderate-comments'); 
    2222 
    23     if ( ! current_user_can('moderate_comments') ) 
    24     wp_die('<p>'.__('Your level is not high enough to moderate comments.').'</p>'); 
     23    if ( !current_user_can('moderate_comments') ) 
     24       wp_die(__('Your level is not high enough to moderate comments.')); 
    2525 
    2626    $item_ignored = 0; 
  • trunk/wp-admin/plugins.php

    r4202 r4258  
    8282    <thead> 
    8383    <tr> 
    84         <th style="text-align: left"><?php _e('Plugin'); ?></th> 
    85         <th><?php _e('Version'); ?></th> 
    86         <th style="text-align: left"><?php _e('Description'); ?></th> 
    87         <th><?php _e('Action'); ?></th> 
     84        <th><?php _e('Plugin'); ?></th> 
     85        <th style="text-align: center"><?php _e('Version'); ?></th> 
     86        <th><?php _e('Description'); ?></th> 
     87        <th style="text-align: center"><?php _e('Action'); ?></th> 
    8888    </tr> 
    8989    </thead> 
  • trunk/wp-admin/rtl.css

    r4201 r4258  
    1 body    { 
    2     direction: rtl; 
     1#viewarc, #viewcat, #namediv, #emaildiv, #uridiv, #planetnews li, #login ul li, #your-profile fieldset, .alignleft .available-theme { 
     2    float: right 
     3
     4 
     5#templateside, .alignright { 
     6    float: left; 
     7
     8 
     9#login, #send, .widefat th { 
     10    text-align: right 
     11
     12 
     13#postcustomsubmit, h2 small.quickjump, form#upload th, .submit, .editform th { 
     14    text-align: left 
    315} 
    416 
     
    719} 
    820 
    9 h2 small.quickjump { 
    10     text-align: left; 
    11 
    12  
    13 h2 small.quickjump a { 
    14     font-size: 12px; 
    15     font-family: Tahoma, sans-serif; 
     21fieldset.options legend { 
     22    font-family: Tahoma, Georgia, "Times New Roman", Times, serif; 
    1623} 
    1724 
    1825textarea, input, select { 
    19     font:  12px Tahoma, Arial, Helvetica, sans-serif; 
     26    font:  13px Tahoma, Verdana, Arial, Helvetica, sans-serif; 
     27
     28 
     29.quicktags, .search { 
     30    font: 12px Tahoma, Georgia, "Times New Roman", Times, serif; 
     31
     32 
     33.submit input, .submit input:focus, .button { 
     34    border-right-color: #ccc; 
     35
     36 
     37.submit input:active, .button:active { 
     38    border-right-color: #999; 
     39
     40 
     41.updated, .confirm { 
     42    padding: 0 3em 0 1em; 
    2043} 
    2144 
    2245#adminmenu { 
    23     float: right
    24     width: 100%
     46    padding: .2em 2em .3em .2em
     47    height: 30px
    2548} 
    2649 
    2750#adminmenu a { 
    28     font-size: 16px; 
    29     font-weight: bold; 
    30     font-family: georgia; 
    31     margin: 0px 2px; 
    32     padding: 1px 5px; 
     51    margin: 0 0 0 10px; 
     52    display: block; 
    3353    float: right; 
    3454} 
    3555 
    3656#submenu { 
    37     clear: both; 
    38     float: right; 
    39     width: 100%; 
     57    height: 21px; 
     58    padding: 3px 3em 0 2em; 
     59
     60 
     61#submenu .current { 
     62    border-left: 2px solid #045290; 
    4063} 
    4164 
    4265#submenu a { 
    43     padding: .1em .33em; 
    44     float: right; 
    45     margin: 0px 2px; 
    46 
    47  
    48 #title { 
    49     font-family: georgia; 
     66    padding: .3em .4em .33em .4em; 
     67    margin: 0 0 0 10px; 
     68    display: block; 
     69    float: right; 
     70
     71 
     72#submenu li { 
     73    line-height: 100%; 
     74
     75 
     76#postdiv , #titlediv, #guiddiv { 
     77    margin: 0 0 0 8px; 
     78
     79 
     80#currenttheme img { 
     81    float: right; 
     82    margin-right: auto; 
     83    margin-left: 1em; 
     84
     85 
     86#postdiv #quicktags { 
     87    padding-right: auto; 
     88    padding-left: 6px; 
     89
     90 
     91#quicktags #ed_toolbar { 
     92    padding: 0px 0 0 2px; 
     93
     94 
     95#ed_toolbar input { 
     96    margin: 3px 0 2px 2px; 
     97
     98 
     99* html #postexcerpt .dbx-toggle-open, * html #postexcerpt .dbx-toggle-open, #postexcerpt div, #attachmentlinks div { 
     100    padding-right: auto; 
     101    padding-left: 8px; 
    50102} 
    51103 
    52104#login h1 { 
    53     direction: ltr; 
    54 
    55  
    56 #postcustom .updatemeta, #postcustom .deletemeta { 
    57     width: 5em; 
     105    left: auto; 
     106    right: 137px; 
     107
     108 
     109#login h1 a { 
     110    display: none; 
     111
     112 
     113#searchform { 
     114    float: right; 
     115    margin-right: auto; 
     116    margin-left: 3em; 
     117
     118 
     119#poststuff { 
     120    margin-right: auto; 
     121    margin-left: 16em; 
    58122} 
    59123 
    60124#template div { 
    61     direction: ltr; 
     125    margin-right: auto; 
     126    margin-left: 190px; 
     127
     128 
     129* html #template div { 
     130    margin-right: auto; 
     131    margin-left: 0px; 
    62132} 
    63133 
    64134#user_info { 
     135    right: auto; 
    65136    left: 1em; 
    66     top: 0; 
    67     right: auto; 
    68137} 
    69138 
     
    72141} 
    73142 
     143#wphead h1 { 
     144    font-size: 2.4em; 
     145    font-family: Tahoma, Georgia, "Times New Roman", Times, serif 
     146} 
     147 
     148#zeitgeist { 
     149    float: left; 
     150    margin-left: auto; 
     151    margin-right: 1em; 
     152} 
     153 
     154#zeitgeist ul { 
     155    margin: 0 .6em .3em 0; 
     156    padding: 0 .6em 0 0; 
     157} 
     158 
    74159#moremeta fieldset div { 
    75     padding: 0 7px 0 0; 
     160    margin: 2px 0px 0 0; 
     161
     162#moremeta { 
     163    margin-right: auto; 
     164    margin-left: 15px; 
     165    right: auto; 
     166    left: 5%; 
     167
     168#categorydiv ul { 
     169    margin-left: auto; 
     170    margin-right: 10px; 
     171
     172 
     173#your-profile legend { 
     174    font-family: Tahoma, Georgia, "Times New Roman", Times, serif; 
    76175} 
    77176 
    78177#moremeta .dbx-content { 
    79178    background: url(images/box-butt.gif) no-repeat bottom left; 
    80     padding: 5px 10px 15px 5px; 
     179    padding-right: auto; 
     180    padding-left: 2px; 
    81181} 
    82182 
    83183#moremeta .dbx-handle { 
    84     background: url(images/box-head.gif) no-repeat right; 
    85 
    86      
    87 /* toggle images */ 
     184    background: #2685af url(images/box-head.gif) no-repeat left; 
     185
     186 
     187#moremeta .dbx-box { 
     188    background: url(images/box-bg.gif) repeat-y left; 
     189
     190 
    88191a.dbx-toggle, a.dbx-toggle:visited { 
     192    right: auto; 
     193    left: 2px; 
     194} 
     195 
     196#advancedstuff a.dbx-toggle, #advancedstuff a.dbx-toggle-open:visited { 
     197    right: auto; 
    89198    left: 5px; 
    90     right: auto; 
    91199} 
    92200 
    93201#advancedstuff a.dbx-toggle-open, #advancedstuff a.dbx-toggle-open:visited { 
    94  
    95     } 
    96  
    97 /* Ali ix Corrections and Additions ;) */ 
    98  
    99 td.desc, td.name, textarea#ping_sites, textarea#moderation_keys, textarea#blacklist_keys, input#home, input#admin_email, input#siteurl, input#mailserver_url, input#mailserver_port, input#mailserver_login, input#mailserver_pass, input#blog_charset, input#permalink_structure, input#post_name, input#trackback { 
    100     direction: ltr; 
    101     text-align: left; 
    102 
    103 .mceToolbarTop { 
    104     direction: ltr; 
    105 
    106  
    107 div#zeitgeist ul, div.wrap ul { 
    108     list-style: none; 
    109     } 
    110      
    111 table.widefat th, tr.thead { 
    112     text-align: right; 
    113 
     202    right: auto; 
     203    left: 5px; 
     204
     205 
     206#categorychecklist { 
     207    margin-right: auto; 
     208    margin-left: 6px; 
     209
     210 
     211#ajax-response.alignleft { 
     212    margin-left: auto; 
     213    margin-right: 2em; 
     214
     215 
     216#postdivrich #edButtons { 
     217    padding-left: auto; 
     218    padding-right: 3px; 
     219
     220 
     221#edButtons input, #edButtons input:active { 
     222    margin: 0px 0 -1px 2px; 
     223
  • trunk/wp-admin/users.php

    r4196 r4258  
    379379<tr> 
    380380<?php if ( !empty($role) ) : ?> 
    381     <th colspan="7" align="left"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th> 
     381    <th colspan="7"><h3><?php echo $wp_roles->role_names[$role]; ?></h3></th> 
    382382<?php else : ?> 
    383     <th colspan="7" align="left"><h3><em><?php _e('No role for this blog'); ?></h3></th> 
     383    <th colspan="7"><h3><em><?php _e('No role for this blog'); ?></h3></th> 
    384384<?php endif; ?> 
    385385</tr> 
    386386<tr class="thead"> 
    387     <th style="text-align: left"><?php _e('ID') ?></th> 
    388     <th style="text-align: left"><?php _e('Username') ?></th> 
    389     <th style="text-align: left"><?php _e('Name') ?></th> 
    390     <th style="text-align: left"><?php _e('E-mail') ?></th> 
    391     <th style="text-align: left"><?php _e('Website') ?></th> 
    392     <th colspan="2"><?php _e('Actions') ?></th> 
     387    <th><?php _e('ID') ?></th> 
     388    <th><?php _e('Username') ?></th> 
     389    <th><?php _e('Name') ?></th> 
     390    <th><?php _e('E-mail') ?></th> 
     391    <th><?php _e('Website') ?></th> 
     392    <th colspan="2" style="text-align: center"><?php _e('Actions') ?></th> 
    393393</tr> 
    394394</thead> 
  • trunk/wp-admin/wp-admin.css

    r4214 r4258  
    4747.widefat td, .widefat th { 
    4848    padding: 5px 6px; 
     49} 
     50 
     51.widefat th { 
     52    text-align: left; 
    4953} 
    5054 
     
    367371 
    368372.updated, .confirm { 
    369     background: #CFEBF7 url(images/notice.gif) no-repeat 1em
     373    background: #CFEBF7 url(images/notice.gif) no-repeat 1em
    370374    border: 1px solid #2580B2; 
    371375    margin: 1em 5% 10px; 
     
    515519    border-bottom: none; 
    516520} 
     521 
    517522#postdiv #quicktags { 
    518523    padding-right: 6px; 
    519524} 
     525 
    520526#postdivrich #quicktags { 
    521527    display: none; 
    522528} 
     529 
    523530#quicktags #ed_toolbar { 
    524531    padding: 0px 2px; 
     
    634641 
    635642#login ul:after { 
    636   content: ".";  
    637   display: block;  
    638   height: 0;  
    639   clear: both;  
     643  content: "."; 
     644  display: block; 
     645  height: 0; 
     646  clear: both; 
    640647  visibility: hidden; 
    641648} 
     
    676683    margin: 0; 
    677684    font-size: 1.2em; 
     685} 
     686 
     687#searchform { 
     688    float: left; 
     689    margin-right: 3em; 
     690    width: 16em; 
     691} 
     692 
     693#viewarc { 
     694    float: left; 
     695    width: 20em; 
     696    margin-bottom: 1em; 
     697} 
     698 
     699#viewcat { 
     700    float: left; 
     701    width: 30em; 
     702    margin-bottom: 1em; 
    678703} 
    679704 
     
    917942    list-style: none; 
    918943    padding: 0; 
    919     margin-left:10px; 
    920 
     944    margin-left: 10px; 
     945
     946 
    921947#categorychecklist { 
    922948    height: 12em; 
     
    924950    margin-top: 8px; 
    925951} 
     952 
    926953#categorychecklist li { 
    927954    margin: 0; 
    928955    padding: 0; 
    929956} 
     957 
    930958#ajaxcat input { 
    931959    border: 1px solid #ccc; 
     
    942970    width: 40%; 
    943971    padding: .5em 2em 1em; 
    944     margin: 1em 1em 1em 0;  
     972    margin: 1em 1em 1em 0; 
    945973} 
    946974 
     
    11121140} 
    11131141 
    1114 #newcat { width: 120px; margin-right: 5px; } 
    1115 input#catadd {  background: #a4a4a4; 
     1142#newcat { 
     1143    width: 120px; 
     1144    margin-right: 5px; 
     1145
     1146 
     1147input #catadd { 
     1148    background: #a4a4a4; 
    11161149    border-bottom: 1px solid #898989; 
    11171150    border-left: 1px solid #bcbcbc; 
     
    11261159    margin-bottom: 2px; 
    11271160    text-align: center; 
    1128     width: 37px; } 
     1161    width: 37px; 
     1162
     1163 
    11291164#howto { 
    11301165    font-size: 11px; 
     
    11321167    display: block; 
    11331168} 
     1169 
    11341170#jaxcat { 
    11351171    margin: 0; 
    11361172    padding: 0; 
    11371173} 
     1174 
    11381175#ajax-response.alignleft { 
    11391176    margin-left: 2em; 
    11401177} 
     1178 
    11411179#postdivrich #edButtons { 
    11421180    padding-left: 3px; 
    11431181} 
     1182 
    11441183#postdivrich #content, #postdivrich #content:active { 
    11451184    border: 1px solid #ccc; 
    11461185} 
     1186 
    11471187#edButtons input, #edButtons input:active { 
    11481188    margin: 0px 2px -1px; 
    11491189} 
     1190 
    11501191#edButtons input.edButtonFore, #edButtons input.edButtonFore:active { 
    11511192    background: #f0f0ee; 
    11521193    border-bottom: 1px solid #f0f0ee; 
    11531194} 
     1195 
    11541196#edButtons input.edButtonBack, #edButtons input.edButtonBack:active { 
    11551197    background: #fff url( images/fade-butt.png ) repeat-x 0px 15px; 
  • trunk/wp-includes/functions.php

    r4201 r4258  
    11621162function _mce_set_direction() { 
    11631163    global $wp_locale; 
    1164     if ('rtl' == $wp_locale->text_direction) 
     1164 
     1165    if ('rtl' == $wp_locale->text_direction) { 
    11651166        echo 'directionality : "rtl" ,'; 
     1167        echo 'theme_advanced_toolbar_align : "right" ,'; 
     1168    } 
    11661169} 
    11671170 
    11681171function _mce_load_rtl_plugin($input) { 
    1169     global $wp_locale;  
     1172    global $wp_locale; 
     1173 
    11701174    if ('rtl' == $wp_locale->text_direction) 
    11711175        $input[] = 'directionality'; 
     
    11751179 
    11761180function _mce_add_direction_buttons($input) { 
    1177     global $wp_locale;  
     1181    global $wp_locale; 
     1182 
    11781183    if ('rtl' == $wp_locale->text_direction) { 
    11791184        $new_buttons = array('separator', 'ltr', 'rtl'); 
  • trunk/wp-includes/js/tinymce/wp-mce-help.php

    r4144 r4258  
    1 <?php 
    2  
    3 require_once('../../../wp-config.php'); 
    4  
    5 ?> 
     1<?php require_once('../../../wp-config.php'); ?> 
    62<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    7 <html xmlns="http://www.w3.org/1999/xhtml"
     3<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>
    84<head> 
     5<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 
    96<title><?php _e('Rich Editor Help') ?></title> 
    107<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 
     8<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 
     9<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 
     10<?php endif; ?>  
    1111<style type="text/css"> 
    1212    #wphead { 
     
    7979    } 
    8080</style> 
     81<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 
     82<style type="text/css"> 
     83    #wphead, #adminmenu { 
     84        padding-left: auto; 
     85        padding-right: 15px; 
     86    } 
     87    #flipper { 
     88        margin: 5px 0 3px 10px; 
     89    } 
     90    #keys .left, .top, .action { text-align: right; } 
     91    #keys .right { text-align: left; } 
     92    td b { font-family: Tahoma, "Times New Roman", Times, serif } 
     93</style> 
     94<?php endif; ?>  
    8195<script type="text/javascript"> 
    8296    window.onkeydown = window.onkeypress = function (e) {