Index: includes/index.tmpl |
=================================================================== |
--- a/includes/index.tmpl |
+++ b/includes/index.tmpl |
@@ -62,29 +62,43 @@ |
</li> |
<li id="feature-maxthon" itemprop="featureList"> |
<div class="sprite"></div> |
{{"Integrated by default in"|translate("s11")}} <a href="http://www.maxthon.com/" target="_blank">{{"Maxthon Cloud Browser"|translate("s12")}}</a> |
</li> |
</ul> |
</div> |
+ {% if locale == defaultlocale or (has_string("term-message", "index") and source.has_localizable_file(locale, "terms")) %} |
juliandoucette
2017/05/02 10:45:34
Warnings:
1. The terms page is not included in th
|
+ <p class="terms-message"> |
+ {{ "By clicking the Agree and Install button below, you agree to our <a href='terms'>Terms of Use</a>." | translate("terms-message", "Terms of use message") }} |
+ </p> |
+ {% endif %} |
+ |
<h3 class="edge-message"> |
{{"Adblock Plus for Microsoft Edge requires Windows 10 Anniversary Update"|translate("edge-message")}} |
</h3> |
<div id="install"> |
- <a class="install-button" href="https://update.adblockplus.org/latest/adblockplusfirefox.xpi" id="install-firefox">{{"Install for Firefox"|translate("s13")}}</a> |
- <a class="install-button" href="https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb" id="install-chrome" onclick="chrome.webstore.install(); return false;">{{"Install for Chrome"|translate("s14")}}</a> |
- <a class="install-button" href="https://addons.opera.com/extensions/details/opera-adblock/?display=en-US" id="install-opera">{{"Install for Opera"|translate("s15")}}</a> |
- <a class="install-button" href="android-install" id="install-android">{{"Install for Android"|translate("s16")}}</a> |
- <a class="install-button" href="https://update.adblockplus.org/latest/adblockplusie.exe" id="install-internet-explorer">{{"Install for Internet Explorer"|translate("s17")}}</a> |
- <a class="install-button" href="https://update.adblockplus.org/latest/adblockplussafari.safariextz" id="install-safari">{{"Install for Safari"|translate("s18")}}</a> |
- <a class="install-button" href="https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb" id="install-yandex-browser" onclick="chrome.webstore.install(); return false;">{{"Install for Yandex Browser"|translate("s19")}}</a> |
- <a class="install-button" href="ms-windows-store://pdp/?ProductId=9nblggh4r9nz" id="install-edge">{{"Install for Microsoft Edge"|translate("install-edge")}}</a> |
+ {% for platform_id in platforms %} |
+ {% set platform = platforms[platform_id] %} |
+ <a |
+ id="install-{{ platform_id }}" |
+ class="install-button" |
+ {% if platform_id in ('chrome', 'yandex-browser') %} |
+ onclick="chrome.webstore.install(); return false;" |
+ {% endif %} |
+ href="{{ platform.href }}"> |
+ {% if locale == "en" or has_string(("agree-install-%s" % platform_id), "index") %} |
+ {{ ("Agree and Install for <fix>%s</fix>" % platform.label) | translate(("agree-install-%s" % platform_id), "button label") }} |
+ {% else %} |
+ {{ ("Install for <fix>%s</fix>" % platform.label) | translate(("install-%s" % platform_id), "button label") }} |
+ {% endif %} |
+ </a> |
+ {% endfor %} |
</div> |
<div id="other-platform"> |
<div>{{"Download Adblock Plus for another platform"|translate("other-platform")}}</div> |
<ul> |
<li> |
<a class="sprite" href="firefox" id="platform-firefox" title="{{"Adblock Plus for Firefox"|translate("s20")}}"></a> |
</li> |