PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.9
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 / course / editor.php

editor.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.9, at inc/admin/views/course/editor.php

69 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Course editor template.
4 *
5 * @since 3.0.0
6 */
7
8 learn_press_admin_view( 'course/curriculum' );
9 learn_press_admin_view( 'course/modal-choose-items' );
10 ?>
11
12 <div id="admin-editor-lp_course">
13 <div class="lp-place-holder">
14 <div class="line-heading"></div>
15
16 <div class="line-sm"></div>
17 <div class="line-xs"></div>
18
19 <div class="line-df"></div>
20 <div class="line-lgx"></div>
21 <div class="line-lg"></div>
22
23 <div class="line-df"></div>
24 <div class="line-lg"></div>
25 <div class="line-lgx"></div>
26 </div>
27 </div>
28
29 <script type="text/x-template" id="tmpl-lp-course-editor">
30 <div id="admin-editor-lp_course" class='lp-admin-editor'>
31 <div v-if="heartbeat">
32 <form @submit.prevent="">
33 <lp-curriculum></lp-curriculum>
34 </form>
35
36 <lp-curriculum-choose-items></lp-curriculum-choose-items>
37 </div>
38 <div v-else>
39 <div class="lp-place-holder">
40 <?php learn_press_admin_view( 'placeholder-animation' ); ?>
41 <div class="notify-reload"><?php esc_html_e( 'Something went wrong! Please reload to continue editing the curriculum.', 'learnpress' ); ?></div>
42 </div>
43 </div>
44 </div>
45 </script>
46
47 <script type="text/javascript">
48
49 window.$Vue = window.$Vue || Vue;
50
51 jQuery( function( $ ) {
52 ( function( $store ) {
53 $Vue.component( 'lp-course-editor', {
54 template: '#tmpl-lp-course-editor',
55 created: function() {
56 /*setInterval( function() {
57 $store.dispatch( 'heartbeat' );
58 }, 60 * 1000);*/
59 },
60 computed: {
61 heartbeat: function() {
62 return $store.getters['heartbeat'];
63 }
64 }
65 });
66 })(LP_Curriculum_Store);
67 });
68 </script>
69