Making WordPress.org


Ignore:
Timestamp:
03/12/2024 05:27:53 AM (6 months ago)
Author:
dd32
Message:

wporg-plugins-2024: Adopt the new tile layout for the plugin cards, with description below the card header.

See #7469.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/search-page/render.php

    r13303 r13310  
    2323
    2424    <?php
    25     while ( have_posts() ) {
    26         the_post();
    27 
    28         get_template_part( 'template-parts/plugin', 'index' );
    29     }
     25    // NOTE: wp-block-group-is-layout-grid is here as `wp-block-query-is-layout-grid` is not supported yet by `wporg/link-wrapper`.
     26    echo do_blocks( <<<BLOCKS
     27        <!-- wp:query {"tagName":"div","className":"plugin-cards"} -->
     28        <div class="wp-block-query plugin-cards">
     29                <!-- wp:post-template {"className":"is-style-cards-grid wp-block-group-is-layout-grid","layout":{"type":"grid","minimumColumnWidth":"48%"}} -->
     30                    <!-- wp:wporg/plugin-card /-->
     31                <!-- /wp:post-template -->
     32            </div>
     33        <!-- /wp:query -->
     34    BLOCKS
     35    );
    3036
    3137    if ( ! have_posts() ) {
Note: See TracChangeset for help on using the changeset viewer.