templates/Front/HelpCenter/index.html.twig line 1

Open in your IDE?
  1. {% extends "Global/layout.html.twig" %}
  2. {% set pagetitle = 'Help center'|trans %}
  3. {% block title %}{{pagetitle}}{% endblock %}
  4. {% block content %}
  5.     <section class="section-intro help-center-hero-bg padding-y-lg padding-x-md">
  6.         <div class="row">
  7.             <div class="col-sm-6 mx-auto">
  8.                 <article class="white text-center mb-5">
  9.                     <h1 class="display-4">{{ "How can we help?"|trans }}</h1>
  10.                     <form class="mb-3">
  11.                         <div class="input-icon">
  12.                             <i class="fa fa-search mt-2"></i>
  13.                             <input name="keyword" class="form-control" placeholder="{{ "Search for answers"|trans }}" type="text" value="{{ app.Request.get('keyword') }}">
  14.                         </div>
  15.                     </form>
  16.                     <p>{{ "Organizers, attendees, this support center is intended to quickly reply to your questions, if still don't find answers, please contact us, w e will be happy to receive your inquiry"|trans }}</p>
  17.                 </article>
  18.             </div>
  19.         </div>
  20.     </section>
  21.     <div class="{{ services.getSetting("app_layout") }}">
  22.         <section class="padding-y-lg">
  23.             <div class="row">
  24.                 {% if app.request.get('keyword') %}
  25.                     {% set searchresults = services.getHelpCenterArticles({"keyword":app.request.get('keyword')}).getQuery().getResult() %}
  26.                     <div class="col-12 mb-3">
  27.                         <article class="box h-100 padding-y-lg">
  28.                             <strong>{{ "%resultsCount% result(s) found"|trans({'%resultsCount%': searchresults|length}) ~ " " ~ "for"|trans ~ ' "' ~ app.request.get('keyword') ~ '"' }}</strong>
  29.                             {% if searchresults|length %}
  30.                                 <hr>
  31.                                 {% for article in searchresults %}
  32.                                     <p><a href="{{ path('help_center_article', {slug: article.slug}) }}">{{ article.category.name }} <i class="fas fa-chevron-right ml-1 mr-1"></i> {{ article.title }}</a></p>
  33.                                 {% endfor %}
  34.                             {% endif %}
  35.                         </article>
  36.                     </div>
  37.                 {% else %}
  38.                     {% for category in services.getHelpCenterCategories({"parent": "none"}).getQuery().getResult() %}
  39.                         <div class="col-md-6 mb-3">
  40.                             <article class="box h-100 padding-y-lg">
  41.                                 <figure class="itembox text-center">
  42.                                     <span class="mt-2 icon-wrap rounded icon-lg bg-primary"><i class="{{ category.icon }}  white"></i></span>
  43.                                     <figcaption class="text-wrap">
  44.                                         <h5 class="title">{{ category.name }}</h5>
  45.                                     </figcaption>
  46.                                 </figure>
  47.                                 <hr>
  48.                                 {% for article in services.getHelpCenterArticles({"category":category.slug, "featured": true}).getQuery().getResult() %}
  49.                                     <p><a href="{{ path('help_center_article', {slug: article.slug}) }}">{{ article.title }}</a></p>
  50.                                     {% endfor %}
  51.                                 <hr>
  52.                                 <a class="btn btn-outline-primary btn-block" href="{{ path('help_center_category', { slug: category.slug }) }}">{{ "See more articles"|trans }}
  53.                                     {% if app.request.locale == 'ar' %}
  54.                                         <i class="fas fa-chevron-left mr-3"></i>
  55.                                     {% else %}
  56.                                         <i class="fas fa-chevron-right ml-3"></i>
  57.                                     {% endif %}
  58.                                 </a>
  59.                             </article>
  60.                         </div>
  61.                     {% endfor %}
  62.                 {% endif %}
  63.             </div>
  64.             <div class="row">
  65.                 <div class="col-12">
  66.                     {% include "Global/support-box.html.twig" %}
  67.                 </div>
  68.             </div>
  69.         </section>
  70.     </div>
  71. {% endblock %}