/** * Utility function to map 2 column widths to CSS span architecture. * * @since 1.0 * @access public * @deprecated 2.0.0 * @deprecated Use hoot_col_width_to_span instead * @return void */ function hoot_2_col_width_to_span($col_width) { _deprecated_function(__FUNCTION__, '2.0.0', 'hoot_col_width_to_span'); return hoot_col_width_to_span($col_width); }
$section['columns'] = isset($section['columns']) ? $section['columns'] : '100'; switch ($key) { // Display Widget Areas case 'area_a': case 'area_b': case 'area_c': case 'area_d': case 'area_e': ?> <div id="widgetized-template-<?php echo sanitize_html_class($key); ?> " class="widgetized-template-area"> <div class="grid"> <?php $structure = hoot_col_width_to_span($section['columns']); $count = count($structure); for ($c = 1; $c <= $count; $c++) { $area_id = "widgetized-template-{$key}_{$c}"; $structurekey = $c - 1; ?> <div id="<?php echo sanitize_html_class($area_id); ?> " class="<?php echo $structure[$structurekey]; ?> "> <?php if (is_active_sidebar($area_id)) { dynamic_sidebar($area_id);