| @@ 558-570 (lines=13) @@ | ||
| 555 | * @since 1.2.0 |
|
| 556 | * @return void |
|
| 557 | */ |
|
| 558 | public function no_items() { |
|
| 559 | switch( $this->view ) { |
|
| 560 | case 'user' : |
|
| 561 | $text = __( 'No learners found.', 'woothemes-sensei' ); |
|
| 562 | break; |
|
| 563 | ||
| 564 | case 'lesson': |
|
| 565 | default: |
|
| 566 | $text = __( 'No lessons found.', 'woothemes-sensei' ); |
|
| 567 | break; |
|
| 568 | } |
|
| 569 | echo apply_filters( 'sensei_analysis_course_no_items_text', $text ); |
|
| 570 | } // End no_items() |
|
| 571 | ||
| 572 | /** |
|
| 573 | * Output for table heading |
|
| @@ 647-660 (lines=14) @@ | ||
| 644 | * @since 1.7.0 |
|
| 645 | * @return string $text |
|
| 646 | */ |
|
| 647 | public function search_button( $text = '' ) { |
|
| 648 | switch( $this->view ) { |
|
| 649 | case 'user': |
|
| 650 | $text = __( 'Search Learners', 'woothemes-sensei' ); |
|
| 651 | break; |
|
| 652 | ||
| 653 | case 'lesson': |
|
| 654 | default: |
|
| 655 | $text = __( 'Search Lessons', 'woothemes-sensei' ); |
|
| 656 | break; |
|
| 657 | } // End Switch Statement |
|
| 658 | ||
| 659 | return $text; |
|
| 660 | } |
|
| 661 | ||
| 662 | } // End Class |
|
| 663 | ||