From 455dd7d763faa66f534d1253dbbcbb119bd4117e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Sep 2006 00:51:17 +0000 Subject: [PATCH] RTL enhancements from Sewar. #3136 git-svn-id: https://develop.svn.wordpress.org/trunk@4258 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 4 +- wp-admin/categories.php | 12 +- wp-admin/edit-comments.php | 12 +- wp-admin/edit-pages.php | 10 +- wp-admin/edit.php | 8 +- wp-admin/link-manager.php | 14 +- wp-admin/moderation.php | 4 +- wp-admin/plugins.php | 8 +- wp-admin/rtl.css | 218 +++++++++++++++++++------ wp-admin/users.php | 16 +- wp-admin/wp-admin.css | 62 +++++-- wp-includes/functions.php | 11 +- wp-includes/js/tinymce/wp-mce-help.php | 26 ++- 13 files changed, 288 insertions(+), 117 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 9e2f08da23..b18436a5db 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -750,7 +750,7 @@ function _cat_row( $category, $level, $name_override = false ) { $category->category_count = number_format( $category->category_count ); $category->link_count = number_format( $category->link_count ); return " - $category->cat_ID + $category->cat_ID " . ( $name_override ? $name_override : $pad . ' ' . $category->cat_name ) . " $category->category_description $category->category_count @@ -778,7 +778,7 @@ function page_rows($parent = 0, $level = 0, $pages = 0, $hierarchy = true) { $class = ('alternate' == $class) ? '' : 'alternate'; ?> - ID; ?> + ID; ?> post_status) _e(' - Private'); ?> diff --git a/wp-admin/categories.php b/wp-admin/categories.php index cd31c69762..eea4e8cf4b 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -89,12 +89,12 @@ $messages[4] = __('Category not added.'); - - - - - - + + + + + + diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 8f4c24cf9e..eb3c102fb1 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -155,12 +155,12 @@ $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; echo '
- - - - - - + + + + + + '; foreach ($comments as $comment) { diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index ce169b8c07..721d5df27a 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -31,11 +31,11 @@ if ($posts) {
' . __('Name') . '' . __('E-mail') . '' . __('IP') . '' . __('Comment Excerpt') . '' . __('Actions') . '' . __('Name') . '' . __('E-mail') . '' . __('IP') . '' . __('Comment Excerpt') . '' . __('Actions') . '
- - - - - + + + + + diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 008b57000d..8ef71fd008 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -73,7 +73,7 @@ if ( is_month() ) { ?> - +
@@ -85,7 +85,7 @@ if ( is_month() ) { if ( count($arc_result) ) { ?> - +
+ - - - - - - - + + + + + + + diff --git a/wp-admin/moderation.php b/wp-admin/moderation.php index 9fae674b7b..1989368521 100644 --- a/wp-admin/moderation.php +++ b/wp-admin/moderation.php @@ -20,8 +20,8 @@ case 'update': check_admin_referer('moderate-comments'); - if ( ! current_user_can('moderate_comments') ) - wp_die('

'.__('Your level is not high enough to moderate comments.').'

'); + if ( !current_user_can('moderate_comments') ) + wp_die(__('Your level is not high enough to moderate comments.')); $item_ignored = 0; $item_deleted = 0; diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 3fa7c02c73..81327ea23d 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -81,10 +81,10 @@ if (empty($plugins)) {
- - - - + + + + $roleclass) { - + - + - - - - - - + + + + + + text_direction) + + if ('rtl' == $wp_locale->text_direction) { echo 'directionality : "rtl" ,'; + echo 'theme_advanced_toolbar_align : "right" ,'; + } } function _mce_load_rtl_plugin($input) { - global $wp_locale; + global $wp_locale; + if ('rtl' == $wp_locale->text_direction) $input[] = 'directionality'; @@ -1174,7 +1178,8 @@ function _mce_load_rtl_plugin($input) { } function _mce_add_direction_buttons($input) { - global $wp_locale; + global $wp_locale; + if ('rtl' == $wp_locale->text_direction) { $new_buttons = array('separator', 'ltr', 'rtl'); $input = array_merge($input, $new_buttons); diff --git a/wp-includes/js/tinymce/wp-mce-help.php b/wp-includes/js/tinymce/wp-mce-help.php index bdb5119bf4..d9d376b061 100644 --- a/wp-includes/js/tinymce/wp-mce-help.php +++ b/wp-includes/js/tinymce/wp-mce-help.php @@ -1,13 +1,13 @@ - + - +> +<?php _e('Rich Editor Help') ?> +text_direction) ) : ?> + + +text_direction) ) : ?> + +

role_names[$role]; ?>

role_names[$role]; ?>