File: /home/wwwrenee/public_html/wp-content/themes/maxcoach/learnpress/single-course.php
<?php
/**
* Template for displaying content of single course.
*
* @author ThimPress
* @package LearnPress/Templates
* @version 4.0.0
*
* @theme-since 2.4.0
* @theme-version 2.4.0
*/
defined( 'ABSPATH' ) || exit;
/**
* Used blank header for lesson pages.
*/
$header_footer = Maxcoach_LP_Course::instance()->is_single_lessons() ? 'blank' : 'course';
get_header( $header_footer );
?>
<div id="page-content" class="page-content">
<div class="container">
<div class="row">
<?php Maxcoach_Templates::render_sidebar( 'left' ); ?>
<div id="page-main-content" class="page-main-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content-rich-snippet' ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="screen-reader-text"><?php echo esc_html( get_the_title() ); ?></h2>
<?php learn_press_get_template( 'content-single-course' ); ?>
</article>
<?php
if ( ! Maxcoach_LP_Course::instance()->is_single_lessons() && '1' === Maxcoach::setting( 'single_course_related_enable' ) ) :
get_template_part( 'template-parts/course/content-related-courses' );
endif;
?>
<?php endwhile; ?>
</div>
<?php Maxcoach_Templates::render_sidebar( 'right' ); ?>
</div>
</div>
</div>
<?php
get_footer( $header_footer );