function register_sidebar($args = array()) { K2SBM::register_sidebar($args); }
function register_sidebars($count = 1, $args = array()) { // Apparently, WPW lets you pass arguments as a string if (is_string($args)) { parse_str($args, $args); } // Check for a name $arg_name = isset($args['name']) ? $args['name'] : __('Sidebar %d', 'k2_domain'); // Check there is a count in the name if (!strstr($arg_name, '%d')) { $arg_name += __(' %d', 'k2_domain'); } // Register the sidebars for ($i = 0; $i < $count; $i++) { $args['name'] = sprintf($arg_name, $i + 1); K2SBM::register_sidebar($args); } }