web/wp-content/themes/elegant-box/archives.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore

<?php
/*
Template Name: Archives
*/
?>

<?php get_header(); ?>

		<?php if (have_posts()) : the_post(); ?>
			<div class="post">
				<div class="title">
					<h2><?php the_title(); ?></h2>
					<div class="fixed"></div>
				</div>
				<div class="info">
					<?php edit_post_link(__('Edit', 'elegantbox'), '<span class="edit">', '</span>'); ?>
					<span><?php _e('Update: '); the_modified_time(__('F jS, Y', 'elegantbox')) ?></span>
					<div class="fixed"></div>
				</div>
				<div class="content">
					<?php
						if (function_exists('wp_easyarchives')) {
							wp_easyarchives();
						} else {
							echo '<ul>';
							wp_get_archives('type=monthly&show_post_count=1');
							echo '</ul>';
						}
					?>
				</div>
			</div>

<?php
	// Support comments for WordPress 2.7 or higher
	if (function_exists('wp_list_comments')) {
		comments_template('', true);
	} else {
		comments_template();
	}
?>

		<?php else : ?>
			<div class="messagebox">
				<div class="content small">
					<?php _e('Sorry, no posts matched your criteria.'); ?>
				</div>
			</div>
	
		<?php endif; ?>
	</div>

	<?php get_sidebar(); ?>

	<div class="fixed"></div>

		<div id="bottom">

<?php get_footer(); ?>