Changeset 6284 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/content-none.php
- Timestamp:
- 12/18/2017 05:42:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/content-none.php
r6024 r6284 16 16 17 17 <div class="page-content"> 18 <?php 19 if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 18 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 20 19 21 <p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg-plugins' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> 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 26 23 27 <?php elseif ( is_search() ) : ?> … … 29 33 30 34 elseif ( is_tax( 'plugin_section', 'favorites' ) ) : 31 32 33 ?>34 35 if ( is_user_logged_in() ) : 36 $current_user = wp_get_current_user(); 37 ?> 38 35 39 <p><?php esc_html_e( 'No favorites have been added, yet.', 'wporg-plugins' ); ?></p> 36 40 37 41 <?php if ( get_query_var( 'favorites_user' ) === $current_user->user_nicename ) : ?> 38 42 <p><?php esc_html_e( 'Find a plugin and mark it as a favorite to see it here.', 'wporg-plugins' ); ?></p> 39 <p><?php printf( __( 'Your favorite plugins are also shared on <a href="%s">your profile</a>.', 'wporg-plugins' ), esc_url( 'https://profiles.wordpress.org/' . $current_user->user_nicename ) ); ?></p> 43 <p> 44 <?php 45 /* translators: Link to user profile. */ 46 printf( wp_kses_post( __( 'Your favorite plugins are also shared on <a href="%s">your profile</a>.', 'wporg-plugins' ) ), esc_url( 'https://profiles.wordpress.org/' . $current_user->user_nicename ) ); 47 ?> 48 </p> 40 49 <?php endif; ?> 41 50 42 <?php else : ?> 43 44 <p><?php printf( __( '<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/' ) ) ); ?></p> 51 <?php else : ?> 52 53 <p> 54 <?php 55 /* 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> 45 59 46 60 <?php 47 endif; // is_user_logged_in() 48 49 61 endif; // is_user_logged_in. 62 else : 63 ?> 50 64 51 65 <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wporg-plugins' ); ?></p> 52 <?php 53 get_search_form(); 66 <?php get_search_form(); ?> 54 67 55 endif; ?>68 <?php endif; ?> 56 69 </div><!-- .page-content --> 57 70 </section><!-- .no-results -->
Note: See TracChangeset
for help on using the changeset viewer.