Update class-opalestate-property.php

This commit is contained in:
Hoang Huu 2019-10-29 15:44:30 +07:00
parent 052037d025
commit 5e56b01a72

View File

@ -184,14 +184,18 @@ class Opalestate_Property {
} }
$opt_values = $tmp; $opt_values = $tmp;
} }
$value = implode( ", ", $opt_values ); $value = implode( ', ', $opt_values );
} else { } else {
$value = get_post_meta( $this->post_id, $field['id'], true ); $value = get_post_meta( $this->post_id, $field['id'], true );
} }
$value = isset( $field['unit'] ) && $field['unit'] ? $value . ' ' . $field['unit'] : $value; $value = isset( $field['unit'] ) && $field['unit'] ? $value . ' ' . $field['unit'] : $value;
$this->metabox_info[ $id ] = [ 'label' => $field['name'], 'value' => $value ]; $this->metabox_info[ $id ] = [
'label' => $field['name'],
'value' => $value,
'icon' => opalestate_get_property_meta_icon( $id ),
];
} }
} }