wp-content/themes/twentyeleven/functions.php:711Counts the number of footer sidebars to enable dynamic classes for the footer.
function twentyeleven_footer_sidebar_class() { $count = 0; if ( is_active_sidebar( 'sidebar-3' ) ) { ++$count; } if ( is_active_sidebar( 'sidebar-4' ) ) { ++$count; } if ( is_active_sidebar( 'sidebar-5' ) ) { ++$count; } $class = ''; switch ( $count ) { case '1': $class = 'one'; break; case '2': $class = 'two'; break; case '3': $class = 'three'; break; } if ( $class ) { echo 'class="' . esc_attr( $class ) . '"'; }}Introduced in Twenty Eleven 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyeleven/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.