mirror of
https://github.com/kennethreitz-archive/wp-krtheme.git
synced 2026-06-05 15:30:19 +00:00
49 lines
2.4 KiB
PHP
49 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Archive
|
|
**/
|
|
?>
|
|
<!DOCTYPE html>
|
|
<!--[if IE 6 ]><html class="ie ielt9 ielt8 ielt7 ie6" lang="<?php bloginfo('language'); ?>"><![endif]-->
|
|
<!--[if IE 7 ]><html class="ie ielt9 ielt8 ie7" lang="<?php bloginfo('language'); ?>"><![endif]-->
|
|
<!--[if IE 8 ]><html class="ie ielt9 ie8" lang="<?php bloginfo('language'); ?>"><![endif]-->
|
|
<!--[if IE 9 ]><html class="ie ie9" lang="<?php bloginfo('language'); ?>"><![endif]-->
|
|
<!--[if (gt IE 9)|!(IE)]><!--><html lang="<?php bloginfo('language'); ?>"><!--<![endif]-->
|
|
<head>
|
|
<?php @include('inc_head.php'); ?>
|
|
</head>
|
|
<body class="archives">
|
|
<div id="screen">
|
|
<?php @include('inc_body_header.php'); ?>
|
|
|
|
<section class="G4 GR" id="content">
|
|
<header>
|
|
<?php if (is_category()): ?>
|
|
<h1><?php single_cat_title(); ?></h1>
|
|
<?php query_posts(array('category_name' => single_cat_title('', FALSE), 'order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => '-1')); ?>
|
|
<?php else: ?>
|
|
<h1><?php the_title(); ?></h1>
|
|
<?php get_search_form(); ?>
|
|
<?php query_posts(array('order' => 'DESC', 'orderby' => 'date', 'posts_per_page' => '-1')); ?>
|
|
<?php endif; ?>
|
|
</header>
|
|
<dl class="containsArticles">
|
|
<?php while(have_posts()): the_post(); ?>
|
|
<dt>
|
|
<hgroup>
|
|
<a class="title" href="<?php the_permalink() ?>"><?php the_title(); ?></a>
|
|
<time class="date" datetime="<?php the_time('c') ?>" pubdate="pubdate"><?php the_date(); ?></time>
|
|
</hgroup>
|
|
</dt>
|
|
<dd>
|
|
<?php echo preg_replace('/<p>(.+?)<\/p>/','$1',get_the_excerpt()); ?> <a href="<?php the_permalink() ?>" class="more-link"><?php _e('Read more', 'ia3'); ?><span class="implied"> – ‘<?php the_title(); ?>’</span>.</a>
|
|
</dd>
|
|
<?php endwhile; ?>
|
|
</dl><!-- .containsArticles -->
|
|
</section><!-- #content.ia.ia-4.ia-r.ia-s -->
|
|
<hr class="implied" />
|
|
|
|
<?php @include('inc_body_footer.php'); ?>
|
|
</div><!-- #screen -->
|
|
</body>
|
|
</html>
|