@@ -82,7 +82,7 @@ protected function sub_fields() : array {
82
82
$ key = $ this ->get_key ();
83
83
84
84
$ rows_field = ( new Field \Repeater ( $ strings ['rows ' ]['label ' ] ) )
85
- ->set_key ( "$ { key}_rows " )
85
+ ->set_key ( "{ $ key }_rows " )
86
86
->set_name ( 'rows ' )
87
87
->set_min ( 1 )
88
88
->set_max ( 6 )
@@ -91,33 +91,35 @@ protected function sub_fields() : array {
91
91
->set_instructions ( $ strings ['rows ' ]['instructions ' ] );
92
92
93
93
$ image_field = ( new Field \Image ( $ strings ['image ' ]['label ' ] ) )
94
- ->set_key ( "$ { key}_numbers " )
94
+ ->set_key ( "{ $ key }_numbers " )
95
95
->set_name ( 'image ' )
96
96
->set_wrapper_width ( 50 )
97
97
->set_instructions ( $ strings ['image ' ]['instructions ' ] );
98
98
99
99
$ title_field = ( new Field \Text ( $ strings ['title ' ]['label ' ] ) )
100
- ->set_key ( "$ { key}_title " )
100
+ ->set_key ( "{ $ key }_title " )
101
101
->set_name ( 'title ' )
102
102
->set_wrapper_width ( 50 )
103
+ ->redipress_include_search ()
103
104
->set_instructions ( $ strings ['title ' ]['instructions ' ] );
104
105
105
106
$ description_field = ( new Field \Textarea ( $ strings ['description ' ]['label ' ] ) )
106
- ->set_key ( "$ { key}_description " )
107
+ ->set_key ( "{ $ key }_description " )
107
108
->set_name ( 'description ' )
108
109
->set_rows ( 4 )
109
110
->set_new_lines ( 'wpautop ' )
110
111
->set_wrapper_width ( 50 )
112
+ ->redipress_include_search ()
111
113
->set_instructions ( $ strings ['description ' ]['instructions ' ] );
112
114
113
115
$ link_field = ( new Field \Link ( $ strings ['link ' ]['label ' ] ) )
114
- ->set_key ( "$ { key}_link " )
116
+ ->set_key ( "{ $ key }_link " )
115
117
->set_name ( 'link ' )
116
118
->set_wrapper_width ( 50 )
117
119
->set_instructions ( $ strings ['link ' ]['instructions ' ] );
118
120
119
121
$ layout_field = ( new Field \Radio ( $ strings ['layout ' ]['label ' ] ) )
120
- ->set_key ( "$ { key}_layout " )
122
+ ->set_key ( "{ $ key }_layout " )
121
123
->set_name ( 'layout ' )
122
124
->set_choices ( [
123
125
'is-image-first ' => 'Kuva ensin ' ,
@@ -127,7 +129,7 @@ protected function sub_fields() : array {
127
129
->set_instructions ( $ strings ['layout ' ]['instructions ' ] );
128
130
129
131
$ display_artist_field = ( new Field \TrueFalse ( $ strings ['display_artist ' ]['label ' ] ) )
130
- ->set_key ( "$ { key}_display_artist " )
132
+ ->set_key ( "{ $ key }_display_artist " )
131
133
->set_name ( 'display_artist ' )
132
134
->set_wrapper_width ( 50 )
133
135
->use_ui ()
@@ -136,7 +138,7 @@ protected function sub_fields() : array {
136
138
->set_instructions ( $ strings ['display_artist ' ]['instructions ' ] );
137
139
138
140
$ background_color_field = ( new Field \Select ( $ strings ['background_color ' ]['label ' ] ) )
139
- ->set_key ( "$ { key}_background_color " )
141
+ ->set_key ( "{ $ key }_background_color " )
140
142
->set_name ( 'background_color ' )
141
143
->set_choices ( [
142
144
'primary-light ' => 'Vaalea ' ,
0 commit comments