php warning fixing
This commit is contained in:
parent
4e84398bf9
commit
8aacf81073
|
@ -775,13 +775,16 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
|||
<div class="sec">
|
||||
<table width="100%" class="mama">
|
||||
<tr >
|
||||
<td><input placeholder="Day 2" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[0]['event_more_date']; ?>" /></td>
|
||||
<td><input placeholder="Day 2" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[0]['event_more_date']; } ?>"/></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 3" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[1]['event_more_date']; ?>" /></td>
|
||||
<td><input placeholder="Day 3" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[1]['event_more_date']; } ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 4" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[2]['event_more_date']; ?>" /></td>
|
||||
<td><input placeholder="Day 4" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('event_more_date', $values)){
|
||||
echo $more_date[2]['event_more_date']; } ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -309,11 +309,6 @@ return $content;
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_shortcode( 'expire-event-list', 'mep_expire_event_list' );
|
||||
function mep_expire_event_list($atts, $content=null){
|
||||
$defaults = array(
|
||||
|
@ -548,4 +543,6 @@ if($pagination=='yes'){
|
|||
<?php
|
||||
$content = ob_get_clean();
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,10 @@ add_action('mep_event_date','mep_ev_datetime');
|
|||
|
||||
function mep_ev_datetime(){
|
||||
global $event_meta;
|
||||
$more_date = unserialize($event_meta['mep_event_more_date'][0]);
|
||||
|
||||
if(array_key_exists('mep_event_more_date', $event_meta)){
|
||||
$more_date = unserialize($event_meta['mep_event_more_date'][0]);}else{ $more_date = '';}
|
||||
|
||||
|
||||
?>
|
||||
<p><?php mep_get_full_time_and_date($event_meta['mep_event_start_date'][0]); if($more_date){ foreach ($more_date as $md) {
|
||||
|
|
Loading…
Reference in New Issue