From 6616fa54b30fad668af0cb3e0b8349301b0b2ac2 Mon Sep 17 00:00:00 2001 From: Ren <18050944+renintw@users.noreply.github.com> Date: Tue, 10 Sep 2024 02:31:27 +0800 Subject: [PATCH] 2871 follow-up style updates (#2876) * Update sign-in block styles * Update sidebar styles * Update single quiz styles * Update quiz-graded page styles * Add a separator to the header for standalone * Hide course progress counter when a user is not enrolled * Make sure the inner progress bar is on top of the separator --- .../patterns/sensei-lesson-header.php | 7 +- .../wporg-learn-2024/src/style/_sensei.scss | 367 +++++++++++++++--- .../templates/single-quiz.html | 6 +- .../themes/pub/wporg-learn-2024/theme.json | 1 + 4 files changed, 318 insertions(+), 63 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-header.php b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-header.php index 720ff2e0b..67da9358b 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-header.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/sensei-lesson-header.php @@ -7,6 +7,9 @@ * Original source: https://github.com/Automattic/sensei/blob/af62fb1115daf2063bc56331a7d8b1b3ea805866/themes/sensei-course-theme/patterns/header.html */ +$course_id = Sensei()->lesson->get_course_id( get_the_ID() ); +$is_user_enrolled = Sensei_Course::is_user_enrolled( $course_id ); + ?> @@ -22,7 +25,9 @@