You've already forked wp-bootstrap
- ContextBuilder now calls getSidebarData() when page template slug is 'page-sidebar', fixing empty sidebar on pages with that template - Added block_template_part() Twig function to TwigService for FSE Template Editor compatibility - Changed footer rendering from include to block_template_part() so footer edits in the Template Editor take effect Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
694 B
Twig
28 lines
694 B
Twig
<!doctype html>
|
|
<html {{ language_attributes() }}>
|
|
<head>
|
|
<meta charset="{{ charset }}">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{{ wp_head() }}
|
|
</head>
|
|
<body {{ body_class() }}>
|
|
{{ wp_body_open() }}
|
|
|
|
<a class="wp-bootstrap-skip-link" href="#main-content">{{ __('Skip to main content') }}</a>
|
|
|
|
{% block header %}
|
|
{% include 'partials/header.html.twig' %}
|
|
{% endblock %}
|
|
|
|
<main id="main-content" class="{% block main_class %}py-4{% endblock %}">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
{% block footer %}
|
|
{{ block_template_part('footer') }}
|
|
{% endblock %}
|
|
|
|
{{ wp_footer() }}
|
|
</body>
|
|
</html>
|