| @@ -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 | */ |
| @@ -21,23 +18,17 @@ | ||
| 21 | 18 | protected $has_input = false; |
| 22 | 19 | |
| 23 | 20 | /** |
| 24 | 21 | * @since 4.0 |
| 25 | - * | |
| 26 | 22 | * @param array $args - Includes 'field', 'display', and 'values' |
| 27 | - * | |
| 28 | - * @return void | |
| 29 | 23 | */ |
| 30 | 24 | public function show_primary_options( $args ) { |
| 31 | 25 | $field = $args['field']; |
| 32 | - include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php'; | |
| 26 | + include( FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/html-content.php' ); | |
| 33 | 27 | |
| 34 | 28 | parent::show_primary_options( $args ); |
| 35 | 29 | } |
| 36 | 30 | |
| 37 | - /** | |
| 38 | - * @return string | |
| 39 | - */ | |
| 40 | 31 | public function default_html() { |
| 41 | 32 | return '<div id="frm_field_[id]_container" class="frm_form_field form-field">[description]</div>'; |
| 42 | 33 | } |
| 43 | 34 | |
| @@ -54,18 +45,12 @@ | ||
| 54 | 45 | |
| 55 | 46 | return $html; |
| 56 | 47 | } |
| 57 | 48 | |
| 58 | - /** | |
| 59 | - * @return string | |
| 60 | - */ | |
| 61 | 49 | public function get_container_class() { |
| 62 | 50 | return ' frm_html_container'; |
| 63 | 51 | } |
| 64 | 52 | |
| 65 | - /** | |
| 66 | - * @return string | |
| 67 | - */ | |
| 68 | 53 | protected function include_form_builder_file() { |
| 69 | 54 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-html.php'; |
| 70 | 55 | } |
| 71 | 56 | } |