Add a nice fieldset around the external search input form
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 8 Apr 2008 12:22:12 +0000 (12:22 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 8 Apr 2008 12:22:12 +0000 (12:22 +0000)
includes/SpecialSearch.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index e41bff5..84cce81 100644 (file)
@@ -143,13 +143,16 @@ class SpecialSearch {
                                return;
                        }
                        global $wgInputEncoding;
-                       $wgOut->addHTML( wfMsg( 'searchdisabled' ) );
-                       $wgOut->addHTML(
+                       $wgOut->addHTML( 
+                               Xml::openElement( 'fieldset' ) .
+                               Xml::element( 'legend', null, wfMsg( 'search-external' ) ) .
+                               Xml::element( 'p', array( 'class' => 'mw-searchdisabled' ), wfMsg( 'searchdisabled' ) ) .
                                wfMsg( 'googlesearch',
                                        htmlspecialchars( $term ),
                                        htmlspecialchars( $wgInputEncoding ),
                                        htmlspecialchars( wfMsg( 'searchbutton' ) )
-                               )
+                               ) .
+                               Xml::closeElement( 'fieldset' )
                        );
                        wfProfileOut( $fname );
                        return;
index 586f941..8617a2d 100644 (file)
@@ -1300,6 +1300,7 @@ You can [[:\$1|create this page]].",
 'powersearch'           => 'Advanced search',
 'powersearch-legend'    => 'Advanced search',
 'powersearchtext'       => 'Search in namespaces:<br />$1<br />$2 List redirects<br />Search for $3 $9',
+'search-external'       => 'External search',
 'searchdisabled'        => '{{SITENAME}} search is disabled.
 You can search via Google in the meantime.
 Note that their indexes of {{SITENAME}} content may be out of date.',
index e800cfa..1f9e364 100644 (file)
@@ -707,6 +707,7 @@ $wgMessageStructure = array(
                'powersearch',
                'powersearch-legend',
                'powersearchtext',
+               'search-external',
                'searchdisabled',
                'googlesearch',
        ),