Files
wc-bootstrap/templates/layouts/page.html.twig
magdev c3b16b68c5 Fix unstyled pages: rename base.html.twig to avoid parent collision
The child's templates/base.html.twig was shadowing the parent's
views/base.html.twig (full HTML page shell) because prependPath()
made Twig find the child's minimal wrapper first. Rename to
wc-base.html.twig so the parent's page shell renders correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 12:29:20 +01:00

33 lines
824 B
Twig

{#
# Page Layout (Bootstrap 5 Override)
#
# Layout for standard content pages.
#
# @package WcBootstrap
# @since 0.1.0
#}
{% extends "wc-base.html.twig" %}
{% block content %}
<div class="mb-4">
{% block page_header %}
<header class="mb-4">
<h1>{{ page_title|default('')|esc_html }}</h1>
{% block page_description %}
{% if page_description is defined %}
<p class="lead text-body-secondary">{{ page_description|wp_kses_post }}</p>
{% endif %}
{% endblock %}
</header>
{% endblock %}
{% block page_content %}
<div>
{% block content_inner %}{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}