File "index.php"
Full Path: /home/rattkxnv/byattorney.com/wp-content/themes/blogwaves/index.php
File size: 1.72 KB
MIME-type: text/x-php
Charset: utf-8
<?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 blogwaves
*/
get_header();
if ( have_posts() ) : ?>
<section class="wp-blog-section ptb-100 bg-color">
<div class="container">
<?php
$sidebar_position = get_theme_mod('blogwaves_sidebar_position', 'right');
if ($sidebar_position == 'left') {
$sidebar_position = 'has-left-sidebar';
} elseif ($sidebar_position == 'right') {
$sidebar_position = 'has-right-sidebar';
} elseif ($sidebar_position == 'no') {
$sidebar_position = 'no-sidebar';
}
?>
<div class="row <?php echo esc_attr($sidebar_position); ?>">
<div class="col-lg-8">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', get_post_type() ); ?>
<?php endwhile; ?>
<div class="pagination">
<nav class="Page navigation">
<ul class="page-numbers">
<?php echo paginate_links(); ?>
</ul>
</nav>
</div>
</div>
<?php
if (($sidebar_position == 'has-left-sidebar') || ($sidebar_position == 'has-right-sidebar')) { ?>
<div class="col-lg-4">
<?php get_sidebar(); ?>
</div>
<?php } ?>
</div>
</div>
</section>
<?php endif;
get_footer();
?>