Skip to content

Commit 95085ea

Browse files
committed
[TASK] Add header class to main header types
1 parent 78788bb commit 95085ea

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Resources/Private/Partials/ContentElements/Header.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<f:if condition="{data.header_layout} !== 100">
2+
23
<header{f:if(condition: data.header_position, then: ' class="{data.header_position}"')}>
34
<f:render section="mainheader" arguments="{_all}"/>
45
<f:if condition="{data.subheader}">
@@ -10,23 +11,23 @@
1011
<f:section name="mainheader">
1112
<f:switch expression="{data.header_layout}">
1213
<f:case value="1">
13-
<h1>{data.header}</h1>
14+
<h1 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h1>
1415
</f:case>
1516
<f:case value="2">
16-
<h2>{data.header}</h2>
17+
<h2 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h2>
1718
</f:case>
1819
<f:case value="3">
19-
<h3>{data.header}</h3>
20+
<h3 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h3>
2021
</f:case>
2122
<f:case value="4">
22-
<h4>{data.header}</h4>
23+
<h4 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h4>
2324
</f:case>
2425
<f:case value="5">
25-
<h5>{data.header}</h5>
26+
<h5 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h5>
2627
</f:case>
2728
<f:case value="100"></f:case>
2829
<f:defaultCase>
29-
<h2>{data.header}</h2>
30+
<h2 {f:if(condition: data.bootstrap_header_class, then: 'class="{data.bootstrap_header_class}"')}>{data.header}</h2>
3031
</f:defaultCase>
3132
</f:switch>
3233
</f:section>

0 commit comments

Comments
 (0)