| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/ |
Upload File : |
<?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.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package omexo
*/
$omexo_option = get_option('omexo_opt');
$blog_style = omexo_array_get($omexo_option, 'blog-style') ? $omexo_option['blog-style'] : '';
$blog_layout = omexo_array_get($omexo_option, 'blog-layout') ? $omexo_option['blog-layout'] : '';
if ($blog_layout == 'full-width') {
$main_col_class = 'col-md-12';
} elseif (is_active_sidebar('sidebar-1')) {
$main_col_class = 'col-md-8';
} else {
$main_col_class = 'col-md-12';
}
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main">
<div class="container">
<div class="row">
<?php if ($blog_style == 'list') : ?>
<?php if ($blog_layout == 'left-sidebar') {
get_sidebar();
} ?>
<div class="<?php echo esc_attr($main_col_class) ?> all-posts-wrap <?php echo esc_attr($blog_layout); ?> <?php echo esc_attr($blog_layout . '' . $blog_layout == '' ? 'right-sidebar' : ''); ?>">
<?php
if (have_posts()) :
/* Start the Loop */
while (have_posts()) :
the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part('template-parts/content', get_post_type());
endwhile;
else :
get_template_part('template-parts/content', 'none');
endif;
?>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12 text-center">
<?php
the_posts_pagination(array(
'next_text' => '<i class="fa fa-angle-right"></i>',
'prev_text' => '<i class="fa fa-angle-left"></i>',
'screen_reader_text' => ' ',
'type' => 'list'
));
?>
</div>
</div>
</div>
</div>
<?php
if ($blog_layout == 'right-sidebar') :
get_sidebar();
elseif ($blog_layout == 'full-width') :
else :
get_sidebar();
endif;
?>
<?php elseif ($blog_style == 'grid') : ?>
<?php
if (have_posts()) :
/* Start the Loop */
while (have_posts()) :
the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part('template-parts/content', get_post_type());
endwhile;
else :
get_template_part('template-parts/content', 'none');
endif;
?>
<?php endif; ?>
</div>
</div>
</main>
</div>
<?php
get_footer();