| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - die( 'You are not allowed to call this page directly.' ); | |
| 4 | -} | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * @since 3.0 |
| 8 | 5 | */ |
| @@ -19,25 +16,8 @@ | ||
| 19 | 16 | * @since 3.0 |
| 20 | 17 | */ |
| 21 | 18 | protected $has_input = false; |
| 22 | 19 | |
| 23 | - /** | |
| 24 | - * @since 4.0 | |
| 25 | - * | |
| 26 | - * @param array $args - Includes 'field', 'display', and 'values' | |
| 27 | - * | |
| 28 | - * @return void | |
| 29 | - */ | |
| 30 | - public function show_primary_options( $args ) { | |
| 31 | - $field = $args['field']; | |
| 32 | - include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php'; | |
| 33 | - | |
| 34 | - parent::show_primary_options( $args ); | |
| 35 | - } | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * @return string | |
| 39 | - */ | |
| 40 | 20 | public function default_html() { |
| 41 | 21 | return '<div id="frm_field_[id]_container" class="frm_form_field form-field">[description]</div>'; |
| 42 | 22 | } |
| 43 | 23 | |
| @@ -46,26 +26,19 @@ | ||
| 46 | 26 | */ |
| 47 | 27 | protected function after_replace_html_shortcodes( $args, $html ) { |
| 48 | 28 | FrmFieldsHelper::run_wpautop( array( 'wpautop' => true ), $html ); |
| 49 | 29 | $pre_filter = $html; |
| 50 | - $html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false ); | |
| 30 | + $html = apply_filters( 'frm_get_default_value', $html, (object) $this->field, false ); | |
| 51 | 31 | if ( $pre_filter === $html ) { |
| 52 | 32 | $html = do_shortcode( $html ); |
| 53 | 33 | } |
| 54 | - | |
| 55 | 34 | return $html; |
| 56 | 35 | } |
| 57 | 36 | |
| 58 | - /** | |
| 59 | - * @return string | |
| 60 | - */ | |
| 61 | 37 | public function get_container_class() { |
| 62 | 38 | return ' frm_html_container'; |
| 63 | 39 | } |
| 64 | 40 | |
| 65 | - /** | |
| 66 | - * @return string | |
| 67 | - */ | |
| 68 | 41 | protected function include_form_builder_file() { |
| 69 | 42 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php'; |
| 70 | 43 | } |
| 71 | 44 | } |