<?php
global $post;
$title = (get_post_meta($post->ID, 'xs_section_title', true) == '') ? ($post->post_title) : (get_post_meta($post->ID, 'xs_section_title', true));

?>

<!--BEGIN-<?php echo xs_main($post->ID); ?>-->
<section id="<?php echo xs_main($post->ID); ?>" class="page-block">
    <div class="container">
        <div class="section clearfix">
            <?php
            if (get_post_meta($post->ID, 'xs_page_show_title', true) != 'off') {
                $colored = (get_post_meta($post->ID, 'xs_section_headerBG', true) != 'on') ? ('') : ('colored');
                echo '<header class="page-head ' . $colored . ' clearfix">
						<h2>' . $title . '</h2>
						<p class="text-muted">' . get_post_meta($post->ID, 'xs_page_sub_title', true) . '</p>
					</header>';
            }
            ?>
            <article>
                <p><?php echo do_shortcode(get_post_meta($post->ID, 'xs_section_desc', true)); ?></p>
            </article>
        </div>
        <div class="sec-content sec-contents">
<?php the_content(); ?>
        </div>
    </div>
</section>
<!--END-SPEAKERS--> 