well, I've played with it a bit and was able to get some progress
$widget_count = 0;
add_filter('thematic_before_widget', 'thematic_before_widget_filter');
function thematic_before_widget_filter($content) {
// $content = '<li id="%1$s" class="widgetcontainer %2$s">';
//edit the content
global $widget_count;
$content = substr($content, 0, -2) . ' widget_count_' . $widget_count++ . '">';
return $content;
}
The problem here is it gives widgets the same counter class in each widget area. So all the widgets in the primary area get the same widget_count_0 and secondary widget_count_1. Any obvious way anyone sees to make it increment per widget rather than per widget area?
Also, I only want to apply this to a single widget area, I guess I'd just wrap the contents of the filter with an if statement but how do I access the widget area? I see in widget-extensions.php that the thematic_before_widget_area function has if statements to check which aside it's working with, but not sure how to access that $hook var from my function. Thanks for any pointing in the right direction.