XylotrechusZ
<?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.
*
* Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
*
* @package WordPress
* @subpackage Liviza
* @since Liviza 1.0
*/
get_header(); ?>
<div id="primary" class="content-area tttttt <?php echo themestek_sanitize_html_classes(themestek_sidebar_class('content-area')); ?>">
<main id="main" class="site-main">
<?php if( themestek_get_option('blog_view') != 'classic' ) : ?>
<div class="row multi-column-row">
<?php endif; ?>
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post();
if( themestek_get_option('blog_view') != 'classic' ) {
echo themestek_column_div('start', themestek_get_option('blogbox_column') );
echo get_template_part('theme-parts/blogbox/blogbox', themestek_get_option('blog_view') );
echo themestek_column_div('end', themestek_get_option('blogbox_column') );
} else {
echo get_template_part('theme-parts/post','classic-view');
}
// End the loop.
endwhile;
// If no content, include the "No posts found" template.
else :
get_template_part( 'theme-parts/content', 'none' );
endif;
?>
<?php if( themestek_get_option('blog_view') != 'classic' ) : ?>
</div><!-- .row -->
<?php endif; ?>
<?php
// Previous/next page navigation.
echo themestek_pagination();
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php
// Left Sidebar
themestek_get_left_sidebar();
// Right Sidebar
themestek_get_right_sidebar();
?>
<?php get_footer(); ?>