PluginProbe
Event Post / 5.11.1
Event Post v5.11.1
6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 5.6.1 All 46 releases
event-post / views / search-results.php

search-results.php in Event Post 5.11.1, at views/search-results.php

32 lines 969 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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