<?php $tyros_options = tyros_get_options(); ?>

<div id="alt-single-wrap">

    <article class="item-page">

        <h2 class="post-title">
            <?php the_title(); ?>
        </h2>
        
        <div class="post-meta">
            <?php echo $tyros_options['tyros_single_date'] == 'on' ? __( 'Posted on: ', 'tyros' ) . esc_html( get_the_date() ) : ''; ?><?php echo $tyros_options['tyros_single_author'] == 'on' && $tyros_options['tyros_single_date'] == 'on' ? __( ', ', 'tyros' ) : ''; ?>
            <?php echo $tyros_options['tyros_single_author'] == 'on' ? __( 'by : ', 'tyros' ) . get_the_author_posts_link() : ''; ?>
        </div>

        <?php if ( has_post_thumbnail() && $tyros_options['tyros_single_featured'] == 'on' ) : ?>

            <div class="featured-image">

                <img class="feat-img" src="<?php echo esc_url( get_the_post_thumbnail_url( get_the_ID(), 'large' ) ); ?>" alt="<?php esc_html( get_the_title() ); ?>">

            </div>

        <?php endif; ?>
        
        <div class="entry-content">

            <?php the_content(); ?>

            <?php 

            wp_link_pages(array(
                'before' => '<div class="page-links">' . __( 'Pages:', 'tyros' ),
                'after' => '</div>',
            ));

            if (comments_open() || '0' != get_comments_number()) :
                comments_template();
            endif;

            ?>

        </div>

    </article>

</div>