| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/framework/modules/search/templates/parts/ |
Upload File : |
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="eltd-post-content">
<?php if ( has_post_thumbnail() ) { ?>
<div class="eltd-post-image">
<a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail( 'thumbnail' ); ?>
</a>
</div>
<?php } ?>
<div class="eltd-post-title-area <?php if ( ! has_post_thumbnail() ) { echo esc_attr( 'eltd-no-thumbnail' ); } ?>">
<div class="eltd-post-title-area-inner">
<h5 itemprop="name" class="eltd-post-title entry-title">
<a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h5>
<?php
$eltd_my_excerpt = get_the_excerpt();
if ( ! empty( $eltd_my_excerpt ) ) { ?>
<p itemprop="description" class="eltd-post-excerpt"><?php echo wp_trim_words( esc_html( $eltd_my_excerpt ), 30 ); ?></p>
<?php } ?>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<p class="eltd-blog-no-posts"><?php esc_html_e( 'No posts were found.', 'trackstore' ); ?></p>
<?php endif; ?>