function page_links() { $pagination = new CoursePress_Pagination(); $pagination->Items($this->get_total()); $pagination->limit($this->users_per_page); $pagination->parameterName = 'page_num'; $pagination->nextT = __('Next', 'cp'); $pagination->prevT = __('Previous', 'cp'); $pagination->target("admin.php?page=instructors"); $pagination->currentPage($this->page_num); $pagination->nextIcon('►'); $pagination->prevIcon('◄'); $pagination->items_title = __('instructors', 'cp'); $pagination->show(); }
function page_links() { $pagination = new CoursePress_Pagination(); $pagination->Items($this->get_total()); $pagination->limit($this->users_per_page); $pagination->parameterName = 'page_num'; $pagination->nextT = __('Next', 'cp'); $pagination->prevT = __('Previous', 'cp'); $pagination->target(esc_url("admin.php?page=" . (isset($_GET['page']) ? $_GET['page'] : 'students') . '&' . http_build_query($this->additional_url_args))); $pagination->currentPage($this->page_num); $pagination->nextIcon('►'); $pagination->prevIcon('◄'); $pagination->items_title = __('students', 'cp'); $pagination->show(); }
function page_links() { $pagination = new CoursePress_Pagination(); $pagination->Items($this->get_count_of_all()); $pagination->limit($this->per_page); $pagination->parameterName = 'page_num'; if ($this->search_term != '') { $pagination->target("admin.php?page=" . $this->page_name . "&s=" . $this->search_term); } else { $pagination->target("admin.php?page=" . $this->page_name); } $pagination->currentPage($this->page_num); $pagination->nextIcon('►'); $pagination->prevIcon('◄'); $pagination->items_title = $this->items_title; $pagination->show(); }
function page_links() { $pagination = new CoursePress_Pagination(); $pagination->Items($this->get_count_of_all_discussions()); $pagination->limit($this->discussion_per_page); $pagination->parameterName = 'page_num'; $pagination->nextT = __('Next', 'cp'); $pagination->prevT = __('Previous', 'cp'); if ($this->search_term != '') { $pagination->target(esc_url("admin.php?page=discussions&s=" . $this->search_term)); } else { $pagination->target("admin.php?page=discussions"); } $pagination->currentPage($this->page_num); $pagination->nextIcon('►'); $pagination->prevIcon('◄'); $pagination->items_title = __('discussion', 'cp'); $pagination->show(); }
function page_links($show_courses_per_page = 10, $course_category = 0) { $pagination = new CoursePress_Pagination(); $pagination->Items($this->get_count_of_all_courses($course_category)); $pagination->limit($this->courses_per_page); $pagination->parameterName = 'page_num'; $pagination->nextT = __('Next', 'cp'); $pagination->prevT = __('Previous', 'cp'); if ($this->search_term != '') { $pagination->target(esc_url("admin.php?page=courses&s=" . $this->search_term)); } else { $pagination->target("admin.php?page=courses&courses_per_page=" . $show_courses_per_page . "&course_category_filter=" . $course_category); } $pagination->currentPage($this->page_num); $pagination->nextIcon('►'); $pagination->prevIcon('◄'); $pagination->items_title = __('courses', 'cp'); $pagination->show(); }