Making WordPress.org


Ignore:
Timestamp:
08/13/2020 11:43:14 PM (6 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/1accd3db38a60230689bdc157f9e82081d35d163...38e7793fd20434d72ca898988d017ba2009fb677

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-featured-workshop.php

    r10162 r10169  
    1212
    1313<div class="featured-workshop">
    14     <?php while ( $featured_workshop->have_posts() ) : $featured_workshop->the_post(); ?>
    15         <div class="featured-workshop_video"><?php echo wporg_get_post_thumbnail( $post, 'full' ); ?></div>
     14    <?php while ( $featured_workshop->have_posts() ) :
     15        $featured_workshop->the_post(); ?>
     16        <div class="featured-workshop_video">
     17            <?php
     18            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     19            echo wporg_get_post_thumbnail( $post, 'full' );
     20            ?>
     21        </div>
    1622        <div class="featured-workshop_content">
    17             <a class="featured-workshop_title" href="<?php echo esc_url( get_the_permalink() ); ?>"><?php echo the_title() ?></a>
     23            <a class="featured-workshop_title" href="<?php echo esc_url( get_the_permalink() ); ?>"><?php the_title(); ?></a>
    1824            <div class="row">
    1925                <div class="col-8">
     
    2228                <div class="col-4 featured-workshop_content_author">
    2329                    <?php
    24                         $presenters = wporg_get_workshop_presenters();
     30                    $presenters = wporg_get_workshop_presenters();
    2531
    2632                        // We'll only display the first author in this view
    27                         if ( isset( $presenters[0] ) ) :
    28                             get_template_part( 'template-parts/component', 'workshop-presenter',
    29                                 array( 'presenter' => $presenters[0], 'class' => 'workshop-presenter--is-centered' )
    30                             );
     33                    if ( isset( $presenters[0] ) ) :
     34                        get_template_part( 'template-parts/component', 'workshop-presenter',
     35                            array(
     36                                'presenter' => $presenters[0],
     37                                'class' => 'workshop-presenter--is-centered',
     38                            )
     39                        );
    3140                        endif;
    3241                    ?>
     
    3443            </div>
    3544        </div>
    36     <?php endwhile; ?>
     45        <?php
     46        endwhile;
     47        wp_reset_postdata();
     48    ?>
    3749</div>
Note: See TracChangeset for help on using the changeset viewer.