コード例 #1
0
                    $action_url = add_query_arg(array('action' => $action, 'event_id' => $event->ID));
                    if ($value['nonce']) {
                        $action_url = wp_nonce_url($action_url, 'event_manager_my_event_actions');
                    }
                    echo '<li><a href="' . esc_url($action_url) . '" class="event-dashboard-action-' . esc_attr($action) . '">' . esc_html($value['label']) . '   </a></li>';
                }
                ?>
									</ul>		
								<?php 
            } elseif ('event_start_date' === $key) {
                $timestamp = strtotime(get_event_start_date($event));
                echo date("F j, Y, g:i a", $timestamp);
                ?>
								<?php 
            } elseif ('event_end_date' === $key) {
                $timestamp = strtotime(get_event_end_date($event));
                echo date("F j, Y, g:i a", $timestamp);
                ?>
            
                                <?php 
            } elseif ('event_location' === $key) {
                if (get_event_location($event) == 'Anywhere') {
                    echo 'Online Event';
                } else {
                    display_event_location(false, $event);
                }
                ?>
				<?php 
            } elseif ('view_count' === $key) {
                echo get_post_views_count($event);
                ?>
コード例 #2
0
            echo apply_filters('display_event_location_map_link', '<a  href="http://maps.google.com/maps?q=' . urlencode($location) . '&zoom=14&size=512x512&maptype=roadmap&sensor=false" target="_blank">' . $location . '</a>', $location, $post);
        } else {
            echo $location;
        }
    } else {
        echo apply_filters('display_event_location_anywhere_text', __('Anywhere', 'gam-event-manager'));
    }
}
/**
 * get_the_event_ticket function.
 *
 * @access public
 * @param mixed $post (default: null)
 * @return string
 */