Wikia code/includes/specials/SpecialSearch.php

' . @@ -590,11 +628,13 @@ 			} 		} -		wfProfileOut( __METHOD__ ); -		return "{$link} {$redirect} {$section} {$extract}\n". -			" {$score}{$size} - {$date}{$related} ". -			"\n"; +		// Wikia change /Begin (ADi) +		$resultData = " {$score}{$size} - {$date}{$related} "; +		wfRunHooks( 'SearchShowHit', array( $result, &$link, &$redirect, &$section, &$extract, &$resultData ) ); +		// Wikia change /End +		wfProfileOut( __METHOD__ ); +		return "{$link} {$redirect} {$section} {$extract}\n{$resultData}\n"; } 	/** @@ -874,7 +914,17 @@ 	protected function formHeader( $term, $resultsShown, $totalNum ) { global $wgContLang, $wgLang; -		$out = Xml::openElement('div', array( 'class' => 'mw-search-formheader' ) ); +		/* Wikia change begin - @author: Macbre */ +		$out = Xml::openElement( 'table', array( 'id'=>'mw-search-top-table', 'border'=>0, 'cellpadding'=>0, 'cellspacing'=>0 ) ). +			Xml::openElement( 'tr' ). +			Xml::openElement( 'td' ). "\n"	. +			$this->shortDialog( $term ). +			Xml::closeElement('td'). +			Xml::closeElement('tr'). +			Xml::closeElement('table'); +		/* Wikia change end */ + +		$out .= Xml::openElement('div', array( 'class' => 'mw-search-formheader' ) ); $bareterm = $term; if( $this->startsWithImage( $term ) ) { @@ -951,7 +1000,7 @@ 		$out .= Html::input( 'search', $term, 'search', array( 'id' => $this->searchAdvanced ? 'powerSearchText' : 'searchText', 'size' => '50', -			'autofocus' +			#'autofocus' // Wikia - commented out due to BugId:4016 ) ) . "\n"; $out .= Html::hidden( 'fulltext', 'Search' ). "\n"; $out .= Xml::submitButton( wfMsg( 'searchbutton' ) ). "\n";