Skip to content

Commit

Permalink
Pass event filter to list block
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Nov 29, 2024
1 parent c3dbb18 commit b72103d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/routes/event/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function handle(): void {
}
// phpcs:enable
$tmpl_args = array(
'current_events_query' => $this->event_repository->get_current_events( $_current_events_paged, 10 ),
'upcoming_events_query' => $this->event_repository->get_upcoming_events( $_upcoming_events_paged, 10 ),
'past_events_query' => $this->event_repository->get_past_events( $_past_events_paged, 10 ),
'current_events_query' => $this->event_repository->get_current_events( $_current_events_paged, 2 ),
'upcoming_events_query' => $this->event_repository->get_upcoming_events( $_upcoming_events_paged, 2 ),
'past_events_query' => $this->event_repository->get_past_events( $_past_events_paged, 2 ),
'user_attending_events_query' => $this->event_repository->get_current_and_upcoming_events_for_user( get_current_user_id(), $_user_attending_events_paged, 10 ),
);

Expand All @@ -75,6 +75,7 @@ public function handle(): void {
array(
'event_ids' => $event_ids,
'next_page' => $next_page,
'filter_by' => $filter_key,
)
) . ' /-->';

Expand Down

0 comments on commit b72103d

Please sign in to comment.