コード例 #1
0
 function page_links()
 {
     $pagination = new TC_Pagination();
     $pagination->Items($this->get_count_of_all());
     $pagination->limit($this->per_page);
     $pagination->parameterName = 'page_num';
     if ($this->search_term != '') {
         $pagination->target("edit.php?post_type=tc_events&page=" . $this->page_name . "&s=" . $this->search_term);
     } else {
         $pagination->target("edit.php?post_type=tc_events&page=" . $this->page_name);
     }
     $pagination->currentPage($this->page_num);
     $pagination->nextIcon('►');
     $pagination->prevIcon('◄');
     $pagination->items_title = $this->items_title;
     $pagination->show();
 }
コード例 #2
0
 function page_links()
 {
     $current_post_status = isset($_GET['post_status']) ? $_GET['post_status'] : 'any';
     $pagination = new TC_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 . "&post_status=" . $current_post_status);
     }
     $pagination->currentPage($this->page_num);
     $pagination->nextIcon(' & #9658;');
     $pagination->prevIcon('◄');
     $pagination->items_title = $this->items_title;
     $pagination->show();
 }