File tree Expand file tree Collapse file tree
ContentBlocks/ContentElements/bootstrap-accordion/templates/partials Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ < f:if condition ="{data.header_layout} !== 100 ">
2+ < f:if condition ="{data.header} && {data.subheader} ">
3+ < header {f:if(condition: data.header_position, then: ' class="{data.header_position} "')}>
4+ < f:render section ="mainheader " arguments ="{_all} "/>
5+ < f:render section ="subheader " arguments ="{_all} "/>
6+ </ header >
7+ </ f:if >
8+
9+ < f:if condition ="{data.header} && !{data.subheader} ">
10+ < header >
11+ < f:render section ="mainheader " arguments ="{_all} "/>
12+ </ header >
13+ </ f:if >
14+ </ f:if >
15+
16+ < f:section name ="mainheader ">
17+ < f:switch expression ="{data.header_layout} ">
18+ < f:case value ="1 ">
19+ < h1 > {data.header}</ h1 >
20+ </ f:case >
21+ < f:case value ="2 ">
22+ < h2 > {data.header}</ h2 >
23+ </ f:case >
24+ < f:case value ="3 ">
25+ < h3 > {data.header}</ h3 >
26+ </ f:case >
27+ < f:case value ="4 ">
28+ < h4 > {data.header}</ h4 >
29+ </ f:case >
30+ < f:case value ="5 ">
31+ < h5 > {data.header}</ h5 >
32+ </ f:case >
33+ < f:case value ="100 "> </ f:case >
34+ < f:defaultCase >
35+ < h2 > {data.header}</ h2 >
36+ </ f:defaultCase >
37+ </ f:switch >
38+ </ f:section >
39+
40+ < f:section name ="subheader ">
41+ < f:switch expression ="{data.header_layout} ">
42+ < f:case value ="1 ">
43+ < h2 class ="fs-3 "> {data.subheader}</ h2 >
44+ </ f:case >
45+ < f:case value ="2 ">
46+ < h3 class ="fs-4 "> {data.subheader}</ h3 >
47+ </ f:case >
48+ < f:case value ="3 ">
49+ < h4 class ="fs-5 "> {data.subheader}</ h4 >
50+ </ f:case >
51+ < f:case value ="4 ">
52+ < h5 class ="fs-6 "> {data.subheader}</ h5 >
53+ </ f:case >
54+ < f:case value ="5 ">
55+ < h6 class ="small "> {data.subheader}</ h6 >
56+ </ f:case >
57+ < f:case value ="100 "> </ f:case >
58+ < f:defaultCase >
59+ < h3 > {data.subheader}</ h3 >
60+ </ f:defaultCase >
61+ </ f:switch >
62+ </ f:section >
You can’t perform that action at this time.
0 commit comments