| OLD | NEW |
| 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 <h1 class="product-heading"> | 7 <h1 class="product-heading aside-icon-container"> |
| 8 <img class="heading-icon" src="/img/png/logo-{{ product_id }}.png" srcset="/
img/svg/logo-{{ product_id }}.svg 2x" alt="{{ product.full_name+" Logo" | transl
ate( product_id+"-logo-alt", "Image alt text") }}"> | 8 <img src="/img/png/logo-{{ product_id }}.png" srcset="/img/svg/logo-{{ produ
ct_id }}.svg 2x" alt="{{ product.full_name+" Logo" | translate( product_id+"-log
o-alt", "Image alt text") }}"> |
| 9 | 9 |
| 10 {{ product.full_name + " Help Center" | translate(product_id+"-help-home-tit
le", "Page title") }} | 10 <span>{{ product.full_name + " Help Center" | translate(product_id+"-help-ho
me-title", "Page title") }}</span> |
| 11 </h1> | 11 </h1> |
| 12 | 12 |
| 13 {% set popular_topics = get_pages_metadata({ "product_id": product_id, "templa
te": "article", "popular": "true" }) %} | 13 {% set popular_topics = get_pages_metadata({ "product_id": product_id, "templa
te": "article", "popular": "true" }) %} |
| 14 {% if popular_topics %} | 14 {% if popular_topics %} |
| 15 <section class="card {{ product_id }}-card section"> | 15 <section class="card {{ product_id }}-card section"> |
| 16 <h2 class="card-heading"> | 16 <h2 class="card-heading aside-icon-container"> |
| 17 <img class="heading-icon" src="/img/png/popular-icon.png" srcset="/img/svg
/popular-icon.svg 2x" alt="{{ "Popular Icon" | translate("popular-icon-alt", "Im
age alt text") }}"> | 17 <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 | 18 |
| 19 {{ "Popular Topics" | translate("popular-topics-title", "Section title") }
} | 19 <span>{{ "Popular Topics" | translate("popular-topics-title", "Section titl
e") }}</span> |
| 20 </h2> | 20 </h2> |
| 21 | 21 |
| 22 <ul class="underlined-list row"> | 22 <ul class="underlined-list row"> |
| 23 {% for article in popular_topics %} | 23 {% for article in popular_topics %} |
| 24 <li class="column one-half"> | 24 <li class="column one-half"> |
| 25 <a href="{{ article["page"] }}"> | 25 <a href="{{ article["page"] }}"> |
| 26 {{ 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") }} |
| 27 </a> | 27 </a> |
| 28 </li> | 28 </li> |
| 29 {% endfor %} | 29 {% endfor %} |
| 30 </ul> | 30 </ul> |
| 31 </section> | 31 </section> |
| 32 {% endif %} | 32 {% endif %} |
| 33 | 33 |
| 34 <div class="row"> | 34 <div class="row"> |
| 35 {% for category in product.help_categories %} | 35 {% for category in product.help_categories %} |
| 36 {% 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 }) %} |
| 37 {% if articles and category.name != 'Popular Topics' %} | 37 {% if articles and category.name != 'Popular Topics' %} |
| 38 <section class="section column one-half"> | 38 <section class="section column one-half"> |
| 39 <h2 class="h4"> | 39 <h2 class="h4 aside-icon-container"> |
| 40 <img class="heading-icon" 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 <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") }}"> |
| 41 | 41 |
| 42 {{ category.name | translate( category.slug + "-category-title", "Catego
ry title") }} | 42 <span>{{ category.name | translate( category.slug + "-category-title", "
Category title") }}</span> |
| 43 </h2> | 43 </h2> |
| 44 | 44 |
| 45 <ul class="underlined-list"> | 45 <ul class="underlined-list"> |
| 46 {% for article in articles %} | 46 {% for article in articles %} |
| 47 <li> | 47 <li> |
| 48 <a href="{{ article["page"] }}"> | 48 <a href="{{ article["page"] }}"> |
| 49 {{ article.title | translate( get_page_name( article["page"]) + "-ti
tle", "Article title") }} | 49 {{ article.title | translate( get_page_name( article["page"]) + "-ti
tle", "Article title") }} |
| 50 </a> | 50 </a> |
| 51 </li> | 51 </li> |
| 52 {% endfor %} | 52 {% endfor %} |
| 53 </ul> | 53 </ul> |
| 54 </section> | 54 </section> |
| 55 {% endif %} | 55 {% endif %} |
| 56 {% endfor %} | 56 {% endfor %} |
| 57 </div> | 57 </div> |
| 58 | 58 |
| 59 </main> | 59 </main> |
| 60 {% endblock %} | 60 {% endblock %} |
| 61 | 61 |
| 62 {% block footer %} | 62 {% block footer %} |
| 63 <? include contact ?> | 63 <? include contact ?> |
| 64 {% endblock %} | 64 {% endblock %} |
| OLD | NEW |