From 6171dbac81de8b9e80a8d5eba3a5d7e43c63a325 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Thu, 16 Dec 2010 19:02:43 +0000 Subject: [PATCH] Fixed RTL errors for SimpleSearch --- skins/Vector.php | 8 ++++++-- skins/vector/screen.css | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/skins/Vector.php b/skins/Vector.php index 77acefe2c9..8b4a92adfb 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -702,9 +702,13 @@ class VectorTemplate extends BaseTemplate { getOption( 'vector-simplesearch' ) ): ?>
+ data['rtl'] ): ?> + makeSearchButton("image", array( "id" => "searchButton", "src" => $this->skin->getSkinStylePath('images/search-rtl.png') )); ?> + makeSearchInput(array( "id" => "searchInput", "type" => "text" )); ?> - makeSearchButton("image", array( "id" => "searchButton", - "src" => $this->skin->getSkinStylePath('images/search-' . ( $this->data['rtl'] ? 'rtl' : 'ltr' ) . '.png') )); ?> + data['rtl'] ): ?> + makeSearchButton("image", array( "id" => "searchButton", "src" => $this->skin->getSkinStylePath('images/search-ltr.png') )); ?> +
makeSearchInput(array( "id" => "searchInput" )); ?> diff --git a/skins/vector/screen.css b/skins/vector/screen.css index fa8cb89635..a28a8c2094 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -388,6 +388,7 @@ div#mw-head h5 { font-size: 13px; width: 14em; background-color: transparent; + direction: ltr; } /* OVERRIDDEN BY COMPLIANT BROWSERS */ div#simpleSearch button#searchButton { -- 2.20.1