<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package faced
 */
global $faced_theme_options;

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <!-- for full single column card layout add [.card-full-width] class -->
    <div class="card card-blog-post card-full-width card-single-article">
        <?php
        if(has_post_thumbnail() && ($faced_theme_options['faced-single-page-featured-image'] == 1)) {
        ?>
        <figure class="card_media">
                <?php faced_post_thumbnail(); ?>
        </figure>
            <?php
        }
        ?>
        <div class="card_body">
            <div>
            <?php
                faced_list_category();
            ?>


            <?php
                the_title('<h1 class="card_title">', '</h1>');
            ?>
            <?php

            if ('post' === get_post_type()) :
                ?>
                <div class="entry-meta">
                    <?php
                        faced_posted_on();
                        faced_posted_by();

                    ?>
                </div><!-- .entry-meta -->
            <?php endif; ?>
            </div>

            <div class="entry-content">
                <?php
                    the_content(
                        sprintf(
                            wp_kses(
                            /* translators: %s: Name of current post. Only visible to screen readers */
                                __('Continue reading<span class="screen-reader-text"> "%s"</span>', 'faced'),
                                array(
                                    'span' => array(
                                        'class' => array(),
                                    ),
                                )
                            ),
                            wp_kses_post(get_the_title())
                        )
                    );

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

                ?>
            </div>
            <?php
            $faced_show_tags = $faced_theme_options['faced-single-page-tags'];
            if($faced_show_tags == 1){
                faced_meta_tags();
            }
            ?>


        </div>
    </div>
    <?php
    /**
     * faced_related_posts hook
     * @since 1.0.0
     *
     * @hooked faced_related_posts -  10
     */
    do_action('faced_related_posts', get_the_ID());
    ?>
    <!-- Related Post Code Here -->

</article><!-- #post-<?php the_ID(); ?> -->
