mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Use td
for settings heading descriptions
This commit is contained in:
parent
e18f1ed449
commit
e3cb93f632
1 changed files with 2 additions and 3 deletions
|
@ -374,7 +374,6 @@ class SettingsRenderer {
|
|||
$key = 'ppcp[' . $field . ']';
|
||||
$id = 'ppcp-' . $field;
|
||||
$config['id'] = $id;
|
||||
$th_td = 'ppcp-heading' !== $config['type'] ? 'td' : 'th';
|
||||
$colspan = 'ppcp-heading' !== $config['type'] ? 1 : 2;
|
||||
$classes = isset( $config['classes'] ) ? $config['classes'] : array();
|
||||
$classes[] = sprintf( 'ppcp-settings-field-%s', str_replace( 'ppcp-', '', $config['type'] ) );
|
||||
|
@ -398,7 +397,7 @@ class SettingsRenderer {
|
|||
?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<<?php echo esc_attr( $th_td ); ?> colspan="<?php echo (int) $colspan; ?>">
|
||||
<td colspan="<?php echo (int) $colspan; ?>">
|
||||
<?php
|
||||
'ppcp-text' === $config['type'] ?
|
||||
$this->render_text( $config )
|
||||
|
@ -408,7 +407,7 @@ class SettingsRenderer {
|
|||
<?php if ( $description ) : ?>
|
||||
<p class="<?php echo 'ppcp-heading' === $config['type'] ? '' : 'description'; ?>"><?php echo wp_kses_post( $description ); ?></p>
|
||||
<?php endif; ?>
|
||||
</<?php echo esc_attr( $th_td ); ?>>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue