diff --git a/assets/css/frontend.css b/assets/css/frontend.css index 699d05a..81580d8 100644 --- a/assets/css/frontend.css +++ b/assets/css/frontend.css @@ -15,11 +15,50 @@ .mystats-shortcode-container th { background-color: #f4f4f4; } + .mystats-activity-table td:nth-child(4), .mystats-activity-table td:nth-child(5) { text-align: right; } +/* Styles for the nested details table */ +.mystats-activity-details-row > .mystats-activity-details-cell { + padding: 0 !important; + border-top: none; + border-bottom: 1px solid #ddd; +} + +.mystats-nested-details-table { + width: 100%; + margin: 0; + background-color: #fdfdfd; + border: none !important; + border-collapse: collapse; +} + +.mystats-nested-details-table th, +.mystats-nested-details-table td { + border: none !important; + padding: 6px 12px; + text-align: center; + font-size: 0.9em; + width: 33.33%; +} + +.mystats-nested-details-table th { + background-color: transparent; + font-weight: normal; + color: #777; + padding-top: 8px; + padding-bottom: 2px; +} + +.mystats-nested-details-table td { + font-weight: bold; + padding-top: 0; + padding-bottom: 8px; +} + /* Shortcode [moje_statystyki_wpis] */ .mystat-single-activity-shortcode { border: 1px solid #eee; diff --git a/moje-statystyki.php b/moje-statystyki.php index 52cd826..d34e161 100644 --- a/moje-statystyki.php +++ b/moje-statystyki.php @@ -1915,6 +1915,7 @@ function mystat_shortcode_handler( $atts ) { Data Tytuł Kategoria + Dystans Czas Sprzęt @@ -1931,6 +1932,28 @@ function mystat_shortcode_handler( $atts ) { duration ); ?> equipment_name ); ?> + avg_speed || $row->avg_heart_rate || $row->avg_cadence ) : ?> + + + + + + avg_speed) echo ''; ?> + avg_heart_rate) echo ''; ?> + avg_cadence) echo ''; ?> + + + + + avg_speed) echo ''; ?> + avg_heart_rate) echo ''; ?> + avg_cadence) echo ''; ?> + + +
Śr. prędkośćŚr. tętnoŚr. kadencja
' . number_format( $row->avg_speed, 1, ',', ' ' ) . ' km/h' . $row->avg_heart_rate . ' bpm' . $row->avg_cadence . ' rpm
+ + +