LEFT | RIGHT |
1 {% extends "templates/minimal" %} | 1 {% extends "templates/minimal" %} |
2 | 2 |
3 {% set product = products[product_id] %} | 3 {% set product = products[product_id] %} |
4 | 4 |
5 {% block body %} | 5 {% block body %} |
6 <main id="main" class="container"> | 6 <main id="main" class="container"> |
7 <header class="product-heading"> | 7 <header class="product-heading"> |
8 <h1 class="aside-icon-container"> | 8 <h1 class="has-pre-icon"> |
9 <img src="/img/png/logo-{{ product_id }}.png" srcset="/img/svg/logo-{{ pro
duct_id }}.svg 2x" alt="{{ product.full_name+" Logo" | translate( product_id+"-l
ogo-alt", "Image alt text") }}"> | 9 <span class="pre-icon" style="{{ get_inline_bg('logo-'+product_id) }}"></s
pan> |
10 | 10 {{ product.full_name + " Help Center" | translate(product_id+"-help-home-t
itle", "Page title") }} |
11 <span>{{ product.full_name + " Help Center" | translate(product_id+"-help-
home-title", "Page title") }}</span> | |
12 </h1> | 11 </h1> |
13 </header> | 12 </header> |
14 | 13 |
15 {% set popular_topics = get_pages_metadata({ "product_id": product_id, "templa
te": "article", "popular": "true" }) %} | 14 {% set popular_topics = get_pages_metadata({ "product_id": product_id, "templa
te": "article", "popular": "true" }) %} |
16 {% if popular_topics %} | 15 {% if popular_topics %} |
17 <section class="card {{ product_id }}-card section"> | 16 <section class="card {{ product_id }}-card section"> |
18 <h2 class="card-heading aside-icon-container"> | 17 <h2 class="card-heading has-pre-icon"> |
19 <img src="/img/png/popular-icon.png" srcset="/img/svg/popular-icon.svg 2x"
alt="{{ "Popular Icon" | translate("popular-icon-alt", "Image alt text") }}"> | 18 <span class="pre-icon" style="{{ get_inline_bg('popular-icon') }}"></span> |
20 | 19 {{ "Popular Topics" | translate("popular-topics-title", "Section title") }
} |
21 <span>{{ "Popular Topics" | translate("popular-topics-title", "Section titl
e") }}</span> | |
22 </h2> | 20 </h2> |
23 | 21 |
24 <ul class="underlined-list row"> | 22 <ul class="underlined-list row"> |
25 {% for article in popular_topics %} | 23 {% for article in popular_topics %} |
26 <li class="column one-half"> | 24 <li class="column one-half"> |
27 <a href="{{ article["page"] }}"> | 25 <a href="{{ article["page"] }}"> |
28 {{ article.title | translate( get_page_name( article["page"]) + "-titl
e", "Article title") }} | 26 {{ article.title | translate( get_page_name( article["page"]) + "-titl
e", "Article title") }} |
29 </a> | 27 </a> |
30 </li> | 28 </li> |
31 {% endfor %} | 29 {% endfor %} |
32 </ul> | 30 </ul> |
33 </section> | 31 </section> |
34 {% endif %} | 32 {% endif %} |
35 | 33 |
36 <div class="row"> | 34 <div class="row"> |
37 {% for category in product.help_categories %} | 35 {% for category in product.help_categories %} |
38 {% set articles = get_pages_metadata({ "product_id": product_id, "template":
"article", "category": category.name }) %} | 36 {% set articles = get_pages_metadata({ "product_id": product_id, "template":
"article", "category": category.name }) %} |
39 {% if articles and category.name != 'Popular Topics' %} | 37 {% if articles and category.name != 'Popular Topics' %} |
40 <section class="section column one-half"> | 38 <section class="section column one-half"> |
41 <h2 class="h4 aside-icon-container"> | 39 <h2 class="h4 has-pre-icon"> |
42 <img src="/img/png/{{ category.icon }}.png" srcset="/img/svg/{{ category
.icon }}.svg 2x" alt="{{ category.name+" Icon" | translate(category.icon+"-alt",
"Image alt text") }}"> | 40 <span class="pre-icon" style="{{ get_inline_bg(category.icon) }}"></span
> |
43 | 41 {{ category.name | translate( category.slug + "-category-title", "Catego
ry title") }} |
44 <span>{{ category.name | translate( category.slug + "-category-title", "
Category title") }}</span> | |
45 </h2> | 42 </h2> |
46 | 43 |
47 <ul class="underlined-list"> | 44 <ul class="underlined-list"> |
48 {% for article in articles %} | 45 {% for article in articles %} |
49 <li> | 46 <li> |
50 <a href="{{ article["page"] }}"> | 47 <a href="{{ article["page"] }}"> |
51 {{ article.title | translate( get_page_name( article["page"]) + "-ti
tle", "Article title") }} | 48 {{ article.title | translate( get_page_name( article["page"]) + "-ti
tle", "Article title") }} |
52 </a> | 49 </a> |
53 </li> | 50 </li> |
54 {% endfor %} | 51 {% endfor %} |
55 </ul> | 52 </ul> |
56 </section> | 53 </section> |
57 {% endif %} | 54 {% endif %} |
58 {% endfor %} | 55 {% endfor %} |
59 </div> | 56 </div> |
60 | 57 |
61 </main> | 58 </main> |
62 {% endblock %} | 59 {% endblock %} |
63 | 60 |
64 {% block footer %} | 61 {% block footer %} |
65 <? include contact ?> | 62 <? include contact ?> |
66 {% endblock %} | 63 {% endblock %} |
LEFT | RIGHT |