moved h3 bank account title out of UL element for correctness

This commit is contained in:
splashingpixels 2014-07-03 11:54:36 -07:00
parent abe0d0004a
commit 63371ac520
1 changed files with 6 additions and 6 deletions

View File

@ -244,10 +244,14 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
if ( ! empty( $bacs_accounts ) ) {
foreach ( $bacs_accounts as $bacs_account ) {
echo '<ul class="order_details bacs_details">' . PHP_EOL;
$bacs_account = (object) $bacs_account;
if ( $bacs_account->account_name || $bacs_account->bank_name ) {
echo '<h3>' . implode( ' - ', array_filter( array( $bacs_account->account_name, $bacs_account->bank_name ) ) ) . '</h3>' . PHP_EOL;
}
echo '<ul class="order_details bacs_details">' . PHP_EOL;
// BACS account fields shown on the thanks page and in emails
$account_fields = apply_filters( 'woocommerce_bacs_account_fields', array(
'account_number'=> array(
@ -268,10 +272,6 @@ class WC_Gateway_BACS extends WC_Payment_Gateway {
)
), $order_id );
if ( $bacs_account->account_name || $bacs_account->bank_name ) {
echo '<h3>' . implode( ' - ', array_filter( array( $bacs_account->account_name, $bacs_account->bank_name ) ) ) . '</h3>' . PHP_EOL;
}
foreach ( $account_fields as $field_key => $field ) {
if ( ! empty( $field['value'] ) ) {
echo '<li class="' . esc_attr( $field_key ) . '">' . esc_attr( $field['label'] ) . ': <strong>' . wptexturize( $field['value'] ) . '</strong></li>' . PHP_EOL;