function jma_gbs_template_redirect()
{
$body = true;
add_action(
'genesis_before_sidebar_widget_area',
function () use ($body) {
jma_gbs_open_div($body);
}
);
add_action(
'genesis_before_loop',
function () use ($body) {
jma_gbs_open_div($body);
}
);
add_action(
'genesis_after_sidebar_widget_area',
function () use ($body) {
jma_gbs_close_div($body);
}
);
add_action(
'genesis_after_loop',
function () use ($body) {
jma_gbs_close_div($body);
}
);
}
add_action('template_redirect', 'jma_gbs_template_redirect');