Skip to content

Commit

Permalink
Merge pull request #1588 from lindseydiloreto/6.x-gm-remove-deprecated
Browse files Browse the repository at this point in the history
Remove deprecated Twig template
  • Loading branch information
angrybrad authored Feb 6, 2025
2 parents 1b76691 + 582a709 commit 839e615
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 86 deletions.
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.

0 comments on commit 839e615

Please sign in to comment.