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
+19 -5
View File
@@ -1,11 +1,25 @@
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-card' ); ?>>
<header class="entry-header">
<div class="entry-meta"><time datetime="<?php echo esc_attr( get_the_date( DATE_W3C ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time><?php if ( get_the_author() ) { ?> · <?php the_author_posts_link(); ?><?php } ?></div>
<div class="entry-meta">
<time datetime="<?php echo esc_attr( get_the_date( DATE_W3C ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time><?php if ( get_the_author() ) { ?> · <?php the_author_posts_link(); ?><?php } ?>
</div>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php // Avoid an empty category container when no categories are assigned.
if ( has_category() ) { ?><div class="taxonomy post-categories"><?php the_category( ' ' ); ?></div><?php } ?>
<?php
// Avoid an empty category container when no categories are assigned.
if ( has_category() ) {
?>
<div class="taxonomy post-categories"><?php the_category( ' ' ); ?></div>
<?php
}
?>
</header>
<?php // This repeats the title link, so exclude it from keyboard and assistive-tech navigation.
if ( has_post_thumbnail() ) { ?><a class="entry-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"><?php the_post_thumbnail( 'large' ); ?></a><?php } ?>
<?php
// This repeats the title link, so exclude it from keyboard and assistive-tech navigation.
if ( has_post_thumbnail() ) {
?>
<a class="entry-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"><?php the_post_thumbnail( 'large' ); ?></a>
<?php
}
?>
<div class="entry-summary"><?php the_excerpt(); ?></div>
</article>