Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -127,6 +127,7 @@ |
128 | 128 | public static $mobileRedirectFormAction; |
129 | 129 | public static $isBetaGroupMember = false; |
130 | 130 | public static $hideSearchBox = false; |
| 131 | + public static $hideLogo = false; |
131 | 132 | public static $languageUrls; |
132 | 133 | |
133 | 134 | public static $messageKeys = array( |
— | — | @@ -602,6 +603,9 @@ |
603 | 604 | if ( !empty( $_SERVER['HTTP_APPLICATION_VERSION'] ) && |
604 | 605 | strpos( $_SERVER['HTTP_APPLICATION_VERSION'], 'Wikipedia Mobile' ) !== false ) { |
605 | 606 | self::$hideSearchBox = true; |
| 607 | + if (strpos( $_SERVER['HTTP_APPLICATION_VERSION'], 'Android' ) !== false ) { |
| 608 | + self::$hideLogo = true; |
| 609 | + } |
606 | 610 | } |
607 | 611 | |
608 | 612 | $optInCookie = $this->getOptInOutCookie(); |
Index: trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php |
— | — | @@ -10,6 +10,8 @@ |
11 | 11 | $scriptUrl = wfScript(); |
12 | 12 | $searchBoxDisplayNone = ( self::$hideSearchBox ) ? ' style="display: none;" ' : ''; |
13 | 13 | |
| 14 | +$logoDisplayNone = ( self::$hideLogo ) ? ' style="display: none;" ' : ''; |
| 15 | + |
14 | 16 | $openSearchResults = '<div id="results"></div>'; |
15 | 17 | |
16 | 18 | $languageSelection = self::buildLanguageSelection() . '<br/>'; |
— | — | @@ -21,7 +23,7 @@ |
22 | 24 | $searchWebkitHtml = <<<EOD |
23 | 25 | <div id='header'> |
24 | 26 | <div id='searchbox'> |
25 | | - <img width="35" height="22" alt='Logo' id='logo' src='{$wgMobileFrontendLogo}' {$logoOnClick} /> |
| 27 | + <img width="35" height="22" alt='Logo' id='logo' src='{$wgMobileFrontendLogo}' {$logoOnClick} {$logoDisplayNone} /> |
26 | 28 | <form action='{$scriptUrl}' class='search_bar' method='get' {$searchBoxDisplayNone}> |
27 | 29 | <input type="hidden" value="Special:Search" name="title" /> |
28 | 30 | <div id="sq" class="divclearable"> |