Pārlūkot izejas kodu

Tidying up formatting of notice and link

Jordan 4 gadi atpakaļ
vecāks
revīzija
94db4a6db0
1 mainītis faili ar 13 papildinājumiem un 16 dzēšanām
  1. 13 16
      varia/template-parts/content/content-none.php

+ 13 - 16
varia/template-parts/content/content-none.php

@@ -18,22 +18,19 @@
 
 	<div class="page-content responsive-max-width">
 		<?php
-		if ( is_home() && current_user_can( 'publish_posts' ) ) :
-
-			printf(
-				'<p>' . wp_kses(
-					/* translators: 1: link to WP admin new post page. */
-					__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'varia' ),
-					array(
-						'a' => array(
-							'href' => array(),
-						),
-					)
-				) . '</p>',
-				esc_url( admin_url( 'post-new.php' ) )
-			);
-
-		elseif ( is_search() ) :
+		if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
+
+			<p>
+			<?php _e( "Your site is set to show the the most recent posts on your homepage - but you don't have any Posts published.", 'seedlet' ); ?></p>
+
+			<p>
+				<a href="<?php  echo esc_url( admin_url( 'edit.php' ) ); ?>" class="button">
+			<?php /* translators: 1: link to WP admin new post page. */
+			 _e( 'Add or publish Posts', 'seedlet' ); ?>
+				</a>
+			</p>
+
+		<?php elseif ( is_search() ) :
 			?>
 
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'varia' ); ?></p>