| @@ 102-121 (lines=20) @@ | ||
| 99 | * @param $field - an array holding all the field's data |
|
| 100 | */ |
|
| 101 | ||
| 102 | function render_field_settings( $field ) { |
|
| 103 | ||
| 104 | // message |
|
| 105 | acf_render_field_setting( $field, array( |
|
| 106 | 'label' => __('Message','acf'), |
|
| 107 | 'instructions' => __('eg. Show extra content','acf'), |
|
| 108 | 'type' => 'text', |
|
| 109 | 'name' => 'message', |
|
| 110 | )); |
|
| 111 | ||
| 112 | ||
| 113 | // default_value |
|
| 114 | acf_render_field_setting( $field, array( |
|
| 115 | 'label' => __('Default Value','acf'), |
|
| 116 | 'instructions' => '', |
|
| 117 | 'type' => 'true_false', |
|
| 118 | 'name' => 'default_value', |
|
| 119 | )); |
|
| 120 | ||
| 121 | } |
|
| 122 | ||
| 123 | ||
| 124 | /* |
|
| @@ 113-132 (lines=20) @@ | ||
| 110 | * @param $field - an array holding all the field's data |
|
| 111 | */ |
|
| 112 | ||
| 113 | function render_field_settings( $field ) { |
|
| 114 | ||
| 115 | // default_value |
|
| 116 | acf_render_field_setting( $field, array( |
|
| 117 | 'label' => __('Default Value','acf'), |
|
| 118 | 'instructions' => __('Appears when creating a new post','acf'), |
|
| 119 | 'type' => 'text', |
|
| 120 | 'name' => 'default_value', |
|
| 121 | )); |
|
| 122 | ||
| 123 | ||
| 124 | // placeholder |
|
| 125 | acf_render_field_setting( $field, array( |
|
| 126 | 'label' => __('Placeholder Text','acf'), |
|
| 127 | 'instructions' => __('Appears within the input','acf'), |
|
| 128 | 'type' => 'text', |
|
| 129 | 'name' => 'placeholder', |
|
| 130 | )); |
|
| 131 | ||
| 132 | } |
|
| 133 | ||
| 134 | ||
| 135 | /* |
|