add some spacing between event items

This commit is contained in:
Daniel Waxweiler 2024-05-14 10:30:42 +02:00
parent fa99821ffc
commit cccd1a78b5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
### [Unreleased] ### [Unreleased]
#### Added #### Added
#### Changed #### Changed
- Add some spacing between event items
#### Deprecated #### Deprecated
#### Removed #### Removed
#### Fixed #### Fixed

View File

@ -9,7 +9,7 @@ if (!defined('ABSPATH')) {
<div class="<?php echo esc_attr($classNamePrefix); ?>_events-list"> <div class="<?php echo esc_attr($classNamePrefix); ?>_events-list">
<ul style="list-style-type: none; padding-left: 0;"> <ul style="list-style-type: none; padding-left: 0;">
<?php foreach($events as $event) { ?> <?php foreach($events as $event) { ?>
<li> <li style="margin-top: 10px;">
<a href="<?php echo esc_attr($event['url']); ?>"><?php echo esc_html_e($event['title']); ?></a> <a href="<?php echo esc_attr($event['url']); ?>"><?php echo esc_html_e($event['title']); ?></a>
<br> <br>
<?php echo esc_html_e(Formatter::format_date($locale, $timeZone, $event['beginsOn'], $event['endsOn'], $isShortOffsetNameShown)); ?> <?php echo esc_html_e(Formatter::format_date($locale, $timeZone, $event['beginsOn'], $event['endsOn'], $isShortOffsetNameShown)); ?>