-
Notifications
You must be signed in to change notification settings - Fork 2
/
trashed-events.php
39 lines (34 loc) · 1012 Bytes
/
trashed-events.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace Wporg\TranslationEvents\Templates;
use Wporg\TranslationEvents\Event\Events_Query_Result;
use Wporg\TranslationEvents\Templates;
/** @var Events_Query_Result $trashed_events_query */
Templates::header(
array(
'html_title' => __( 'Deleted Translation Events', 'gp-translation-events' ),
'page_title' => __( 'Deleted Translation Events', 'gp-translation-events' ),
),
);
?>
<div class="event-page-wrapper">
<div class="event-left-col">
<?php if ( empty( $trashed_events_query->events ) ) : ?>
<?php esc_html_e( 'No deleted events found.', 'gp-translation-events' ); ?>
<?php else : ?>
<?php
Templates::part(
'event-list',
array(
'query' => $trashed_events_query,
'pagination_query_param' => 'page',
'show_start' => true,
'show_end' => true,
'relative_time' => false,
'show_permanent_delete' => true,
),
);
?>
<?php endif; ?>
</div>
</div>
<?php Templates::footer(); ?>