Final Commit

This commit is contained in:
savvasha
2019-02-22 18:07:29 +02:00
parent eaf73961d7
commit 2392b582d9
5 changed files with 16 additions and 15 deletions

View File

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