<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package United Blog
 */
$archive_posts_layout = united_blog_get_option('archive_posts_layout');

?>
<article id="archive-post-<?php the_ID(); ?>" <?php post_class('united-article united-article-default united-archive-article ' . $archive_posts_layout); ?>>
    <?php switch ($archive_posts_layout) {
        case 'archive-layout-1':
            get_template_part('template-parts/archive/archive-layout', '1');
            break;
        case 'archive-layout-2':
            get_template_part('template-parts/archive/archive-layout', '2');
            break;
        default:
            // code...
            break;
    } ?>
</article><!-- #post-<?php the_ID(); ?> -->
