← All changes
|
classes/views/frm-fields/back-end/html-content.php
+17
-18
6.3.1
→
trunk
View file →
| @@ -1,27 +1,26 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * HTML content editor for HTML fields. | |
| 4 | + * | |
| 5 | + * @package Formidable | |
| 6 | + * | |
| 7 | + * @var array $field Field data including 'id' and 'description'. | |
| 8 | + */ | |
| 9 | + | |
| 2 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 11 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 12 | } |
| 5 | 13 | ?> |
| 6 | -<p class="frm-has-modal"> | |
| 14 | +<p> | |
| 7 | 15 | <label> |
| 8 | 16 | <?php esc_html_e( 'Content', 'formidable' ); ?> |
| 9 | 17 | </label> |
| 10 | - <span class="frm-with-right-icon"> | |
| 11 | - <?php | |
| 12 | - FrmAppHelper::icon_by_class( | |
| 13 | - 'frm_icon_font frm_more_horiz_solid_icon frm-show-inline-modal', | |
| 14 | - array( | |
| 15 | - 'data-open' => 'frm-smart-values-box', | |
| 16 | - 'title' => esc_attr__( 'Toggle Options', 'formidable' ), | |
| 17 | - ) | |
| 18 | - ); | |
| 19 | - $e_args = array( | |
| 20 | - 'textarea_name' => 'field_options[description_' . absint( $field['id'] ) . ']', | |
| 21 | - 'textarea_rows' => 8, | |
| 22 | - ); | |
| 23 | - $html_id = 'frm_description_' . absint( $field['id'] ); | |
| 24 | - wp_editor( $field['description'], $html_id, $e_args ); | |
| 25 | - ?> | |
| 26 | - </span> | |
| 18 | + <?php | |
| 19 | + $e_args = array( | |
| 20 | + 'textarea_name' => 'field_options[description_' . absint( $field['id'] ) . ']', | |
| 21 | + 'textarea_rows' => 7, | |
| 22 | + ); | |
| 23 | + $html_id = 'frm_description_' . absint( $field['id'] ); | |
| 24 | + wp_editor( $field['description'], $html_id, $e_args ); | |
| 25 | + ?> | |
| 27 | 26 | </p> |