Skip to content

Commit 839e615

Browse files
authored
Merge pull request #1588 from lindseydiloreto/6.x-gm-remove-deprecated
Remove deprecated Twig template
2 parents 1b76691 + 582a709 commit 839e615

File tree

2 files changed

+0
-86
lines changed

2 files changed

+0
-86
lines changed

src/fields/GoogleMaps.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,6 @@ class GoogleMaps extends Field implements FieldInterface
3535
*/
3636
public function getMappingTemplate(): string
3737
{
38-
// By default, assume a modern version
39-
$pre43 = false;
40-
41-
// Get plugins service
42-
$plugins = Craft::$app->getPlugins();
43-
44-
// If the Google Maps plugin is installed & enabled
45-
if ($plugins->isPluginEnabled('google-maps')) {
46-
// Get info for Google Maps plugin
47-
$info = $plugins->getPluginInfo('google-maps');
48-
// Whether Google Maps plugin version is earlier than 4.3
49-
$pre43 = (version_compare($info['version'], '4.3', '<'));
50-
}
51-
52-
// If earlier than Google Maps v4.3, return old version of the template
53-
if ($pre43) {
54-
return 'feed-me/_includes/fields/google-maps-before-4-3';
55-
}
56-
57-
// By default, return the modern version of the template
5838
return 'feed-me/_includes/fields/google-maps';
5939
}
6040

src/templates/_includes/fields/google-maps-before-4-3.html

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)