Пример #1
0
<footer <?php 
hoot_attr('footer', '', 'footer grid-stretch highlight-typo');
?>
>
	<div class="grid">
		<?php 
$columns = hoot_get_footer_columns();
$alphas = range('a', 'e');
$structure = hoot_footer_structure();
?>

		<?php 
for ($i = 0; $i < $columns; $i++) {
    ?>
			<div class="<?php 
    echo 'grid-span-' . $structure[$i];
    ?>
 footer-column">
				<?php 
    dynamic_sidebar('footer-' . $alphas[$i]);
    ?>
			</div>
		<?php 
}
?>
	</div>
</footer><!-- #footer -->
Пример #2
0
/**
 * Get footer column option.
 *
 * @since 1.0.0
 * @access public
 * @deprecated 2.0.0
 * @deprecated Use hoot_get_footer_columns()
 * @return int
 */
function hoot_get_option_footer()
{
    _deprecated_function(__FUNCTION__, '2.0.0', 'hoot_get_footer_columns()');
    return hoot_get_footer_columns();
}