| @@ -1,68 +1,68 @@ | ||
| 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> | |
| 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> | |