core/Field/Textarea_Field.php 1 location
|
@@ 43-52 (lines=10) @@
|
40 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
41 |
|
* @return array |
42 |
|
*/ |
43 |
|
public function to_json( $load ) { |
44 |
|
$field_data = parent::to_json( $load ); |
45 |
|
|
46 |
|
$field_data = array_merge( $field_data, array( |
47 |
|
'rows' => $this->rows, |
48 |
|
'height' => $this->height, |
49 |
|
) ); |
50 |
|
|
51 |
|
return $field_data; |
52 |
|
} |
53 |
|
|
54 |
|
/** |
55 |
|
* Underscore template of this field. |
core/Field/Html_Field.php 1 location
|
@@ 33-41 (lines=9) @@
|
30 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
31 |
|
* @return array |
32 |
|
*/ |
33 |
|
public function to_json( $load ) { |
34 |
|
$field_data = parent::to_json( $load ); |
35 |
|
|
36 |
|
$field_data = array_merge( $field_data, array( |
37 |
|
'html' => $this->field_html, |
38 |
|
) ); |
39 |
|
|
40 |
|
return $field_data; |
41 |
|
} |
42 |
|
|
43 |
|
/** |
44 |
|
* Underscore template of this field |
core/Field/Glyph_Field.php 1 location
|
@@ 83-92 (lines=10) @@
|
80 |
|
* @param bool $load Should the value be loaded from the database or use the value from the current instance. |
81 |
|
* @return array |
82 |
|
*/ |
83 |
|
public function to_json( $load ) { |
84 |
|
$field_data = parent::to_json( $load ); |
85 |
|
|
86 |
|
$field_data = array_merge( $field_data, array( |
87 |
|
'options' => $this->get_options(), |
88 |
|
'button_label' => $this->button_label, |
89 |
|
) ); |
90 |
|
|
91 |
|
return $field_data; |
92 |
|
} |
93 |
|
|
94 |
|
/** |
95 |
|
* The main Underscore template of this field. |