diff --git a/lib/WPStrava/ActivityShortcode.php b/lib/WPStrava/ActivityShortcode.php index 8e450e4..bb29188 100644 --- a/lib/WPStrava/ActivityShortcode.php +++ b/lib/WPStrava/ActivityShortcode.php @@ -73,23 +73,25 @@ class WPStrava_ActivityShortcode { return $e->to_html(); } - //sanitize width & height - $map_width = str_replace( '%', '', $atts['map_width'] ); - $map_height = str_replace( '%', '', $atts['map_height'] ); - $map_width = str_replace( 'px', '', $map_width ); - $map_height = str_replace( 'px', '', $map_height ); - + $activity_output = ''; if ( $activity_details ) { - $activity_output = '
| ' . __( 'Est. Moving Time', 'wp-strava' ) . ' | -' . __( 'Distance', 'wp-strava' ) . ' | -' . __( 'Elevation Gain', 'wp-strava' ) . ' | -
|---|---|---|
| ' . $strava_som->time( $route_details->estimated_moving_time ) . ' | -' . $strava_som->distance( $route_details->distance ) . ' | -' . $strava_som->elevation( $route_details->elevation_gain ) . ' | -
| ' . $strava_som->get_time_label() . ' | -' . $strava_som->get_distance_label() . ' | -' . $strava_som->get_elevation_label() . ' | -
| ' . __( 'Est. Moving Time', 'wp-strava' ) . ' | +' . __( 'Distance', 'wp-strava' ) . ' | +' . __( 'Elevation Gain', 'wp-strava' ) . ' | +
|---|---|---|
| ' . $strava_som->time( $route_details->estimated_moving_time ) . ' | +' . $strava_som->distance( $route_details->distance ) . ' | +' . $strava_som->elevation( $route_details->elevation_gain ) . ' | +
| ' . $strava_som->get_time_label() . ' | +' . $strava_som->get_distance_label() . ' | +' . $strava_som->get_elevation_label() . ' | +