PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 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 All 140 releases
← All changes | inc/admin/views/meta-boxes/lesson/settings.php +18 -4 4.1.7.2 → 4.4.9 View file →
@@ -40,9 +40,9 @@
40 40
41 41 <div class="lp-meta-box lp-meta-box--lesson">
42 42 <div class="lp-meta-box__inner">
43 43 <?php
44 - do_action( 'learnpress/lesson-settings/before' );
44 + do_action( 'learnpress/lesson-settings/before', $post );
45 45 // Check if add_filter to old version.
46 46 $is_old = false;
47 47
48 48 foreach ( $this->metabox( $post->ID ) as $key => $object ) {
@@ -47,19 +47,33 @@
47 47
48 48 foreach ( $this->metabox( $post->ID ) as $key => $object ) {
49 49 if ( is_a( $object, 'LP_Meta_Box_Field' ) ) {
50 50 $object->id = $key;
51 - learn_press_echo_vuejs_write_on_php( $object->output( $post->ID ) );
51 + $output = $object->output( $post->ID );
52 + if ( ! empty( $output ) ) {
53 + learn_press_echo_vuejs_write_on_php( $object->output( $post->ID ) );
54 + }
52 55 } elseif ( is_array( $object ) ) {
53 56 $is_old = true;
54 57 }
55 58 }
56 -
59 + ?>
60 + <style type="text/css"> .lesson-materials{display: flex; flex-direction: row; flex-wrap: nowrap; } .field-material__label{width: 180px; max-width: 180px; min-width: 180px; } .field-material__label label{color: #23282d; font-size: 14px; font-weight: 600; flex: 0 0 auto; } </style>
61 + <div class="lesson-materials">
62 + <div class="field-material__label">
63 + <label><?php echo __( 'Materials', 'learnpress' ); ?></label>
64 + </div>
65 + <?php
66 + $material = new LP_Meta_Box_Material_Fields();
67 + $material->output( $post->ID );
68 + ?>
69 + </div>
70 + <?php
57 71 if ( $is_old ) {
58 72 lp_meta_box_output( $this->metabox( $post->ID ) );
59 73 }
60 74
61 - do_action( 'learnpress/lesson-settings/after' );
75 + do_action( 'learnpress/lesson-settings/after', $post );
62 76 ?>
63 77 </div>
64 78 </div>
65 79