date list issue fixed

This commit is contained in:
magepeopleteam 2021-09-28 05:04:19 +00:00
parent 1ad4d463cb
commit 6c4b92eb95
3 changed files with 17 additions and 5 deletions

View File

@ -856,12 +856,19 @@ ul.mp_event_more_date_list li{
display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items: flex-start;align-items: flex-start;
border-bottom:1px solid #0009;
}
ul.mp_event_more_date_list li span,
span.mep-more-date,
span.mep-more-time{
ul.mp_event_more_date_list li span{
display:-webkit-flex;display:flex;-webkit-align-items: center;align-items: center;
margin:5px 0;padding:0;
}
span.mep_date_scdl_start_datetime, span.mep_date_scdl_end_datetime {
font-weight: normal;
font-size: 13px;
}
span.mep_date_scdl_separator {
font-weight: bold;
font-size: 16px;
}
ul.mp_event_more_date_list li span i,
span.mep-more-date i,
span.mep-more-time i{margin:0 7px 0 0;padding:0;}

View File

@ -4420,11 +4420,13 @@ if (!class_exists('MPWEM_Helper')) {
$extra_class = ($style_class == 'list') ? 'fdColumn' : $extra_class;
return ($extra_class . ' ' . $style_class);
}
public static function get_event_location($event_id): string {
$city = self::get_city($event_id);
$venue = self::get_venue($event_id);
return $venue . ' , ' . $city;
}
public static function get_venue($event_id) {
$location = self::get_post_data($event_id, 'mep_org_address', '');
$org_arr = get_the_terms($event_id, 'mep_org');
@ -4436,6 +4438,7 @@ if (!class_exists('MPWEM_Helper')) {
}
return $venue;
}
public static function get_all_city(): array {
$city_list = array();
ob_start();

View File

@ -1,4 +1,6 @@
<li>
<span class="mep-more-date"><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($start_datetime, 'date-text'); ?></span>
<span class='mep-more-time'><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($start_datetime, 'time'); ?> <?php if($end_date_display_status == 'yes'){ if ($start_date != $end_date) { echo ' - ' . get_mep_datetime($end_datetime, 'date-text'); } echo ' - ' . get_mep_datetime($end_datetime, 'time'); } ?></span>
<span class="mep-more-date"><i class="fa fa-calendar"></i>
<span class='mep_date_scdl_start_datetime'> <?php echo get_mep_datetime($start_datetime, 'date-text'); ?> <?php echo get_mep_datetime($start_datetime, 'time'); ?></span>
<?php if($end_date_display_status == 'yes'){?> <span class='mep_date_scdl_end_datetime'> <?php if ($start_date != $end_date) { echo ' <span class="mep_date_scdl_separator"> - </span> ' . get_mep_datetime($end_datetime, 'date-text'); } echo ' '.get_mep_datetime($end_datetime, 'time'); echo '</span>'; } ?>
</span>
</li>