@@ 328-333 (lines=6) @@ | ||
325 | * @since 1.2.0 |
|
326 | * @return void |
|
327 | */ |
|
328 | public function data_table_footer() { |
|
329 | $lesson = get_post( $this->lesson_id ); |
|
330 | $report = sanitize_title( $lesson->post_title ) . '-learners-overview'; |
|
331 | $url = add_query_arg( array( 'page' => $this->page_slug, 'lesson_id' => $this->lesson_id, 'sensei_report_download' => $report ), admin_url( 'admin.php' ) ); |
|
332 | echo '<a class="button button-primary" href="' . esc_url( wp_nonce_url( $url, 'sensei_csv_download-' . $report, '_sdl_nonce' ) ) . '">' . __( 'Export all rows (CSV)', 'woothemes-sensei' ) . '</a>'; |
|
333 | } // End data_table_footer() |
|
334 | ||
335 | /** |
|
336 | * the text for the search button |
@@ 296-301 (lines=6) @@ | ||
293 | * @since 1.7.0 |
|
294 | * @return void |
|
295 | */ |
|
296 | public function data_table_footer() { |
|
297 | $user = get_user_by( 'id', $this->user_id ); |
|
298 | $report = sanitize_title( $user->display_name ) . '-course-overview'; |
|
299 | $url = add_query_arg( array( 'page' => $this->page_slug, 'user_id' => $this->user_id, 'sensei_report_download' => $report ), admin_url( 'admin.php' ) ); |
|
300 | echo '<a class="button button-primary" href="' . esc_url( wp_nonce_url( $url, 'sensei_csv_download-' . $report, '_sdl_nonce' ) ) . '">' . __( 'Export all rows (CSV)', 'woothemes-sensei' ) . '</a>'; |
|
301 | } |
|
302 | ||
303 | /** |
|
304 | * The text for the search button |