OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/> | 69 <link rel="stylesheet" href="/css/empty.css" class="cssfx"/> |
70 <![endif]--> | 70 <![endif]--> |
71 </head> | 71 </head> |
72 | 72 |
73 <body> | 73 <body> |
74 <noscript> | 74 <noscript> |
75 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width:
1000px)"/> | 75 <link rel="stylesheet" href="/css/noscript-desktop.css" media="(min-width:
1000px)"/> |
76 <link rel="stylesheet" href="/css/noscript-mobile.css" media="(max-width:
1000px)"/> | 76 <link rel="stylesheet" href="/css/noscript-mobile.css" media="(max-width:
1000px)"/> |
77 </noscript> | 77 </noscript> |
78 | 78 |
79 {% macro pageitem(name) %} | 79 {% macro pageitem(pagename) %} |
80 {% if name == page %} | 80 <li{{ " class=\"selected\"" if pagename == page else "" }}> |
81 <li class="selected">{{get_string(name, "menu")}}</li> | 81 {{ pagename | linkify }}{{ get_string(pagename, "menu") }}</a> |
82 {% else %} | 82 </li> |
83 <li>{{name|linkify}}{{get_string(name, "menu")}}</a></li> | |
84 {% endif %} | |
85 {% endmacro %} | 83 {% endmacro %} |
86 | 84 |
87 <header> | 85 <nav class="navbar accent"> |
88 {{"index"|linkify(id="logo", class="sprite", itemprop="image")}}</a> | 86 <div class="container"> |
89 <nav> | 87 {{ "index" | linkify(class="navbar-brand") }} |
90 <ul> | 88 <img |
91 {% if localefile == "index" %} | 89 alt="{{ "Adblock Plus" | translate("logo-alt", "Logo alt text") }}" |
92 <li class="selected first">{{get_string("installation", "menu")}}</l
i> | 90 title="{{ "Adblock Plus" | translate("logo-title", "Logo tooltip tex
t") }}" |
93 {% else %} | 91 src="/img/header-logo.png" |
94 <li class="install-link first">{{"index"|linkify}}{{get_string("inst
allation", "menu")}} <span class="sprite install-link-icon"></span></a></li> | 92 srcset="/img/header-logo-2x.png"> |
95 {% endif %} | 93 </a> |
96 {% for name in ["about", "features", "bugs", "contribute"] %} | 94 <ul class="navbar-nav"> |
97 {{pageitem(name)}} | 95 {% for name in ["about", "features", "bugs", "contribute", "locale", "
installation"] %} |
| 96 {% if name == "locale" %} |
| 97 <li id="language" class="dropdown"> |
| 98 <a href="#" id="current-language" class="dropdown-toggle"> |
| 99 {{ config.get("langnames", locale) }} ({{ locale | upper }}) |
| 100 </a> |
| 101 <ul id="language-selector" class="dropdown-menu secondary"> |
| 102 {% for available_locale in available_locales %} |
| 103 <li class="language-entry"> |
| 104 {{ page | linkify(available_locale) }} |
| 105 {{ config.get("langnames", available_locale) }} ({{ avai
lable_locale | upper }}) |
| 106 </a> |
| 107 </li> |
| 108 {% endfor %} |
| 109 </ul> |
| 110 </li> |
| 111 {% elif name == "installation" %} |
| 112 <li class="install-link"> |
| 113 {{ "index" | linkify }}{{ get_string("installation", "menu") }}<
/a> |
| 114 </li> |
| 115 {% else %} |
| 116 {{ pageitem(name) }} |
| 117 {% endif %} |
98 {% endfor %} | 118 {% endfor %} |
99 <li id="language"> | |
100 <div id="current-language"> | |
101 {{ config.get("langnames", locale) }} ({{ locale | upper }}) | |
102 <span id="language-arrow" class="sprite"></span> | |
103 </div> | |
104 <ul id="language-selector"> | |
105 {% for available_locale in available_locales %} | |
106 <li class="language-entry"> | |
107 {{ page | linkify(available_locale) }} | |
108 {{ config.get("langnames", available_locale) }} ({{ availabl
e_locale | upper }}) | |
109 </a> | |
110 </li> | |
111 {% endfor %} | |
112 </ul> | |
113 </li> | |
114 </ul> | 119 </ul> |
115 <a href="#" id="hamburger"></a> | 120 <a href="#" id="hamburger"></a> |
116 </nav> | 121 </nav> |
117 </header> | 122 </header> |
118 | 123 |
119 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}> | 124 <div id="content" {% if localefile == "index" %}class="{{page}}"{% endif %}> |
120 {% if abbnotification %} | 125 {% if abbnotification %} |
121 <? include abb-notification ?> | 126 <? include abb-notification ?> |
122 {% endif %} | 127 {% endif %} |
123 {% if not noheading %} | 128 {% if not noheading %} |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p
lus.google.com/110020691898167279887"></a> | 200 <a rel="nofollow" id="social-gplus" class="sprite" href="https://p
lus.google.com/110020691898167279887"></a> |
196 </li> | 201 </li> |
197 </ul> | 202 </ul> |
198 </section> | 203 </section> |
199 </div> | 204 </div> |
200 </footer> | 205 </footer> |
201 | 206 |
202 <script src="/js/main.js"></script> | 207 <script src="/js/main.js"></script> |
203 </body> | 208 </body> |
204 </html> | 209 </html> |
OLD | NEW |