Code: Select all
$tags = tagitems("tag", , <cc_item>);
$ext = gpc(<cc_item>, "ext");
$match = regexmatches($tags, "(0|1)\.(00|25|50|75)");
switch ($match) {
case "0.25": $icon = "0.25 [$ext].ico"; break;
case "0.50": $icon = "0.50 [$ext].ico"; break;
case "0.75": $icon = "0.75 [$ext].ico"; break;
case "1.00": $icon = "1.00 [$ext].ico"; break;
default: $icon = "";
}
return $icon;
resulting in different "progress states" per extension type. Could
be enhanced by using generic file types (video, audio, text, etc.)...