{# # Archive/Search Layout (Bootstrap 5 Override) # # Layout for search results and archive pages. # 3+9 column split: filter sidebar + results grid. # # @package WcBootstrap # @since 0.1.0 #} {% extends "base.html.twig" %} {% block content %}
{% block archive_header %}

{{ page_title|default(__('Search Results'))|esc_html }}

{% if results_count is defined %}

{{ _n('%d result found', '%d results found', results_count)|format(results_count) }}

{% endif %}
{% endblock %}
{% block archive_sidebar %} {% endblock %}
{% block archive_results %} {% if results is defined and results|length > 0 %}
{% for post in results %}
{% block result_card %} {% include 'components/card.html.twig' with {post: post} %} {% endblock %}
{% endfor %}
{% else %} {% endif %} {% endblock %} {% block pagination %} {% if max_pages is defined and max_pages > 1 %} {% include 'components/pagination.html.twig' %} {% endif %} {% endblock %}
{% endblock %}