ID, 'apbasic_page_layout', true); $def_layout = ($single_page_layout == 'default_layout') ? $default_page_layout : $single_page_layout; }elseif(is_single()){ $default_post_layout = $apbasic_settings['default_post_layout']; $single_post_layout = get_post_meta($post->ID,'apbasic_page_layout', true); $def_layout = ($single_post_layout == 'default_layout') ? $default_post_layout : $single_post_layout; }elseif(is_category()){ $def_layout = $apbasic_settings['default_layout']; } switch($def_layout){ case 'right_sidebar' : $sidebar_class = 'right-sidebar'; break; case 'both_sidebar' : $sidebar_class = 'right-sidebar both-sidebar'; break; } */ ?>