Some housekeeping

This commit is contained in:
savvasha
2019-02-21 23:56:24 +02:00
parent 39b7544270
commit eaf73961d7
5 changed files with 39 additions and 44 deletions

View File

@@ -114,7 +114,7 @@ class SP_Admin_Taxonomies {
endif;
?>
<div class="form-field">
<p><div id="sp-location-picker" style="width: 95%; height: 320px"></div></p>
<p><div id="sp-location-picker" class="sp-location-picker" style="width: 95%; height: 320px"></div></p>
<p><?php _e( "Drag the marker to the venue's location.", 'sportspress' ); ?></p>
</div>
<div class="form-field">
@@ -149,16 +149,10 @@ class SP_Admin_Taxonomies {
$latitude = is_numeric( esc_attr( $term_meta['sp_latitude'] ) ) ? esc_attr( $term_meta['sp_latitude'] ) : '';
$longitude = is_numeric( esc_attr( $term_meta['sp_longitude'] ) ) ? esc_attr( $term_meta['sp_longitude'] ) : '';
$address = esc_attr( $term_meta['sp_address'] ) ? esc_attr( $term_meta['sp_address'] ) : '';
if ( class_exists( 'SportsPress_GoogleMaps' ) ) {
do_action ( 'sp_venue_edit_googlemaps', $latitude, $longitude, $address );
}else{
do_action ( 'sp_venue_edit_openstreetmap', $latitude, $longitude, $address );
}
?>
<tr class="form-field">
<td colspan="2">
<p><div id="sp-location-picker" style="width: 95%; height: 320px"></div></p>
<p><div id="sp-location-picker" class="sp-location-picker" style="width: 95%; height: 320px"></div></p>
<p class="description"><?php _e( "Drag the marker to the venue's location.", 'sportspress' ); ?></p>
</td>
</tr>