Skip to content

Commit 455dd7d

Browse files
committed
RTL enhancements from Sewar. WordPress#3136
git-svn-id: https://develop.svn.wordpress.org/trunk@4258 602fd350-edb4-49c9-b593-d223f7449a82
1 parent df5a935 commit 455dd7d

13 files changed

Lines changed: 284 additions & 113 deletions

wp-admin/admin-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ function _cat_row( $category, $level, $name_override = false ) {
750750
$category->category_count = number_format( $category->category_count );
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>
756756
<td align='center'>$category->category_count</td>
@@ -778,7 +778,7 @@ function page_rows($parent = 0, $level = 0, $pages = 0, $hierarchy = true) {
778778
$class = ('alternate' == $class) ? '' : 'alternate';
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() ?>
784784
<?php if ('private' == $post->post_status) _e(' - <strong>Private</strong>'); ?>

wp-admin/categories.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989
<table class="widefat">
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>
100100
<tbody id="the-list">

wp-admin/edit-comments.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ function getNumChecked(form)
155155
echo '<table class="widefat">
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>';
166166
foreach ($comments as $comment) {

wp-admin/edit-pages.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
<table class="widefat">
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>
4141
<tbody id="the-list">

wp-admin/edit.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
?>
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>
7979
<input type="text" name="s" value="<?php if (isset($s)) echo wp_specialchars($s, 1); ?>" size="17" />
@@ -85,7 +85,7 @@
8585

8686
if ( 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>
9191
<select name='m'>
@@ -112,7 +112,7 @@
112112

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>
118118
<?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=0&hierarchical=1&show_count=1&selected='.$cat);?>
@@ -169,7 +169,7 @@
169169

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;
175175

wp-admin/link-manager.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ function checkAll(form)
104104
<table class="widefat">
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>
116116
<tbody id="the-list">

wp-admin/moderation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

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;
2727
$item_deleted = 0;

wp-admin/plugins.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
<table class="widefat">
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>
9090
<?php

0 commit comments

Comments
 (0)