59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* The template for displaying course single page
|
||
|
|
*/
|
||
|
|
|
||
|
|
get_header();
|
||
|
|
|
||
|
|
$ld_intro_video_position = Upstudy::setting( 'ld_intro_video_position' );
|
||
|
|
$ld_related_course_position = Upstudy::setting( 'ld_related_course_position' );
|
||
|
|
$ld_single_enroll_btn = Upstudy::setting( 'ld_single_enroll_btn' );
|
||
|
|
$ld_single_social_shear = Upstudy::setting( 'ld_single_social_shear' );
|
||
|
|
$ld_course_header_style = Upstudy::setting( 'ld_course_header_style' );
|
||
|
|
|
||
|
|
// ==== Course Header =====
|
||
|
|
|
||
|
|
while ( have_posts() ) : the_post();
|
||
|
|
|
||
|
|
upstudy_ld_course_page_title_section_08();
|
||
|
|
|
||
|
|
endwhile; wp_reset_postdata();
|
||
|
|
|
||
|
|
// ==== Content Area =====
|
||
|
|
echo '<div id="primary" class="content-area">';
|
||
|
|
echo '<main id="main" class="site-main" role="main">';
|
||
|
|
echo '<div class="upstudy-container">';
|
||
|
|
|
||
|
|
while ( have_posts() ) : the_post();
|
||
|
|
|
||
|
|
global $post; $post_id = $post->ID;
|
||
|
|
$course_id = $post_id;
|
||
|
|
|
||
|
|
echo '<div class="upstudy-course-content-03">';
|
||
|
|
|
||
|
|
echo '<div class="upstudy-course-intro-video">';
|
||
|
|
|
||
|
|
$ld_intro_video_position = Upstudy::setting( 'ld_intro_video_position' );
|
||
|
|
|
||
|
|
get_template_part( 'learndash/tpl-part/single/media-header');
|
||
|
|
|
||
|
|
|
||
|
|
echo '</div>';
|
||
|
|
|
||
|
|
get_template_part( 'learndash/tpl-part/single/single', 'content' );
|
||
|
|
|
||
|
|
echo '</div>';
|
||
|
|
endwhile;
|
||
|
|
|
||
|
|
if ($ld_related_course_position == 'content') {
|
||
|
|
|
||
|
|
echo '<div class="related-post-wrap related_course">';
|
||
|
|
upstudy_ld_related_course_content();
|
||
|
|
echo '</div>';
|
||
|
|
|
||
|
|
}
|
||
|
|
echo '</div>';
|
||
|
|
echo '</main>';
|
||
|
|
echo '</div>';
|
||
|
|
|
||
|
|
get_footer();
|