<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait hasMapTrait {
|
/**
|
* @var string A hasMap of the item
|
*/
|
protected string $hasMap;
|
|
public function getHasMap():?string
|
{
|
return $this->hasMap??null;
|
}
|
public function setHasMap(string $hasMap):void
|
{
|
if (!filter_var($hasMap, FILTER_VALIDATE_URL)) {
|
error_log('[SEO]Invalid map url: '.$hasMap);
|
}
|
$this->hasMap = $hasMap;
|
}
|
|
public function getHasMapFieldConfig():array
|
{
|
return [
|
'type' => 'url',
|
'label' => 'Has Map',
|
'hint' => 'A link to the Google Map location, if available'
|
];
|
}
|
}
|