Index: trunk/extensions/MobileFrontend/FooterTemplate.php |
— | — | @@ -32,8 +32,10 @@ |
33 | 33 | |
34 | 34 | $feedbackLink = ( $this->data['code'] == 'en' && $this->data['isBetaGroupMember'] ) ? "| <a href=\"{$leaveFeedbackURL}\">{$leaveFeedback}</a>" : ''; |
35 | 35 | |
| 36 | + $footerDisplayNone = ( $this->data['hideFooter'] ) ? ' style="display: none;" ' : ''; |
| 37 | + |
36 | 38 | $footerHtml = <<<HTML |
37 | | - <div id='footer'> |
| 39 | + <div id='footer' {$footerDisplayNone}> |
38 | 40 | <div class='nav' id='footmenu'> |
39 | 41 | <div class='mwm-notice'> |
40 | 42 | <a href="{$viewNormalSiteURL}">{$regularSite}</a> | <a href="{$imagesURL}">{$imagesToggle}</a> {$feedbackLink} {$logoutLink} |
Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -146,6 +146,7 @@ |
147 | 147 | public static $isBetaGroupMember = false; |
148 | 148 | public static $hideSearchBox = false; |
149 | 149 | public static $hideLogo = false; |
| 150 | + public static $hideFooter = false; |
150 | 151 | public static $languageUrls; |
151 | 152 | public static $wsLoginToken = ''; |
152 | 153 | public static $wsLoginFormAction = ''; |
— | — | @@ -710,6 +711,10 @@ |
711 | 712 | self::$hideLogo = true; |
712 | 713 | } |
713 | 714 | } |
| 715 | + |
| 716 | + if ( self::$hideLogo && self::$hideLogo == true ) { |
| 717 | + self::$hideFooter = true; |
| 718 | + } |
714 | 719 | |
715 | 720 | $optInCookie = $this->getOptInOutCookie(); |
716 | 721 | if ( !empty( $optInCookie ) && |
— | — | @@ -1576,6 +1581,7 @@ |
1577 | 1582 | 'logoutHtml' => $logoutHtml, |
1578 | 1583 | 'loginHtml' => $loginHtml, |
1579 | 1584 | 'code' => self::$code, |
| 1585 | + 'hideFooter' => self::$hideFooter, |
1580 | 1586 | 'isBetaGroupMember' => self::$isBetaGroupMember, |
1581 | 1587 | ); |
1582 | 1588 | $footerTemplate->setByArray( $options ); |