| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying Finish button in single course. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/learnpress/single-course/buttons/finish.php. |
| 6 |
* |
| 7 |
* @author ThimPress |
| 8 |
* @package Learnpress/Templates |
| 9 |
* @version 4.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit(); |
| 13 |
?> |
| 14 |
|
| 15 |
<form class="lp-form form-button form-button-finish-course" method="post" data-confirm="<?php echo LP_Strings::esc_attr( 'confirm-finish-course', '', array( $course->get_title() ) ); ?>" data-title="<?php echo esc_attr__( 'Finish course', 'learnpress' ); ?>"> |
| 16 |
<button class="lp-button lp-btn-finish-course"><?php esc_html_e( 'Finish course', 'learnpress' ); ?></button> |
| 17 |
<input type="hidden" name="course-id" value="<?php echo esc_attr( $course->get_id() ); ?>"/> |
| 18 |
<input type="hidden" name="finish-course-nonce" value="<?php echo esc_attr( wp_create_nonce( sprintf( 'finish-course-%d-%d', $course->get_id(), $user->get_id() ) ) ); ?>"/> |
| 19 |
<input type="hidden" name="lp-ajax" value="finish-course"/> |
| 20 |
<input type="hidden" name="noajax" value="yes"/> |
| 21 |
</form> |
| 22 |
|