コード例 #1
0
            ?>
                </figure>
            </div><!--/ .bordered-->
            
            <?php 
        }
        ?>

			<?php 
        $event_allday = get_post_meta($post->ID, 'event_allday', true);
        $hide_event_place = get_post_meta($post->ID, 'hide_event_place', true);
        $event_place_address = get_post_meta($post->ID, 'event_place_address', true);
        $ev_mktime = (int) get_post_meta($post->ID, 'ev_mktime', true);
        $event_date = TMM_Event::get_event_date($ev_mktime);
        $ev_end_mktime = (int) get_post_meta($post->ID, 'ev_end_mktime', true);
        $event_end_date = TMM_Event::get_event_date($ev_end_mktime);
        $repeats_every = get_post_meta($post->ID, 'event_repeating', true);
        $events_show_duration = TMM::get_option('events_show_duration');
        if ($events_show_duration) {
            $event_duration_sec = TMM_Event::get_event_duration($ev_mktime, $ev_end_mktime);
            $duration_hh = $event_duration_sec[0];
            $duration_mm = $event_duration_sec[1];
        }
        if ($event_allday == 1) {
            $event_start_time = '';
            $event_end_time = '';
        } else {
            $event_start_time = TMM_Event::get_event_time($ev_mktime);
            $event_end_time = TMM_Event::get_event_time($ev_end_mktime);
        }
        $e_category = get_the_term_list($post->ID, 'events-categories', '', ', ', '');
コード例 #2
0
<?php

if (!empty($events)) {
    foreach ($events as $event) {
        ?>

		<article class="entry event post">

			<?php 
        $event_allday = get_post_meta($event['post_id'], 'event_allday', true);
        $hide_event_place = get_post_meta($event['post_id'], 'hide_event_place', true);
        $event_place_address = get_post_meta($event['post_id'], 'event_place_address', true);
        $event_date = TMM_Event::get_event_date($event['start_mktime']);
        $ev_end_mktime = (int) get_post_meta($event['post_id'], 'ev_end_mktime', true);
        $event_end_date = TMM_Event::get_event_date($event['end_mktime']);
        $repeats_every = get_post_meta($event['post_id'], 'event_repeating', true);
        $events_show_duration = TMM::get_option('events_show_duration');
        if ($events_show_duration) {
            $event_duration_sec = TMM_Event::get_event_duration($event['start_mktime'], $ev_end_mktime);
            $duration_hh = $event_duration_sec[0];
            $duration_mm = $event_duration_sec[1];
        }
        if ($event_allday == 1) {
            $event_start_time = '';
            $event_end_time = '';
        } else {
            $event_start_time = TMM_Event::get_event_time($event['start_mktime']);
            $event_end_time = TMM_Event::get_event_time($ev_end_mktime);
        }
        ?>