PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / templates / single-course / buttons / external-link.php

external-link.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.8, at templates/single-course/buttons/external-link.php

30 lines 961 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying Continue button in single course.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/single-course/buttons/continue.php.
6 *
7 * @author ThimPress
8 * @package Learnpress/Templates
9 * @version 4.0.1
10 */
11
12 defined( 'ABSPATH' ) || exit();
13
14 $course = learn_press_get_course();
15 if ( ! $course ) {
16 return;
17 }
18 ?>
19
20 <form name="course-external-link" class="course-external-link form-button lp-form" method="post" target="_blank">
21
22 <input type="hidden" name="lp-ajax" value="external-link">
23 <input type="hidden" name="id" value="<?php echo esc_attr( $course->get_id() ); ?>">
24 <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'external-link-' . $course->get_external_link() ); ?>">
25 <button type="submit" class="lp-button button">
26 <?php echo esc_html( apply_filters( 'learn-press/external-course-button-text', esc_html( $course->get_external_link_text() )) ); ?>
27 </button>
28
29 </form>
30