1: <?php
2:
3: /**
4: * WordPress media image property.
5: */
6: class Papi_Property_Image extends Papi_Property_File {
7:
8: /**
9: * File type.
10: *
11: * @var string
12: */
13: protected $file_type = 'image';
14:
15: /**
16: * Get labels.
17: *
18: * @return array
19: */
20: public function get_labels() {
21: return [
22: 'add' => __( 'Add image', 'papi' ),
23: 'no_file' => __( 'No image selected', 'papi' )
24: ];
25: }
26: }
27: