function ap_core_get_which_content() { $content = ''; $sidebar = ap_core_get_which_sidebar(); if ('left' == $sidebar) { $content = 'the_right last'; } return $content; }
<?php /* this is the sidebar */ tha_sidebars_before(); $ap_core_sidebar = ap_core_get_which_sidebar(); ?> <div class="sidebar the_<?php echo esc_attr($ap_core_sidebar); ?> col-md-3"> <?php tha_sidebar_top(); ?> <ul> <?php dynamic_sidebar('Sidebar'); ?> </ul> <?php tha_sidebar_bottom(); ?> </div> <?php tha_sidebars_after();