<?php /** * @package Blank */ global $post; $cur_user_id = get_current_user_id(); $is_curr_users_task = $cur_user_id == $post->post_author; $candidates = tst_get_task_doers(false, false); $doers = tst_get_task_doers(false, true); /** Guest viewing */ if (!$cur_user_id) { ?> <div id=""> <a href="#" id="guest-help" class="btn btn-success btn-lg widefat" <?php echo $post->post_status != 'publish' ? 'disabled="disabled"' : ''; ?> > <?php _e('Offer help', 'tst'); ?> </a> <br /> <div id="guest-help-message" class="text-center help-block"> <div id="default"><em>(<?php _e('You have not offered your help yet', 'tst'); ?> )</em></div> <div id="login-please" style="display: none;"><em> <?php
function tst_get_task_doers_count($task_id = false, $only_approved = false) { return count(tst_get_task_doers($task_id, $only_approved)); }