Exemplo n.º 1
0
    ?>
			</div>
			<!-- .tribe-events-single-event-description -->

<?php 
    if (get_current_user_id() > 0 && !current_user_registered(get_the_ID())) {
        ?>

			<div class="btc-gform">
				<?php 
        echo gravity_form(1, $display_title = false, $display_description = true, $display_inactive = false, $field_values = null, $ajax = true, $tabindex = 12);
        ?>
			</div>

<?php 
    } elseif (current_user_registered(get_the_ID())) {
        ?>
			<a class="tribe-events-gcal tribe-events-button" href="<?php 
        echo esc_url(home_url('/raceroster'));
        ?>
" title="Race Roster">You're Racing!</a>
<?php 
    }
    ?>

			<?php 
    do_action('tribe_events_single_event_after_the_content');
    ?>

			<!-- Event meta -->
			<?php 
Exemplo n.º 2
0
										<?php 
                }
                ?>
												</li>
									<?php 
            }
            ?>
											</ol>
										</dd>
<?php 
        }
        /* if has registrants */
        ?>

<?php 
        if (is_user_logged_in() && !current_user_registered($post->ID)) {
            ?>
										<dd><?php 
            echo gravity_form(1, $display_title = false, $display_description = true, $display_inactive = false, $field_values = array('event_name' => $post->post_title), $ajax = true);
            ?>
</dd>
<?php 
        }
        /* if not currently registered */
        ?>

									</dl>
								</div>
							</li>

<?php