예제 #1
0
<?php

$resps = BP_GTM_Resps::get_all(bp_get_current_group_id());
//print_var($resps);
?>

<h4><?php 
_e('Involved People', 'bp_gtm');
?>
</h4>

<div class="pagination no-ajax">
    <div id="post-count" class="pag-count">
        <p><?php 
_e('List of users that are responsible for tasks and/or projects in this group. Their tasks and projects are not completed', 'bp_gtm');
?>
</p>
    </div>
</div>
<?php 
if (!empty($resps)) {
    ?>

<table class="forum zebra" id="involved">
    <thead>
        <tr>
            <th id="th-title"><?php 
    _e('User', 'bp_gtm');
    ?>
</th>
            <?php 
예제 #2
0
/**
 * Get count of tasks or projects in current group
 * @param int $resp_id id of involved member
 * @param string $issues_type tasks or projects count needs to calculate
 * @return bool true
 */
function bp_gtm_get_issues($resp_id, $issues_type = 'projects')
{
    $count_tasks = BP_GTM_Resps::get_el_count($resp_id, $issues_type, bp_get_current_group_id());
    if ($issues_type == 'tasks') {
        echo sprintf(_n('%s task', '%s tasks', $count_tasks, 'bp_gtm'), $count_tasks);
    } else {
        echo sprintf(_n('%s project', '%s projects', $count_tasks, 'bp_gtm'), $count_tasks);
    }
    return TRUE;
}