Add CSS classes to allow easier hiding of elements.
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 May 2008 15:59:29 +0000 (15:59 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 13 May 2008 15:59:29 +0000 (15:59 +0000)
Per request of the German screenreader project 'BIENE'

includes/SpecialSearch.php

index e78fcd9..add46da 100644 (file)
@@ -212,7 +212,7 @@ class SpecialSearch {
                        } else {
                                $top = wfShowingResultsNum( $this->offset, $this->limit, $num );
                        }
-                       $wgOut->addHTML( "<p>{$top}</p>\n" );
+                       $wgOut->addHTML( "<p class='mw-search-numberresults'>{$top}</p>\n" );
                }
 
                // prev/next links
@@ -223,7 +223,7 @@ class SpecialSearch {
                                        $this->powerSearchOptions(),
                                        array( 'search' => $term ) ),
                                        ($num < $this->limit) );
-                       $wgOut->addHTML( "<p>{$prevnext}</p>\n" );
+                       $wgOut->addHTML( "<p class='mw-search-pager-top'>{$prevnext}</p>\n" );
                        wfRunHooks( 'SpecialSearchResults', array( $term, $titleMatches, $textMatches ) );
                } else {
                        wfRunHooks( 'SpecialSearchNoResults', array( $term ) );
@@ -254,7 +254,7 @@ class SpecialSearch {
                        // show results
                        if( $textMatches->numRows() )
                                $wgOut->addHTML( $this->showMatches( $textMatches ) );
-                               
+
                        $textMatches->free();
                }
 
@@ -262,7 +262,7 @@ class SpecialSearch {
                        $wgOut->addWikiMsg( 'nonefound' );
                }
                if( $num || $this->offset ) {
-                       $wgOut->addHTML( "<p>{$prevnext}</p>\n" );
+                       $wgOut->addHTML( "<p class='mw-search-pager-bottom'>{$prevnext}</p>\n" );
                }
                $wgOut->addHTML( $this->powerSearchBox( $term ) );
                wfProfileOut( $fname );