PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
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 4.2.1 All 138 releases
learnpress / inc / admin / views / tools / course / html-install-sample-data.php

html-install-sample-data.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/admin/views/tools/course/html-install-sample-data.php

70 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @author ThimPress
4 * @package LearnPress/Admin/Views
5 * @version 3.0.0
6 */
7
8 defined( 'ABSPATH' ) or die();
9
10 $section_range = LP_Install_Sample_Data::$section_range;
11 $item_range = LP_Install_Sample_Data::$item_range;
12 $question_range = LP_Install_Sample_Data::$question_range;
13 $answer_range = LP_Install_Sample_Data::$answer_range;
14 ?>
15
16 <div class="lp-install-sample">
17 <h2><?php esc_html_e( 'Install Sample Data', 'learnpress' ); ?></h2>
18 <p><?php _e( 'Create a <strong>Sample course</strong> with lessons and quizzes. The content will be filled with <strong>Lorem</strong> text.', 'learnpress' ); ?></p>
19 <fieldset class="lp-install-sample__options hide-if-js">
20 <legend><?php esc_html_e( 'Options', 'learnpress' ); ?></legend>
21
22 <ul>
23 <li>
24 <p><?php esc_html_e( 'Course name', 'learnpress' ); ?></p>
25 <input type="text" class="widefat" name="custom-name" value="" placeholder="<?php esc_attr_e( 'Sample course', 'learnpress' ); ?>">
26 </li>
27 <li>
28 <p><?php esc_html_e( 'Random number of sections in range', 'learnpress' ); ?></p>
29 <input type="number" size="3" value="<?php echo esc_attr( $section_range[0] ); ?>" min="1" max="20" name="section-range[]">
30 <input type="number" size="3" value="<?php echo esc_attr( $section_range[1] ); ?>" min="1" max="20" name="section-range[]">
31 </li>
32 <li>
33 <p><?php esc_html_e( 'Random number of items in range (each section)', 'learnpress' ); ?></p>
34 <input type="number" size="3" value="<?php echo esc_attr( $item_range[0] ); ?>" min="1" max="50" name="item-range[]">
35 <input type="number" size="3" value="<?php echo esc_attr( $item_range[1] ); ?>" min="1" max="50" name="item-range[]">
36 </li>
37 <li>
38 <p><?php esc_html_e( 'Random number of questions in range (each quiz)', 'learnpress' ); ?></p>
39 <input type="number" size="3" value="<?php echo esc_attr( $question_range[0] ); ?>" min="1" max="50" name="question-range[]">
40 <input type="number" size="3" value="<?php echo esc_attr( $question_range[1] ); ?>" min="1" max="50" name="question-range[]">
41 </li>
42 <li>
43 <p><?php esc_html_e( 'Random number of answers in range (each question)', 'learnpress' ); ?></p>
44 <input type="number" size="3" value="<?php echo esc_attr( $answer_range[0] ); ?>" min="1" max="10" name="answer-range[]">
45 <input type="number" size="3" value="<?php echo esc_attr( $answer_range[1] ); ?>" min="1" max="10" name="answer-range[]">
46 </li>
47 <li>
48 <p><?php esc_html_e( 'Course price', 'learnpress' ); ?></p>
49 <input type="number" size="3" value="" min="0" name="course-price">
50 </li>
51 </ul>
52 </fieldset>
53
54 <p class="lp-install-sample__buttons">
55 <a class="button button-primary lp-install-sample__install"
56 data-text="<?php esc_attr_e( 'Install', 'learnpress' ); ?>"
57 data-installing-text="<?php esc_attr_e( 'Installing...', 'learnpress' ); ?>"
58 href="<?php echo wp_nonce_url( admin_url( 'index.php?page=lp-install-sample-data' ), 'install-sample-course' ); ?>">
59 <?php esc_html_e( 'Install', 'learnpress' ); ?>
60 </a>
61 <a href="" class="lp-install-sample__toggle-options"><?php esc_html_e( 'Show options', 'learnpress' ); ?></a>
62 <a class="button lp-install-sample__uninstall"
63 data-text="<?php esc_attr_e( 'Delete sample course', 'learnpress' ); ?>"
64 data-uninstalling-text="<?php esc_attr_e( 'Deleting...', 'learnpress' ); ?>"
65 href="<?php echo wp_nonce_url( admin_url( 'index.php?page=lp-uninstall-sample-data' ), 'uninstall-sample-course' ); ?>">
66 <?php esc_html_e( 'Delete sample course', 'learnpress' ); ?>
67 </a>
68 </p>
69 </div>
70