mage-eventpress/templates/template-prts/event_details.php

37 lines
837 B
PHP
Raw Normal View History

2018-07-02 05:44:24 -04:00
<?php
add_action('mep_event_details','mep_ev_details');
function mep_ev_details(){
2019-07-01 01:05:56 -04:00
global $post, $event_meta;
// the_content();
$content_event = get_post($post->ID);
$content = $content_event->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]&gt;', $content);
echo $content;
2019-01-22 06:02:55 -05:00
$mep_event_day = get_post_meta($post->ID, 'mep_event_day', true);
if ( $mep_event_day ){
2019-07-01 01:05:56 -04:00
echo '<div class="mep-day-details-section">';
2019-12-18 02:01:50 -05:00
?>
<h4><?php _e('Event Days','mage-eventpress'); ?></h4>
<?php
2019-01-22 06:02:55 -05:00
foreach ( $mep_event_day as $field ) {
2019-07-01 01:05:56 -04:00
?>
<div class="mep-day-title">
<?php echo $field['mep_day_title']; ?>
</div>
<div class="mep-day-details">
<p><?php echo $field['mep_day_content']; ?></p>
</div>
<?php
2019-01-22 06:02:55 -05:00
}
2019-07-01 01:05:56 -04:00
echo '</div>';
2019-01-22 06:02:55 -05:00
}
2018-07-02 05:44:24 -04:00
}