Skip to content

Commit

Permalink
Update payment fields markup (pronamic/wp-pronamic-pay#336).
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Sep 12, 2022
1 parent 7fdb91c commit c0cf59f
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -975,15 +975,31 @@ public function get_input_fields() {
* @return void
*/
private function print_fields( $fields ) {
foreach ( $fields as $field ) {
\printf(
'<label for="%s">%s</label> ',
\esc_attr( $field->get_id() ),
\esc_html( $field->get_label() )
);
?>

$field->output();
}
<fieldset id="<?php echo esc_attr( $this->id ); ?>-form" class="wc-payment-form">
<?php

foreach ( $fields as $field ) {
echo '<p class="form-row form-row-wide">';

\printf(
'<label for="%s">%s</label> ',
\esc_attr( $field->get_id() ),
\esc_html( $field->get_label() )
);

$field->output();

echo '</p>';
}

?>

<div class="clear"></div>
</fieldset>

<?php
}

/**
Expand Down

0 comments on commit c0cf59f

Please sign in to comment.