spelling issue and date display issue fixed

This commit is contained in:
magepeopleteam 2018-09-14 05:20:47 +00:00
parent 6a1c612dc6
commit d056fda216
4 changed files with 14 additions and 10 deletions

View File

@ -183,14 +183,14 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
<div class="mep_list_thumb">
<?php the_post_thumbnail('full'); ?>
<div class="mep-ev-start-date">
<div class="mep-day"><?php echo substr($event_meta['mep_event_start_date'][0],0,3); ?></div>
<div class="mep-month"><?php echo substr($event_meta['mep_event_start_date'][0],3,3); ?></div>
<div class="mep-day"><?php echo date('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
<div class="mep-month"><?php echo date('M', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
</div>
</div>
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
<div class="mep-list-header">
<h2 class='mep_list_title'><?php the_title(); ?></h2>
<h3 class='mep_list_date'> Price Start from: <?php echo mep_event_list_price(get_the_id()); ?><!-- <i class="fa fa-calendar"></i> <?php echo $event_meta['mep_event_start_date'][0]; ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
<h3 class='mep_list_date'> Price Start from: <?php echo mep_event_list_price(get_the_id()); ?><!-- <i class="fa fa-calendar"></i> <?php echo date('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
</div>
<?php
@ -206,7 +206,7 @@ if($style=='list'){
<li>
<div class="evl-ico"><i class="fa fa-university"></i> </div>
<div class="evl-cc">
<h5>Organize by:</h5>
<h5>Organized By:</h5>
<h6><?php echo $author_terms[0]->name; ?></h6>
</div>
</li>
@ -221,7 +221,7 @@ if($style=='list'){
<div class="evl-ico"><i class="fa fa-calendar"></i> </div>
<div class="evl-cc">
<h5>Time:</h5>
<h6><?php echo substr($event_meta['mep_event_start_date'][0],12,5); ?> - <?php echo substr($event_meta['mep_event_end_date'][0],12,5); ?></h6>
<h6><?php echo date('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo date('h:i A', strtotime($event_meta['mep_event_end_date'][0])); ?></h6>
</div>
</li>
</ul>

View File

@ -174,4 +174,7 @@ You can display the event list on any page by using the ShortCode. Just use this
*Update Release, php warning and notice removed and date issue fixed. 16 Aug 2018*
= 2.1.2 =
*Update Release, php warning and notice removed and date issue fixed. 25 Aug 2018*
*Update Release, php warning and notice removed and date issue fixed. 25 Aug 2018*
= 2.1.3 =
*Update Release, Date display issue fixed. 14 Sep 2018*

View File

@ -5,16 +5,17 @@ add_action('mep_event_date','mep_ev_datetime');
function mep_ev_datetime(){
global $event_meta;
?>
<p><?php echo $event_meta['mep_event_start_date'][0]; ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?></p>
<p><?php echo date('D, d M Y h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo date('D, d M Y h:i A', strtotime($event_meta['mep_event_end_date'][0])); ?></p>
<?php
}
add_action('mep_event_date_only','mep_ev_date');
function mep_ev_date(){
global $event_meta;
?>
<p><?php echo substr($event_meta['mep_event_start_date'][0],0,11); ?> </p>
<p><?php echo date('d M Y', strtotime($event_meta['mep_event_start_date'][0])); ?> </p>
<?php
}
@ -22,6 +23,6 @@ add_action('mep_event_time_only','mep_ev_time');
function mep_ev_time(){
global $event_meta;
?>
<p><?php echo substr($event_meta['mep_event_start_date'][0],12,25); ?> </p>
<p><?php echo date('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> </p>
<?php
}

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 2.1.2
* Version: 2.1.3
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
*/