';
foreach ($attachments as $attachment)
{
$class = "post-attachment mime-" . sanitize_title($attachment->post_mime_type);
$content .= '- ' . $attachment->post_title . ' (' . at_wpatt_format_bytes(filesize(get_attached_file($attachment->ID)));
$get_at_wpatt_option_showdate = get_option('at_wpatt_option_showdate');
if ($get_at_wpatt_option_showdate == '1')
{
$wpatt_date = new DateTime($attachment->post_date);
$content .= '
' . $wpatt_date->format('d.m.Y') . '
';
}
$content .= ') ';
}
$content .= '