';
foreach ($attachments as $attachment)
{
$wpatt_option_includeimages_get = get_option('wpatt_option_includeimages');
if ($wpatt_option_includeimages_get == '1') {
} else if ( wp_attachment_is_image( $attachment->ID ) ) {
continue;
}
$class = "post-attachment mime-" . sanitize_title($attachment->post_mime_type);
$content .= '- ' . $attachment->post_title . ' (' . wpatt_format_bytes(filesize(get_attached_file($attachment->ID)));
$wpatt_option_showdate_get = get_option('wpatt_option_showdate');
if ($wpatt_option_showdate_get == '1')
{
$wpatt_date = new DateTime($attachment->post_date);
$content .= '
' . $wpatt_date->format('d.m.Y') . '
';
}
$content .= ') ';
}
$content .= '