<#function useFile filePath fileName fullPath=''> <#if fullPath?has_content> <#assign prefix=site.sitePath/> <#else> <#assign prefix=r'${site.sitePath}'/> <#assign fileType=t.fileType(fileName)/> <#switch fileType> <#case 'image'> <#return ''+fileName+''/><#break> <#case 'video'> <#return ''/><#break> <#case 'audio'> <#return ''/><#break> <#default> <#assign fileSuffix = fileName?keep_after_last('.')/> <#switch fileSuffix> <#case 'css'> <#return ''/><#break> <#case 'js'> <#return ''/><#break> <#case 'ico'> <#return ''/><#break> <#case 'rar'> <#case 'zip'> <#case 'html'> <#return ''+fileName+''/><#break> <#default> <#return prefix+filePath/>
<@tools.fileList type='file' path=path> <#if path?has_content>

<@t.page 'button.return'/>

<#list list as a> <#assign filePath=path?has_content?then(path+'/','')+a.fileName/>
<#if a.directory>

${a.fileName}

<#else> <#if t.fileType(a.fileName) = 'image'> ${a.fileName} <#else>

${a.fileName}(<@t.fileSize a.size/>)