<div class="post-style-1 <?php echo has_post_thumbnail()? '' : 'no-thumbnail'; ?>">
    <?php ob_start(); ?>
    <?php if (has_post_thumbnail() && '' !== get_the_post_thumbnail()) : ?>
        <div class="post-thumbnail">
            <a href="<?php the_permalink(); ?>">
                <?php the_post_thumbnail('pakrco-post-grid'); ?>
            </a>
        </div><!-- .post-thumbnail -->
    <?php endif; ?>
    <div class="entry-content">
        <div class="entry-meta">
            <?php
            // Author.
            $author = sprintf(
                '<span class="post-author"><span>%1$s<a href="%2$s" class="url fn" rel="author">%3$s</a></span></span>',
                esc_html__('by ', 'pakrco'),
                esc_url(get_author_posts_url(get_the_author_meta('ID'))),
                esc_html(get_the_author())
            );
            echo wp_kses(
                sprintf('%1$s', $author), array(
                    'span' => array(
                        'class' => array(),
                    ),
                    'a'    => array(
                        'href'  => array(),
                        'title' => array(),
                        'rel'   => array(),
                    ),
                    'time' => array(
                        'datetime' => array(),
                        'class'    => array(),
                    ),
                )
            );
            ?>

            <?php if ('post' === get_post_type()): $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
                if (get_the_time('U') !== get_the_modified_time('U')) {
                    $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
                }

                $time_string = sprintf(
                    $time_string,
                    esc_attr(get_the_date('c')),
                    esc_html(get_the_date()),
                    esc_attr(get_the_modified_date('c')),
                    esc_html(get_the_modified_date())
                );

                $posted_on = '<span class="posted-on">' . sprintf('<a href="%1$s" rel="bookmark">%2$s</a>', esc_url(get_permalink()), $time_string) . '</span>';

                echo wp_kses($posted_on, array(
                        'span' => array(
                            'class' => array(),
                        ),
                        'a'    => array(
                            'href'  => array(),
                            'title' => array(),
                            'rel'   => array(),
                        ),
                        'time' => array(
                            'datetime' => array(),
                            'class'    => array(),
                        ),
                    )
                );
            endif; ?>
        </div>
        <?php the_title(sprintf('<h2 class="alpha entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?>
    </div><!-- .entry-content -->
    <?php pakrco_render_skeleton('skeleton-post-grid-style-1'); ?>
</div>
