{# # Base Template (Bootstrap 5 Override) # # Overrides the plugin's base.html.twig with Bootstrap 5 components. # Provides the basic structure and block definitions. # # When _theme_wrapped is true, the parent theme already provides the page # shell (header, footer, container). The outer wrapper, breadcrumbs, # sidebar, and head blocks are skipped to avoid double-wrapping. # The scripts block is always rendered because child templates use it for # page-specific inline JavaScript (e.g. AJAX form handlers). # # @package WcBootstrap # @since 0.1.0 #} {% set _wrapped = _theme_wrapped is defined and _theme_wrapped %} {% if not _wrapped %}{% block head %}{% endblock %}{% endif %} {% if not _wrapped %}
{% endif %} {% block notifications %} {% if notifications is defined and notifications|length > 0 %} {% for notification in notifications %} {% endfor %} {% endif %} {% if flash_messages is defined %} {% for type, messages in flash_messages %} {% for message in messages %} {% endfor %} {% endfor %} {% endif %} {% endblock %} {% if not _wrapped %}
{% endif %} {% block breadcrumbs %} {% if not _wrapped and breadcrumbs is defined and breadcrumbs|length > 0 %} {% endif %} {% endblock %} {% block content %}{% endblock %} {% if not _wrapped %}
{% endif %} {% block sidebar %}{% endblock %} {% if not _wrapped %}
{% endif %} {% block scripts %}{% endblock %}