Index: trunk/extensions/MobileFrontend/MobileFrontend.body.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | public static $displayNoticeId; |
33 | 33 | public static $leaveFeedbackURL; |
34 | 34 | public static $mobileRedirectFormAction; |
35 | | - public static $isBetaGroupMember = false; |
| 35 | + public static $isBetaGroupMember = true; |
36 | 36 | public static $minifyJS = true; |
37 | 37 | public static $hideSearchBox = false; |
38 | 38 | public static $hideLogo = false; |
— | — | @@ -1104,6 +1104,7 @@ |
1105 | 1105 | } |
1106 | 1106 | |
1107 | 1107 | public function getFooterTemplate() { |
| 1108 | + global $wgExtensionAssetsPath; |
1108 | 1109 | wfProfileIn( __METHOD__ ); |
1109 | 1110 | $footerTemplate = new FooterTemplate(); |
1110 | 1111 | $logoutHtml = ( self::$logoutHtml ) ? self::$logoutHtml : ''; |
— | — | @@ -1119,6 +1120,7 @@ |
1120 | 1121 | 'loginHtml' => $loginHtml, |
1121 | 1122 | 'code' => self::$code, |
1122 | 1123 | 'hideFooter' => self::$hideFooter, |
| 1124 | + 'wgExtensionAssetsPath' => $wgExtensionAssetsPath, |
1123 | 1125 | 'isBetaGroupMember' => self::$isBetaGroupMember, |
1124 | 1126 | ); |
1125 | 1127 | $footerTemplate->setByArray( $options ); |
Index: trunk/extensions/MobileFrontend/stylesheets/beta_common.css |
— | — | @@ -155,14 +155,6 @@ |
156 | 156 | -webkit-appearance: none; |
157 | 157 | } |
158 | 158 | |
159 | | -ul#footer-info { |
160 | | - list-style: none; |
161 | | - list-style-image: none; |
162 | | - list-style-type: none; |
163 | | - margin: 0; |
164 | | - padding: 0; |
165 | | -} |
166 | | - |
167 | 159 | .divclearable { |
168 | 160 | display: block; |
169 | 161 | zoom: 1; |
— | — | @@ -488,11 +480,6 @@ |
489 | 481 | color: blue; |
490 | 482 | } |
491 | 483 | |
492 | | -.links { |
493 | | - float: left; |
494 | | - padding: 10px; |
495 | | -} |
496 | | - |
497 | 484 | #contentSub, |
498 | 485 | .dablink { |
499 | 486 | margin-bottom: 10px; |
— | — | @@ -590,11 +577,6 @@ |
591 | 578 | margin: 0; |
592 | 579 | } |
593 | 580 | |
594 | | -#footer { |
595 | | - margin: 0 8px; |
596 | | - clear: both; |
597 | | -} |
598 | | - |
599 | 581 | #logo { |
600 | 582 | position: absolute; |
601 | 583 | height: 22px; |
— | — | @@ -734,20 +716,7 @@ |
735 | 717 | margin: 8px 0 8px -3px; |
736 | 718 | } |
737 | 719 | |
738 | | -#footer { |
739 | | - padding-top: 1em; |
740 | | -} |
741 | 720 | |
742 | | -#footer #perm { |
743 | | - padding-top: 2em; |
744 | | - font-size: 90%; |
745 | | -} |
746 | | - |
747 | | -#footer #copyright { |
748 | | - padding: 1em 0; |
749 | | - font-size: 80%; |
750 | | -} |
751 | | - |
752 | 721 | ol.references > li:target, |
753 | 722 | sup.reference:target, |
754 | 723 | span.citation:target, |
— | — | @@ -889,6 +858,121 @@ |
890 | 859 | display: none !important; |
891 | 860 | } |
892 | 861 | |
| 862 | +/* FOOTER */ |
| 863 | +#footer { |
| 864 | + -webkit-box-shadow: 0px -20px 10px -16px #ddd; |
| 865 | + -moz-box-shadow: 0px -20px 10px -16px #ddd; |
| 866 | + -o-box-shadow: 0px -20px 10px -16px #ddd; |
| 867 | + box-shadow: 0px -20px 10px -16px #ddd; |
| 868 | + padding: 12px 22px; /* see content_wrapper margin */ |
| 869 | + border-top: solid 1px #aaa; |
| 870 | + line-height: 24px; |
| 871 | + position: relative; |
| 872 | + clear: both; /* cancel any floating in the content */ |
| 873 | +} |
| 874 | + |
| 875 | +#footer ul { |
| 876 | + text-align: center; |
| 877 | + width: 100%; |
| 878 | + padding: 0; |
| 879 | + list-style: none; |
| 880 | +} |
| 881 | + |
| 882 | +#footer img { |
| 883 | + height: 23px; |
| 884 | + float: left; |
| 885 | + margin-right: 4px; |
| 886 | +} |
| 887 | + |
| 888 | +#footer .toggleCopyright, |
| 889 | +#footer .license { |
| 890 | + font-weight: bold; |
| 891 | + font-size: 1em; |
| 892 | + line-height: 24px; |
| 893 | +} |
| 894 | + |
| 895 | +#footer .toggleCopyright { |
| 896 | + float: right; |
| 897 | + margin: 0; |
| 898 | + padding: 0; |
| 899 | + position: relative; |
| 900 | + padding-right: 32px; |
| 901 | +} |
| 902 | + |
| 903 | +.toggleCopyright .hide, |
| 904 | +.toggleCopyright .show { |
| 905 | + position: absolute; |
| 906 | + top: 0; |
| 907 | + right: 0; |
| 908 | + height: 22px; |
| 909 | +} |
| 910 | + |
| 911 | +/* |
| 912 | +disable animations in footer |
| 913 | +this is so that toggling can scroll it into view |
| 914 | +*/ |
| 915 | +.togglingEnabled #footer .content_block { |
| 916 | + -webkit-transition: none; |
| 917 | + -moz-transition: none; |
| 918 | + -o-transition: none; |
| 919 | + transition: none; |
| 920 | +} |
| 921 | + |
| 922 | +.copyrightNotice { |
| 923 | + padding-top: 8px; |
| 924 | + line-height: 1.2em; |
| 925 | + margin-bottom: 12px; |
| 926 | +} |
| 927 | + |
| 928 | +#content_footer { |
| 929 | + text-align: center; |
| 930 | + font-size: 0.9em; |
| 931 | +} |
| 932 | + |
| 933 | +#footer .links { |
| 934 | + margin: 0; |
| 935 | +} |
| 936 | + |
| 937 | +#footer .links li { |
| 938 | + display: block; |
| 939 | + width: 25%; |
| 940 | + font-size: 0.8em; |
| 941 | + float: left; |
| 942 | + text-align: center; |
| 943 | +} |
| 944 | + |
| 945 | +#footer .links li:first-child { |
| 946 | + text-align: left; |
| 947 | +} |
| 948 | + |
| 949 | +#footer .links li:last-child { |
| 950 | + text-align: right; |
| 951 | +} |
| 952 | + |
| 953 | +#footer .links:after { |
| 954 | + content: ""; |
| 955 | + clear: both; |
| 956 | + position: relative; |
| 957 | + display: block; |
| 958 | +} |
| 959 | + |
| 960 | +.togglingEnabled #footer .more, |
| 961 | +.togglingEnabled #footer .openSection .less { |
| 962 | + display: block; |
| 963 | +} |
| 964 | + |
| 965 | +#footer .more, /* no javascript */ |
| 966 | +#footer .less, |
| 967 | +#footer .openSection .more { |
| 968 | + display: none; |
| 969 | +} |
| 970 | + |
| 971 | +@media all and (min-width: 500px) { |
| 972 | + #footer .links li { |
| 973 | + font-size: 1.2em; |
| 974 | + } |
| 975 | +} |
| 976 | + |
893 | 977 | #mf-references { |
894 | 978 | -webkit-transition: bottom 0.1s ease-in-out; |
895 | 979 | -moz-transition: bottom 0.1s ease-in-out; |
Index: trunk/extensions/MobileFrontend/templates/FooterTemplate.php |
— | — | @@ -28,19 +28,53 @@ |
29 | 29 | $logoutLink = ( $this->data['logoutHtml'] ) ? ' | ' . $this->data['logoutHtml'] : ''; |
30 | 30 | $logoutLink = ( $this->data['loginHtml'] ) ? ' | ' . $this->data['loginHtml'] : $logoutLink; |
31 | 31 | |
32 | | - $feedbackLink = ( $this->data['code'] == 'en' && $this->data['isBetaGroupMember'] ) ? "| <a href=\"{$leaveFeedbackURL}\">{$leaveFeedback}</a>" : ''; |
| 32 | + $feedbackLink = ( $this->data['code'] == 'en' && $this->data['isBetaGroupMember'] ) ? "<a href=\"{$leaveFeedbackURL}\">{$leaveFeedback}</a>" : ''; |
33 | 33 | |
34 | 34 | $footerDisplayNone = ( $this->data['hideFooter'] ) ? ' style="display: none;" ' : ''; |
35 | 35 | |
36 | | - $footerHtml = <<<HTML |
37 | | - <div id='footer' {$footerDisplayNone}> |
38 | | - <div class='nav' id='footmenu'> |
| 36 | + $skin = RequestContext::getMain()->getSkin(); |
| 37 | + $disclaimerLink = $skin->disclaimerLink(); |
| 38 | + $privacyLink = $skin->privacyLink(); |
| 39 | + $aboutLink = $skin->aboutLink(); |
| 40 | + |
| 41 | + $normalFooter = <<<HTML |
| 42 | + <div class='nav' id='footmenu'> |
39 | 43 | <div class='mwm-notice'> |
40 | 44 | <a href="{$viewNormalSiteURL}" id="mf-display-toggle">{$regularSite}</a> | <a href="{$imagesURL}">{$imagesToggle}</a> {$feedbackLink} {$logoutLink} |
41 | 45 | </div> |
42 | 46 | </div> |
43 | 47 | <div id='copyright'>{$copyright}</div> |
| 48 | +HTML; |
| 49 | + $betaFooter = <<<HTML |
| 50 | + <!-- TODO: make license icon and text dynamic --> |
| 51 | + <img src="{$this->data['wgExtensionAssetsPath']}/MobileFrontend/stylesheets/images/ccommons.png" alt="creative commons" |
| 52 | + class='license' /> |
| 53 | + <a href="http://creativecommons.org/licenses/by-sa/3.0/" class="license">by SA 3.0</a> |
| 54 | + <a href="#content_footer" class="toggleCopyright section_heading" id="section_footer"> |
| 55 | + <span class="more">more information</span><span class="less">less information</span> |
| 56 | + </a> |
| 57 | + <div class="content_block" id="content_footer"> |
| 58 | + <div class="copyrightNotice"> |
| 59 | + {$copyright} |
44 | 60 | </div> |
| 61 | + <ul class='links'> |
| 62 | + <li> |
| 63 | + <a href="{$this->data['leaveFeedbackURL']}">Contact</a> |
| 64 | + </li><li> |
| 65 | + {$privacyLink} |
| 66 | + </li><li> |
| 67 | + {$aboutLink} |
| 68 | + </li><li> |
| 69 | + {$disclaimerLink} |
| 70 | + </li> |
| 71 | + </ul> |
| 72 | + </div> |
| 73 | +HTML; |
| 74 | + $footer = ( $this->data['isBetaGroupMember'] ) ? $betaFooter : $normalFooter; |
| 75 | + $footerHtml = <<<HTML |
| 76 | + <div id='footer' {$footerDisplayNone}> |
| 77 | + {$footer} |
| 78 | + </div> |
45 | 79 | |
46 | 80 | HTML; |
47 | 81 | return $footerHtml; |