1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00
This commit is contained in:
Daniel Waxweiler
2023-05-07 20:07:07 +02:00
parent e1898af935
commit 091317a532

View File

@ -4,21 +4,20 @@ if (!defined('ABSPATH')) {
exit; exit;
} }
?> ?>
<div class="<?php echo esc_attr($classNamePrefix); ?>_events-list"> <div class="<?php echo esc_attr($classNamePrefix); ?>_events-list-php">
<li style="display: none;"><?php esc_html_e('The events could not be loaded!', 'connector-mobilizon'); ?></li> <div class="general-error" style="display: none;"><?php esc_html_e('The events could not be loaded!', 'connector-mobilizon'); ?></div>
<li style="display: none;"><?php esc_html_e('The group could not be found!', 'connector-mobilizon'); ?></li> <div class="group-not-found" style="display: none;"><?php esc_html_e('The group could not be found!', 'connector-mobilizon'); ?></div>
</ul> <ul>
<?php foreach($data['data']['events']['elements'] as $event) { ?>
<ul> <li>
<?php foreach($data['data']['events']['elements'] as $event) { ?> <a href="<?php echo esc_attr($event['url']); ?>"><?php echo esc_html_e($event['title']); ?></a>
<li> <br>
<a href="<?php echo esc_attr($event['url']); ?>"><?php echo esc_html_e($event['title']); ?></a> <?php echo esc_html_e(Formatter::format_date($locale, $timeZone, $event['beginsOn'], $event['endsOn'], $isShortOffsetNameShown)); ?>
<br> <?php if (isset($event['physicalAddress'])) { ?>
<?php echo esc_html_e(Formatter::format_date($locale, $timeZone, $event['beginsOn'], $event['endsOn'], $isShortOffsetNameShown)); ?> <br>
<?php if (isset($event['physicalAddress'])) { ?> <?php echo esc_html_e(Formatter::format_location($event['physicalAddress']['description'], $event['physicalAddress']['locality'])) ?>
<br> <?php } ?>
<?php echo esc_html_e(Formatter::format_location($event['physicalAddress']['description'], $event['physicalAddress']['locality'])) ?> </li>
<?php } ?> <?php } ?>
</li> </ul>
<?php } ?> </div>
</ul>