| @@ -4,14 +4,20 @@ | ||
| 4 | 4 | } |
| 5 | 5 | ?> |
| 6 | 6 | <div id="template"> |
| 7 | 7 | <p class="howto"> |
| 8 | - <?php echo esc_html( $heading ); ?> | |
| 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 | 9 | </p> |
| 10 | 10 | |
| 11 | 11 | <?php |
| 12 | - if ( true === $show_errors ) { | |
| 13 | - require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.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'; | |
| 14 | 20 | } |
| 15 | 21 | ?> |
| 16 | 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> |
| 17 | 23 | </div> |