default-template.php 1.18 KB
Newer Older
1 2 3 4 5 6 7 8
<!DOCTYPE html>
<html>
	<head>
		<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
		<link rel="canonical" href="<?php the_permalink(); ?>" />
		<meta name="robots" content="noindex" />
	</head>
	<body <?php body_class(); ?>>
Erick Hitter's avatar
Erick Hitter committed
9

10 11 12 13 14 15 16
	<?php
		if( have_posts() ):
			while( have_posts() ):
				the_post();
				?>
				<div <?php post_class(); ?>>
					<h1><?php the_title(); ?></h1>
17
					<p>by <?php the_author(); ?> | <?php the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ); ?></p>
Erick Hitter's avatar
Erick Hitter committed
18

19 20 21
					<?php
						if( is_attachment() && wp_attachment_is_image() )
							echo '<p>' . wp_get_attachment_image( $post->ID, 'large' ) . '</p>';
Erick Hitter's avatar
Erick Hitter committed
22

23 24
						the_content();
					?>
Erick Hitter's avatar
Erick Hitter committed
25

26 27 28 29
					<?php
						if( function_exists( 'wpf_the_page_numbers' ) )
							wpf_the_page_numbers( false, '<p class="page_numbers">Page ', ' of ', '</p><!-- .page_numbers -->' );
					?>
Erick Hitter's avatar
Erick Hitter committed
30

31
					<p class="wpf-source"><strong>Source URL:</strong> <?php the_permalink(); ?></p>
Erick Hitter's avatar
Erick Hitter committed
32

33 34 35 36 37 38
					<hr class="wpf-divider" />
				</div>
				<?php
			endwhile;
		endif;
	?>
Erick Hitter's avatar
Erick Hitter committed
39

40
		<p class="copyright">Copyright &copy;<?php echo date( 'Y' ); ?> <strong><?php bloginfo( 'name' ); ?></strong> unless otherwise noted.</p>
Erick Hitter's avatar
Erick Hitter committed
41

42 43
	</body>
</html>