/** * filter links */ public static function list_links($url, $name, $current) { return tzn_tools::form_links($url, $name, array('all' => _x('All', 'updates', 'taskfreak')), $current) . tzn_tools::form_links($url, $name, self::get_option_list(), $current); }
public static function list_links($url, $name, $current) { return tzn_tools::form_links($url, $name, array('all' => _x('All', 'projects', 'taskfreak')), $current) . tzn_tools::form_links($url, $name, self::get_status_list(current_user_can('manage_options')), $current); }
/** * get a HTML li (list) of links to task statuses + "All tasks" for filtering status * @param unknown $url base URL * @param unknown $name name of the filter argument inside the query * @param unknown $current current filter * @return string */ public static function list_links($url, $name, $current) { return tzn_tools::form_links($url, $name, array('all' => _x('All tasks', 'tasks', 'taskfreak')), $current) . tzn_tools::form_links($url, $name, self::get_status_list(is_user_logged_in()), $current); }