| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) 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/monpetu/www/benneplus/wp-content/themes/airi/template-parts/ |
Upload File : |
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Airi
*/
$layout = airi_blog_layout();
$read_more = get_theme_mod( 'read_more_text', __( 'Read more', 'airi' ) );
$hide_thumb = get_theme_mod( 'index_hide_thumb' );
$hide_date = get_theme_mod( 'index_hide_date' );
$hide_cats = get_theme_mod( 'index_hide_cats' );
$hide_author = get_theme_mod( 'index_hide_author' );
$hide_comments = get_theme_mod( 'index_hide_comments' );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-inner">
<div class="flex">
<?php if ( $hide_thumb == '' ) : ?>
<div class="<?php echo esc_attr( $layout['item_inner_cols'] ); ?>">
<?php airi_post_thumbnail(); ?>
</div>
<?php endif; ?>
<div class="post-info <?php echo esc_attr( $layout['item_inner_cols'] ); ?>">
<header class="entry-header">
<?php
if ( $hide_date == '' ) {
airi_posted_on();
}
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta">
<?php
if ( $hide_cats == '' ) {
echo '<span>';
airi_first_category();
echo '</span>';
}
if ( $layout['type'] != 'layout-grid' && $layout['type'] != 'layout-masonry' && $hide_author == '' ) {
airi_posted_by();
}
if ( $hide_comments == '' ) {
airi_get_comments_number();
}
?>
</div><!-- .entry-meta -->
<?php
endif; ?>
</header><!-- .entry-header -->
<?php if ( $layout['type'] != 'layout-grid' && $layout['type'] != 'layout-masonry' ) : ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<?php if ( $read_more != '' ) : ?>
<footer class="entry-footer">
<a class="read-more-link" href="<?php the_permalink(); ?>"><?php echo esc_html( $read_more ); ?><span class="gt">>></span></a>
</footer><!-- .entry-footer -->
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
</article><!-- #post-<?php the_ID(); ?> -->