As it stands Attachments uses the icons provided by WordPress core, and I’m not sure how to edit those, but if/when you do Attachments should pick right up on them and use them.
Thread Starter
atart
(@atart)
I used php to solve my problem, it’s not good solution but it works.
<?php $attachments = new Attachments( 'attachments' ); /* pass the instance name */ ?>
<?php if( $attachments->exist() ) : ?>
<?php while( $attachments->get() ) : ?>
<li>
<a href="<?php echo $attachments->url(); ?>" title="<?php echo $attachments->field( 'title' ); ?>">
<?php
$typ = $attachments->subtype();
if($typ == 'pdf'){
echo '<img src="'; bloginfo( 'template_url' ); echo'/content/products/pdf.png" alt="" /><br />';
}
else if($typ == '3ds'){
echo '<img src="'; bloginfo( 'template_url' ); echo'/content/products/3ds.png" alt="" /><br />';
}
else if($typ == 'dwg'){
echo '<img src="'; bloginfo( 'template_url' ); echo'/content/products/dwg.png" alt="" /><br />';
}
?>
</a>
<a href="<?php echo $attachments->url(); ?>" title="<?php echo $attachments->field( 'title' ); ?>"><?php echo $attachments->field( 'title' ); ?><br /><?php echo $attachments->subtype(); ?></a>
</li>
<?php endwhile; ?>
<?php endif; ?>