Making WordPress.org


Ignore:
Timestamp:
11/25/2021 02:19:57 AM (5 years ago)
Author:
tellyworth
Message:

WordPress.org Learn: sync with GitHub

Props hlashbrooke.

​https://github.com/WordPress/learn/compare/2081edb762a0d21eba6d2299e8531db985b004c4...811f994adb58f17f7f2c5dd004d1ce37db1467c0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/front-page.php

    r11338 r11342  
    3333                </section>
    3434
    35                 <section class="about-training">
    36                         <div class="getin">
    37                                 <div class="graphic"><span class="dashicons dashicons-welcome-learn-more"></span></div>
    38                                 <div>
    39                                         <h2 class="h3"><?php esc_html_e( 'Get Involved', 'wporg-learn' ); ?></h2>
    40                                         <p><?php esc_html_e( 'Want to get involved in creating the content for Learn WordPress?', 'wporg-learn' ); ?></p>
    41                                         <a href="//learn.wordpress.org/contribute"><?php esc_html_e( 'Learn how to contribute', 'wporg-learn' ); ?></a>
    42                                 </div>
     35                <section>
     36                        <div class="row align-middle between section-heading">
     37                                <h2 class="h4 section-heading_title"><?php esc_html_e( 'Recent Courses', 'wporg-learn' ); ?></h2>
     38                                <a class="section-heading_link" href="/courses/"><span aria-hidden="true"><?php esc_html_e( 'View All Courses', 'wporg-learn' ); ?></span><span class="screen-reader-text"><?php esc_html_e( 'View All Courses', 'wporg-learn' ); ?></span></a>
    4339                        </div>
     40
     41                        <?php
     42                        $args = array(
     43                                'query' => wporg_get_archive_query(
     44                                        'course',
     45                                        array(
     46                                                'posts_per_page' => 2,
     47                                                'meta_query' =>
     48                                                        array(
     49                                                                array(
     50                                                                        'key'   => '_course_featured',
     51                                                                        'value' => 'featured',
     52                                                                ),
     53                                                        ),
     54                                        ),
     55                                ),
     56                        );
     57                        get_template_part( 'template-parts/component', 'course-grid', $args );
     58                        ?>
    4459                </section>
    4560
    … …  
    4964                        <div class="row align-middle between section-heading">
    5065                                <h2 class="h4 section-heading_title"><?php esc_html_e( 'Recent Workshops', 'wporg-learn' ); ?></h2>
    51                                 <a class="section-heading_link" href="/workshops"><span aria-hidden="true"><?php esc_html_e( 'View All »', 'wporg-learn' ); ?></span><span class="screen-reader-text"><?php esc_html_e( 'View All Workshops', 'wporg-learn' ); ?></span></a>
     66                                <a class="section-heading_link" href="/workshops/"><span aria-hidden="true"><?php esc_html_e( 'View All Workshops', 'wporg-learn' ); ?></span><span class="screen-reader-text"><?php esc_html_e( 'View All Workshops', 'wporg-learn' ); ?></span></a>
    5267                        </div>
    5368
    … …  
    7590                                        </h2>
    7691                                        <a class="section-heading_link" href="/social-learning/">
    77                                                 <?php esc_html_e( 'View All »', 'wporg-learn' ); ?>
     92                                                <?php esc_html_e( 'View All Social Learning Spaces', 'wporg-learn' ); ?>
    7893                                        </a>
    7994                                </div>
    … …  
    86101                                        <?php
    87102                                        printf(
    88                                                 wp_kses_post( __( 'Want to facilitate a discussion group about a workshop? <a href="%s">Apply to become a facilitator.</a>', 'wporg-learn' ) ),
    89                                                 'https://learn.wordpress.org/discussion-groups/'
     103                                                wp_kses_post( __( 'Want to facilitate a social learning space? <a href="%s">Apply to become a facilitator</a>.', 'wporg-learn' ) ),
     104                                                'https://learn.wordpress.org/social-learning/'
    90105                                        );
    91106                                        ?>
    … …  
    96111                <?php endif; ?>
    97112
     113                <section class="about-training">
     114                        <div class="getin">
     115                                <div class="graphic"><span class="dashicons dashicons-welcome-learn-more"></span></div>
     116                                <div>
     117                                        <h2 class="h3"><?php esc_html_e( 'Get Involved', 'wporg-learn' ); ?></h2>
     118                                        <p><?php esc_html_e( 'Want to get involved in creating the content for Learn WordPress?', 'wporg-learn' ); ?></p>
     119                                        <a href="//learn.wordpress.org/contribute"><?php esc_html_e( 'Learn how to contribute', 'wporg-learn' ); ?></a>
     120                                </div>
     121                        </div>
     122                </section>
     123
     124                <hr>
     125
    98126                <?php get_template_part( 'template-parts/component', 'submit-idea-cta', array( 'icon' => 'lightbulb' ) ); ?>
    99127        </main>
Note: See TracChangeset for help on using the changeset viewer.