Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/template-parts/content-none.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Template part for displaying a message that posts cannot be found
4 + *
5 + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6 + *
7 + * @package Blocksy
8 + */
9 +
10 + echo '<div class="entry-content is-layout-flow">';
11 +
12 + if (is_home() && current_user_can('publish_posts')) {
13 + printf(
14 + '<p>' . wp_kses(
15 + /* translators: 1: link to WP admin new post page open 2: link closing. */
16 + __('Ready to publish your first post? %1$sGet started here%2$s.', 'blocksy'),
17 + [
18 + 'a' => [
19 + 'href' => []
20 + ]
21 + ]
22 + ) . '</p>',
23 + '<a href="' . esc_url(admin_url('post-new.php')) . '">',
24 + '</a>'
25 + );
26 + } else {
27 + get_search_form();
28 + }
29 +
30 + echo '</div>';
31 +
32 +