thewebscaper

custom address function

Apr 24th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php if( custom_tribe_address_exists( get_the_ID() ) ) : ?>
  2. <dt class="venue-label venue-label-address">
  3. <?php _e('Address:', 'tribe-events-calendar-pro') ?><br />
  4. <?php if( get_post_meta( get_the_ID(), '_EventShowMapLink', true ) == 'true' ) : ?>
  5. <a class="gmap" itemprop="maps" href="<?php echo tribe_get_map_link() ?>" title="<?php _e('Click to view a Google Map', 'tribe-events-calendar-pro'); ?>" target="_blank"><?php _e('Google Map', 'tribe-events-calendar-pro' ); ?></a>
  6. <?php endif; ?>
  7. </dt>
  8. <dd class="venue-meta venue-meta-address">
  9. <?php echo tribe_get_full_address( get_the_ID() ); ?>
  10. </dd>
  11. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment