Salut,
j'ai trouvé tout seul comme un grand.
Bon :
1. modifier le theme.html comme suit, rajouter :
<!-- Pour utiliser iconize -->
<link rel="stylesheet" type="text/css" media="screen" href="<{xoImgUrl /iconize/iconize.css}>" />
2. modifier le template (news_article.html) de news (en l'ayant au préalable surchargé) comme suit, remplacer les lignes 5 à 12 par :
<{if $attached_files_count>0}>
<div class="itemInfo"><{$lang_attached_files}>
<{foreach item=onefile from=$attached_files}>
<!-- modif du lien -->
<a target='_blank' href='<{$onefile.visitlink}>' title='<{$onefile.file_realname}>'><{$onefile.file_realname}></a>
<{/foreach}>
</div>
<{/if}>
3. dans iconize.css, dupliquer toutes les entrées href par title. Pour vous simplifier la tâche, vous n'avez qu'à recopier le code ci-dessous et le coller à la fin de votre fichier iconize.css.
/* Iconize 0.3 modifié par baronxoops pour news*/
/* websites (pictures and movies) */
a[title *="youtube.com/watch?"], a[title *="sevenload.com/videos/"], a[title *="metacafe.com/watch/"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_film.gif) no-repeat center right;
}
a[title *="flickr.com/photos/"], a[title *="zooomr.com"], a[title *="imageshack.us"], a[title *="bubbleshare.com"], a[title *="sevenload.com/bilder/"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_pic.gif) no-repeat center right;
}
/* extensions */
a[title$='.doc'], a[title$='.rtf'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_doc.gif) no-repeat center right;
}
a[title$='.txt'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_txt.gif) no-repeat center right;
}
a[title$='.xls'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_xls.gif) no-repeat center right;
}
a[title$='.rss'], a[title$='.atom'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_feed.gif) no-repeat center right;
}
a[title$='.opml'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_opml.gif) no-repeat center right;
}
a[title$='.vcard'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_vcard.gif) no-repeat center right;
}
a[title$='.exe'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_exe.gif) no-repeat center right;
}
a[title$='.dmg'], a[title$='.app'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_dmg.gif) no-repeat center right;
}
a[title$='.pps'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_pps.gif) no-repeat center right;
}
a[title$='.pdf'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_pdf.gif) no-repeat center right;
}
a[title$='.xpi'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_plugin.gif) no-repeat center right;
}
a[title$='.fla'], a[title$='.swf'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_flash.gif) no-repeat center right;
}
a[title$='.zip'], a[title$='.rar'], a[title$='.gzip'], a[title$='.bzip'], a[title$='.ace'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_archive.gif) no-repeat center right;
}
a[title$='.ical'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_ical.gif) no-repeat center right;
}
a[title$='.css'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_css.gif) no-repeat center right;
}
a[title$='.ttf'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_ttf.gif) no-repeat center right;
}
a[title$='.jpg'], a[title$='.gif'], a[title$='.png'], a[title$='.bmp'], a[title$='.jpeg'], a[title$='.svg'], a[title$='.eps'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_pic.gif) no-repeat center right;
}
a[title$='.mov'], a[title$='.wmv'], a[title$='.mp4'], a[title$='.avi'], a[title$='.mpg'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_film.gif) no-repeat center right;
}
a[title$='.mp3'], a[title$='.wav'], a[title$='.ogg'], a[title$='.wma'], a[title$='.m4a'] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_music.gif) no-repeat center right;
}
/* messenger */
a[title ^="aim:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_aim.gif) no-repeat center right;
}
a[title ^="msnim:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_msn.gif) no-repeat center right;
}
a[title ^="xmpp:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_jabber.gif) no-repeat center right;
}
a[title *="icq.com"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_icq.gif) no-repeat center right;
}
a[title *="edit.yahoo.com/config/send_webmesg?"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_yim.gif) no-repeat center right;
}
a[title ^="callto:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_call.gif) no-repeat center right;
}
a[title ^="skype:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_skype.gif) no-repeat center right;
}
/* email */
a[title ^="mailto:"] {
padding: 5px 20px 5px 0;
background: transparent url(icons/icon_mailto.gif) no-repeat center right;
}
/* making sure images don't get icons */
.imageLink {
padding-right: 0px !important;
background: none !important;
}
Il ne sera pas inutile d'optimiser le fichier iconize.css qui pèse du coup le double :-o
Voili voilou.