@@ 455-472 (lines=18) @@ | ||
452 | * @since 1.6.0 |
|
453 | * @return void |
|
454 | */ |
|
455 | public function no_items() { |
|
456 | switch( $this->view ) { |
|
457 | case 'learners' : |
|
458 | $text = __( 'No learners found.', 'woothemes-sensei' ); |
|
459 | break; |
|
460 | ||
461 | case 'lessons' : |
|
462 | $text = __( 'No lessons found.', 'woothemes-sensei' ); |
|
463 | break; |
|
464 | ||
465 | case 'courses': |
|
466 | case 'default': |
|
467 | default: |
|
468 | $text = __( 'No courses found.', 'woothemes-sensei' ); |
|
469 | break; |
|
470 | } |
|
471 | echo apply_filters( 'sensei_learners_no_items_text', $text ); |
|
472 | } // End no_items() |
|
473 | ||
474 | /** |
|
475 | * Output for table heading |
|
@@ 638-655 (lines=18) @@ | ||
635 | * @since 1.7.0 |
|
636 | * @return string $text |
|
637 | */ |
|
638 | public function search_button( $text = '' ) { |
|
639 | ||
640 | switch( $this->view ) { |
|
641 | case 'learners': |
|
642 | $text = __( 'Search Learners', 'woothemes-sensei' ); |
|
643 | break; |
|
644 | ||
645 | case 'lessons': |
|
646 | $text = __( 'Search Lessons', 'woothemes-sensei' ); |
|
647 | break; |
|
648 | ||
649 | default: |
|
650 | $text = __( 'Search Courses', 'woothemes-sensei' ); |
|
651 | break; |
|
652 | } |
|
653 | ||
654 | return $text; |
|
655 | } |
|
656 | ||
657 | } // End Class |
|
658 |
@@ 680-697 (lines=18) @@ | ||
677 | * @since 1.7.0 |
|
678 | * @return string $text |
|
679 | */ |
|
680 | public function search_button( $text = '' ) { |
|
681 | switch( $this->type ) { |
|
682 | case 'courses': |
|
683 | $text = __( 'Search Courses', 'woothemes-sensei' ); |
|
684 | break; |
|
685 | ||
686 | case 'lessons': |
|
687 | $text = __( 'Search Lessons', 'woothemes-sensei' ); |
|
688 | break; |
|
689 | ||
690 | case 'users': |
|
691 | default: |
|
692 | $text = __( 'Search Learners', 'woothemes-sensei' ); |
|
693 | break; |
|
694 | } // End Switch Statement |
|
695 | ||
696 | return $text; |
|
697 | } |
|
698 | ||
699 | } // End Class |
|
700 |