Exemplo n.º 1
0
/**
 * Registers footer widget areas.
 *
 * @since 1.0.0
 * @access public
 * @return void
 */
function hoot_footer_register_sidebars()
{
    $columns = hoot_get_option_footer();
    if ($columns) {
        $alphas = range('a', 'z');
        for ($i = 0; $i < $columns; $i++) {
            if (isset($alphas[$i])) {
                hoot_register_sidebar(array('id' => 'footer-' . $alphas[$i], 'name' => sprintf(_x('Footer %s', 'sidebar', 'responsive-brix'), strtoupper($alphas[$i])), 'description' => __('You can set footer columns in Theme Options page.', 'responsive-brix')));
            }
        }
    }
}
Exemplo n.º 2
0
<footer <?php 
hoot_attr('footer', '', 'footer grid-stretch contrast-typo');
?>
>
	<div class="grid">
		<div class="grid-row">
			<?php 
$columns = hoot_get_option_footer();
$alphas = range('a', 'e');
$structure = hoot_footer_structure();
for ($i = 0; $i < $columns; $i++) {
    ?>
				<div class="<?php 
    echo 'grid-span-' . $structure[$i];
    ?>
">
					<?php 
    dynamic_sidebar('footer-' . $alphas[$i]);
    ?>
				</div><?php 
}
?>
		</div>
	</div>
</footer><!-- #footer -->