Example #1
0
    echo '<h4>' . __('Error - 404', 'bp_gtm') . '</h4>';
    echo '<p>' . __('There is no project in the database with such ID. Please go to the main projects list.', 'bp_gtm') . '</p>';
    bp_gtm_view_list_button($gtm_link);
}
?>

<?php 
//print_var($project);
?>
<div id="message" class="error"></div>
<div id="topic-meta">
    <h3>#P<?php 
echo $project['0']->id;
?>
 &rarr;<?php 
bp_gtm_view_link($project['0']->id, $project['0']->name, $gtm_link, 'project');
?>
 <?php 
if (!empty($project_done)) {
    echo $project_done;
}
?>
</h3>
    <?php 
bp_gtm_view_list_button($gtm_link);
?>
    <?php 
bp_gtm_pending_complited_tasks($project['0']->id, $gtm_link);
?>

    <?php 
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>&nbsp;
                        <?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>';
    }
}
Example #3
0
        </thead>

        <tbody id="projects-list" >
                    <?php 
    foreach ($options['projects'] as $project) {
        ?>
                <tr id="<?php 
        echo $project->id;
        ?>
" class="<?php 
        bp_gtm_project_check_date($project->id, $project->deadline);
        ?>
">
                    <td class="td-title">
                        <?php 
        bp_gtm_view_link($project, $gtm_link, 'project');
        ?>
                    </td>
                    <td class="td-poster">
                        <?php 
        bp_gtm_get_group_project_respossibles($project);
        ?>
                    </td>
                    <td class="td-group">
                        <div class="object-name"><?php 
        bp_gtm_format_date($project->deadline);
        ?>
</div>
                    </td>
                    <td class="td-postcount">
                        <?php 
Example #4
0
    do_action('bp_gtm_task_after_content', $task['0'], 'task', false);
    ?>
    </div>
    <div class="pagination no-ajax">
        <div id="post-count" class="pag-count">
            <?php 
    bp_gtm_task_terms($task['0']->id, 'tag', true);
    ?>
 | <?php 
    bp_gtm_task_terms($task['0']->id, 'cat', true);
    ?>
            <?php 
    if ($task['0']->project_id != '0') {
        echo ' | ';
        _e('Project: ', 'bp_gtm');
        bp_gtm_view_link($task['0']->project_id, bp_gtm_get_el_name_by_id($task['0']->project_id, 'project'), $gtm_link, 'project');
    }
    ?>
        </div>
        <div class="pagination-links" id="topic-pag">
            <p><?php 
    _e('Deadline', 'bp_gtm');
    echo ': ' . bp_gtm_get_format_date($task['0']->deadline);
    ?>
</p>
        </div>
    </div>

    <div class="subtasks"></div>

    <?php