Bug 649447 - Remove code for old Spark promotional campaign [r=mfinkle]

--HG--
extra : rebase_source : 6f946f63af9a8aa84d58eb94c572972a94e56a69
This commit is contained in:
Matt Brubeck 2011-04-12 13:45:27 -07:00
parent b502e93e03
commit cf2138d1c5
8 changed files with 0 additions and 62 deletions

View File

@ -452,13 +452,6 @@ pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/");
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
#endif
pref("app.promo.spark.baseURL", "http://spark.mozilla.org");
#ifdef MOZ_OFFICIAL_BRANDING
pref("app.promo.spark.endDate", "2011-05-01");
#else
pref("app.promo.spark.endDate", "2011-01-01");
#endif
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
pref("security.alternate_certificate_error_page", "certerror");

View File

@ -4,4 +4,3 @@ chrome.jar:
content/branding/logoWordmark.png (logoWordmark.png)
content/branding/logo.png (logo.png)
content/branding/favicon32.png (favicon32.png)
content/branding/spark.png (spark.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -4,4 +4,3 @@ chrome.jar:
content/branding/logoWordmark.png (logoWordmark.png)
content/branding/logo.png (logo.png)
content/branding/favicon32.png (favicon32.png)
content/branding/spark.png (spark.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -86,8 +86,6 @@
<div id="footer-wrapper">
<span id="feedback" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.feedbackURL" onclick="openLink(this);" role="button">&aboutHome.giveFeedback;</span><span id="support" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.support.baseURL" onclick="openLink(this);" role="button">&aboutHome.getHelp;</span>
</div>
<div id="promo" pref="app.promo.spark.baseURL" onclick="openLink(this);" role="button"><img src="chrome://branding/content/spark.png"/><span id="promo-label">&aboutHome.promoLabel;</span><span id="promo-button" class="section-row">&aboutHome.promoButton;</span></div>
</div>
<!-- l10n hack -->
@ -126,7 +124,6 @@
function init() {
initTabs();
initAddons();
initPromo();
}
function uninit() {
@ -370,12 +367,6 @@
function uninitAddons() {
getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
}
function initPromo() {
let endDate = new Date(getChromeWin().Services.prefs.getCharPref("app.promo.spark.endDate"));
if (endDate > Date.now())
document.getElementById("promo").style.display = "block";
}
]]></script>
</body>
</html>

View File

@ -8,8 +8,3 @@
<!ENTITY aboutHome.openAllTabs "Open all in tabs">
<!ENTITY aboutHome.noTabs "No tabs from last time">
<!ENTITY aboutHome.noAddons "No recommended add-ons">
<!-- LOCALIZATION NOTE: 'Firefox Spark' is the official name of the promotion/constest and should not be translated -->
<!ENTITY aboutHome.promoLabel "Firefox Spark">
<!-- LOCALIZATION NOTE: 'Play' should be translated in the context of 'playing a game' and not 'playing a video' -->
<!ENTITY aboutHome.promoButton "Play">

View File

@ -256,42 +256,3 @@ body[dir="rtl"] {
border-radius: 8px 0 0 8px;
}
}
#promo {
font-weight: bold;
color: rgb(254,210,13);
background-color: black;
border-radius: 6px;
padding: 10px;
margin-top: 24px;
box-shadow: inset rgba(0, 0, 0, 0.2) 0 -3px 0px, rgba(0, 0, 0, 0.1) 0px 2px 0px;
display: none;
}
#promo-label {
padding-left: 16px;
}
#promo-button {
padding: 8px;
margin: 0;
color: black;
font-size: 18px;
-moz-padding-end: 20px;
}
body[dir="ltr"] #promo-button {
float: right;
background: rgb(254,210,13) url("images/arrowright-16.png") 99% center no-repeat;
}
body[dir="rtl"] #promo-button {
float: left;
background: rgb(254,210,13) url("images/arrowleft-16.png") 1% center no-repeat;
}
@media (max-width: 399px) {
#promo-button {
display: none;
}
}