<?php
/**
 * Must Read  section
 *
 * This is the template for the content of main_post section
 *
 * @package Theme Palace
 * @subpackage Myself Pro
 * @since Myself Pro 1.0.0
 */
if ( ! function_exists( 'myself_pro_add_main_post_section' ) ) :
    /**
    * Add main_post section
    *
    *@since Myself Pro 1.0.0
    */
    function myself_pro_add_main_post_section() { ?>
        <div id="main-post-wrapper" class="wrapper margin-top">
            <div id="primary" class="content-area">
                <main id="main" class="site-main" role="main">
                <?php 
                $options = myself_pro_get_theme_options();
                
                add_action('myself_pro_main_post','myself_pro_add_photography_section'); 
                add_action('myself_pro_main_post','myself_pro_add_most_viewed_section'); 

                do_action('myself_pro_main_post'); ?>

                
                </main><!-- #main -->
            </div><!-- #primary -->

            <?php if( is_active_sidebar('main-left-sidebar') ) : ?>
                <aside id="secondary" class="widget-area" role="complementary">
                    <?php dynamic_sidebar('main-left-sidebar'); ?>
                </aside><!-- #left-sidebar -->
            <?php endif; ?>
            
        </div><!-- #main-post-wrapper -->
    <?php }

endif;
