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 / setup / steps / pages.php

pages.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/admin/views/setup/steps/pages.php

61 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying setup form of static pages while setting up LP
4 *
5 * @author ThimPress
6 * @package LearnPress/Admin/Views
7 * @version 3.0.0
8 */
9
10 defined( 'ABSPATH' ) or exit;
11
12 $settings = LP_Settings::instance();
13 ?>
14 <h2><?php _e( 'Static Pages', 'learnpress' ); ?></h2>
15
16 <p><?php _e( 'The pages will display content of LP\'s necessary pages, such as: Courses, Checkout, Profile', 'learnpress' ); ?></p>
17 <p><?php printf( __( 'If you are not sure, click <a href="%s" id="create-pages">here</a> to create pages automatically.', 'learnpress' ), wp_nonce_url( admin_url( 'index.php?page=lp-setup&step=pages&auto-create' ) ), 'setup-create-pages' ); ?></p>
18
19 <table class="form-field">
20 <tr>
21 <th>
22 <?php _e( 'Page: show list Courses', 'learnpress' ); ?>
23 </th>
24 <td>
25 <?php learn_press_pages_dropdown( 'settings[pages][courses_page_id]', $settings->get( 'courses_page_id' ) ); ?>
26 </td>
27 </tr>
28 <tr>
29 <th>
30 <?php _e( 'Page: Profile', 'learnpress' ); ?>
31 </th>
32 <td>
33 <?php learn_press_pages_dropdown( 'settings[pages][profile_page_id]', $settings->get( 'profile_page_id' ) ); ?>
34 </td>
35 </tr>
36 <tr>
37 <th>
38 <?php _e( 'Page: Checkout', 'learnpress' ); ?>
39 </th>
40 <td>
41 <?php learn_press_pages_dropdown( 'settings[pages][checkout_page_id]', $settings->get( 'checkout_page_id' ) ); ?>
42 </td>
43 </tr>
44 <tr>
45 <th>
46 <?php _e( 'Page: Become a Teacher', 'learnpress' ); ?>
47 </th>
48 <td>
49 <?php learn_press_pages_dropdown( 'settings[pages][become_a_teacher_page_id]', $settings->get( 'become_a_teacher_page_id' ) ); ?>
50 </td>
51 </tr>
52 <tr>
53 <th>
54 <?php _e( 'Page: Terms and Conditions', 'learnpress' ); ?>
55 </th>
56 <td>
57 <?php learn_press_pages_dropdown( 'settings[pages][term_conditions_page_id]', $settings->get( 'term_conditions_page_id' ) ); ?>
58 </td>
59 </tr>
60 </table>
61