Merge pull request #10947 from woothemes/issues/10946/add-classes-for-payment-method-row

Added row class for each payment method and extra one for default one.
This commit is contained in:
Mike Jolley 2016-05-19 11:45:06 +01:00
commit d6b74900cd
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ wc_print_notices(); ?>
</thead> </thead>
<?php foreach ( $saved_methods as $type => $methods ) : ?> <?php foreach ( $saved_methods as $type => $methods ) : ?>
<?php foreach ( $methods as $method ) : ?> <?php foreach ( $methods as $method ) : ?>
<tr> <tr class="payment-method<?php echo ! empty( $method['is_default'] ) ? ' default-payment-method' : '' ?>">
<?php foreach ( wc_get_account_payment_methods_columns() as $column_id => $column_name ) : ?> <?php foreach ( wc_get_account_payment_methods_columns() as $column_id => $column_name ) : ?>
<td class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo esc_attr( $column_id ); ?> payment-method-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <td class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo esc_attr( $column_id ); ?> payment-method-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>">
<?php <?php