2021-01-08 14:08:40 +01:00
|
|
|
<?php
|
2024-04-05 23:26:11 +02:00
|
|
|
namespace MobilizonConnector;
|
|
|
|
|
2021-01-08 14:08:40 +01:00
|
|
|
// Exit if this file is called directly.
|
|
|
|
if (!defined('ABSPATH')) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
?>
|
2024-04-05 23:26:11 +02:00
|
|
|
<div class="<?php echo esc_attr($classNamePrefix); ?>_events-list">
|
|
|
|
<ul style="list-style-type: none; padding-left: 0;">
|
|
|
|
<?php foreach($events as $event) { ?>
|
2024-05-14 10:30:42 +02:00
|
|
|
<li style="margin-top: 10px;">
|
2024-04-05 23:26:11 +02:00
|
|
|
<a href="<?php echo esc_attr($event['url']); ?>"><?php echo esc_html_e($event['title']); ?></a>
|
|
|
|
<br>
|
|
|
|
<?php echo esc_html_e(Formatter::format_date($locale, $timeZone, $event['beginsOn'], $event['endsOn'], $isShortOffsetNameShown)); ?>
|
|
|
|
<?php if (isset($event['physicalAddress'])) { ?>
|
|
|
|
<br>
|
|
|
|
<?php echo esc_html_e(Formatter::format_location($event['physicalAddress']['description'], $event['physicalAddress']['locality'])) ?>
|
|
|
|
<?php } ?>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
2022-06-03 23:48:19 +02:00
|
|
|
</div>
|