Minor changes for PRO GoogleMaps moduel integration

This commit is contained in:
savvasha
2019-02-19 18:09:46 +02:00
parent 2231d10410
commit 5fbf509e7c
2 changed files with 9 additions and 3 deletions

View File

@@ -24,7 +24,9 @@ if ( '' === $address ) $address = '+';
if ( 'satellite' !== $maptype ) $maptype = 'roadmap';
if ( $latitude != null && $longitude != null ){
if ( ! class_exists( 'SportsPress_GoogleMaps' ) ) {
if ( class_exists( 'SportsPress_GoogleMaps' ) ) {
do_action ( 'sp_venue_show_googlemaps', $latitude, $longitude, $zoom, $maptype );
}else{
do_action ( 'sp_venue_show_openstreetmap', $latitude, $longitude, $zoom, $maptype );
}
}