File: /var/www/html/studio/wp-content/themes/kulan/index.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.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package kulan
*/
get_header();
include get_template_directory() . '/inc/blog-header.php';
?>
<!-- Start page header -->
<section class="page__header position-relative <?php if(!$blog_page_bg): ?>no-image<?php endif; ?>" <?php if($blog_page_bg): ?>style="background-image:url(<?php echo esc_url($blog_page_bg); ?>);"<?php endif; ?>>
<div class="container">
<div class="text-center">
<div class="d-inline-flex justify-content-center gap-2 transprent__btn">
<?php kulan_breadcrumb_trail(); ?>
</div>
<?php if( isset($kulan_opt['blog_page_title']) ): ?>
<h2 class="t__40"><?php echo esc_html($blog_page_title); ?></h2>
<?php else: ?>
//<h2 class="t__40"><?php esc_html_e('Blog', 'kulan'); ?></h2>
<?php endif; ?>
</div>
</div>
</section>
<!-- End page header -->
<!-- Start Blog Area -->
<div class="blog-page py__130">
<div class="<?php echo esc_attr( $kulan_blog_layout ); ?>">
<div class="row justify-content-center">
<!-- Start Blog Content -->
<div class="<?php echo esc_attr( $kulan_sidebar_class ); ?> blog-posts-list-with-sidebar">
<div class="row">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_format());
endwhile;
else :
get_template_part( 'template-parts/content', 'none' );
endif;
if(paginate_links()){
kulan_post_pagination();
}
?>
</div>
</div>
<!-- End Blog Content -->
<?php if( $sidebar_hide == 'kulan_with_sidebar' ): ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php
get_footer();