mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +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 . ']';
|
$key = 'ppcp[' . $field . ']';
|
||||||
$id = 'ppcp-' . $field;
|
$id = 'ppcp-' . $field;
|
||||||
$config['id'] = $id;
|
$config['id'] = $id;
|
||||||
$th_td = 'ppcp-heading' !== $config['type'] ? 'td' : 'th';
|
|
||||||
$colspan = 'ppcp-heading' !== $config['type'] ? 1 : 2;
|
$colspan = 'ppcp-heading' !== $config['type'] ? 1 : 2;
|
||||||
$classes = isset( $config['classes'] ) ? $config['classes'] : array();
|
$classes = isset( $config['classes'] ) ? $config['classes'] : array();
|
||||||
$classes[] = sprintf( 'ppcp-settings-field-%s', str_replace( 'ppcp-', '', $config['type'] ) );
|
$classes[] = sprintf( 'ppcp-settings-field-%s', str_replace( 'ppcp-', '', $config['type'] ) );
|
||||||
|
@ -398,7 +397,7 @@ class SettingsRenderer {
|
||||||
?>
|
?>
|
||||||
</th>
|
</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<<?php echo esc_attr( $th_td ); ?> colspan="<?php echo (int) $colspan; ?>">
|
<td colspan="<?php echo (int) $colspan; ?>">
|
||||||
<?php
|
<?php
|
||||||
'ppcp-text' === $config['type'] ?
|
'ppcp-text' === $config['type'] ?
|
||||||
$this->render_text( $config )
|
$this->render_text( $config )
|
||||||
|
@ -408,7 +407,7 @@ class SettingsRenderer {
|
||||||
<?php if ( $description ) : ?>
|
<?php if ( $description ) : ?>
|
||||||
<p class="<?php echo 'ppcp-heading' === $config['type'] ? '' : 'description'; ?>"><?php echo wp_kses_post( $description ); ?></p>
|
<p class="<?php echo 'ppcp-heading' === $config['type'] ? '' : 'description'; ?>"><?php echo wp_kses_post( $description ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</<?php echo esc_attr( $th_td ); ?>>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue