Making WordPress.org


Ignore:
Timestamp:
07/10/2024 06:17:54 AM (17 months ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@83e59bf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/sidebar-course.php

    r13891 r13893  
    1515?>
    1616
    17 <!-- wp:group {"align":"full","className":"wporg-learn-sidebar-meta-info","layout":{"type":"constrained"}} -->
    18 <div class="wp-block-group alignfull wporg-learn-sidebar-meta-info">
     17<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"className":"wporg-learn-sidebar-meta-info","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
     18<div class="wp-block-group wporg-learn-sidebar-meta-info">
     19   
     20    <?php if ( Sensei_Course::is_user_enrolled( get_the_ID() ) ) : ?>
    1921
    20     <!-- 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"} /-->
     22        <!-- wp:group {"layout":{"type":"constrained"}} -->
     23        <div class="wp-block-group">
    2124
    22     <?php if ( Sensei_Course::is_user_enrolled( get_the_ID() ) ) : ?>
    23     <!-- 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"} -->
    24     <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">
    25         <a href="<?php echo esc_url( get_my_courses_page_url() ); ?>">
    26             <?php esc_html_e( 'All My Courses', 'wporg-learn' ); ?>
    27         </a>
    28     </p>
    29     <!-- /wp:paragraph -->
     25            <!-- 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"} /-->
     26
     27            <!-- wp:paragraph {"style":{"spacing":{"margin":{"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"} -->
     28            <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">
     29                <a href="<?php echo esc_url( get_my_courses_page_url() ); ?>">
     30                    <?php esc_html_e( 'All My Courses', 'wporg-learn' ); ?>
     31                </a>
     32            </p>
     33            <!-- /wp:paragraph -->
     34
     35        </div>
     36        <!-- /wp:group -->
     37
    3038    <?php endif; ?>
    3139
    32     <!-- wp:sensei-lms/button-take-course {"align":"full","borderRadius":2,"className":"is-style-default"} -->
    33     <div class="wp-block-sensei-lms-button-take-course is-style-default wp-block-sensei-button wp-block-button has-text-align-full">
    34         <button class="wp-block-button__link" style="border-radius:2px">
    35             <?php esc_html_e( 'Take this Course', 'wporg-learn' ); ?>
    36         </button>
     40    <!-- wp:group {"layout":{"type":"constrained"}} -->
     41    <div class="wp-block-group">
     42
     43        <!-- wp:sensei-lms/course-actions -->
     44
     45            <!-- wp:sensei-lms/button-take-course {"align":"full"} -->
     46            <div class="wp-block-sensei-lms-button-take-course is-style-default wp-block-sensei-button wp-block-button has-text-align-full">
     47                <button class="wp-block-button__link"><?php esc_html_e( 'Take course', 'wporg-learn' ); ?></button>
     48            </div>
     49            <!-- /wp:sensei-lms/button-take-course -->
     50
     51            <!-- wp:sensei-lms/button-continue-course {"align":"full"} -->
     52            <div class="wp-block-sensei-lms-button-continue-course is-style-default wp-block-sensei-button wp-block-button has-text-align-full">
     53                <a class="wp-block-button__link"><?php esc_html_e( 'Continue', 'wporg-learn' ); ?></a>
     54            </div>
     55            <!-- /wp:sensei-lms/button-continue-course -->
     56
     57            <!-- wp:sensei-lms/button-view-results {"align":"full"} -->
     58            <div class="wp-block-sensei-lms-button-view-results is-style-default wp-block-sensei-button wp-block-button has-text-align-full">
     59                <a class="wp-block-button__link"><?php esc_html_e( 'View results', 'wporg-learn' ); ?></a>
     60            </div>
     61            <!-- /wp:sensei-lms/button-view-results -->
     62           
     63        <!-- /wp:sensei-lms/course-actions -->
     64
     65        <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
     66        <div class="wp-block-buttons">
     67           
     68            <!-- wp:button {"textAlign":"center","width":100,"style":{"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"},"spacing":{"padding":{"left":"var:preset|spacing|10","right":"var:preset|spacing|10"}}},"className":"aligncenter is-style-outline","fontFamily":"inter"} -->
     69            <div class="wp-block-button has-custom-width wp-block-button__width-100 aligncenter is-style-outline has-inter-font-family" style="font-style:normal;font-weight:400">
     70                <a class="wp-block-button__link has-text-align-center wp-element-button" href="https://wordpress.org/playground/demo/?step=playground&amp;theme=twentytwentythree" style="padding-right:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--10)" target="_blank" rel="noreferrer noopener"><?php esc_html_e( 'Practice on a private demo site', 'wporg-learn' ); ?></a>
     71            </div>
     72            <!-- /wp:button -->
     73       
     74        </div>
     75        <!-- /wp:buttons -->
     76
    3777    </div>
    38     <!-- /wp:sensei-lms/button-take-course -->
    39 
    40     <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
    41     <div class="wp-block-buttons">
    42         <!-- wp:button {"textAlign":"center","width":100,"style":{"border":{"radius":"2px"},"spacing":{"padding":{"left":"13px","right":"13px","top":"16px","bottom":"16px"}},"typography":{"lineHeight":0,"fontStyle":"normal","fontWeight":"400"}},"className":"aligncenter is-style-outline","fontSize":"normal","fontFamily":"inter"} -->
    43         <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size aligncenter is-style-outline has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400;line-height:0">
    44             <a class="wp-block-button__link has-text-align-center wp-element-button" href="https://wordpress.org/playground/demo/?step=playground&amp;theme=twentytwentythree" style="border-radius:2px;padding-top:16px;padding-right:13px;padding-bottom:16px;padding-left:13px" target="_blank" rel="noreferrer noopener">
    45                 <?php esc_html_e( 'Practice on a private demo site', 'wporg-learn' ); ?>
    46             </a>
    47         </div>
    48         <!-- /wp:button -->
    49     </div>
    50     <!-- /wp:buttons -->
     78    <!-- /wp:group -->
    5179
    5280    <!-- wp:pattern {"slug":"wporg-learn-2024/sidebar-details"} /-->
Note: See TracChangeset for help on using the changeset viewer.