tntquery-ajax.html.twig 855 B

12345678910111213141516171819
  1. <div class=" tntsearch_results_container">
  2. {# <p class="info">
  3. {% if config.get('plugins.tntsearch.display_hits') %}
  4. <span class="hits">{{ "PLUGIN_TNTSEARCH.FOUND_RESULTS"|t(tntsearch_results.number_of_hits)|raw }}</span>
  5. {% endif %}
  6. {% if config.get('plugins.tntsearch.display_time') %}
  7. <span class="time">{{ "PLUGIN_TNTSEARCH.FOUND_IN"|t(tntsearch_results.execution_time)|raw }}</span>
  8. {% endif %}
  9. </p> #}
  10. {% for key, val in tntsearch_results.hits %}
  11. <h3 style="color: #e94d1a" class="title">
  12. <a href="{{ base_url ~ val.link }}">{{ val.title|raw }}</a>
  13. </h3>
  14. {% if config.get('plugins.tntsearch.display_route') %}
  15. <h6 class="route">{{ val.link|raw }}</h6>
  16. {% endif %}
  17. <p>{{ val.content|raw }}</p>
  18. {% endfor %}
  19. </div>