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/front-page/render.php

    r13303 r13310  
    7777
    7878            <?php
    79             while ( $section_query->have_posts() ) :
    80                 $section_query->the_post();
    81 
    82                 get_template_part( 'template-parts/plugin', 'index' );
    83             endwhile;
     79            // NOTE: wp-block-group-is-layout-grid is here as `wp-block-query-is-layout-grid` is not supported yet by `wporg/link-wrapper`.
     80            echo do_blocks( <<<BLOCKS
     81            <!-- wp:query {"tagName":"div","className":"plugin-cards"} -->
     82                <div class="wp-block-query plugin-cards">
     83                    <!-- wp:post-template {"className":"is-style-cards-grid wp-block-group-is-layout-grid","layout":{"type":"grid","minimumColumnWidth":"48%"}} -->
     84                        <!-- wp:wporg/plugin-card /-->
     85                    <!-- /wp:post-template -->
     86                </div>
     87            <!-- /wp:query -->
     88            BLOCKS
     89            );
    8490            ?>
    8591        </section>
Note: See TracChangeset for help on using the changeset viewer.