Changeset 13196 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/no-results.php
- Timestamp:
- 02/09/2024 03:15:54 AM (2 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/no-results.php
r13195 r13196 8 8 */ 9 9 10 ?>10 if ( is_search() ) : ?> 11 11 12 <section class="no-results not-found">13 < header class="page-header">14 <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'wporg-plugins' ); ?></h1>15 </header><!-- .page-header -->12 <p><?php esc_html_e( 'Sorry, but nothing matched your search terms.', 'wporg-plugins' ); ?></p> 13 <p><?php esc_html_e( 'Please try again with some different keywords.', 'wporg-plugins' ); ?></p> 14 <?php 15 get_search_form(); 16 16 17 <div class="page-content"> 18 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 17 elseif ( is_tax( 'plugin_section', 'favorites' ) ) : 18 if ( is_user_logged_in() ) : 19 $current_user = wp_get_current_user(); 20 ?> 19 21 20 <p> 21 <?php 22 /* translators: URL to post edit screen. */ 23 printf( wp_kses_post( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg-plugins' ) ), esc_url( admin_url( 'post-new.php' ) ) ); 24 ?> 25 </p> 22 <p><?php esc_html_e( 'No favorites have been added, yet.', 'wporg-plugins' ); ?></p> 26 23 27 <?php elseif ( is_search() ) : ?> 28 29 <p><?php esc_html_e( 'Sorry, but nothing matched your search terms.', 'wporg-plugins' ); ?></p> 30 <p><?php esc_html_e( 'Please try again with some different keywords.', 'wporg-plugins' ); ?></p> 31 <?php 32 get_search_form(); 33 34 elseif ( is_tax( 'plugin_section', 'favorites' ) ) : 35 if ( is_user_logged_in() ) : 36 $current_user = wp_get_current_user(); 37 ?> 38 39 <p><?php esc_html_e( 'No favorites have been added, yet.', 'wporg-plugins' ); ?></p> 40 41 <?php if ( get_query_var( 'favorites_user' ) === $current_user->user_nicename ) : ?> 24 <?php if ( get_query_var( 'favorites_user' ) === $current_user->user_nicename ) : ?> 42 25 <p><?php esc_html_e( 'Find a plugin and mark it as a favorite to see it here.', 'wporg-plugins' ); ?></p> 43 26 <p> … … 47 30 ?> 48 31 </p> 49 <?php endif; ?>32 <?php endif; ?> 50 33 51 <?php else : ?>34 <?php else : ?> 52 35 53 <p>54 <?php55 /* translators: URL to login scren. */56 printf( wp_kses_post( __( '<a href="%s">Login to WordPress.org</a> to mark plugins as favorites.', 'wporg-plugins' ) ), esc_url( wp_login_url( 'https://wordpress.org/plugins/browse/favorites/' ) ) );57 ?>58 </p>36 <p> 37 <?php 38 /* translators: URL to login scren. */ 39 printf( wp_kses_post( __( '<a href="%s">Login to WordPress.org</a> to mark plugins as favorites.', 'wporg-plugins' ) ), esc_url( wp_login_url( 'https://wordpress.org/plugins/browse/favorites/' ) ) ); 40 ?> 41 </p> 59 42 60 <?php 61 endif; // is_user_logged_in. 62 else : 63 ?> 43 <?php endif; // is_user_logged_in. 44 else : 45 ?><p><?php esc_html_e( 'Sorry, but nothing matched your query.', 'wporg-plugins' ); ?></p><?php 64 46 65 <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wporg-plugins' ); ?></p> 66 <?php get_search_form(); ?> 67 68 <?php endif; ?> 69 </div><!-- .page-content --> 70 </section><!-- .no-results --> 47 endif;
Note: See TracChangeset
for help on using the changeset viewer.