Project

General

Profile

Bug #78318 » Uploads_default.html

HTML default - Dave Najeel, 2016-10-17 15:25

 
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="HeaderContentFooter" />
<f:section name="content">
<f:if condition="{files}">
<ul class="ce-uploads">
<f:for each="{files}" as="file" iteration="fileIterator">
<li>
<f:if condition="{data.uploads_type} == 1">
<img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
</f:if>

<f:if condition="{data.uploads_type} == 2">
<f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
<f:then>
<a href="{file.publicUrl}">
<f:image src="{file.uid}" treatIdAsReference="{f:if(condition: file.originalFile, then: '1', else: '0')}" width="150" alt="{file.properties.alternative}" />
</a>
</f:then>
<f:else>
<img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
</f:else>
</f:if>
</f:if>

<div>
<f:if condition="{file.name}">
<a href="{file.publicUrl}">
<span class="ce-uploads-fileName">
{file.name}
</span>
</a>
</f:if>

<f:if condition="{file.properties.description}">
<f:if condition="{data.uploads_description}">
<span class="ce-uploads-description">
{file.properties.description}
</span>
</f:if>
</f:if>

<f:if condition="{data.filelink_size}">
<span class="ce-uploads-filesize">
<f:format.bytes value="{file.properties.size}" />
</span>
</f:if>
</div>
</li>
</f:for>
</ul>
</f:if>
</f:section>
</html>
(2-2/3)