Changeset 13303 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/src/blocks/search-page/render.php
- Timestamp:
- 03/11/2024 03:11:46 AM (2 years ago)
- 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
r13250 r13303 1 <div id="primary" class="content-area"> 2 <main id="main" class="site-main" 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> 1 2 <main id="main" class="site-main alignwide" role="main"> 3 <header class="page-header"> 4 <h1 class="page-title"> 13 5 <?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 } 6 printf( 7 /* translators: Search query. */ 8 esc_html__( 'Showing results for: %s', 'wporg-plugins' ), 9 '<strong>' . get_search_query() . '</strong>' 10 ); 21 11 ?> 22 </header><!-- .page-header --> 12 </h1> 13 <?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 } 21 ?> 22 </header><!-- .page-header --> 23 23 24 <?php25 while ( have_posts() ) {26 the_post();24 <?php 25 while ( have_posts() ) { 26 the_post(); 27 27 28 get_template_part( 'template-parts/plugin', 'index' );29 }28 get_template_part( 'template-parts/plugin', 'index' ); 29 } 30 30 31 if ( ! have_posts() ) {32 get_template_part( 'template-parts/no-results' );33 }31 if ( ! have_posts() ) { 32 get_template_part( 'template-parts/no-results' ); 33 } 34 34 35 the_posts_pagination(); 36 ?> 37 </main> 38 </div> 35 the_posts_pagination(); 36 ?> 37 </main>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)