Making WordPress.org


Ignore:
Timestamp:
03/19/2024 03:59:36 AM (2 years ago)
Author:
dd32
Message:

wporg-plugins-2024: Bye open sans, correct the site title link, update the search page HTML.

File:
1 edited

Legend:

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

    r13341 r13353  
    11
    2 <main id="main" class="site-main alignwide" role="main">
    3     <header class="page-header">
    4         <h1 class="page-title">
    5             <?php
    6             printf(
    7                 /* translators: Search query. */
    8                 esc_html__( 'Showing results for: %s', 'wporg-plugins' ),
    9                 '<strong>' . get_search_query() . '</strong>'
    10             );
    11             ?>
    12         </h1>
     2<header class="page-header">
     3    <h1 class="page-title">
    134        <?php
    14         if ( get_query_var( 'block_search' ) ) {
    15             printf(
    16                 /* translators: %s: Search URL */
    17                 '<p>' . __( 'Searching the block directory. <a href="%s">Search all plugins</a>.', 'wporg-plugins' ) . '</p>',
    18                 remove_query_arg( 'block_search' )
    19             );
    20         }
     5        printf(
     6            /* translators: Search query. */
     7            esc_html__( 'Showing results for: %s', 'wporg-plugins' ),
     8            '<strong>' . get_search_query() . '</strong>'
     9        );
    2110        ?>
    22     </header><!-- .page-header -->
     11    </h1>
     12    <?php
     13    if ( get_query_var( 'block_search' ) ) {
     14        printf(
     15            /* translators: %s: Search URL */
     16            '<p>' . __( 'Searching the block directory. <a href="%s">Search all plugins</a>.', 'wporg-plugins' ) . '</p>',
     17            remove_query_arg( 'block_search' )
     18        );
     19    }
     20    ?>
     21</header><!-- .page-header -->
    2322
    24     <?php
    25     echo do_blocks( <<<BLOCKS
    26         <!-- wp:wporg/filter-bar /-->
    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","layout":{"type":"grid","minimumColumnWidth":"48%"}} -->
    30                     <!-- wp:wporg/plugin-card /-->
    31                 <!-- /wp:post-template -->
    32             </div>
    33         <!-- /wp:query -->
    34     BLOCKS
    35     );
     23<?php
     24echo do_blocks( <<<BLOCKS
     25    <!-- wp:wporg/filter-bar /-->
     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","layout":{"type":"grid","minimumColumnWidth":"48%"}} -->
     29                <!-- wp:wporg/plugin-card /-->
     30            <!-- /wp:post-template -->
     31        </div>
     32    <!-- /wp:query -->
     33BLOCKS
     34);
    3635
    37     if ( ! have_posts() ) {
    38         get_template_part( 'template-parts/no-results' );
    39     }
     36if ( ! have_posts() ) {
     37    get_template_part( 'template-parts/no-results' );
     38}
    4039
    41     the_posts_pagination();
    42     ?>
    43 </main>
     40the_posts_pagination();
Note: See TracChangeset for help on using the changeset viewer.