File: h:/root/home/kytoffice-001/www/expresstinou/wp-content/themes/paper-news/archive.php
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @package Newsair
*/
get_header(); ?>
<main id="content" class="archive-class">
<!--container-->
<div class="container">
<?php do_action('newsair_action_archive_page_title'); ?>
<!--row-->
<div class="row">
<?php
$newsair_content_layout = esc_attr(get_theme_mod('newsair_content_layout','align-content-right'));
if($newsair_content_layout == "align-content-left" || $newsair_content_layout == "grid-left-sidebar") { ?>
<!--col-lg-4-->
<aside class="col-lg-4 sidebar-left">
<?php get_sidebar();?>
</aside>
<!--/col-lg-4-->
<?php } ?>
<!--col-lg-8-->
<?php if($newsair_content_layout == "align-content-right" || $newsair_content_layout == "align-content-left") { ?>
<div class="col-lg-8 content-right">
<?php get_template_part('content', get_post_format()); ?>
</div>
<?php } elseif($newsair_content_layout == "full-width-content") { ?>
<div class="col-lg-12">
<?php get_template_part('content', get_post_format()); ?>
</div>
<?php } if($newsair_content_layout == "grid-left-sidebar" || $newsair_content_layout == "grid-right-sidebar") { ?>
<div class="col-lg-8 content-right">
<?php get_template_part('template-parts/content','grid'); ?>
</div>
<?php } elseif($newsair_content_layout == "grid-fullwidth") { ?>
<div class="col-lg-12">
<?php get_template_part('template-parts/content','grid'); ?>
</div>
<?php } ?>
<!--/col-lg-8-->
<?php if($newsair_content_layout == "align-content-right" || $newsair_content_layout == "grid-right-sidebar") { ?>
<!--col-lg-4-->
<aside class="col-lg-4 sidebar-right">
<?php get_sidebar();?>
</aside>
<!--/col-lg-4-->
<?php } ?>
</div><!--/row-->
</div><!--/container-->
</main>
<?php
get_footer();