Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -7,27 +7,36 @@
* @version 2.7
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! isset( $meta ) )
return;
if ( is_tax( 'sp_venue' ) )
do_action ( 'sportspress_before_venue_map' );
$address = sp_array_value( $meta, 'sp_address', null );
$address = urlencode( $address );
$latitude = sp_array_value( $meta, 'sp_latitude', null );
$longitude = sp_array_value( $meta, 'sp_longitude', null );
$zoom = get_option( 'sportspress_map_zoom', 15 );
$maptype = get_option( 'sportspress_map_type', 'roadmap' );
$maptype = strtolower( $maptype );
if ( '' === $address ) $address = '+';
if ( 'satellite' !== $maptype ) $maptype = 'roadmap';
if ( $latitude != null && $longitude != null ){
do_action ( 'sp_venue_show_map', $latitude, $longitude, $address, $zoom, $maptype );
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! isset( $meta ) ) {
return;
}
if ( is_tax( 'sp_venue' ) ) {
do_action( 'sportspress_before_venue_map' );
}
$address = sp_array_value( $meta, 'sp_address', null );
$address = urlencode( $address );
$latitude = sp_array_value( $meta, 'sp_latitude', null );
$longitude = sp_array_value( $meta, 'sp_longitude', null );
$zoom = get_option( 'sportspress_map_zoom', 15 );
$maptype = get_option( 'sportspress_map_type', 'roadmap' );
$maptype = strtolower( $maptype );
if ( '' === $address ) {
$address = '+';
}
if ( 'satellite' !== $maptype ) {
$maptype = 'roadmap';
}
if ( $latitude != null && $longitude != null ) {
do_action( 'sp_venue_show_map', $latitude, $longitude, $address, $zoom, $maptype );
}
if ( is_tax( 'sp_venue' ) ) {
do_action( 'sportspress_after_venue_map' );
}
if ( is_tax( 'sp_venue' ) )
do_action ( 'sportspress_after_venue_map' );