Changeset 13873 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php
- Timestamp:
- 07/03/2024 10:55:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-meta-info.php
r13810 r13873 6 6 */ 7 7 8 use function WPOrg_Learn\Sensei\{get_my_courses_page_url} 8 use function WPOrg_Learn\Sensei\{get_my_courses_page_url}; 9 10 $completed_course = Sensei_Utils::user_completed_course( get_the_ID() ); 9 11 10 12 ?> … … 13 15 <div class="wp-block-group alignfull wporg-learn-sidebar-meta-info"> 14 16 17 <!-- wp:sensei-lms/course-progress {<?php echo ( $completed_course ? '"customTextColor":"var(--wp--custom--color--green-50)",' : '' ); ?>"customBarColor":"var(--wp--custom--color--green-50)","height":10,"className":"wporg-learn-sidebar-course-progress"} /--> 18 15 19 <?php if ( Sensei_Course::is_user_enrolled( get_the_ID() ) ) : ?> 16 <!-- wp:paragraph {"style":{" elements":{"link":{"color":{"text":"var:preset|color|blueberry-1"}}},"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":26px}},"textColor":"blueberry-1","fontSize":"normal","fontFamily":"inter","className":""wporg-learn-sidebar-all-courses"} -->17 <p class="has-blueberry-1-color has-text-color has-link-color has-inter-font-family has-normal-font-size wporg-learn-sidebar-all-courses" style="font-style:normal;font-weight:400;line-height:26px ">20 <!-- wp:paragraph {"style":{"spacing":{"margin":{"bottom":"40px","top":"10px"}},"elements":{"link":{"color":{"text":"var:preset|color|blueberry-1"}}},"typography":{"fontStyle":"normal","fontWeight":"400","lineHeight":26px}},"textColor":"blueberry-1","fontSize":"normal","fontFamily":"inter","className":""wporg-learn-sidebar-all-courses"} --> 21 <p class="has-blueberry-1-color has-text-color has-link-color has-inter-font-family has-normal-font-size wporg-learn-sidebar-all-courses" style="font-style:normal;font-weight:400;line-height:26px;margin-top:10px;margin-bottom:40px"> 18 22 <a href="<?php echo esc_url( get_my_courses_page_url() ); ?>"> 19 23 <?php esc_html_e( 'All My Courses', 'wporg-learn' ); ?> … … 22 26 <!-- /wp:paragraph --> 23 27 <?php endif; ?> 24 25 <!-- wp:sensei-lms/course-progress {"barColor":"blueberry-1","barBackgroundColor":"blueberry-3","height":8,"className":"wporg-learn-sidebar-course-progress"} /-->26 28 27 29 <!-- wp:sensei-lms/button-take-course {"align":"full","borderRadius":2,"className":"is-style-default"} -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)