<div id="sidebar">
<?php if ( is_page('9') || is_page('2') || is_page('10')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Page') ) : ?>
<?php endif; ?>'); }
elseif ( is_page('7')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bryant Shrops') ) : ?>
<?php endif; ?>'); }
elseif ( is_page('8')) { echo ('<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('A&B Percherons') ) : ?>
<?php endif; ?>'); }
?>
</div>
Results in an unexpected t_string. I know this code is not right and echo is probably not what i need to use. Any help is appreciated.