43 $hasTitle = $titleResultSet && $titleResultSet->numRows() > 0;
44 $hasText = $textResultSet && $textResultSet->numRows() > 0;
47 $textResultSet->hasInterwikiResults( ISearchResultSet::SECONDARY_RESULTS );
50 $textResultSet->hasInterwikiResults( ISearchResultSet::INLINE_RESULTS );
52 if ( !$hasTitle && !$hasText && !$hasSecondary && !$hasSecondaryInline ) {
56 $out =
'<div class="mw-search-results-container">';
59 $out .= $this->
header( $this->specialPage->msg(
'titlematches' ) )
66 $out .=
"<div class='mw-search-visualclear'></div>" .
67 $this->
header( $this->specialPage->msg(
'textmatches' ) );
73 if ( $hasSecondaryInline ) {
74 $iwResults = $textResultSet->getInterwikiResults( ISearchResultSet::INLINE_RESULTS );
75 foreach ( $iwResults as $interwiki => $results ) {
76 if ( $results instanceof
Status || $results->numRows() === 0 ) {
81 "<h2 class='mw-search-interwiki-header mw-search-visualclear'>" .
82 $this->specialPage->msg(
"search-interwiki-results-{$interwiki}" )->parse() .
85 "<div class='mw-search-interwiki-results'>" .
94 if ( $hasSecondary ) {
95 $out .= $this->sidebarWidget->render(
97 $textResultSet->getInterwikiResults( ISearchResultSet::SECONDARY_RESULTS )
104 ->getLanguageConverter();
105 return $converter->convert( $out );