mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +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(
|
$html = sprintf(
|
||||||
'<h2 class="%s">%s</h2>',
|
'<h3 class="%s">%s</h3>',
|
||||||
esc_attr(implode(' ', $config['class'])),
|
esc_attr(implode(' ', $config['class'])),
|
||||||
esc_html($config['heading'])
|
esc_html($config['heading'])
|
||||||
);
|
);
|
||||||
|
@ -139,6 +139,7 @@ class SettingsRenderer
|
||||||
}
|
}
|
||||||
$value = $this->settings->has($field) ? $this->settings->get($field) : null;
|
$value = $this->settings->has($field) ? $this->settings->get($field) : null;
|
||||||
$id = 'ppcp[' . $field . ']';
|
$id = 'ppcp[' . $field . ']';
|
||||||
|
$thTd = $config['type'] !== 'ppcp-heading' ? 'td' : 'th';
|
||||||
$colspan = $config['type'] !== 'ppcp-heading' ? 1 : 2;
|
$colspan = $config['type'] !== 'ppcp-heading' ? 1 : 2;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -157,10 +158,10 @@ class SettingsRenderer
|
||||||
endif; ?>
|
endif; ?>
|
||||||
</th>
|
</th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<td colspan="<?php echo (int) $colspan; ?>"><?php
|
<<?php echo $thTd; ?> colspan="<?php echo (int) $colspan; ?>"><?php
|
||||||
$config['type'] === 'ppcp-text' ?
|
$config['type'] === 'ppcp-text' ?
|
||||||
$this->renderText($config)
|
$this->renderText($config)
|
||||||
: woocommerce_form_field($id, $config, $value); ?></td>
|
: woocommerce_form_field($id, $config, $value); ?></<?php echo $thTd; ?>>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach;
|
<?php endforeach;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue