tabs.tpl 30.2 KB
Newer Older
Michael@JTL's avatar
lf    
Michael@JTL committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{block name='productdetails-tabs'}
    {block name='productdetails-tabs-settings'}
        {$tabanzeige = $Einstellungen.artikeldetails.artikeldetails_tabs_nutzen !== 'N'}
        {$showProductWeight = false}
        {$showShippingWeight = false}
        {if isset($Artikel->cArtikelgewicht) && $Artikel->fArtikelgewicht > 0
        && $Einstellungen.artikeldetails.artikeldetails_artikelgewicht_anzeigen === 'Y'}
            {$showProductWeight = true}
        {/if}
        {if isset($Artikel->cGewicht) && $Artikel->fGewicht > 0
        && $Einstellungen.artikeldetails.artikeldetails_gewicht_anzeigen === 'Y'}
            {$showShippingWeight = true}
        {/if}
        {$dimension = $Artikel->getDimension()}
        {$funcAttr = $Artikel->FunktionsAttribute[$smarty.const.FKT_ATTRIBUT_ATTRIBUTEANHAENGEN]|default:0}
        {$showAttributesTable = ($Einstellungen.artikeldetails.merkmale_anzeigen === 'Y'
        && !empty($Artikel->oMerkmale_arr) || $showProductWeight || $showShippingWeight
        || $Einstellungen.artikeldetails.artikeldetails_abmessungen_anzeigen === 'Y'
        && (!empty($dimension['length']) || !empty($dimension['width']) || !empty($dimension['height']))
        || isset($Artikel->cMasseinheitName) && isset($Artikel->fMassMenge) && $Artikel->fMassMenge > 0
        && $Artikel->cTeilbar !== 'Y' && ($Artikel->fAbnahmeintervall == 0 || $Artikel->fAbnahmeintervall == 1)
        || ($Einstellungen.artikeldetails.artikeldetails_attribute_anhaengen === 'Y' || $funcAttr == 1)
        && !empty($Artikel->Attribute))}
        {$useDescriptionWithMediaGroup = ((($Einstellungen.artikeldetails.mediendatei_anzeigen === 'YA'
        && $Artikel->cMedienDateiAnzeige !== 'tab') || $Artikel->cMedienDateiAnzeige === 'beschreibung')
        && !empty($Artikel->getMediaTypes()))}
        {$useDescription = (($Artikel->cBeschreibung|strlen > 0) || $useDescriptionWithMediaGroup || $showAttributesTable)}
        {$useDownloads = (isset($Artikel->oDownload_arr) && $Artikel->oDownload_arr|@count > 0)}
        {$useVotes = $Einstellungen.bewertung.bewertung_anzeigen === 'Y'}
        {$useQuestionOnItem = $Einstellungen.artikeldetails.artikeldetails_fragezumprodukt_anzeigen === 'Y'}
        {$usePriceFlow = ($Einstellungen.preisverlauf.preisverlauf_anzeigen === 'Y' && $bPreisverlauf)}
        {$useAvailabilityNotification = ($verfuegbarkeitsBenachrichtigung !== 0)}
        {$useMediaGroup = ((($Einstellungen.artikeldetails.mediendatei_anzeigen === 'YM'
        && $Artikel->cMedienDateiAnzeige !== 'beschreibung') || $Artikel->cMedienDateiAnzeige === 'tab')
        && !empty($Artikel->getMediaTypes()))}
        {$hasVotesHash = isset($smarty.get.ratings_nPage)
        || isset($smarty.get.bewertung_anzeigen)
        || isset($smarty.get.ratings_nItemsPerPage)
        || isset($smarty.get.ratings_nSortByDir)
        || isset($smarty.get.btgsterne)}
        {section name=iterator start=1 loop=10}
            {$tab = tab}
            {$tabname = $tab|cat:$smarty.section.iterator.index|cat:" name"}
            {$tabinhalt = $tab|cat:$smarty.section.iterator.index|cat:" inhalt"}
            {if isset($Artikel->AttributeAssoc[$tabname]) && $Artikel->AttributeAssoc[$tabname]
            && $Artikel->AttributeAssoc[$tabinhalt]}
                {$separatedTabs[{$tabname|replace:' ':'-'}] = [
                'id'      => {$tabname|replace:' ':'-'},
                'name'   => {$Artikel->AttributeAssoc[$tabname]},
                'content' => {$Artikel->AttributeAssoc[$tabinhalt]}
                ]}
            {/if}
        {/section}
        {$setActiveClass = [
        'description'    => (!$hasVotesHash),
        'downloads'      => (!$hasVotesHash && !$useDescription),
        'separatedTabs'  => (!$hasVotesHash && !$useDescription && !$useDownloads),
        'votes'          => ($hasVotesHash || !$useDescription && !$useDownloads && empty($separatedTabs)),
        'questionOnItem' => (!$hasVotesHash && !$useDescription && !$useDownloads && empty($separatedTabs) && !$useVotes),
        'priceFlow'      => (!$useVotes && !$hasVotesHash && !$useDescription && !$useDownloads && empty($separatedTabs)
        && !$useQuestionOnItem),
        'availabilityNotification' => (!$useVotes && !$hasVotesHash && !$useDescription && !$useDownloads
        && empty($separatedTabs) && !$useQuestionOnItem && !$usePriceFlow),
        'mediaGroup' => (!$useVotes && !$hasVotesHash && !$useDescription && !$useDownloads && empty($separatedTabs)
        && !$useQuestionOnItem && !$usePriceFlow && !$useAvailabilityNotification)
        ]}
    {/block}
    {block name='productdetails-tabs-content'}
        {if useDescription || $useDownloads || $useDescriptionWithMediaGroup || $useVotes || $useQuestionOnItem || $usePriceFlow
        || $useAvailabilityNotification || $useMediaGroup || !empty($separatedTabs)}
71
            {opcMountPoint id='opc_before_tabs' inContainer=false}
Michael@JTL's avatar
lf    
Michael@JTL committed
72
73
            {if $tabanzeige && !$isMobile}
                {block name='productdetails-tabs-tabs'}
74
                    {container class="{if $Einstellungen.template.theme.left_sidebar === 'Y' && $boxesLeftActive}container-plus-sidebar{/if}"}
Michael@JTL's avatar
lf    
Michael@JTL committed
75
76
77
78
79
80
81
82
83
                        <nav class="tab-navigation">
                        {tabs id="product-tabs"}
                        {if $useDescription}
                            {block name='productdetails-tabs-tab-description'}
                                {tab title="{lang key="description" section="productDetails"}" active=$setActiveClass.description id="description"}
                                    {block name='productdetails-tabs-tab-content'}
                                        {block name='tab-description-media-types'}
                                            {opcMountPoint id='opc_before_desc'}
                                            <div class="desc">
84
                                                <p>{$Artikel->cBeschreibung}</p>
Michael@JTL's avatar
lf    
Michael@JTL committed
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
                                                {if $useDescriptionWithMediaGroup}
                                                    {foreach $Artikel->getMediaTypes() as $mediaType}
                                                        <div class="h3">{$mediaType->name}</div>
                                                        <div class="media">
                                                            {include file='productdetails/mediafile.tpl'}
                                                        </div>
                                                    {/foreach}
                                                {/if}
                                            </div>
                                            {opcMountPoint id='opc_after_desc'}
                                        {/block}
                                        {block name='productdetails-tabs-tab-description-include-attributes'}
                                            {include file='productdetails/attributes.tpl' tplscope='details'
                                            showProductWeight=$showProductWeight showShippingWeight=$showShippingWeight
                                            dimension=$dimension showAttributesTable=$showAttributesTable}
                                        {/block}
                                    {/block}
                                {/tab}
                            {/block}
                        {/if}

                        {if $useDownloads}
                            {block name='productdetails-tabs-tab-downloads'}
                                {tab title="{lang section="productDownloads" key="downloadSection"}" active=$setActiveClass.downloads id="downloads"}
109
                                    {opcMountPoint id='opc_before_download'}
Michael@JTL's avatar
lf    
Michael@JTL committed
110
                                    {include file='productdetails/download.tpl'}
111
                                    {opcMountPoint id='opc_after_download'}
Michael@JTL's avatar
lf    
Michael@JTL committed
112
113
114
115
116
117
118
119
                                {/tab}
                            {/block}
                        {/if}

                        {if !empty($separatedTabs)}
                            {block name='productdetails-tabs-tab-separated-tabs'}
                                {foreach $separatedTabs as $separatedTab}
                                    {tab title=$separatedTab.name active=$setActiveClass.separatedTabs && $separatedTab@first id="{$separatedTab.name|@seofy}"}
120
                                        {opcMountPoint id='opc_before_separated_'|cat:$separatedTab.id}
Michael@JTL's avatar
lf    
Michael@JTL committed
121
                                        {$separatedTab.content}
122
                                        {opcMountPoint id='opc_after_separated_'|cat:$separatedTab.id}
Michael@JTL's avatar
lf    
Michael@JTL committed
123
124
125
126
127
128
129
130
                                    {/tab}
                                {/foreach}
                            {/block}
                        {/if}

                        {if $useVotes}
                            {block name='productdetails-tabs-tab-votes'}
                                {tab title="{lang key='Votes'}" active=$setActiveClass.votes id="votes"}
131
                                    {opcMountPoint id='opc_before_tab_votes'}
Michael@JTL's avatar
lf    
Michael@JTL committed
132
                                    {include file='productdetails/reviews.tpl' stars=$Artikel->Bewertungen->oBewertungGesamt->fDurchschnitt}
133
                                    {opcMountPoint id='opc_after_tab_votes'}
Michael@JTL's avatar
lf    
Michael@JTL committed
134
135
136
137
138
139
140
                                {/tab}
                            {/block}
                        {/if}

                        {if $useQuestionOnItem}
                            {block name='productdetails-tabs-tab-question-on-item'}
                                {tab title="{lang key="productQuestion" section="productDetails"}" active=$setActiveClass.questionOnItem id="questionOnItem"}
141
                                    {opcMountPoint id='opc_before_tab_question'}
Michael@JTL's avatar
lf    
Michael@JTL committed
142
                                    {include file='productdetails/question_on_item.tpl' position="tab"}
143
                                    {opcMountPoint id='opc_after_tab_question'}
Michael@JTL's avatar
lf    
Michael@JTL committed
144
145
146
147
148
149
150
                                {/tab}
                            {/block}
                        {/if}

                        {if $usePriceFlow}
                            {block name='productdetails-tabs-tab-price-flow'}
                                {tab title="{lang key='priceFlow' section='productDetails'}" active=$setActiveClass.priceFlow id="priceFlow"}
151
                                    {opcMountPoint id='opc_before_tab_price_history'}
Michael@JTL's avatar
lf    
Michael@JTL committed
152
                                    {include file='productdetails/price_history.tpl'}
153
                                    {opcMountPoint id='opc_after_tab_price_history'}
Michael@JTL's avatar
lf    
Michael@JTL committed
154
155
156
157
158
159
                                {/tab}
                            {/block}
                        {/if}

                        {if $useAvailabilityNotification}
                            {block name='productdetails-tabs-tab-availability-notification'}
Michael@JTL's avatar
Michael@JTL committed
160
                                {tab title="{lang key='notifyMeWhenProductAvailableAgain'}" active=$setActiveClass.availabilityNotification id="availabilityNotification"}
161
                                    {opcMountPoint id='opc_before_tab_availability'}
Michael@JTL's avatar
lf    
Michael@JTL committed
162
                                    {include file='productdetails/availability_notification_form.tpl' position='tab' tplscope='artikeldetails'}
163
                                    {opcMountPoint id='opc_after_tab_availability'}
Michael@JTL's avatar
lf    
Michael@JTL committed
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
                                {/tab}
                            {/block}
                        {/if}

                        {if $useMediaGroup}
                            {block name='productdetails-tabs-tab-mediagroup'}
                                {foreach $Artikel->getMediaTypes() as $mediaType}
                                    {$cMedienTypId = $mediaType->name|@seofy}
                                    {tab title="{$mediaType->name} ({$mediaType->count})" active=$setActiveClass.mediaGroup && $mediaType@first id="{$cMedienTypId}"}
                                        {include file='productdetails/mediafile.tpl'}
                                    {/tab}
                                {/foreach}
                            {/block}
                        {/if}
                        {/tabs}
                        </nav>
                    {/container}
                {/block}
            {else}
                {block name='productdetails-tabs-no-tabs'}
184
                    {container class="{if $Einstellungen.template.theme.left_sidebar === 'Y' && $boxesLeftActive}container-plus-sidebar{/if}"}
Michael@JTL's avatar
lf    
Michael@JTL committed
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
                        <div class="accordion" id="tabAccordion">
                            {if $useDescription}
                                {block name='productdetails-tabs-description'}
                                    {card no-body=true}
                                        {cardheader id="tab-description-head"
                                            data=["toggle" => "collapse",
                                                "target"=>"#tab-description"
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.description}true{else}false{/if}",
                                                "controls" => "tab-description"
                                            ]
                                        }
                                            {lang key='description' section='productDetails'}
                                        {/cardheader}
                                        {collapse id="tab-description" visible=$setActiveClass.description
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-description-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-card-description'}
                                                    {block name='productdetails-tabs-card-description-content'}
                                                        {opcMountPoint id='opc_before_desc'}
                                                        <div class="desc">
                                                            {$Artikel->cBeschreibung}
                                                            {if $useDescriptionWithMediaGroup}
                                                                {if $Artikel->cBeschreibung|strlen > 0}
                                                                    <hr>
                                                                {/if}
                                                                {foreach $Artikel->getMediaTypes() as $mediaType}
                                                                    <div class="media">
                                                                        {block name='productdetails-tabs-description-include-mediafile'}
                                                                            {include file='productdetails/mediafile.tpl'}
                                                                        {/block}
                                                                    </div>
                                                                {/foreach}
                                                            {/if}
                                                        </div>
                                                        {opcMountPoint id='opc_after_desc'}
                                                    {/block}
                                                    {block name='productdetails-tabs-card-description-attributes'}
                                                        {block name='productdetails-tabs-include-attributes'}
                                                            {include file='productdetails/attributes.tpl' tplscope='details'
                                                            showProductWeight=$showProductWeight showShippingWeight=$showShippingWeight
                                                            dimension=$dimension showAttributesTable=$showAttributesTable}
                                                        {/block}
                                                    {/block}
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if $useDownloads}
                                {block name='productdetails-tabs-downloads'}
                                    {card no-body=true}
                                        {cardheader id="tab-downloads-head"
                                            data=["toggle" => "collapse",
                                                "target"=>"#tab-downloads"
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.downloads}true{else}false{/if}",
                                                "controls" => "tab-downloads"
                                            ]
                                        }
                                            {lang section='productDownloads' key='downloadSection'}
                                        {/cardheader}
                                        {collapse id="tab-downloads" visible=$setActiveClass.downloads
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-downloads-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-include-download'}
257
                                                    {opcMountPoint id='opc_before_download'}
Michael@JTL's avatar
lf    
Michael@JTL committed
258
                                                    {include file='productdetails/download.tpl'}
259
                                                    {opcMountPoint id='opc_after_download'}
Michael@JTL's avatar
lf    
Michael@JTL committed
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if !empty($separatedTabs)}
                                {block name='productdetails-tabs-separated-tabs'}
                                    {foreach $separatedTabs as $separatedTab}
                                        {$separatedTabId = $separatedTab.name|@seofy}
                                        {card no-body=true}
                                            {cardheader id="tab-{$separatedTabId}-head"
                                                data=["toggle" => "collapse",
                                                    "target"=>"#tab-{$separatedTabId}"
                                                ]
                                                aria=["expanded" => "{if $setActiveClass.separatedTabs && $separatedTab@first}true{else}false{/if}",
                                                    "controls" => "tab-{$separatedTabId}"
                                                ]
                                            }
                                                {$separatedTab.name}
                                            {/cardheader}
                                            {collapse id="tab-{$separatedTabId}" visible=($setActiveClass.separatedTabs && $separatedTab@first)
                                                data=["parent"=>"#tabAccordion"]
                                                aria=["labelledby"=>"tab-{$separatedTabId}-head"]
                                            }
                                                {cardbody}
287
                                                    {opcMountPoint id='opc_before_separated_'|cat:$separatedTab.id}
Michael@JTL's avatar
lf    
Michael@JTL committed
288
                                                    {$separatedTab.content}
289
                                                    {opcMountPoint id='opc_after_separated_'|cat:$separatedTab.id}
Michael@JTL's avatar
lf    
Michael@JTL committed
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
                                                {/cardbody}
                                            {/collapse}
                                        {/card}
                                    {/foreach}
                                {/block}
                            {/if}

                            {if $useVotes}
                                {block name='productdetails-tabs-votes'}
                                    {card no-body=true }
                                        {cardheader id="tab-votes-head"
                                            data=["toggle" => "collapse",
                                                "target"=>"#tab-votes"
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.votes}true{else}false{/if}",
                                                "controls" => "tab-votes"
                                            ]
                                        }
                                            {lang key='Votes'}
                                        {/cardheader}
                                        {collapse id="tab-votes" visible=$setActiveClass.votes
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-votes-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-include-reviews'}
316
                                                    {opcMountPoint id='opc_before_tab_votes'}
Michael@JTL's avatar
lf    
Michael@JTL committed
317
                                                    {include file='productdetails/reviews.tpl' stars=$Artikel->Bewertungen->oBewertungGesamt->fDurchschnitt}
318
                                                    {opcMountPoint id='opc_after_tab_votes'}
Michael@JTL's avatar
lf    
Michael@JTL committed
319
320
321
322
323
324
325
326
327
328
329
330
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if $useQuestionOnItem}
                                {block name='productdetails-tabs-question-on-item'}
                                    {card no-body=true}
                                        {cardheader id="tab-question-head"
                                            data=["toggle" => "collapse",
Michael@JTL's avatar
Michael@JTL committed
331
                                                "target"=>"#tab-questionOnItem"
Michael@JTL's avatar
lf    
Michael@JTL committed
332
333
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.questionOnItem}true{else}false{/if}",
Michael@JTL's avatar
Michael@JTL committed
334
                                                "controls" => "tab-questionOnItem"
Michael@JTL's avatar
lf    
Michael@JTL committed
335
336
337
338
                                            ]
                                        }
                                            {lang key='productQuestion' section='productDetails'}
                                        {/cardheader}
