Changeset 10169 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-featured-workshop.php
- Timestamp:
- 08/13/2020 11:43:14 PM (6 years ago)
- 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 12 12 13 13 <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> 16 22 <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> 18 24 <div class="row"> 19 25 <div class="col-8"> … … 22 28 <div class="col-4 featured-workshop_content_author"> 23 29 <?php 24 $presenters = wporg_get_workshop_presenters();30 $presenters = wporg_get_workshop_presenters(); 25 31 26 32 // 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 ); 31 40 endif; 32 41 ?> … … 34 43 </div> 35 44 </div> 36 <?php endwhile; ?> 45 <?php 46 endwhile; 47 wp_reset_postdata(); 48 ?> 37 49 </div>
Note: See TracChangeset
for help on using the changeset viewer.