Update category.php for 2.0.0

- Keep the existing structure, the .entry-title.search heading and
  the_content().
- Escape the category name and use the super-simple-wp-theme text domain.
This commit is contained in:
ai-bot committed 2026-10-14 08:34:35 +00:00
1 parent a26823f166
commit 3912ecc7e2
1 file changed
+33 -23
+33 -23
View File
@@ -1,23 +1,33 @@
<?php <?php
/**
get_header(); * Category archive template.
*
printf("<h2 class=\"entry-title search\">" . __("Kategori: ", "textdomain") . get_queried_object()->name . "</h2>"); * @package Super_Simple_WP_Theme
*/
if (have_posts()) :
while (have_posts()) : the_post(); get_header();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> $sswt_heading = sprintf(
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> /* translators: %s: category name. */
<div class="entry-content"> __( 'Kategori: %s', 'super-simple-wp-theme' ),
<?php the_content(); ?> get_queried_object()->name
</div> );
</article> ?>
<?php <h2 class="entry-title search"><?php echo esc_html( $sswt_heading ); ?></h2>
<?php
endwhile;
endif; if ( have_posts() ) :
while ( have_posts() ) :
get_footer(); the_post();
?>
?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
endif;
get_footer();