mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-30 21:17:57 +01:00
c71bc1513e
All default themes now have translator comments for all strings with placeholders! See #46732. Built from https://develop.svn.wordpress.org/trunk@45609 git-svn-id: http://core.svn.wordpress.org/trunk@45420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
989 B
PHP
40 lines
989 B
PHP
<?php
|
|
/**
|
|
* Template for displaying Category Archive pages
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Ten
|
|
* @since Twenty Ten 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div id="container">
|
|
<div id="content" role="main">
|
|
|
|
<h1 class="page-title">
|
|
<?php
|
|
/* translators: %s: category title */
|
|
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
|
?>
|
|
</h1>
|
|
<?php
|
|
$category_description = category_description();
|
|
if ( ! empty( $category_description ) ) {
|
|
echo '<div class="archive-meta">' . $category_description . '</div>';
|
|
}
|
|
|
|
/*
|
|
* Run the loop for the category page to output the posts.
|
|
* If you want to overload this in a child theme then include a file
|
|
* called loop-category.php and that will be used instead.
|
|
*/
|
|
get_template_part( 'loop', 'category' );
|
|
?>
|
|
|
|
</div><!-- #content -->
|
|
</div><!-- #container -->
|
|
|
|
<?php get_sidebar(); ?>
|
|
<?php get_footer(); ?>
|