@@ -13,59 +13,80 @@ final class Template0114b62ed0 extends Latte\Runtime\Template
1313 public function main (): array
1414 {
1515 extract ($ this ->params );
16- if (!empty ($ items )) /* line 9 */ {
16+ echo '
17+
18+ ' ;
19+ $ panels_ids = [] /* line 12 */ ;
20+ $ random_string = uniqid () /* line 13 */ ;
21+ $ iterations = 0 ;
22+ foreach ($ items as $ acc_index => $ tab_content ) /* line 14 */ {
23+ $ index = $ acc_index + 1 /* line 15 */ ;
24+ $ panels_ids [] = "{$ random_string }_ {$ index }" /* line 16 */ ;
25+ $ iterations ++;
26+ }
27+ echo "\n" ;
28+ if (!empty ($ items )) /* line 19 */ {
1729 echo '<div
1830 class="accordion ' ;
19- echo LR \Filters::escapeHtmlAttr ($ class ?? '' ) /* line 10 */ ;
31+ echo LR \Filters::escapeHtmlAttr ($ class ?? '' ) /* line 20 */ ;
2032 echo '"
2133 ' ;
22- if ($ collapse_siblings ?? false ) /* line 11 */ {
34+ if ($ collapse_siblings ?? false ) /* line 21 */ {
2335 echo ' data-collapse-siblings
2436 ' ;
2537 }
2638 echo ' data-duration=" ' ;
27- echo LR \Filters::escapeHtmlAttr (!empty ($ duration ) ? $ duration : '300 ' ) /* line 14 */ ;
39+ echo LR \Filters::escapeHtmlAttr (!empty ($ duration ) ? $ duration : '300 ' ) /* line 24 */ ;
2840 echo '"
2941 ' ;
30- if (!empty ($ easing )) /* line 16 */ {
42+ if (!empty ($ easing )) /* line 26 */ {
3143 echo ' data-easing=" ' ;
32- echo LR \Filters::escapeHtmlAttr ($ easing ) /* line 17 */ ;
44+ echo LR \Filters::escapeHtmlAttr ($ easing ) /* line 27 */ ;
3345 echo '"
3446 ' ;
3547 }
3648 echo '>
3749
3850 ' ;
3951 $ iterations = 0 ;
40- foreach ($ iterator = $ ʟ_it = new LR \CachingIterator ($ items , $ ʟ_it ?? null ) as $ index => $ item ) /* line 21 */ {
41- $ is_initially_open = isset ($ initially_open_item ) && $ index === $ initially_open_item /* line 22 */ ;
42- $ aria_label_text = !empty ($ aria_label ) ? $ aria_label : 'Toggle Accordion Item ' /* line 23 */ ;
52+ foreach ($ iterator = $ ʟ_it = new LR \CachingIterator ($ items , $ ʟ_it ?? null ) as $ index => $ item ) /* line 31 */ {
53+ $ is_initially_open = isset ($ initially_open_item ) && $ index === $ initially_open_item /* line 32 */ ;
54+ $ aria_label_text = !empty ($ aria_label ) ? $ aria_label : 'Toggle Accordion Item ' /* line 33 */ ;
4355 echo '
4456 <div
4557 class="collapsible"
4658 ' ;
47- if ($ is_initially_open ) /* line 27 */ {
59+ if ($ is_initially_open ) /* line 37 */ {
4860 echo ' data-initially-open
4961 ' ;
5062 }
5163 echo ' >
5264 <button
5365 class="collapsible__trigger"
5466 type="button"
67+ id="acc_panel_ ' ;
68+ echo LR \Filters::escapeHtmlAttr ($ panels_ids [$ index ]) /* line 44 */ ;
69+ echo '"
5570 aria-label=" ' ;
56- echo LR \Filters::escapeHtmlAttr ($ aria_label_text ) /* line 34 */ ;
71+ echo LR \Filters::escapeHtmlAttr ($ aria_label_text ) /* line 45 */ ;
5772 echo '"
5873 >
5974 ' ;
60- $ this ->renderBlock ('acc_trigger ' , get_defined_vars ()) /* line 36 */ ;
75+ $ this ->renderBlock ('acc_trigger ' , get_defined_vars ()) /* line 47 */ ;
6176 echo '
6277 <span class="chevron"></span>
6378 </button>
6479
65- <div class="collapsible__content">
80+ <div
81+ class="collapsible__content"
82+ role="region"
83+ aria-labelledby="acc_panel_ ' ;
84+ echo LR \Filters::escapeHtmlAttr ($ panels_ids [$ index ]) /* line 54 */ ;
85+ echo '"
86+ >
6687 <div class="collapsible__content__inner">
6788 ' ;
68- $ this ->renderBlock ('acc_content ' , get_defined_vars ()) /* line 42 */ ;
89+ $ this ->renderBlock ('acc_content ' , get_defined_vars ()) /* line 57 */ ;
6990 echo '
7091 </div>
7192 </div>
@@ -86,22 +107,22 @@ public function prepare(): void
86107 {
87108 extract ($ this ->params );
88109 if (!$ this ->getReferringTemplate () || $ this ->getReferenceType () === "extends " ) {
89- foreach (array_intersect_key (['index ' => '21 ' , 'item ' => '21 ' ], $ this ->params ) as $ ʟ_v => $ ʟ_l ) {
110+ foreach (array_intersect_key (['acc_index ' => ' 14 ' , ' tab_content ' => ' 14 ' , ' index ' => '31 ' , 'item ' => '31 ' ], $ this ->params ) as $ ʟ_v => $ ʟ_l ) {
90111 trigger_error ("Variable \$$ ʟ_v overwritten in foreach on line $ ʟ_l " );
91112 }
92113 }
93114
94115 }
95116
96117
97- /** {block acc_trigger} on line 36 */
118+ /** {block acc_trigger} on line 47 */
98119 public function blockAcc_trigger (array $ ʟ_args ): void
99120 {
100121
101122 }
102123
103124
104- /** {block acc_content} on line 42 */
125+ /** {block acc_content} on line 57 */
105126 public function blockAcc_content (array $ ʟ_args ): void
106127 {
107128
0 commit comments