Changeset 13310 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/archive-page/render.php
- Timestamp:
- 03/12/2024 05:27:53 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/archive-page/render.php
r13303 r13310 13 13 <main id="main" class="site-main alignwide" role="main"> 14 14 15 <header class="page-header"> 15 <header class="page-header"> 16 <?php 17 the_archive_title( '<h1 class="page-title">', '</h1>' ); 18 the_archive_description( '<div class="taxonomy-description">', '</div>' ); 19 ?> 20 </header> 21 16 22 <?php 17 the_archive_title( '<h1 class="page-title">', '</h1>' ); 18 the_archive_description( '<div class="taxonomy-description">', '</div>' ); 23 24 // NOTE: wp-block-group-is-layout-grid is here as `wp-block-query-is-layout-grid` is not supported yet by `wporg/link-wrapper`. 25 echo do_blocks( <<<BLOCKS 26 <!-- wp:query {"tagName":"div","className":"plugin-cards"} --> 27 <div class="wp-block-query plugin-cards"> 28 <!-- wp:post-template {"className":"is-style-cards-grid wp-block-group-is-layout-grid","layout":{"type":"grid","minimumColumnWidth":"48%"}} --> 29 <!-- wp:wporg/plugin-card /--> 30 <!-- /wp:post-template --> 31 </div> 32 <!-- /wp:query --> 33 BLOCKS 34 ); 35 36 if ( ! have_posts() ) { 37 get_template_part( 'template-parts/no-results' ); 38 } 39 40 the_posts_pagination(); 41 19 42 ?> 20 </header><!-- .page-header -->21 22 <?php23 /* Start the Loop */24 while ( $wp_query->have_posts() ) {25 the_post();26 27 get_template_part( 'template-parts/plugin' );28 }29 30 if ( ! have_posts() ) {31 get_template_part( 'template-parts/no-results' );32 }33 34 the_posts_pagination();35 36 ?>37 38 43 </main><!-- #main -->
Note: See TracChangeset
for help on using the changeset viewer.