| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div id="template"> |
| 7 |
<p class="howto"> |
| 8 |
<?php esc_html_e( 'You can add custom css here or in your theme style.css. Any CSS added here will be used anywhere the Formidable CSS is loaded.', 'formidable' ); ?> |
| 9 |
</p> |
| 10 |
|
| 11 |
<?php |
| 12 |
require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; |
| 13 |
|
| 14 |
$textarea_params = array( |
| 15 |
'name' => 'frm_custom_css', |
| 16 |
'id' => $id, |
| 17 |
); |
| 18 |
if ( ! empty( $settings ) ) { |
| 19 |
$textarea_params['class'] = 'hide-if-js'; |
| 20 |
} |
| 21 |
?> |
| 22 |
<textarea <?php FrmAppHelper::array_to_html_params( $textarea_params, true ); ?>><?php echo FrmAppHelper::esc_textarea( $custom_css ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></textarea> |
| 23 |
</div> |
| 24 |
|