<?php
// enable social share
$enable_lifter_single_social  = get_theme_mod('edumodo_single_lifter_course_social_trigger','on');
// enable post tags
$enable_lifter_single_post_tags  = get_theme_mod('edumodo_single_lifter_course_post_tags_trigger','on');

    while ( have_posts() ) : the_post(); ?>

        <div id="post-<?php the_ID(); ?>" <?php post_class('lifter-single-course-post single-course-style-1'); ?>>

            <?php if( has_post_thumbnail() ): ?>
                <figure class="post-thumbnail">
                    <?php the_post_thumbnail(); ?>
                    <?php if(is_sticky()): ?>
                        <div class="post-triangle">
                            <span>
                                <i class="fas fa-star"></i>
                            </span>
                        </div>
                    <?php endif; ?>
                </figure> <!-- End All Post Formate -->
            <?php endif; ?>

            <h2 class="title entry-title course-title"> <?php echo get_the_title(get_the_ID());?> </h2>

            <div class="entry-content">
                <?php the_content();


                    wp_link_pages( array(
                        'before'      => '<div class="page-links">' . esc_html__( 'Pages:', 'edumodo' ),
                        'after'       => '</div>',
                        'next_or_number'   => 'number',
                        'link_before' => '<span class="page-number">',
                        'link_after'  => '</span>',
                    ) );
                ?>
            </div>

            <footer class="entry-footer-body">
                <div class="row">
                    <div class="col-md-6">
                        <?php if( $enable_lifter_single_post_tags == 'on' ): ?>
                            <div class="post-meta pull-left">
                                <?php if(has_tag()):?>
                                    <!-- Post tag -->
                                    <span class="post-tags-title"><?php esc_html_e( 'Tags:', 'edumodo' ); ?></span>
                                    <span class="post-tags"><?php the_tags('', ', ', '<br />'); ?></span>
                                <?php endif;?>
                            </div>
                        <?php endif;?>

                        <div class="edit">
                            <?php
                                edit_post_link(
                                    sprintf(
                                        /* translators: %s: Name of current post */
                                        esc_html__( 'Edit %s', 'edumodo' ),
                                        the_title( '<span class="screen-reader-text">"', '"</span>', false )
                                    ),
                                    '<span class="edit-link">',
                                    '</span>'
                                );
                            ?>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="social-share-wrapper text-md-right">
                            <?php if( $enable_lifter_single_social == 'on' ): ?>
                                <?php echo edumodo_social_share(); ?>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </footer> <!-- .entry-footer-body -->
        </div><!-- #post-## -->

    <?php endwhile; // End of the loop.?>