Enhance Theme Templates and Editor Layout

This commit is contained in:
2026-07-27 12:34:55 +02:00
parent cbcdbc1bb8
commit 243fb51770
14 changed files with 382 additions and 82 deletions
+25 -5
View File
@@ -1,7 +1,27 @@
<?php // This search template is selected by the WordPress template hierarchy.
get_header(); ?>
<?php
// This search template is selected by the WordPress template hierarchy.
get_header();
?>
<?php // The user-supplied search term is escaped before it enters the translated heading. ?>
<header class="page-header"><h1 class="page-title"><?php printf( esc_html__( 'Results for “%s”', 'c1024-2026' ), esc_html( get_search_query() ) ); ?></h1></header>
<main id="main" class="site-main"><?php // Empty result sets offer another search form instead of an empty archive.
if ( have_posts() ) { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content' ); } the_posts_pagination( array( 'mid_size' => 1 ) ); } else { ?><p><?php esc_html_e( 'Nothing matched your search. Try another term.', 'c1024-2026' ); ?></p><?php get_search_form(); } ?></main>
<header class="page-header">
<h1 class="page-title"><?php printf( esc_html__( 'Results for “%s”', 'c1024-2026' ), esc_html( get_search_query() ) ); ?></h1>
</header>
<main id="main" class="site-main">
<?php
// Empty result sets offer another search form instead of an empty archive.
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content' );
}
the_posts_pagination( array( 'mid_size' => 1 ) );
} else {
?>
<p><?php esc_html_e( 'Nothing matched your search. Try another term.', 'c1024-2026' ); ?></p>
<?php get_search_form(); ?>
<?php
}
?>
</main>
<?php get_footer();