File: /home/zeusxp5/chuair.org/wp-content/themes/lifttruck/index.php
<?php get_header(); ?>
<section class="titlebar ">
<div class="row">
<div class="large-12 small-12 large-centered columns">
<h2 id="page-title" class="title">
<?php
$lifttruck_blog_id = get_option('page_for_posts');
if($lifttruck_blog_id == false) {
if (!is_archive()) {
echo esc_html__('Blog', 'lifttruck');
} elseif (is_category()) {
echo esc_html__('Category Archives', 'lifttruck');
echo " " . category_description();
} elseif (is_tag()) {
echo esc_html__('Tag Archives', 'lifttruck');
} elseif (is_year()) {
echo esc_html__('Yearly Archives', 'lifttruck');
} elseif (is_month()) {
echo esc_html__('Monthly Archives', 'lifttruck');
} elseif (is_date()) {
echo esc_html__('Daily Archives', 'lifttruck');
} elseif (is_author()) {
echo esc_html__('Author Archives', 'lifttruck');
}
}else {
echo get_the_title($lifttruck_blog_id);
} ?>
</h2>
<?php lifttruck_breadcrumb(); ?>
</div>
</div>
</section>
<!-- content -->
<main class="row">
<?php $lifttruck_col = (is_active_sidebar('sidebar-1') ? '8' : '12' ); ?>
<div class="large-<?php echo esc_attr($lifttruck_col) ?> small-12 main columns">
<div class="blog-posts">
<?php if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part('content', get_post_format());
}
}
if ( comments_open() ) {
comments_template('', true);
} ?>
<div class="wd-post__pagination">
<?php echo paginate_links(); ?>
</div>
</div>
</div>
<?php get_sidebar(); ?>
</main>
<?php get_footer();