Exemplo n.º 1
0
              </div>
              
              <div class="extra"> 
                <span class="member-joined-archive-<?php 
        echo $event->ID;
        ?>
"><?php 
        echo get_post_meta($event->ID, 'member_joined', true);
        ?>
 runners will be attending this event.</span>
                              
                <?php 
        if (is_user_logged_in()) {
            ?>
                  <?php 
            if (is_member_joined($event->ID)) {
                ?>
                    <button class="ui right floated teal default button" disabled>You joined this race</button>
                  <?php 
            } else {
                ?>
                    <button name="btn_join_archive_event" id="btn_join_archive_event" class="ui right floated teal default button btn-join-archive-event-<?php 
                echo $event->ID;
                ?>
" value="<?php 
                echo $event->ID;
                ?>
">Join this race</button>
                  <?php 
            }
            ?>
Exemplo n.º 2
0
      <!-- Facebook Comments -->
      <div class="ui segment">
        <div class="header">Comments and feedback</div>
        <div class="fb-comments" data-href="<?php 
the_permalink();
?>
" data-width="100%" data-numposts="10"></div>
      </div>

      <div class="ui buttons">
        <?php 
if (is_user_logged_in() && is_member_joined($post_id)) {
    ?>
          <button class="ui teal huge button" disabled> Joined</button>
        <?php 
} elseif (is_user_logged_in() && !is_member_joined($post_id)) {
    ?>
          <button id="btn_join_event_huge" name="btn_join_event_huge" class="ui teal huge button btn-join-event-huge-<?php 
    echo $post_id;
    ?>
" value="<?php 
    echo $post_id;
    ?>
"> Join Now</button>
        <?php 
} else {
    ?>
          <a href="<?php 
    echo home_url('register');
    ?>
" class="ui teal huge button">Join Now</a>