<td class="td-group"> <?php bp_gtm_view_link($project, $gtm_link, 'project'); ?> </td> <td class="td-group"> <div class="object-name center"><?php bp_gtm_format_date($task->deadline); ?> </div> </td> <td id="tasks" class="td-freshness center"> <?php bp_gtm_edit_link($task->id, $gtm_link, 'tasks'); bp_gtm_delete_task_link($task->id); bp_gtm_done_link($option['filter'], $task->id, $el_type = 'task'); ?> </td> <?php do_action('bp_directory_tasks_extra_cell'); ?> </tr> <?php do_action('bp_directory_tasks_extra_row'); } ?> </tbody> </table>
function bp_gtm_tasks_navi_content() { global $bp, $wpdb; $data = explode('-', $_GET['nextPage']); $limit['miss'] = $data['0'] * $data['1']; $limit['per_page'] = $data['1']; if ($_GET['project'] && !$_GET['filter']) { $tasks = bp_gtm_get_tasks($bp->groups->current_group->id, $filter = 'project', $_GET['project'], $limit); } elseif ($_GET['project'] && $_GET['filter'] == 'done') { $tasks = bp_gtm_get_tasks($bp->groups->current_group->id, $filter = 'done', $_GET['project'], $limit); } else { $tasks = bp_gtm_get_tasks($bp->groups->current_group->id, $_GET['filter'], false, $limit); } if (!empty($tasks)) { $i = 1; foreach ((array) $tasks as $task) { $alt = is_int($i / 2) ? ' alt' : ''; ?> <tr id="<?php echo $task->id; ?> " class="<?php bp_gtm_task_check_date($task->id, $task->deadline); echo $alt; ?> "> <td class="td-title"> <span class="subtasks_<?php echo $task->id; ?> td-title"> <span class="all_in_all" title="<?php _e('Current number of subtasks', 'bp_gtm'); ?> "><?php echo bp_gtm_get_subtasks_count($task->id); ?> </span> <?php bp_get_create_subtask_link($task->id, $gtm_link); ?> </span> <?php bp_gtm_view_link($task->id, $task->name, $gtm_link, 'task'); ?> </td> <td class="td-poster"> <?php bp_gtm_get_responsibles($task->resp_id); ?> </td> <td class="td-group"> <?php bp_gtm_view_link($task->project_id, bp_gtm_get_el_name_by_id($task->project_id, 'project'), $gtm_link, 'project'); ?> </td> <td class="td-group"> <div class="object-name center"><?php bp_gtm_format_date($task->deadline); ?> </div> </td> <td id="tasks" class="td-freshness"> <?php bp_gtm_edit_link($task->id, $gtm_link, 'tasks'); bp_gtm_delete_task_link($task->id); bp_gtm_done_link($option['filter'], $task->id, $el_type = 'task'); ?> </td> <?php do_action('bp_directory_tasks_extra_cell'); ?> </tr> <?php do_action('bp_directory_tasks_extra_row'); $i++; } } else { echo '<div id="message" class="info"><p>' . __('There are no tasks to display.', 'bp_gtm') . '</p></div>'; } }