I'm building a site using wordpress that uses multiple sidebars - Header, Left, Footer, etc.
What I want to do is to test whether there are any active widgets within any particular sidebar so that I don't load the enclosing < ul > tags if there are none, and more besides, I also want a dynamic layout based on these tests.
The problem is that I would have thought that is_dynamic_sidebar('header') would return TRUE if there was only an active widget within the dynamic_sidebar('header'), but it seems as though it doesn't accept a value and returns TRUE wherever a widget is placed within my sidebars.
Any help would be appreciated.