diff --git a/wp-content/themes/pub/wporg-learn-2024/functions.php b/wp-content/themes/pub/wporg-learn-2024/functions.php index 1d025bd7e..f5c3c1f3a 100644 --- a/wp-content/themes/pub/wporg-learn-2024/functions.php +++ b/wp-content/themes/pub/wporg-learn-2024/functions.php @@ -6,6 +6,7 @@ // Block files require_once __DIR__ . '/src/course-grid/index.php'; +require_once __DIR__ . '/src/course-outline/index.php'; require_once __DIR__ . '/src/learning-pathway-cards/index.php'; require_once __DIR__ . '/src/learning-pathway-header/index.php'; require_once __DIR__ . '/src/lesson-grid/index.php'; diff --git a/wp-content/themes/pub/wporg-learn-2024/package.json b/wp-content/themes/pub/wporg-learn-2024/package.json index e15a5c9bd..edc6065d1 100644 --- a/wp-content/themes/pub/wporg-learn-2024/package.json +++ b/wp-content/themes/pub/wporg-learn-2024/package.json @@ -7,7 +7,9 @@ "private": true, "devDependencies": { "@wordpress/scripts": "27.2.0", - "rtlcss-webpack-plugin": "4.0.7" + "rtlcss-webpack-plugin": "4.0.7", + "@wordpress/icons": "^10.2.0", + "react-dom": "^18.3.1" }, "eslintConfig": { "extends": "../../../../.eslintrc.js" diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/page-my-courses-content.php b/wp-content/themes/pub/wporg-learn-2024/patterns/page-my-courses-content.php index ffe258336..9570fc5d9 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/page-my-courses-content.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/page-my-courses-content.php @@ -46,7 +46,7 @@ - + diff --git a/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php b/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php index 02a76f7f0..b75692afe 100644 --- a/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php +++ b/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php @@ -5,16 +5,20 @@ * Inserter: no */ - use function WPOrg_Learn\Sensei\{get_my_courses_page_url} +use function WPOrg_Learn\Sensei\{get_my_courses_page_url}; + +$completed_course = Sensei_Utils::user_completed_course( get_the_ID() ); ?>
+ + - -