PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.4
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.4
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 / meta-box / fields / custom-fields.php

custom-fields.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.4, at inc/admin/meta-box/fields/custom-fields.php

50 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php $option_value = $value['value']; ?>
2
3 <tr valign="top">
4 <th scope="row" class="titledesc">
5 <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
6 </th>
7 <td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?> lp-metabox__custom-fields">
8 <table class="widefat">
9 <thead>
10 <tr>
11 <th class="sort">&nbsp;</th>
12 <?php
13 if ( $value['options'] ) {
14 foreach ( $value['options'] as $key => $val ) {
15 ?>
16 <th><?php echo wp_kses_post( $value['options'][ $key ]['title'] ); ?> <?php echo isset( $value['options'][ $key ]['desc_tip'] ) ? learn_press_quick_tip( $value['options'][ $key ]['desc_tip'], false ) : ''; ?></th>
17 <?php
18 }
19 }
20 ?>
21 <th>&nbsp;</th>
22 </tr>
23 </thead>
24 <tbody>
25 <?php
26 if ( $option_value ) {
27 foreach ( $option_value as $key => $values ) {
28 lp_metabox_custom_fields( $value, $values, $key );
29 }
30 }
31 ?>
32 </tbody>
33 <tfoot>
34 <tr>
35 <th colspan="5">
36 <a href="#" class="button insert lp-metabox-custom-field-button" data-row="
37 <?php
38 ob_start();
39 lp_metabox_custom_fields( $value, '', 'lp_metabox_custom_fields_key' );
40 echo esc_attr( ob_get_clean() );
41 ?>
42 "><?php esc_html_e( 'Add new', 'learnpress' ); ?></a>
43 </th>
44 </tr>
45 </tfoot>
46 </table>
47 <?php echo wp_kses_post( $description ); ?>
48 </td>
49 </tr>
50