</div><!-- /.gig-meta-datetime --> <div class="audiotheme-gig-details"> <?php the_title('<h2 class="audiotheme-gig-title" itemprop="name">', '</h2>'); ?> <?php if (audiotheme_gig_has_venue()) { ?> <p class="audiotheme-gig-place" itemprop="location" itemscope itemtype="http://schema.org/EventVenue"> <span class="audiotheme-gig-location"><?php echo get_audiotheme_venue_location($gig->venue->ID); ?> </span> <?php the_audiotheme_gig_venue_link(array('before' => '<span class="audiotheme-gig-venue">', 'after' => '</span>', 'before_link' => '<span itemprop="name">', 'after_link' => '</span>')); ?> </p> <?php } ?> <?php the_audiotheme_gig_description('<div class="audiotheme-gig-note" itemprop="description">', '</div>'); ?>
/** * Retrieve a gig's location (city, state, country). * * @since 1.0.0 * * @param int|object $post Optional post ID or object. Default is global $post object. * @return string Location with microformat markup. */ function get_audiotheme_gig_location($post = null) { $gig = get_audiotheme_gig($post); $location = ''; if (audiotheme_gig_has_venue($gig)) { $location = get_audiotheme_venue_location($gig->venue->ID); } return $location; }