File: /home/modernpainters.co.uk/public_html/wp-content/themes/honeypress/index-news.php
<?php
$honeypress_latest_news_section_enable = get_theme_mod('latest_news_section_enable', 'on');
if ($honeypress_latest_news_section_enable != 'off') {
?>
<section class="section-module blog index-page">
<div class="container">
<?php
$honeypress_home_news_section_title = get_theme_mod('home_news_section_title', __('Vitae Lacinia', 'honeypress'));
$honeypress_home_news_section_discription = get_theme_mod('home_news_section_discription', __('Cras Vitae Placerat', 'honeypress'));
if (($honeypress_home_news_section_title) || ($honeypress_home_news_section_discription) != '') {
?>
<div class="row">
<div class="col-lg-12 col-md-12 col-xs-12">
<div class="section-header text-center">
<div class="section-separator border-center"></div>
<?php if ($honeypress_home_news_section_title) { ?>
<p class="section-subtitle">
<?php echo esc_html($honeypress_home_news_section_title); ?>
</p>
<?php } ?>
<?php if ($honeypress_home_news_section_discription) { ?>
<h2 class="section-title">
<?php echo esc_html($honeypress_home_news_section_discription); ?>
</h2>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<div class="row">
<?php
$honeypress_args = array('post_type' => 'post', 'posts_per_page' => 3, 'post__not_in' => get_option("sticky_posts"));
query_posts($honeypress_args);
if (query_posts($honeypress_args)) {
while (have_posts()):the_post(); {
?>
<div class="col-lg-4 col-md-6 col-sm-12">
<article class="post">
<?php if (has_post_thumbnail()) { ?>
<figure class="post-thumbnail">
<?php $honeypress_thumb_class = array('class' => "img-fluid"); ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('', $honeypress_thumb_class); ?></a>
</figure>
<?php } ?>
<div class="post-content">
<?php
if (get_theme_mod('blog_meta_section_enable', true) == true) {
$honeypress_cat_list = get_the_category_list();
if (!empty($honeypress_cat_list)) {
?>
<div class="entry-meta">
<span class="cat-links"><?php the_category(' '); ?></span>
</div>
<?php
}
}
?>
<header class="entry-header">
<h4 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
</header>
<?php if (get_theme_mod('blog_meta_section_enable', true) == true): ?>
<div class="entry-meta">
<span class="author"><a <?php
if (is_rtl()) {
echo 'dir="rtl"';
}
?> href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php esc_html_e('By', 'honeypress'); ?> <?php echo esc_html(get_the_author()); ?></a></span>
<span class="posted-on">
<a <?php
if (is_rtl()) {
echo 'dir="rtl"';
}
?> href="<?php echo esc_url(home_url('/')); ?><?php echo esc_html(date('Y/m', strtotime(get_the_date()))); ?>"><time><?php echo esc_html(get_the_date()); ?></time></a>
</span>
<span class="comment-links"><a <?php
if (is_rtl()) {
echo 'dir="rtl"';
}
?> href="<?php the_permalink(); ?>#respond"><?php echo esc_html(get_comments_number()); ?></a></span>
</div>
<?php endif; ?>
<div class="entry-content">
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>" class="more-link"><?php esc_html_e('Read more', 'honeypress'); ?></a></p>
</div>
</div>
</article>
</div>
<?php
} endwhile;
}
?>
</div>
</div>
</section>
<div class="clearfix"></div>
<?php
}