Merge pull request #67 from cmanon/feature/64-add-activity-description

Feature/64 add activity description
This commit is contained in:
Justin Foell
2020-11-27 11:57:18 -06:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -119,6 +119,7 @@ On the WP-Strava settings page you cannot currently remove and add another athle
= 2.5.0 =
Fix missing translation domain on "Save Changes" in settings. https://wordpress.org/support/topic/small-fix-in-settings-php-function-print_clear_input
Refined styles for responsive tables https://wordpress.org/support/topic/responsive-strava-activity-table/
Add activity description under image (if set) https://wordpress.org/support/topic/show-activity-description/
= 2.4.0 =
+4
View File
@@ -59,6 +59,10 @@ class WPStrava_ActivityRenderer {
$activity_details->name
);
if ( ! empty( $activity_details->description ) ) {
$activity_output .= '<div class="wp-strava-activity-description">' . esc_html( $activity_details->description ) . '</div>';
}
$activity_output .= '</div>';
} // End if( $activity_details ).
return $activity_output;