Files
wc-bootstrap/templates/layouts/account.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

29 lines
739 B
Twig

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