| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/themes/applica/template-parts/footer/ |
Upload File : |
<?php
/**
* Displays recommended post on footer.
*
* @package Applica
*/
$enable_category_meta = applica_get_option('enable_category_meta');
$enable_date_meta = applica_get_option('enable_date_meta');
$enable_post_excerpt = applica_get_option('enable_post_excerpt');
$enable_author_meta = applica_get_option('enable_author_meta');
$footer_recommended_post_title = applica_get_option('footer_recommended_post_title');
$select_cat_for_footer_recommended_post = applica_get_option('select_cat_for_footer_recommended_post');
?>
<section class="site-section site-recommendation">
<div class="wrapper">
<div class="column-row">
<div class="column column-12">
<header class="section-header site-section-header">
<h2 class="site-section-title">
<?php echo esc_html($footer_recommended_post_title); ?>
</h2>
</header>
</div>
</div>
<div class="column-row">
<?php $footer_recommended_post_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 6, 'post__not_in' => get_option("sticky_posts"), 'category_name' => esc_html($select_cat_for_footer_recommended_post)));
if ($footer_recommended_post_query->have_posts()):
while ($footer_recommended_post_query->have_posts()):
$footer_recommended_post_query->the_post();
?>
<div class="column column-4 column-sm-12">
<article id="post-<?php the_ID(); ?>" <?php post_class('theme-recommended-post'); ?>>
<?php if (has_post_thumbnail()): ?>
<div class="entry-image mb-8">
<figure class="featured-media image-size-small">
<a href="<?php the_permalink() ?>">
<?php
the_post_thumbnail('medium_large', array(
'alt' => the_title_attribute(
array(
'echo' => false,
)
),
)
);
?>
</a>
<?php if (applica_get_option('show_lightbox_image')) { ?>
<a href="<?php echo get_the_post_thumbnail_url(); ?>" class="featured-media-fullscreen"
data-glightbox="">
<?php applica_theme_svg('fullscreen'); ?>
</a>
<?php } ?>
</figure>
</div>
<?php endif; ?>
<?php if ($enable_category_meta) { ?>
<div class="entry-categories mb-4">
<?php applica_post_category(); ?>
</div>
<?php } ?>
<header class="entry-header">
<?php the_title('<h3 class="entry-title font-size-medium line-clamp line-clamp-2 mb-8"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h3>'); ?>
</header>
<?php if ($enable_post_excerpt) { ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div>
<?php } ?>
<?php if ($enable_date_meta) {
applica_posted_on();
} ?>
<?php if ($enable_author_meta) {
applica_posted_by();
} ?>
</article>
</div>
<?php
endwhile;
wp_reset_postdata();
?>
</div>
</div>
</section>
<?php endif; ?>