| @@ 171-177 (lines=7) @@ | ||
| 168 | } // End If Statement |
|
| 169 | ||
| 170 | switch( $this->view ) { |
|
| 171 | case 'learners': |
|
| 172 | if ( empty($orderby) ) { |
|
| 173 | $orderby = ''; |
|
| 174 | } |
|
| 175 | $this->items = $this->get_learners( compact( 'per_page', 'offset', 'orderby', 'order', 'search' ) ); |
|
| 176 | ||
| 177 | break; |
|
| 178 | ||
| 179 | case 'lessons': |
|
| 180 | if ( empty($orderby) ) { |
|
| @@ 179-185 (lines=7) @@ | ||
| 176 | ||
| 177 | break; |
|
| 178 | ||
| 179 | case 'lessons': |
|
| 180 | if ( empty($orderby) ) { |
|
| 181 | $orderby = 'post_modified'; |
|
| 182 | } |
|
| 183 | $this->items = $this->get_lessons( compact( 'per_page', 'offset', 'orderby', 'order', 'search' ) ); |
|
| 184 | ||
| 185 | break; |
|
| 186 | ||
| 187 | default: |
|
| 188 | if ( empty($orderby) ) { |
|
| @@ 187-193 (lines=7) @@ | ||
| 184 | ||
| 185 | break; |
|
| 186 | ||
| 187 | default: |
|
| 188 | if ( empty($orderby) ) { |
|
| 189 | $orderby = 'post_modified'; |
|
| 190 | } |
|
| 191 | $this->items = $this->get_courses( compact( 'per_page', 'offset', 'orderby', 'order', 'category', 'search' ) ); |
|
| 192 | ||
| 193 | break; |
|
| 194 | } |
|
| 195 | ||
| 196 | $total_items = $this->total_items; |
|