Skip to content
Snippets Groups Projects
Commit 2aa04319 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-6944: add label to block title if flag is set

parent 8115e2ce
No related branches found
No related tags found
1 merge request!131ISTWCMS-6944: add label to block title if flag is set
......@@ -36,6 +36,7 @@
{% if in_layout_builder %}
{{ attach_library('uw_theme_admin/uw_layout_builder') }}
{% endif %}
{{ dd() }}
{% if content %}
<div{{ attributes.addClass(classes) }}>
......@@ -44,11 +45,17 @@
{% endif %}
{{ title_prefix }}
{% if label %}
{% if add_label_flag %}
<label for="{{ label_for }}">
{% endif %}
{% if heading_level %}
<{{ heading_level }}{{ title_attributes }} class="block-title">{{ label }}</{{ heading_level }}>
{% else %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{% if add_label_flag %}
</label>
{% endif %}
{% endif %}
{{ title_suffix }}
{% block content %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment