| @@ -1,49 +1,49 @@ | ||
| 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"> </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> </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> | |
| 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"> </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> </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> | |