コード例 #1
0
					<?php 
    if (tribe_get_event_website_link()) {
        ?>
						<div class="row">
							<dt>Website:</dt>
							<dd><?php 
        echo tribe_get_event_website_link();
        ?>
</dd>
						</div>
					<?php 
    }
    ?>
				
				<?php 
    if (tribe_get_custom_field('Registration URL')) {
        ?>
				
				<div class="row">
					<dd><a class="tribe-events-button" href="<?php 
        tribe_custom_field('Registration URL');
        ?>
" target="_blank">Register Here</a></dd>
				</div>
				
				<?php 
    }
    ?>
				
			</div><!-- end tribe-event-meta -->
コード例 #2
0
ファイル: general.php プロジェクト: TyRichards/river_of_life
 /**
  * Echo Event Custom Field by Label
  *
  * same as above but echo instead of return
  *
  * @since 2.0.3
  * @param (string) $label, the label to search for
  * @param (int) $eventID (optional), the event to look for, defaults to global $post
  * @return (string) value of the field
  */
 function tribe_custom_field($label, $eventID = null)
 {
     echo tribe_get_custom_field($label, $eventID = null);
 }
コード例 #3
0
ファイル: single.php プロジェクト: mpaskew/isc-dev
            </div>
            <?php 
} else {
    ?>
	        <div class="description">
	            <?php 
    the_content();
    ?>
	        </div>

            
            <?php 
    if (tribe_get_custom_field('Eventbrite ID')) {
        ?>
	        <a href="http://www.eventbrite.com/event/<?php 
        echo tribe_get_custom_field('Eventbrite ID');
        ?>
" target="_blank" class="btn btn-green">sign up</a>
            <?php 
    }
    ?>
            
	    </div><!-- /.entry-body -->
        
        <!-- START address and map -->
		<?php 
    if (tribe_address_exists(get_the_ID())) {
        ?>
            
            <?php 
        $encodedAddress = strip_tags(tribe_get_full_address(get_the_ID()));