PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/en-US/firefox/xp/index.html

https://github.com/jlongster/mozilla.com
HTML | 237 lines | 195 code | 22 blank | 20 comment | 0 complexity | 9153e7704c015ee5bcd854a4024aa84b MD5 | raw file
  1. <?php
  2. require_once "{$config['file_root']}/includes/force_ssl.php";
  3. require_once "{$config['file_root']}/includes/min/inline.php";
  4. $page_title = 'Mozilla Firefox Web Browser | Free Download';
  5. $body_id = 'home';
  6. $fonts = ' '; // Remove fonts cause IE will download them anyway
  7. $styles = ' ';
  8. $all_css = min_inline_css('css');
  9. $home_css = min_inline_css('css_home');
  10. $extra_headers = <<<EXTRA_HEADERS
  11. <!-- Please do not ever remove this comment. -->
  12. <meta name="keywords" content="Firefox, Mozilla Firefox, Mozilla, Thunderbird, Thunderbird 2, Thunderbird email, email, Firefox 2, Foxfire, Fire Fox, browser, web browser, internet browser, web, pop-up blocker, internet, speed, secure, customize, online, add-ons, fastest, download Firefox" />
  13. <meta name="description" content="Mozilla Firefox is created by a global non-profit dedicated to putting individuals in control and shaping the future of the web for the public good." />
  14. <meta name="WT.ad" content="Download Firefox;Tour;Security;Go Fast;Customize;Beta" />
  15. {$all_css}
  16. {$home_css}
  17. <style>
  18. body {
  19. background-image: url("/img/covehead/firefox/direct/page-background.png");
  20. }
  21. #main-feature { zoom: 1; }
  22. #home #main-content {
  23. margin-top: 0;
  24. }
  25. #home #main-feature img.screenshot {
  26. bottom: 0;
  27. top: auto;
  28. }
  29. #home #main-feature h2 {
  30. padding-top: 70px;
  31. }
  32. #home #main-feature h2 em {
  33. font-size: 28px;
  34. letter-spacing: -0.02em;
  35. display: block;
  36. }
  37. #home ul#benefits {
  38. margin-bottom: 0;
  39. }
  40. #home ul#benefits li {
  41. line-height: 22px;
  42. margin-bottom: 30px;
  43. }
  44. </style>
  45. EXTRA_HEADERS;
  46. $head_scripts = min_inline_js('js_utils');
  47. include_once "{$config['file_root']}/{$lang}/includes/header.inc.php";
  48. ?>
  49. <?php
  50. // Funnelcake Config
  51. $_product_details_options = array();
  52. if (array_key_exists('funnelcake_suffix', $config) && !empty($config['funnelcake_suffix'])) {
  53. $_product_details_options['tweaks'] = array('/'.LATEST_FIREFOX_VERSION.'/' => LATEST_FIREFOX_VERSION.$config['funnelcake_suffix']);
  54. echo <<<FUNNEL
  55. <script>// <![CDATA[
  56. var gDownloadFunnelCake = '{$config['funnelcake_suffix']}';
  57. // ]]></script>
  58. FUNNEL;
  59. }
  60. ?>
  61. <div id="main-feature">
  62. <h2>Mozilla Firefox. <em>Bringing the modern Web to XP.</em></h2>
  63. <ul id="benefits">
  64. <li class="first">Super <span>speed</span></li>
  65. <li>Stunning <span>graphics</span></li>
  66. <li>The latest <span>technologies</span></li>
  67. </ul>
  68. <img src="<?=$config['static_prefix']?>/img/covehead/firefox/main-feature-xp-gamer.png" alt="Firefox screenshot" class="screenshot" />
  69. <div id="home-download">
  70. <script><?php include $config['file_root'] . '/js/download.old.js';?></script>
  71. <script>
  72. <!--
  73. // Configure the Firefox download write script
  74. var gDownloadTracker = "dcsMultiTrack('DCS.dcssip', 'www.mozilla.org', 'DCS.dcsuri', '/en-US/products/download.html', 'WT.ti', 'Link: Get Firefox', 'WT.dl', 99, 'WT.nv', 'Content', 'WT.ac', 'Download Firefox');";
  75. var gDownloadItemTemplate = " <li class=\"%CSS_CLASS%\"> <a onclick=\"" + gDownloadTracker + " do_download('%BOUNCER_URL%');\" href=\"%DOWNLOAD_URL%&amp;extra=xpcamp\" class=\"download-link download-firefox\"><span class=\"download-content\"><span class=\"download-title\">Firefox <img src=\"<?=$config['static_prefix']?>/img/home/download-arrow.png\" alt=\"\" id=\"download-arrow\"></span> Free Download <span class=\"download-info\">%VERSION% for %PLATFORM_NAME% <em class=\"download-lang\">%LANGUAGE_NAME%<\/em><\/span><\/span><\/a> <\/li>";
  76. var gDownloadItemMacOS9 = "<a href=\"\">MacOS 9 and earlier are not supported<\/a>";
  77. var gDownloadItemOtherPlatform = "<a href=\"/<?=$lang?>/firefox/<?=LATEST_FIREFOX_VERSION?>/releasenotes/#contributedbuilds\" onclick=\"" + gDownloadTracker + "\">Free Download<\/a>"
  78. document.writeln("<ul class=\"home-download " + gCssClass + " \">");
  79. writeDownloadItems("fx");
  80. document.writeln("<\/ul>");
  81. document.writeln("<div class=\"download-other\">");
  82. document.writeln("<a href=\"\/<?=$lang?>\/firefox\/all.html\">All Systems &amp; Languages<\/a> | ");
  83. document.writeln("<a href=\"\/<?=$lang?>\/legal\/privacy\/firefox.html\">Privacy Policy<\/a>");
  84. document.writeln("<\/div>");
  85. //-->
  86. </script>
  87. <?php echo $firefoxDetails->getNoScriptBlockForLocale('en-US', $_product_details_options); ?>
  88. </div>
  89. <script>
  90. if(/(PPC|Mac OS X 10.[0-4])/.test(navigator.userAgent)) {
  91. var div = document.getElementById('home-download');
  92. div.innerHTML = 'Unfortunately the latest version of Firefox isn\'t compatible with your computer\'s operating system. <a href="/firefox/4.0/system-requirements/">Learn more</a>.';
  93. div.style.width = '400px';
  94. div.style.marginBottom = '50px';
  95. }
  96. </script>
  97. <p id="mobile-promo">
  98. <a href="/<?=$lang?>/mobile/?WT.mc_id=hp_1&amp;WT.mc_ev=click"
  99. onclick="dcsMultiTrack('DCS.dcssip', 'www.mozilla.org',
  100. 'DCS.dcsuri', '/<?=$lang?>/mobile/',
  101. 'WT.ti', 'Link: Get Firefox on your phone!',
  102. 'WT.dl', 99,
  103. 'WT.nv', 'Content',
  104. 'WT.ac', 'Mobile');">Get Firefox on your phone!</a>
  105. </p>
  106. </div>
  107. <div id="main-content"></div>
  108. <!-- Please do not ever remove this comment. -->
  109. <script>
  110. // <![CDATA[
  111. // Includes jquery and then nav-main.js after onload
  112. (function () {
  113. var head = document.head || document.getElementsByTagName("head")[0];
  114. function init_video()
  115. {
  116. Mozilla.VideoPlayer.width = 640;
  117. Mozilla.VideoPlayer.height = 360;
  118. var player = new Mozilla.VideoPlayer(
  119. 'video-link',
  120. [
  121. {
  122. url: 'http://videos-cdn.mozilla.net/serv/marketing/firefox4/FF4_Jess3Features_VO_1.webm',
  123. type: 'video/webm; codecs=&quot;vp8, vorbis&quot;',
  124. title: 'WebM format'
  125. },
  126. {
  127. url: 'http://videos-cdn.mozilla.net/serv/marketing/firefox4/FF4_Jess3Features_VO_1.theora.ogv',
  128. type: 'video/ogg; codecs=&quot;theora, vorbis&quot;',
  129. title: 'Ogg&nbsp;Theora format'
  130. },
  131. {
  132. url: 'http://videos-cdn.mozilla.net/serv/marketing/firefox4/FF4_Jess3Features_VO_1.mp4',
  133. type: 'video/mp4',
  134. title: 'MPEG-4 format'
  135. }
  136. ],
  137. 'serv/marketing/firefox4/FF4_Jess3Features_VO_1.mp4',
  138. true
  139. );
  140. }
  141. function load_video()
  142. {
  143. var scriptElem = document.createElement("script");
  144. var scriptDone = false;
  145. scriptElem.onload = scriptElem.onreadystatechange = function () {
  146. if ((scriptElem.readyState && scriptElem.readyState !== "complete" && scriptElem.readyState !== "loaded") || scriptDone) {
  147. return false;
  148. }
  149. scriptElem.onload = scriptElem.onreadystatechange = null;
  150. scriptDone = true;
  151. init_video();
  152. };
  153. scriptElem.src = "<?php echo $config['static_prefix'];?>/js/mozilla-video-tools.js";
  154. head.insertBefore(scriptElem, head.firstChild);
  155. }
  156. function load_nav_main()
  157. {
  158. var scriptElem = document.createElement("script");
  159. scriptElem.src = "<?php echo $config['static_prefix'];?>/js/nav-main.js";
  160. head.insertBefore(scriptElem, head.firstChild);
  161. }
  162. function load_jquery ()
  163. {
  164. var scriptElem = document.createElement("script");
  165. var scriptDone = false;
  166. scriptElem.onload = scriptElem.onreadystatechange = function () {
  167. if ((scriptElem.readyState && scriptElem.readyState !== "complete" && scriptElem.readyState !== "loaded") || scriptDone) {
  168. return false;
  169. }
  170. scriptElem.onload = scriptElem.onreadystatechange = null;
  171. scriptDone = true;
  172. load_nav_main();
  173. load_video();
  174. };
  175. scriptElem.src = "<?php echo $config['static_prefix'];?>/js/jquery/jquery.min.js";
  176. head.insertBefore(scriptElem, head.firstChild);
  177. }
  178. var old_onload = window.onload;
  179. if (old_onload) {
  180. window.onload = function() { old_onload(); load_jquery(); };
  181. } else {
  182. window.onload = load_jquery;
  183. }
  184. })();
  185. // ]]>
  186. </script>
  187. <!-- measure tag (Bug 660249) -->
  188. <IFRAME
  189. SRC="https://media.mozilla.com/ipixel?spacedesc=1121943_1061349_1x1_1061349_1061349&db_afcr=123&target=_blank&group=Mozilla&event=LandingPage&revenue=REVENUE&random=CACHEBUSTER"
  190. WIDTH="1" HEIGHT="1" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0">
  191. <![if lt IE 5]>
  192. <SCRIPT
  193. SRC="https://media.mozilla.com/jpixel?spacedesc=1121943_1061349_1x1_1061349_1061349&db_afcr=123&target=_blank&group=Mozilla&event=LandingPage&revenue=REVENUE&random=CACHEBUSTER"></SCRIPT>
  194. <![endif]>
  195. </IFRAME>
  196. <?php
  197. $extra_footers = <<<EXTRA_FOOTERS
  198. <div class="footer-links">
  199. <a href="/firefox/central/">Tour</a> &nbsp;|&nbsp;
  200. <a href="/firefox/features/">Desktop</a> &nbsp;|&nbsp;
  201. <a href="/mobile/">Mobile</a> &nbsp;|&nbsp;
  202. <a href="https://addons.mozilla.org/">Add-ons</a> &nbsp;|&nbsp;
  203. <a href="http://support.mozilla.com/">Support</a> &nbsp;|&nbsp;
  204. <a href="/about/">About</a>
  205. <div class="footer-privacy">
  206. <a href="/privacy-policy.html">Privacy Policy</a> &nbsp;|&nbsp;
  207. <a href="/en-US/about/legal.html">Legal Notices</a>
  208. </div>
  209. </div>
  210. EXTRA_FOOTERS;
  211. include_once "{$config['file_root']}/includes/footer-home.inc.php";
  212. ?>