Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/index.tmpl

Issue 29695555: Fixes #6 - Add media mention banner (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Undo change to full-width layout Created Feb. 26, 2018, 8:31 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | static/css/index.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/index.tmpl
===================================================================
--- a/includes/index.tmpl
+++ b/includes/index.tmpl
@@ -14,16 +14,54 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
#}
+{% set media_coverage = [
+ {
+ "publisher": "Media Post",
+ "link": "http://www.mediapost.com/publications/article/289691/adblock-plus-comes-to-new-york.html",
+ "link_title": "Media Post article about Adblock Plus",
+ "image": "mediapost",
+ "image_alt": "Media Post logo"
+ },
+ {
+ "publisher": "NY Times",
+ "link": "https://www.nytimes.com/2015/08/20/technology/personaltech/ad-blockers-and-the-nuisance-at-the-heart-of-the-modern-web.html",
+ "link_title": "New York Times article about Adblock Plus",
+ "image": "nyt",
+ "image_alt": "New York Times logo"
+ },
+ {
+ "publisher": "Wall St. Journal",
+ "link": "https://www.wsj.com/articles/adblock-plus-chief-till-faida-says-consumers-are-fed-up-with-current-online-ads-1462981668",
+ "link_title": "Wall St. Journal article about Adblock Plus",
+ "image": "wsj",
+ "image_alt": "Wall St. Journal logo"
+ },
+ {
+ "publisher": "TechCrunch",
+ "link": "https://techcrunch.com/2016/05/09/adblock-plus-closes-in-on-a-billion-downloads/",
+ "link_title": "Tech Crunch article about Adblock Plus",
+ "image": "techcrunch",
+ "image_alt": "Tech Crunch logo"
+ },
+ {
+ "publisher": "BusinessInsider",
+ "link": "http://www.businessinsider.com/theres-nothing-wrong-about-the-way-adblock-plus-makes-money-2015-9",
+ "link_title": "Business Insider article about Adblock Plus",
+ "image": "business-insider",
+ "image_alt": "Business Insider logo"
+ }
+] %}
+
<head>
<link href="/css/index.css" rel="stylesheet">
<link href="/css/index-desktop.css" media="(min-width: 1000px)" rel="stylesheet">
<link href="/css/index-mobile.css" media="(max-width: 1000px)" rel="stylesheet">
<link href="https://adblockplus.org/" rel="canonical">
<link href="https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb" rel="chrome-webstore-item">
<meta content="website" property="og:type">
@@ -138,16 +176,36 @@
{{ "Click to play this video. Please note that this video is hosted by YouTube. When this video is played, some personal data is transferred to YouTube. For more information, please review YouTube's <a href='https://www.google.com/intl/en/policies/privacy/' target='_blank'>privacy policy</a>." | translate("video-disclaimer") }}
</p>
</div>
<img id="maxthon-instruction" src="/img/maxthon-instruction.png" alt="{{"Activate Adblock Plus in Maxthon"|translate("maxthon-instruction")}}">
<img id="edge-teaser" src="/img/edge_teaser.png" alt="{{"Comming soon image of Adblock Plus for Microsoft Edge"|translate("edge-teaser")}}" />
</div>
+<div id="media-section" class="bg-primary section">
+ <div class="container">
+ <div id="media">
+ <header id="media-header">
+ <h2>As Mentioned On:</h2>
+ <small>(Links open in a new window)</small>
+ </header>
+ <ul id="media-list" class="unstyled">
+ {% for item in media_coverage %}
+ <li>
+ <a href="{{ item.link }}" target="_blank" title="{{ item.link_title }}">
+ <img src="/img/media/{{ item.image }}.png" srcset="/img/media/{{ item.image }}-2x.png 2x" alt="{{ item.image_alt }}">
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+</div>
+
<div id="key-facts">
<section class="first">
<div class="sprite" id="facts-open-source"></div>
<h1>{{"Open Source"|translate("s44")}}</h1>
<p>
{{"Adblock Plus is an open source project.\n <a href=\"contribute\">Join us!</a>"|translate("s45")}}
</p>
</section>
@@ -161,17 +219,16 @@
</section>
<section>
<div class="sprite" id="facts-privacy"></div>
<h1>{{"Privacy Guaranteed"|translate("s48")}}</h1>
<p>
{{"Adblock Plus will never collect your <a href=\"privacy\">personal data</a>."|translate("privacy-policy-note")}}
</p>
-
</section>
</div>
{% if page == "internet-explorer" %}
<p id="ready-for-windows-notice" class="notice">
{{"Adblock Plus for Internet Explorer is supported by eyeo GmbH on the following editions of Windows 10 – Windows 10 Pro, Windows 10 Education and Windows 10 Enterprise. Adblock Plus for Internet Explorer is supported on the in-market supported servicing branches of Windows 10 including - Current Branch, Current Branch for Business and the following Long-Term Servicing branch: Windows 10."|translate("ready-for-windows-notice")}}
</p>
{% endif %}
« no previous file with comments | « no previous file | static/css/index.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld