[!!!][BUGFIX] Remove ce-bodytext element if not needed
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Resources / Private / Templates / Textmedia.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <div id="c{data.uid}">
3 <f:if condition="{gallery.position.noWrap} != 1">
4 <f:render partial="Header" arguments="{_all}" />
5 </f:if>
6
7 <div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')}">
8 <f:if condition="{gallery.position.vertical} != 'below'">
9 <f:render partial="MediaGallery" arguments="{_all}" />
10 </f:if>
11
12 <f:if condition="{data.bodytext}">
13 <f:then>
14 <div class="ce-bodytext">
15 <f:if condition="{gallery.position.noWrap}">
16 <f:render partial="Header" arguments="{_all}" />
17 </f:if>
18 <f:format.html>{data.bodytext}</f:format.html>
19 </div>
20 </f:then>
21 <f:else>
22 <f:if condition="{gallery.position.noWrap}">
23 <f:if condition="{data.header}">
24 <div class="ce-bodytext">
25 <f:render partial="Header" arguments="{_all}" />
26 </div>
27 </f:if>
28 </f:if>
29 </f:else>
30 </f:if>
31
32 <f:if condition="{gallery.position.vertical} == 'below'">
33 <f:render partial="MediaGallery" arguments="{_all}" />
34 </f:if>
35 </div>
36
37 <f:render partial="Footer" arguments="{_all}" />
38 </div>
39 </html>