Making WordPress.org


Ignore:
Timestamp:
12/02/2020 08:37:06 PM (5 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/886286a12b9802be8d34715149f55ddf67832432...a9f7ae49349fbbf21ef00957061c66055c90a1a0

File:
1 edited

Legend:

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

    r10422 r10486  
    4545
    4646        <hr>
     47
    4748        <section>
    4849            <div class="row align-middle between section-heading">
     
    6364            ?>
    6465        </section>
     66
    6567        <hr>
     68
     69        <?php $discussion_events = \WPOrg_Learn\Events\get_discussion_events(); ?>
     70        <?php if ( ! empty( $discussion_events ) ) : ?>
     71            <section class="wporg-learn-workshop-discussion-events">
     72                <div class="row align-middle between section-heading">
     73                    <h2 class="h4 section-heading_title">
     74                        <?php esc_html_e( 'Upcoming Discussion Groups', 'wporg-learn' ); ?>
     75                    </h2>
     76                    <a class="section-heading_link" href="https://www.meetup.com/learn-wordpress-discussions/">
     77                        <?php esc_html_e( 'View All »', 'wporg-learn' ); ?>
     78                    </a>
     79                </div>
     80                <ul class="discussion-event-list">
     81                    <?php foreach ( $discussion_events as $event ) : ?>
     82                        <?php get_template_part( 'template-parts/component', 'discussion-event-short-item', $event ); ?>
     83                    <?php endforeach; ?>
     84                </ul>
     85                <p>
     86                    <?php
     87                    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/'
     90                    );
     91                    ?>
     92                </p>
     93            </section>
     94
     95            <hr>
     96        <?php endif; ?>
    6697
    6798        <?php get_template_part( 'template-parts/component', 'submit-idea-cta', array( 'icon' => 'lightbulb' ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.