<?php 
    $cat = get_the_category();
    $cat = $cat[0];
?>
<?php if($cat->slug === "columnist"): ?>
    <div class="d-flex d-md-flex">
        <div class="blog">
            <?php get_template_part( 'author', 'image' ); ?>
            <div class="blog__body">
                <a class="blog__title" href="<?php echo esc_url( get_permalink() ); ?>"><?php the_secondary_title(); ?></a>
                <div class="blog__detail">
                    <time datetime="<?php echo get_the_date("Y-m-d H:s"); ?>" class="blog__data">
                        <?php echo get_the_date("d.m.Y") ?>
                    </time>
                    <?php get_template_part( 'author', 'blog' ); ?>
                </div>
            </div>
        </div>
    </div>
<?php else: ?>
    <div class="d-flex d-md-flex">
        <div class="blog">
            <a class="blog__frame" href="<?php echo esc_url( get_permalink() ); ?>">
                <?php if (has_post_thumbnail()): ?>
                    <img loading="lazy" class="d-block"  src="<?php echo get_the_post_thumbnail_url(get_the_ID(), array(264,264)); ?>" alt="<?php the_title(); ?>" />
                <?php endif; ?>
            </a>
            <div class="blog__body">
                <a class="blog__title" href="<?php echo esc_url( get_permalink() ); ?>"><?php the_title(); ?></a>
                <div class="blog__detail">
                    <time datetime="<?php echo get_the_date("Y-m-d H:s"); ?>" class="blog__data">
                        <?php echo get_the_date("d.m.Y") ?>
                    </time>
                    <?php get_template_part( 'author', 'blog' ); ?>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>
</div>
<?php if(!wp_is_mobile()): ?>
    <div class="col-12 col-md-4 col-xl-3 float-right">
            <?php dynamic_sidebar('right_sidebar'); ?>
    </div>
<?php endif; ?>