[!!!][FEATURE] Streamline Fluid Styled Content and CSS 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="Default" />
3 <f:section name="Main">
4
5 <f:if condition="{files}">
6 <ul class="ce-uploads">
7 <f:for each="{files}" as="file" iteration="fileIterator">
8 <li>
9 <f:if condition="{data.uploads_type} == 1">
10 <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
11 </f:if>
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 <div>
25 <a href="{file.publicUrl}" {f:if(condition:data.target,then: ' target="{data.target}"')}>
26 <span class="ce-uploads-fileName">{f:if(condition: file.properties.title, then: file.properties.title, else: file.name)}</span>
27 </a>
28 <f:if condition="{file.properties.description}">
29 <f:if condition="{data.uploads_description}">
30 <span class="ce-uploads-description">{file.properties.description}</span>
31 </f:if>
32 </f:if>
33 <f:if condition="{data.filelink_size}">
34 <span class="ce-uploads-filesize"><f:format.bytes value="{file.properties.size}" /></span>
35 </f:if>
36 </div>
37 </li>
38 </f:for>
39 </ul>
40 </f:if>
41
42 </f:section>
43 </html>