File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 53
53
' clearfix' ,
54
54
]
55
55
%}
56
- <section {{ attributes.addClass (classes ) }}>
56
+
57
+ {% set element = label_display or display_title_invisible ? ' section' : ' div' %}
58
+ < {{ element }}{{ attributes.addClass (classes ) }}>
57
59
{{ title_prefix }}
58
- {% if label %}
60
+ {% if display_title_invisible %}
61
+ <h2 {{ title_attributes.addClass (' wb-inv' ) }}>{{ label }}</h2 >
62
+ {% elseif label %}
59
63
<h2 {{ title_attributes.addClass (' block-title' ) }}>{{ label }}</h2 >
60
64
{% endif %}
61
65
{{ title_suffix }}
62
66
63
67
{% block content %}
64
68
{{ content }}
65
69
{% endblock %}
66
- </section >
70
+ < /{{ element }} >
Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ function wxt_bootstrap_preprocess_block(&$variables) {
122
122
$variables['label_opposite'] = 'Government of Canada';
123
123
}
124
124
}
125
+
126
+ $moduleHandler = \Drupal::service('module_handler');
127
+ if (!$moduleHandler->moduleExists('wxt_ext_blocks')) {
128
+ $variables['label_display'] = TRUE;
129
+ }
125
130
}
126
131
127
132
/**
You can’t perform that action at this time.
0 commit comments