";
foreach ($dis as $di){
$posti = get_post($di);
$fhh = $opts['fhh'];
$fhw = $opts['fhw'];
if ($opts['newwindow'] == 'yes') {$target = 'target="_blank"';} else {$target = "";}
$_link = wp_get_attachment_url($posti->ID); //get the url for linkage
$_name_array = explode("/", $_link);
$_post_mime = str_replace("/", "-", $posti->post_mime_type);
$_name = array_reverse($_name_array);
$filesaa .= "
";
}
$filesaa .="