?>
</h3>
                    <?php 
    //echo do_shortcode('[course_unit_details unit_id="' . get_the_ID() . '" field="parent_course"]');
    ?>
                </header><!-- .entry-header -->
                <div class="instructors-content"></div>
                <?php 
    echo do_shortcode('[course_unit_archive_submenu course_id="' . $course_id . '"]');
    ?>

                <div class="clearfix"></div>

                <?php 
    echo do_shortcode('[course_unit_page_title unit_id="' . $unit->details->ID . '" title_tag="h3" show_unit_title="yes"]');
    ?>

                <?php 
    Unit_Module::get_modules_front($unit->details->ID);
    ?>
            </article>
        <?php 
}
// end of the loop.
?>
    </main><!-- #main -->
</div><!-- #primary -->

<?php 
get_sidebar('footer');
get_footer();
<?php

global $wp;
$course_id = do_shortcode('[get_parent_course_id]');
$course_id = (int) $course_id;
CoursePress::instance()->check_access($course_id);
$paged = isset($wp->query_vars['paged']) ? absint($wp->query_vars['paged']) : 1;
echo do_shortcode('[course_unit_archive_submenu]');
?>
<h2><?php 
echo get_the_title((int) $unit_id);
?>
</h2>

<?php 
echo do_shortcode('[course_unit_page_title unit_id="' . $unit_id . '"]');
?>

<?php 
Unit_Module::get_modules_front((int) $unit_id);