1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/property/output/property.file.tpl
2016-12-27 15:57:29 +07:00

21 lines
714 B
Smarty

{$value = $property->getValue()}
{$valueType = $value->getValueTypeObject()}
<div class="ls-property">
<div class="ls-property-list-item-label">
{$property->getTitle()}
</div>
{if $value->getValueVarchar()}
{if $oUserCurrent || ! $property->getParam('access_only_auth')}
<a href="{router page="property/download"}{$value->getValueVarchar()}/">{$value->getValueForDisplay()}</a>
{if $valueType->getCountDownloads()}
<br/>{lang 'property.file.downloads'}: {$valueType->getCountDownloads()}
{/if}
{else}
{lang 'property.file.forbidden'}
{/if}
{else}
{lang 'property.file.empty'}
{/if}
</div>