<?php
/**
 * Template part for displaying single content in single.php.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package specter
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    <div class="entry-content">
        <?php
            the_content();
            ?>
            <span class="clearfix"></span>
            <?php
            wp_link_pages( array(
                'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'specter' ),
                'after'  => '</div>',
            ) );
        ?>

    </div><!-- .entry-content -->

    
    <footer class="entry-footer">
        <div class="cat-tag-links">
            <p>
            <?php
                $category_list = get_the_category_list( ', ', '' );
                printf( __('Filed under: %s', 'specter'),
                $category_list
                );
            ?>
            </p>
            
            <?php if(has_tag()): ?>
            <p>
                <?php
                    esc_html_e('Tags: ','specter');
                   echo get_the_tag_list('',',','');
                ?>
             </p>
            <?php endif; ?>
        </div>
        <?php do_action('specter_relate_posts'); 

        // If comments are open or we have at least one comment, load up the comment template.
        if ( comments_open() || get_comments_number() ) :
            comments_template();
        endif; ?>

    </footer><!-- .entry-footer -->
    
</article><!-- #post-## -->