mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-11 18:56:18 +09:00
Fix array indices on map widget
This commit is contained in:
@@ -120,15 +120,15 @@ class WPStrava_LatestMapWidget extends WP_Widget {
|
||||
}
|
||||
|
||||
if ( $activity ) {
|
||||
echo $args['$before_widget'];
|
||||
echo $args['before_widget'];
|
||||
if ( $title ) {
|
||||
echo $args['$before_title'] . $title . $args['$after_title'];
|
||||
echo $args['before_title'] . $title . $args['after_title'];
|
||||
}
|
||||
|
||||
echo "<a title='{$activity->name}' href='http://app.strava.com/activities/{$activity->id}'>";
|
||||
echo $this->get_static_image( $athlete_token, $activity, $build_new );
|
||||
echo '</a>';
|
||||
echo $args['$after_widget'];
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user