| | |
| | | namespace JVBase\meta; |
| | | |
| | | use DateTime; |
| | | use JVBase\base\Site; |
| | | use JVBase\integrations\services\GoogleMaps; |
| | | use JVBase\registrar\Registrar; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | |
| | | protected static function renderLocation(string $name, mixed $value, array $config): string |
| | | { |
| | | $googleMaps = JVB()->connect('maps'); |
| | | if (!Site::hasIntegration('maps')) { |
| | | return ''; |
| | | } |
| | | $googleMaps = GoogleMaps::getInstance(); |
| | | if (!$googleMaps->isSetUp()) { |
| | | return '<div class="notice notice-warning"><p>Google Maps not configured. Please configure in Integrations settings.</p></div>'; |
| | | } |