</div><!-- #item-body --> <?php do_action('bp_after_course_home_content'); ?> <?php } } ?> </div> <div class="col-md-3 col-sm-3"> <div class="widget pricing"> <?php echo learndash_payment_buttons(get_the_ID()); ?> </div> <?php $sidebar = getPostMeta($post->ID, 'vibe_sidebar'); isset($sidebar) && $sidebar ? $sidebar : ($sidebar = 'coursesidebar'); if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($sidebar)) { ?> <?php } ?> </div> </div><!-- .padder --> </div><!-- #container -->
<span id='learndash_course_status'> <strong><?php _e('Course Status:', 'learndash'); ?> </strong> <?php echo $course_status; ?> <br> </span><br> <?php } } echo $content; if (!$has_access) { echo learndash_payment_buttons($post); //echo '<a id="btn-join">'.__( 'Take this Course', 'learndash' ).'</a>'; echo '<form class="postLink" action="/scripts/enrolonly.php" method="post"> <input type="hidden" name="user_id" value="' . $user_id . '"/> <input type="hidden" name="course_id" value="' . $course_id . '"/> <input type="hidden" name="link_url" value="' . get_permalink($course_id) . '"/> <input class="btn-join" type="submit" value="Take this Course"/> </form>'; ?> <?php } else { if (isset($materials)) { ?> <div id='learndash_course_materials'>