2021-01-08 14:08:40 +01:00
|
|
|
<?php
|
|
|
|
// Exit if this file is called directly.
|
|
|
|
if (!defined('ABSPATH')) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
?>
|
2023-05-07 22:16:04 +02:00
|
|
|
<div class="<?php echo esc_attr($classNamePrefix); ?>_events-list">
|
2023-05-07 21:51:10 +02:00
|
|
|
<ul style="list-style-type: none; padding-left: 0;">
|
2023-05-07 21:48:33 +02:00
|
|
|
<?php foreach($events as $event) { ?>
|
2023-05-07 20:07:07 +02:00
|
|
|
<li>
|
|
|
|
<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>
|
2022-05-19 07:50:18 +02:00
|
|
|
<?php } ?>
|
2023-05-07 20:07:07 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|