25 lines
No EOL
580 B
PHP
25 lines
No EOL
580 B
PHP
<?php
|
|
|
|
namespace wpai_acf_add_on\acf\fields;
|
|
|
|
require_once 'fieldGoogleMap.php';
|
|
|
|
/**
|
|
* Class FieldLocationField
|
|
* @package wpai_acf_add_on\acf\fields
|
|
*/
|
|
class FieldLocationField extends FieldGoogleMap {
|
|
|
|
/**
|
|
* Field type key
|
|
*/
|
|
public $type = 'location-field';
|
|
|
|
/**
|
|
* @return false|int|mixed|string
|
|
*/
|
|
public function getFieldValue() {
|
|
$values = $this->getOption('values');
|
|
return $values['address'][$this->getPostIndex()] . "|" . $values['lat'][$this->getPostIndex()] . "," . $values['lng'][$this->getPostIndex()];
|
|
}
|
|
} |