From d3d5ef824e3dafaf7165ba88712c74a4140c171c Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 15 Sep 2011 21:08:17 -0400 Subject: Fixes #3400, #3820 added additional icons to Elgg's sprite --- mod/search/views/default/search/css.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/search/views/default') diff --git a/mod/search/views/default/search/css.php b/mod/search/views/default/search/css.php index 601536c81..0b8f34b60 100644 --- a/mod/search/views/default/search/css.php +++ b/mod/search/views/default/search/css.php @@ -30,11 +30,11 @@ Search plugin font-size: 12px; font-weight: bold; padding: 2px 4px 2px 26px; - background: transparent url(_graphics/elgg_sprites.png) no-repeat 2px -718px; + background: transparent url(_graphics/elgg_sprites.png) no-repeat 2px -934px; } .elgg-search input[type=text]:focus, .elgg-search input[type=text]:active { background-color: white; - background-position: 2px -700px; + background-position: 2px -916px; border: 1px solid white; color: #0054A7; } -- cgit v1.2.3 From 30711508fd139e737df0fffb645e071219b2bde7 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 27 Oct 2011 18:41:37 -0400 Subject: Fixes #3687 added .elgg-search-header for css specific to header search box --- mod/search/start.php | 2 +- mod/search/views/default/search/css.php | 6 +++--- mod/search/views/default/search/header.php | 6 ++++++ mod/search/views/default/search/search_box.php | 12 ++++++++---- 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 mod/search/views/default/search/header.php (limited to 'mod/search/views/default') diff --git a/mod/search/start.php b/mod/search/start.php index 18a0d59e3..9ab14f42f 100644 --- a/mod/search/start.php +++ b/mod/search/start.php @@ -49,7 +49,7 @@ function search_init() { elgg_extend_view('css/elgg', 'search/css'); // extend view for elgg topbar search box - elgg_extend_view('page/elements/header', 'search/search_box'); + elgg_extend_view('page/elements/header', 'search/header'); } /** diff --git a/mod/search/views/default/search/css.php b/mod/search/views/default/search/css.php index 0b8f34b60..30ff45172 100644 --- a/mod/search/views/default/search/css.php +++ b/mod/search/views/default/search/css.php @@ -8,16 +8,16 @@ /********************************** Search plugin ***********************************/ -.elgg-page-header .elgg-search { +.elgg-search-header { bottom: 5px; height: 23px; position: absolute; right: 0; } -.elgg-page-header .elgg-search input[type=text] { +.elgg-search input[type=text] { width: 230px; } -.elgg-page-header .elgg-search input[type=submit] { +.elgg-search input[type=submit] { display: none; } .elgg-search input[type=text] { diff --git a/mod/search/views/default/search/header.php b/mod/search/views/default/search/header.php new file mode 100644 index 000000000..6f8654c13 --- /dev/null +++ b/mod/search/views/default/search/header.php @@ -0,0 +1,6 @@ + 'elgg-search-header')); \ No newline at end of file diff --git a/mod/search/views/default/search/search_box.php b/mod/search/views/default/search/search_box.php index ff5910937..9440dd1de 100644 --- a/mod/search/views/default/search/search_box.php +++ b/mod/search/views/default/search/search_box.php @@ -3,8 +3,7 @@ * Search box * * @uses $vars['value'] Current search query - * - * @todo Move javascript into something that extends elgg.js + * @uses $vars['class'] Additional class */ if (array_key_exists('value', $vars)) { @@ -15,6 +14,11 @@ if (array_key_exists('value', $vars)) { $value = elgg_echo('search'); } +$class = "elgg-search"; +if (isset($vars['class'])) { + $class = "$class {$vars['class']}"; +} + // @todo - why the strip slashes? $value = stripslashes($value); @@ -26,9 +30,9 @@ $display_query = htmlspecialchars($display_query, ENT_QUOTES, 'UTF-8', false); ?> - \ No newline at end of file -- cgit v1.2.3