
              
                        <?php global $wp_query; $postid = $wp_query->post->ID; $cus = get_post_meta($postid, 'sbg_selected_sidebar_replacement', true);?>
						<?php if ($cus != '') { ?>
                        <?php if ($cus[0] != '0') { ?>
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar($cus[0])){ }else { ?>
                        <?php } ?>
                        <?php } else { ?>
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Single Sidebar')){ }else { ?>
                        <?php } ?>
                        <?php } ?>
                        <?php } else { ?>
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Single Sidebar')){ }else { ?>
                        <?php } ?>
                        <?php } ?>
           