Making WordPress.org


Ignore:
Timestamp:
08/25/2020 12:15:55 AM (6 years ago)
Author:
dufresnesteven
Message:

WordPress.org Learn: Sync with GitHub

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(); ?>
    102
    113<main class="site-main">
    124    <section>
    135        <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>' ); ?>
    157            <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; ?>
    1613        </div>
    1714        <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; ?>
    1919        <?php get_template_part( 'template-parts/component', 'video-grid' ); ?>
     20
     21        <?php the_posts_pagination(); ?>
    2022    </section>
    2123    <hr>
     
    2426</main>
    2527
    26 <?php
    27 get_footer();
     28<?php get_footer();
Note: See TracChangeset for help on using the changeset viewer.