Something went wrong on our end
block--page-title-block.html.twig 1.23 KiB
{% if show_title %}
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{% if admin_label %}
<div class="uw-admin-label">{{ admin_label }}</div>
{% endif %}
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}
</div>
{% endif %}
{# // OHANA // OHANA // OHANA // OHANA
/**
* @file
* Theme override for page title block.
*/
{% set classes = [
'l-block--provider-' ~ configuration.provider|clean_class,
'l-block--id-' ~ plugin_id|clean_class,
] %}
{% set attributes = attributes.addClass(classes) %}
{% embed '@layouts/block/block.twig' with {
'attributes': attributes,
'block_wrapper': true,
'constrain': '',
'title_prefix': title_prefix,
'title_suffix': title_suffix,
'label': label is not empty ? label : false,
'content_wrapper': true
} %}
{% block content %}
{% include '@components/page-title/page-title.twig' with {
'page_title': content['#title']
} %}
{% endblock %}
{% endembed %}
OHANA // OHANA // OHANA // OHANA #}