[[!getFileInfo?
&file=`[[+file]]`
]]
<li class="audio_item active" >
<div class="clearafter">
<div class="audio_item_name">[[+name]]</div><br>
<div class="">Обновлено: [[+date:strtotime:date=`%Y-%m-%d`]]</div>
[[+fileExt]]<a href="[[+file]]">Скачать</a>
<a href="https://docs.google.com/viewer?url=[[!++site_url]][[+file]]" target="_blank">просмотреть</a>
</div>
</li>
<?php
$fileInfo = array();
$fileInfo['filesize'] = filesize($file);
$tmp = explode('.',$file);
$fileInfo['fileExt'] = end($tmp);
$modx->setPlaceholders($fileInfo);