diff --git a/assets/css/admin.css b/assets/css/admin.css index 3fb47930b..ac33cec31 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -978,7 +978,7 @@ button.prpl-info-icon { /*------------------------------------*\ Dashboard widget styles. \*------------------------------------*/ -#progress_planner_dashboard_widget_score .prpl-dashboard-widget { +#progress_planner_dashboard_widget_score .prpl-dashboard-widget.show-badges { display: grid; grid-template-columns: 1fr 1px 140px; grid-gap: calc(var(--prpl-gap) / 2); diff --git a/classes/admin/class-dashboard-widget-score.php b/classes/admin/class-dashboard-widget-score.php index 23f02c691..8efd51340 100644 --- a/classes/admin/class-dashboard-widget-score.php +++ b/classes/admin/class-dashboard-widget-score.php @@ -39,19 +39,24 @@ protected function get_title() { */ public function render_widget() { Page::enqueue_styles(); + + $show_badges = ( + $this->get_badge_details( 'content' )['progress']['progress'] || + $this->get_badge_details( 'streak' )['progress']['progress'] + ); ?> -