function my_task_sub_nav()
 {
     $nav = array(__('Current Task', 'cpm') => cpm_url_my_task(), __('Outstanding Task', 'cpm') => cpm_url_outstanding_task(), __('Completed Task', 'cpm') => cpm_url_complete_task());
     return apply_filters('cpm_my_task_sub_tab_nav', $nav);
 }
Beispiel #2
0
function cpm_url_complete_task()
{
    $url = add_query_arg(array('tab' => 'complete'), cpm_url_my_task());
    return apply_filters('cpm_url_complete_task', $url);
}
Beispiel #3
0
}
?>
<div class="wrap cpm my-tasks">
    <h2 class="cpm-my-task"><?php 
echo $title;
?>
</h2>

    <ul class="list-inline order-statuses-filter">

        <li <?php 
echo empty($page_status) ? ' class="active"' : '';
?>
>
            <a href="<?php 
echo cpm_url_my_task();
?>
">
                <?php 
_e('Current Task', 'cpm');
?>
 (<span class="cpm-mytas-current"><?php 
echo $count['current_task'];
?>
</span>)
            </a>
        </li>
        <li <?php 
echo $page_status == 'outstanding' ? ' class="active"' : '';
?>
>