mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
proper heading order
This commit is contained in:
parent
875356b24f
commit
65b38f7522
1 changed files with 4 additions and 3 deletions
|
@ -113,7 +113,7 @@ class SettingsRenderer
|
|||
}
|
||||
|
||||
$html = sprintf(
|
||||
'<h2 class="%s">%s</h2>',
|
||||
'<h3 class="%s">%s</h3>',
|
||||
esc_attr(implode(' ', $config['class'])),
|
||||
esc_html($config['heading'])
|
||||
);
|
||||
|
@ -139,6 +139,7 @@ class SettingsRenderer
|
|||
}
|
||||
$value = $this->settings->has($field) ? $this->settings->get($field) : null;
|
||||
$id = 'ppcp[' . $field . ']';
|
||||
$thTd = $config['type'] !== 'ppcp-heading' ? 'td' : 'th';
|
||||
$colspan = $config['type'] !== 'ppcp-heading' ? 1 : 2;
|
||||
|
||||
?>
|
||||
|
@ -157,10 +158,10 @@ class SettingsRenderer
|
|||
endif; ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<td colspan="<?php echo (int) $colspan; ?>"><?php
|
||||
<<?php echo $thTd; ?> colspan="<?php echo (int) $colspan; ?>"><?php
|
||||
$config['type'] === 'ppcp-text' ?
|
||||
$this->renderText($config)
|
||||
: woocommerce_form_field($id, $config, $value); ?></td>
|
||||
: woocommerce_form_field($id, $config, $value); ?></<?php echo $thTd; ?>>
|
||||
</tr>
|
||||
<?php endforeach;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue