if (isset($field_contest_state[0]['value']) && !$is_edit) {
    ?>
        <div class="contest-state">
            <?php 
    print getContestStateName(intval($field_contest_state[0]['value']));
    ?>
        </div>
        <?php 
}
?>
        <!-- END CONTEST STATE -->

        <!-- INSCRIPTION, PAYMENT OR PRESENTATION LINK -->
        <?php 
if (!$is_edit) {
    print '<div class="open-contest-button">' . openContestButton($node, TRUE) . '</div>';
}
?>
        <!-- END INSCRIPTION, PAYMENT OR PRESENTATION LINK -->
      </div>

      <div class="clearfix">&nbsp;</div>

      <!-- Edit Button -->
      <?php 
if (!$is_edit) {
    ?>
          <?php 
    if (node_access('update', $node)) {
        print l('<span>' . t('Edit') . '</span>', 'node/' . $node->nid . '/edit', array('attributes' => array('title' => t('Edit'), 'class' => 'edit-content-link', 'style' => 'top: 16px; right: 16px;'), 'html' => TRUE));
    }
            } else {
                print '<div class="info">' . t('You can not invite members at this stage of the competition') . '</div>';
            }
        }
        ?>
    <!-- END Manage members link -->
    <?php 
    }
    ?>
    <!-- End Introduction text -->


    <!-- INSCRIPTION, PAYMENT OR PRESENTATION LINK -->
    <?php 
    if (!$is_edit && isset($contest) && $contest->field_contest_state[0]['value'] == ContestState::OPEN && $node->field_inscription_state[0]['value'] == InscriptionState::PREINSCRIPTED) {
        print '<div class="open-contest-button">' . openContestButton($contest) . '</div>';
    }
    ?>
    <!-- END INSCRIPTION, PAYMENT OR PRESENTATION LINK -->

    <div class="clearfix">&nbsp;</div>

    <!-- Mark Special Arquideas Prize -->
    <?php 
    if ($contest->field_contest_state[0]['value'] == ContestState::FINISHED && user_access(PERM_ADMIN_CONTESTS)) {
        ?>
    <div class="link-special-arquideas-prize">
        <?php 
        print flag_create_link('arquideas_prize', $node->nid);
        ?>
    </div>