web/wp-content/themes/default/index.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
/**
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
 * @package WordPress
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
 * @subpackage Default_Theme
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
 */
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
get_header(); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
	<div id="content" class="narrowcolumn" role="main">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
	<?php if (have_posts()) : ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    12
0d28b7c10758 First commit
ymh
parents:
diff changeset
    13
		<?php while (have_posts()) : the_post(); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    14
0d28b7c10758 First commit
ymh
parents:
diff changeset
    15
			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    16
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    17
				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    18
0d28b7c10758 First commit
ymh
parents:
diff changeset
    19
				<div class="entry">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    20
					<?php the_content('Read the rest of this entry &raquo;'); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    21
				</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    22
0d28b7c10758 First commit
ymh
parents:
diff changeset
    23
				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    24
			</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    25
0d28b7c10758 First commit
ymh
parents:
diff changeset
    26
		<?php endwhile; ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    27
0d28b7c10758 First commit
ymh
parents:
diff changeset
    28
		<div class="navigation">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    29
			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    30
			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    31
		</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    32
0d28b7c10758 First commit
ymh
parents:
diff changeset
    33
	<?php else : ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    34
0d28b7c10758 First commit
ymh
parents:
diff changeset
    35
		<h2 class="center">Not Found</h2>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    36
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    37
		<?php get_search_form(); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    38
0d28b7c10758 First commit
ymh
parents:
diff changeset
    39
	<?php endif; ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    40
0d28b7c10758 First commit
ymh
parents:
diff changeset
    41
	</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    42
0d28b7c10758 First commit
ymh
parents:
diff changeset
    43
<?php get_sidebar(); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    44
0d28b7c10758 First commit
ymh
parents:
diff changeset
    45
<?php get_footer(); ?>