From 51ada4c2e2ee305fa12b1f9f70bd6935e825dd80 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 23 Nov 2008 08:08:12 +0000 Subject: Move search out into its own module and have it display its link at the header_bottom() insertion point. --- core/config/config.php | 3 ++- modules/search/helpers/search_block.php | 25 ++++++++++++++++++++ modules/search/helpers/search_installer.php | 36 +++++++++++++++++++++++++++++ modules/search/views/search_link.html.php | 12 ++++++++++ themes/default/css/screen.css | 19 ++++++++++++++- themes/default/views/header.html.php | 8 +------ 6 files changed, 94 insertions(+), 9 deletions(-) create mode 100644 modules/search/helpers/search_block.php create mode 100644 modules/search/helpers/search_installer.php create mode 100644 modules/search/views/search_link.html.php diff --git a/core/config/config.php b/core/config/config.php index 71916a8b..9fe668b8 100644 --- a/core/config/config.php +++ b/core/config/config.php @@ -132,5 +132,6 @@ $config['modules'] = array MODPATH . 'media_rss', MODPATH . 'slideshow', MODPATH . 'comment', - MODPATH . 'atom' + MODPATH . 'atom', + MODPATH . 'search' ); diff --git a/modules/search/helpers/search_block.php b/modules/search/helpers/search_block.php new file mode 100644 index 00000000..b6450b4d --- /dev/null +++ b/modules/search/helpers/search_block.php @@ -0,0 +1,25 @@ +render(); + } +} \ No newline at end of file diff --git a/modules/search/helpers/search_installer.php b/modules/search/helpers/search_installer.php new file mode 100644 index 00000000..ebcab43b --- /dev/null +++ b/modules/search/helpers/search_installer.php @@ -0,0 +1,36 @@ + +
+ +
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index f8cbe878..a3ccedfc 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -74,7 +74,7 @@ th { /** ******************************************************************* * 2) Base text styles ******************************************************************/ -#gContent { +#gContent { font-size: 1em; } @@ -721,6 +721,23 @@ li.gError select { margin-right: 20px; } +#gSearchForm li { + float: left; + padding: .3em .5em .4em .5em; +} + +#gSearchForm input[type="text"], +#gSearchForm input[type="password"], +#gSearchForm textarea, +#gSearchForm .gValidationRule { + width: 10em; +} + +#gSearchForm input[type="Submit"] { + margin-top: 1em; +} + + #gSearchForm label { display: none; } diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php index c8eb2145..1ca2a952 100644 --- a/themes/default/views/header.html.php +++ b/themes/default/views/header.html.php @@ -12,12 +12,7 @@ -
- -
+header_bottom() ?> -header_bottom() ?> -- cgit v1.2.3