Michael@JTL's avatar
Michael@JTL committed
339
                                        {collapse id="tab-questionOnItem" visible=$setActiveClass.questionOnItem
Michael@JTL's avatar
lf    
Michael@JTL committed
340
341
342
343
344
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-question-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-include-question-on-item'}
345
                                                    {opcMountPoint id='opc_before_tab_question'}
Michael@JTL's avatar
lf    
Michael@JTL committed
346
                                                    {include file='productdetails/question_on_item.tpl' position="tab"}
347
                                                    {opcMountPoint id='opc_after_tab_question'}
Michael@JTL's avatar
lf    
Michael@JTL committed
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if $usePriceFlow}
                                {block name='productdetails-tabs-price-flow'}
                                    {card no-body=true}
                                        {cardheader id="tab-priceFlow-head"
                                            data=["toggle" => "collapse",
                                                "target"=>"#tab-priceFlow"
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.priceFlow}true{else}false{/if}",
                                                "controls" => "tab-priceFlow"
                                            ]
                                        }
                                            {lang key='priceFlow' section='productDetails'}
                                        {/cardheader}
                                        {collapse id="tab-priceFlow" visible=$setActiveClass.priceFlow
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-priceFlow-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-include-price-history'}
374
                                                    {opcMountPoint id='opc_before_tab_price_history'}
Michael@JTL's avatar
lf    
Michael@JTL committed
375
                                                    {include file='productdetails/price_history.tpl'}
376
                                                    {opcMountPoint id='opc_after_tab_price_history'}
Michael@JTL's avatar
lf    
Michael@JTL committed
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if $useAvailabilityNotification}
                                {block name='productdetails-tabs-availability-notification'}
                                    {card no-body=true}
                                        {cardheader id="tab-availabilityNotification-head"
                                            data=["toggle" => "collapse",
                                                "target"=>"#tab-availabilityNotification"
                                            ]
                                            aria=["expanded" => "{if $setActiveClass.availabilityNotification}true{else}false{/if}",
                                                "controls" => "tab-availabilityNotification"
                                            ]
                                        }
                                        {lang key='notifyMeWhenProductAvailableAgain'}
                                        {/cardheader}
                                        {collapse id="tab-availabilityNotification" visible=$setActiveClass.availabilityNotification
                                            data=["parent"=>"#tabAccordion"]
                                            aria=["labelledby"=>"tab-availabilityNotification-head"]
                                        }
                                            {cardbody}
                                                {block name='productdetails-tabs-include-availability-notification-form'}
403
                                                    {opcMountPoint id='opc_before_tab_availability'}
Michael@JTL's avatar
lf    
Michael@JTL committed
404
                                                    {include file='productdetails/availability_notification_form.tpl' position='tab' tplscope='artikeldetails'}
405
                                                    {opcMountPoint id='opc_after_tab_availability'}
Michael@JTL's avatar
lf    
Michael@JTL committed
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
                                                {/block}
                                            {/cardbody}
                                        {/collapse}
                                    {/card}
                                {/block}
                            {/if}

                            {if $useMediaGroup}
                                {block name='productdetails-tabs-media-gorup'}
                                    {foreach $Artikel->getMediaTypes() as $mediaType}
                                        {$cMedienTypId = $mediaType->name|@seofy}
                                        {card no-body=true}
                                            {cardheader id="tab-{$cMedienTypId}-head"
                                                data=["toggle" => "collapse",
                                                    "target"=>"#tab-{$cMedienTypId}"
                                                ]
                                                aria=["expanded" => "{if $setActiveClass.mediaGroup && $mediaType@first}true{else}false{/if}",
                                                    "controls" => "tab-{$cMedienTypId}"
                                                ]
                                            }
                                                {$mediaType->name}
                                            {/cardheader}
                                            {collapse id="tab-{$cMedienTypId}" visible=($setActiveClass.mediaGroup && $mediaType@first)
                                                data=["parent"=>"#tabAccordion"]
                                                aria=["labelledby"=>"tab-{$cMedienTypId}-head"]
                                            }
                                                {cardbody}
                                                    {block name='productdetails-tabs-include-mediafile'}
                                                        {include file='productdetails/mediafile.tpl'}
                                                    {/block}
                                                {/cardbody}
                                            {/collapse}
                                        {/card}
                                    {/foreach}
                                {/block}
                            {/if}
                        </div>
                    {/container}
                {/block}
            {/if}
        {/if}
    {/block}
{/block}