/** * Check if there are active footer widget areas. * * @since 1.0.0 * * @return bool */ function rock_has_active_footer_sidebars() { return (bool) rock_get_active_footer_sidebars(); }
<?php /** * Displays the footer widget areas. * * @package Rock * @since 1.0.0 */ ?> <?php if ($sidebars = rock_get_active_footer_sidebars()) { ?> <div class="footer-widget-area columns-<?php echo count($sidebars); ?> "> <?php foreach ($sidebars as $sidebar) { ?> <div class="footer-widget"> <?php dynamic_sidebar($sidebar); ?> </div>