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>'); ?> </div><!-- /.gig-details --> <?php if (audiotheme_gig_has_ticket_meta()) { ?> <div class="audiotheme-gig-meta-tickets" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <?php if ($gig_tickets_price = get_audiotheme_gig_tickets_price()) { ?> <span class="audiotheme-gig-tickets-price" itemprop="price"><?php echo esc_html($gig_tickets_price); ?> </span> <?php } ?>
/** * Add useful classes to gig posts. * * @since 1.1.0 * * @param array $classes List of classes. * @param string|array $class One or more classes to add to the class list. * @param int $post_id An optional post ID. * @return array Array of classes. */ function audiotheme_gig_post_class($classes, $class, $post_id) { if ('audiotheme_gig' === get_post_type($post_id) && audiotheme_gig_has_ticket_meta()) { $classes[] = 'has-audiotheme-ticket-meta'; } return $classes; }