Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/fields/GoogleMaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,6 @@ class GoogleMaps extends Field implements FieldInterface
*/
public function getMappingTemplate(): string
{
// By default, assume a modern version
$pre43 = false;

// Get plugins service
$plugins = Craft::$app->getPlugins();

// If the Google Maps plugin is installed & enabled
if ($plugins->isPluginEnabled('google-maps')) {
// Get info for Google Maps plugin
$info = $plugins->getPluginInfo('google-maps');
// Whether Google Maps plugin version is earlier than 4.3
$pre43 = (version_compare($info['version'], '4.3', '<'));
}

// If earlier than Google Maps v4.3, return old version of the template
if ($pre43) {
return 'feed-me/_includes/fields/google-maps-before-4-3';
}

// By default, return the modern version of the template
return 'feed-me/_includes/fields/google-maps';
}

Expand Down
66 changes: 0 additions & 66 deletions src/templates/_includes/fields/google-maps-before-4-3.html

This file was deleted.

Loading