| 1 |
<?php |
| 2 |
/** |
| 3 |
* Search result |
| 4 |
* |
| 5 |
* @package event-post |
| 6 |
* @version 5.11.1 |
| 7 |
* @since 5.0.0 |
| 8 |
*/ |
| 9 |
?> |
| 10 |
<div class="eventpost-search-results"> |
| 11 |
<?php if($events->have_posts()): ?> |
| 12 |
<span class="eventpost-search-item-count"> |
| 13 |
<?php // translators: %d is the number of events found ?> |
| 14 |
<?php echo esc_html(sprintf(_n('%d event found', '%d events found', $events->post_count, 'event-post'), $events->post_count)); ?> |
| 15 |
</span> |
| 16 |
<hr> |
| 17 |
<?php while($events->have_posts()): $events->the_post(); ?> |
| 18 |
<article class="eventpost-search-item"> |
| 19 |
<a href="<?php the_permalink(); ?>"> |
| 20 |
<?php the_post_thumbnail(); ?> |
| 21 |
<?php the_title(); ?> |
| 22 |
</a> |
| 23 |
<?php the_dates(); ?> |
| 24 |
<?php the_location(); ?> |
| 25 |
<?php the_excerpt(); ?> |
| 26 |
</article> |
| 27 |
<?php endwhile; ?> |
| 28 |
<?php else: ?> |
| 29 |
<?php esc_html_e('Sorry, there is no event matching your request.', 'event-post'); ?> |
| 30 |
<?php endif; ?> |
| 31 |
</div> |
| 32 |
|