Skip to content

Commit

Permalink
Remove support of html field type.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 4, 2023
1 parent 3e3721b commit 1e77a05
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions views/meta-box-gateway-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,17 @@ function ( $section ) {

?>
<tr class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">

<?php if ( 'html' !== $field['type'] ) { ?>

<th scope="row">
<label for="<?php echo esc_attr( $field_id ); ?>">
<?php echo esc_html( $field['title'] ); ?>
</label>

<?php

if ( array_key_exists( 'title', $field ) ) {
printf(
'<label for="%s">%s</label>',
esc_attr( $field_id ),
esc_html( $field['title'] )
);
}

if ( isset( $field['tooltip'] ) && ! empty( $field['tooltip'] ) ) {
printf(
'<span class="dashicons dashicons-editor-help pronamic-pay-tip" title="%s"></span>',
Expand All @@ -209,14 +210,7 @@ function ( $section ) {

?>
</th>

<?php } ?>

<td
<?php
if ( 'html' === $field['type'] ) :
?>
colspan="2"<?php endif; ?>>
<td>
<?php

$field = (array) $field;
Expand Down

0 comments on commit 1e77a05

Please sign in to comment.