Changeset 12279 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-featured-workshop.php
- Timestamp:
- 11/27/2022 10:32:48 PM (4 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
r11545 r12279 7 7 * @package WPBBP 8 8 */ 9 10 use function WPOrg_Learn\Post_Meta\get_workshop_duration; 9 11 10 12 $featured_workshop = wporg_get_featured_workshops(); … … 17 19 $post = $featured_workshop; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited 18 20 setup_postdata( $post ); 21 $duration = get_workshop_duration( $post, 'string' ); 19 22 ?> 20 23 <div class="featured-workshop_video"> 21 <a href="<?php echo esc_url( get_the_permalink() ); ?>" >24 <a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php the_title(); ?>"> 22 25 <?php 23 26 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped … … 27 30 </div> 28 31 <div class="featured-workshop_content"> 29 <h 3class="featured-workshop_title">32 <h2 class="featured-workshop_title"> 30 33 <a href="<?php echo esc_url( get_the_permalink() ); ?>"><?php the_title(); ?></a> 31 </h3> 34 </h2> 35 <?php if ( isset( $duration ) ) { ?> 36 <p class="featured-workshop_content_duration">Length: <?php echo esc_html( $duration ); ?></p> 37 <?php } ?> 32 38 <div class="row"> 33 39 <div class="col-8"> 34 < p><?php the_excerpt(); ?></p>40 <?php the_excerpt(); ?> 35 41 </div> 36 42 <div class="col-4 featured-workshop_content_author">
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)