Changeset 10202 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php
- Timestamp:
- 08/25/2020 12:15:55 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/archive-wporg_workshop.php
r10192 r10202 1 <?php 2 3 /** 4 * The archive page for Workshops. 5 * 6 * @package WPBBP 7 */ 8 9 get_header();?> 1 <?php get_header(); ?> 10 2 11 3 <main class="site-main"> 12 4 <section> 13 5 <div class="row align-middle between section-heading section-heading--with-space"> 14 < h1 class="section-heading_title h2"><?php esc_html_e( 'Workshops', 'wporg-learn' ); ?></h1>6 <?php the_archive_title( '<h1 class="section-heading_title h2 col-9">', '</h1>' ); ?> 15 7 <a class="section-heading_link button button-large" href="https://learn.wordpress.org/workshop-presenter-application/"><?php esc_html_e( 'Submit Workshop Idea', 'wporg-learn' ); ?></a> 8 <?php if ( is_tax() ) : 9 $series_term = wporg_workshop_series_get_term( $post ); 10 ?> 11 <?php echo wp_kses_post( wpautop( term_description( $series_term->term_id ) ) ); ?> 12 <?php endif; ?> 16 13 </div> 17 14 <hr> 18 <?php get_template_part( 'template-parts/component', 'featured-workshop' ); ?> 15 <?php // Only show the featured workshop on the first page of post type archives. 16 if ( is_post_type_archive() && get_query_var( 'paged' ) < 2 ) : ?> 17 <?php get_template_part( 'template-parts/component', 'featured-workshop' ); ?> 18 <?php endif; ?> 19 19 <?php get_template_part( 'template-parts/component', 'video-grid' ); ?> 20 21 <?php the_posts_pagination(); ?> 20 22 </section> 21 23 <hr> … … 24 26 </main> 25 27 26 <?php 27 get_footer(); 28 <?php get_footer();
Note: See TracChangeset
for help on using the changeset viewer.