1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

adapt block view

This commit is contained in:
Daniel Waxweiler
2023-05-07 22:12:36 +02:00
parent e69d87187b
commit a8cda32ae3
4 changed files with 27 additions and 10 deletions

View File

@ -31,11 +31,10 @@ class EventsListWidget extends \WP_Widget {
try {
if ($groupName) {
$data = GraphQlClient::get_upcoming_events_by_group_name($url, (int) $eventsCount, $groupName);
$events = GraphQlClient::get_upcoming_events_by_group_name($url, (int) $eventsCount, $groupName);
} else {
$data = GraphQlClient::get_upcoming_events($url, (int) $eventsCount);
$events = GraphQlClient::get_upcoming_events($url, (int) $eventsCount);
}
$events = $data['data']['events']['elements'];
$classNamePrefix = NAME;
$locale = get_locale();