<!-- <div class="candidate-resume"></div> -->

										<?php 
            // mais detalhes do candidato aqui
            ?>
										<a class="show-candidate-details" data-candidate-id="<?php 
            the_ID();
            ?>
">+</a>


										<?php 
            if (!$candidacy_removed && can_show_invalid_candidates() || current_user_can('administrator')) {
                ?>
											<div class="number_votes">Votos: <span><?php 
                echo get_number_of_votes_by_project(get_the_ID());
                ?>
</span></div>
										<?php 
            }
            ?>
									
									</div>

									<div class="candidate-details dialog" id="candidate-details-<?php 
            the_ID();
            ?>
">
										
										<i class="fa fa-times close"></i>
function get_number_of_votes_by_project_transient($project_id)
{
    $number_of_votes = get_post_meta($project_id, 'number_of_votes_project', true);
    if (empty($number_of_votes)) {
        $number_of_votes = get_number_of_votes_by_project($project_id);
        update_post_meta($project_id, 'number_of_votes_project', $number_of_votes);
    }
    return $number_of_votes;
}
 /**
  * Verifica se o usuário possui projeto com voto
  *
  * @name    user_is_candidate_was_voted
  * @author  Cleber Santos <*****@*****.**>
  * @since   2015-08-31
  * @updated 2015-08-31
  * @return  boolean
  */
 function user_is_candidate_was_voted($user_id)
 {
     // pega o projeto do usuário
     $project_id = cnpc_get_project_id_by_user_id($user_id);
     // busca a quantidade de votos
     $votos = get_number_of_votes_by_project($project_id);
     if ($votos > 0) {
         return true;
     }
     return false;
 }
        ?>
                    
                    <?php 
        $userID = get_post_field('post_author', $s['pid']);
        ?>
                    <?php 
        $user_meta = array_map(function ($a) {
            return $a[0];
        }, get_user_meta($userID));
        ?>
                    <?php 
        $uf_setorial = isset($user_meta['uf-setorial']) ? $user_meta['uf-setorial'] : '';
        ?>
                    <?php 
        if (current_user_can('administrator')) {
            $number_votes = get_number_of_votes_by_project($s['pid']);
        }
        ?>

                    <tr>
                        <td class="subscription__order"><?php 
        echo $i++;
        ?>
</td>
                        <td class="subscription__candidate"><a href="<?php 
        echo site_url("inscricoes/{$subscription_number}");
        ?>
" title="Ver a ficha do candidato"><?php 
        echo isset($user_meta['user_name']) ? $user_meta['user_name'] : '';
        ?>
</a></td>