LEFT | RIGHT |
1 {# | 1 {# |
2 # This file is part of the Adblock Plus website, | 2 # This file is part of the Adblock Plus website, |
3 # Copyright (C) 2006-present eyeo GmbH | 3 # Copyright (C) 2006-present eyeo GmbH |
4 # | 4 # |
5 # Adblock Plus is free software: you can redistribute it and/or modify | 5 # Adblock Plus is free software: you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License version 3 as | 6 # it under the terms of the GNU General Public License version 3 as |
7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
8 # | 8 # |
9 # Adblock Plus is distributed in the hope that it will be useful, | 9 # Adblock Plus is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 </noscript> | 78 </noscript> |
79 | 79 |
80 {% macro pageitem(name) %} | 80 {% macro pageitem(name) %} |
81 {% if name == page %} | 81 {% if name == page %} |
82 <li class="selected">{{get_string(name, "menu")}}</li> | 82 <li class="selected">{{get_string(name, "menu")}}</li> |
83 {% else %} | 83 {% else %} |
84 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li> | 84 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li> |
85 {% endif %} | 85 {% endif %} |
86 {% endmacro %} | 86 {% endmacro %} |
87 | 87 |
88 <header> | 88 <nav id="navbar"> |
89 {{"index"|linkify(id="logo", class="sprite", itemprop="image")}}</a> | 89 <div class="navbar-container"> |
90 <nav> | 90 {{ "index" | linkify(id="navbar-logo") }} |
91 <ul> | 91 <img |
92 {% if localefile == "index" %} | 92 src="/img/navbar-logo.png" |
93 <li class="selected first">{{get_string("installation", "menu")}}</l
i> | 93 srcset="/img/navbar-logo.svg 2x"> |
94 {% else %} | 94 <span>{{ "Adblock <strong>Plus</strong>" | translate("navbar-logo-text
", "Navbar logo text") }}</span> |
95 <li class="install-link first">{{"index"|linkify}}{{get_string("inst
allation", "menu")}} <span class="sprite install-link-icon"></span></a></li> | 95 </a> |
96 {% endif %} | 96 <a href="#" id="navbar-menu-toggle"> |
97 {% for name in ["about", "features", "bugs", "contribute"] %} | 97 <img |
98 {{pageitem(name)}} | 98 src="/img/menu-toggle.png" |
| 99 srcset="/img/menu-toggle.svg 2x"> |
| 100 </a> |
| 101 <ul id="navbar-menu"> |
| 102 {% for pagename in ["about", "features", "bugs", "contribute"] %} |
| 103 <li> |
| 104 {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a> |
| 105 </li> |
99 {% endfor %} | 106 {% endfor %} |
100 <li id="language"> | 107 <li id="navbar-locale-menubar"> |
101 <div id="current-language"> | 108 <a href="#" id="navbar-locale-selected"> |
102 {{ config.get("langnames", locale) }} ({{ locale | to_og_locale |
to_og_location }}) | 109 {{ config.get("langnames", locale) }} ({{ locale | to_og_locale |
to_og_location }}) |
103 <span id="language-arrow" class="sprite"></span> | 110 </a> |
104 </div> | 111 <ul id="navbar-locale-menu"> |
105 <ul id="language-selector"> | |
106 {% for available_locale in available_locales %} | 112 {% for available_locale in available_locales %} |
107 <li class="language-entry"> | 113 <li> |
108 {{ page | linkify(available_locale) }} | 114 {{ page | linkify(available_locale) }} |
109 {{ config.get("langnames", available_locale) }} ({{ availabl
e_locale | to_og_locale | to_og_location }}) | 115 {{ config.get("langnames", available_locale) }} ({{ availabl
e_locale | to_og_locale | to_og_location }}) |
110 </a> | 116 </a> |
111 </li> | 117 </li> |
112 {% endfor %} | 118 {% endfor %} |
113 </ul> | 119 </ul>{# #navbar-locale-menu #} |
114 </li> | 120 </li> |
115 </ul> | 121 </ul>{# #navbar-menu #} |
116 <a href="#" id="hamburger"></a> | 122 </div>{# .container #} |
117 </nav> | 123 </nav>{# #navbar #} |
118 </header> | |
119 | 124 |
120 <div id="content" class="container content {{ localefile == "index" and page
}}"> | 125 <div id="content" class="container content {{ localefile == "index" and page
}}"> |
121 {% if abbnotification %} | 126 {% if abbnotification %} |
122 <? include abb-notification ?> | 127 <? include abb-notification ?> |
123 {% endif %} | 128 {% endif %} |
124 {% if not noheading %} | 129 {% if not noheading %} |
125 <h1>{{title|translate("title")}}</h1> | 130 <h1>{{title|translate("title")}}</h1> |
126 {% endif %} | 131 {% endif %} |
127 | 132 |
128 {% if not notoc %} | 133 {% if not notoc %} |
(...skipping 14 matching lines...) Expand all Loading... |
143 {{toc(toclist)}} | 148 {{toc(toclist)}} |
144 </div> | 149 </div> |
145 {% endif %} | 150 {% endif %} |
146 {% endif %} | 151 {% endif %} |
147 | 152 |
148 {% block body %} | 153 {% block body %} |
149 {{body|safe}} | 154 {{body|safe}} |
150 {% endblock %} | 155 {% endblock %} |
151 </div> | 156 </div> |
152 | 157 |
153 <footer id="site-footer" class="content"> | 158 <footer id="footer" class="content"> |
154 <div class="container"> | 159 <div class="container"> |
155 <div class="row"> | 160 <div class="row"> |
156 <nav class="column one-fourth"> | 161 <nav class="column one-fourth"> |
157 <h5>{{ get_string("resources", "menu") }}</h5> | 162 <h5>{{ get_string("resources", "menu") }}</h5> |
158 <ul> | 163 <ul> |
159 {% for name in ["acceptable-ads", "documentation", "deployments"]
%} | 164 {% for pagename in ["acceptable-ads", "documentation", "deployment
s"] %} |
160 {{ pageitem(name) }} | 165 <li>{{ pagename | linkify }}{{ get_string(pagename, "menu") }}</
a></li> |
161 {% endfor %} | 166 {% endfor %} |
162 </ul> | 167 </ul> |
163 </nav> | 168 </nav> |
164 <nav class="column one-fourth"> | 169 <nav class="column one-fourth"> |
165 <h5>{{ get_string("community", "menu") }}</h5> | 170 <h5>{{ get_string("community", "menu") }}</h5> |
166 <ul> | 171 <ul> |
167 <li><a href="/releases/" hreflang="en">{{get_string("releases", "m
enu")}}</a></li> | 172 <li><a href="/releases/" hreflang="en">{{get_string("releases", "m
enu")}}</a></li> |
168 <li><a href="/blog/" hreflang="en">{{get_string("blog", "menu")}}<
/a></li> | 173 <li><a href="/blog/" hreflang="en">{{get_string("blog", "menu")}}<
/a></li> |
169 <li><a href="/forum/" hreflang="en">{{get_string("forum", "menu")}
}</a></li> | 174 <li><a href="/forum/" hreflang="en">{{get_string("forum", "menu")}
}</a></li> |
170 {{ pageitem("development-builds") }} | 175 {{ pageitem("development-builds") }} |
171 </ul> | 176 </ul> |
172 </nav> | 177 </nav> |
173 <nav class="column one-fourth"> | 178 <nav class="column one-fourth"> |
174 <h5>{{get_string("development", "menu")}}</h5> | 179 <h5>{{get_string("development", "menu")}}</h5> |
175 <ul> | 180 <ul> |
176 {{ pageitem("source") }} | 181 {{ pageitem("source") }} |
177 <li><a href="https://issues.adblockplus.org/report/13" hreflang="e
n">{{ get_string("roadmap", "menu") }}</a></li> | 182 <li><a href="https://issues.adblockplus.org/report/13" hreflang="e
n">{{ get_string("roadmap", "menu") }}</a></li> |
178 {{ pageitem("tools") }} | 183 {{ pageitem("tools") }} |
179 <li><a href="https://eyeo.com/jobs/" hreflang="en">{{ get_string("
jobs", "menu") }}</a></li> | 184 <li><a href="https://eyeo.com/jobs/" hreflang="en">{{ get_string("
jobs", "menu") }}</a></li> |
180 </ul> | 185 </ul> |
181 </nav> | 186 </nav> |
182 <nav id="social-list" class="column one-fourth"> | 187 <nav id="social-list" class="column one-fourth"> |
183 <h5>{{get_string("follow-us", "menu")}}</h5> | 188 <h5>{{get_string("follow-us", "menu")}}</h5> |
184 <ul> | 189 <ul> |
185 <li> | 190 <li> |
186 <a rel="nofollow" href="https://twitter.com/AdblockPlus" target=
"_blank"> | 191 <a href="https://twitter.com/AdblockPlus" target="_blank"> |
187 <img | 192 <img |
188 src="/img/footer-twitter-glyphicon.png" | 193 src="/img/footer-twitter-glyphicon.png" |
189 alt="{{ "Twitter" | translate("twitter-alt", "Twitter glyphi
con alt text")}}"> | 194 alt="{{ "Twitter" | translate("twitter-alt", "Twitter glyphi
con alt text")}}"> |
190 </a> | 195 </a> |
191 </li> | 196 </li> |
192 <li> | 197 <li> |
193 <a rel="nofollow" href="https://www.youtube.com/user/AdblockPlus
Official" target="_blank"> | 198 <a href="https://www.youtube.com/user/AdblockPlusOfficial" targe
t="_blank"> |
194 <img | 199 <img src="/img/footer-youtube-glyphicon.png"> |
195 src="/img/footer-youtube-glyphicon.png" | 200 </a> |
196 alt="{{ "YouTube" | translate("youtube-alt", "YouTube glyphi
con alt text")}}"> | 201 </li> |
197 </a> | 202 <li> |
198 </li> | 203 <a href="https://www.facebook.com/adblockplus" target="_blank"> |
199 <li> | 204 <img src="/img/footer-facebook-glyphicon.png"> |
200 <a rel="nofollow" href="https://www.facebook.com/adblockplus" ta
rget="_blank"> | 205 </a> |
201 <img | 206 </li> |
202 src="/img/footer-facebook-glyphicon.png" | 207 <li> |
203 alt="{{ "Facebook" | translate("facebook-alt", "Facebook gly
phicon alt text")}}"> | 208 <a href="https://www.instagram.com/adblockplus/" target="_blank"
> |
204 </a> | 209 <img src="/img/footer-instagram-glyphicon.png"> |
205 </li> | 210 </a> |
206 <li> | 211 </li> |
207 <a rel="nofollow" href="https://www.instagram.com/adblockplus/"
target="_blank"> | 212 </ul> |
208 <img | 213 </nav> |
209 src="/img/footer-instagram-glyphicon.png" | 214 </div> {# .row #} |
210 alt="{{ "Instagram" | translate("instagram-alt", "Instagram
glyphicon alt text")}}"> | |
211 </a> | |
212 </li> | |
213 </ul> | |
214 </nav> | |
215 </div><!-- .row --> | |
216 <div id="footer-legal"> | 215 <div id="footer-legal"> |
217 <p id="copyright-notice">{{ "Copyright © 2017 All rights reserved. Adb
lock Plus® is a registered trademark of <a href='https://eyeo.com'>eyeo GmbH</a>
." | translate("copyright-notice", "Footer copyright notice") }}</p> | 216 <p id="copyright-notice">{{ "Copyright © 2017 All rights reserved. Adb
lock Plus<sup>®</sup> is a registered trademark of <a href='https://eyeo.com'>ey
eo GmbH</a>." | translate("copyright-notice", "Footer copyright notice") }}</p> |
218 <ul id="legal-list"> | 217 <ul id="legal-list"> |
219 {% for pagename in ["terms", "privacy", "impressum"] %} | 218 {% for pagename in ["terms", "privacy", "impressum"] %} |
220 {{ pageitem(pagename) }} | 219 <li>{{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a>
</li> |
221 {% endfor %} | 220 {% endfor %} |
222 </ul> | 221 </ul> |
223 </div> | 222 </div> {# #footer-legal #} |
224 </div><!-- .container --> | 223 </div> {# .container #} |
225 </footer> | 224 </footer> {# #footer #} |
226 | 225 |
227 <script src="/js/main.js"></script> | 226 <script src="/js/main.js"></script> |
228 </body> | 227 </body> |
229 </html> | 228 </html> |
LEFT | RIGHT |