{lang="my_attachments"}

{{if member.group['g_attach_max'] > 0}}

{lang="my_attachments_blurb" sprintf="\IPS\Output\Plugin\Filesize::humanReadableFilesize( $used ), \IPS\Output\Plugin\Filesize::humanReadableFilesize( \IPS\Member::loggedIn()->group['g_attach_max'] * 1024 )"}

{{endif}} {{if empty($files)}}
{lang="my_attachments_empty"}
{{else}}
{{foreach $files as $url => $file}} {{$id = mb_substr( $url, mb_strrpos( $url, '=' ) + 1 );}}
{{if in_array( mb_strtolower( mb_substr( $file->filename, mb_strrpos( $file->filename, '.' ) + 1 ) ), \IPS\Image::$imageExtensions )}} {{else}} {{endif}}

{$file->originalFilename}

{filesize="$file->filesize()"}

  • {{if \IPS\Member::loggedIn()->group['gbw_delete_attachments']}}
  • {{endif}}
{{endforeach}}
{{endif}}