[BUGFIX] Support target in ctype uploads and fluid_styled_content
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Resources / Private / Templates / Uploads.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2 <f:layout name="HeaderContentFooter" />
3 <f:section name="content">
4 <f:if condition="{files}">
5 <ul class="ce-uploads">
6 <f:for each="{files}" as="file" iteration="fileIterator">
7 <li>
8 <f:if condition="{data.uploads_type} == 1">
9 <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
10 </f:if>
11
12 <f:if condition="{data.uploads_type} == 2">
13 <f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
14 <f:then>
15 <a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
16 <f:media file="{file}" width="150" alt="{file.properties.alternative}" />
17 </a>
18 </f:then>
19 <f:else>
20 <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
21 </f:else>
22 </f:if>
23 </f:if>
24
25 <div>
26 <a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
27 <span class="ce-uploads-fileName">
28 <f:if condition="{file.title}">
29 <f:then>
30 {file.title}
31 </f:then>
32 <f:else>
33 {file.name}
34 </f:else>
35 </f:if>
36 </span>
37 </a>
38
39 <f:if condition="{file.properties.description}">
40 <f:if condition="{data.uploads_description}">
41 <span class="ce-uploads-description">
42 {file.properties.description}
43 </span>
44 </f:if>
45 </f:if>
46
47 <f:if condition="{data.filelink_size}">
48 <span class="ce-uploads-filesize">
49 <f:format.bytes value="{file.properties.size}" />
50 </span>
51 </f:if>
52 </div>
53 </li>
54 </f:for>
55 </ul>
56 </f:if>
57 </f:section>
58 </html>