123456789101112131415161718192021222324252627282930313233343536 |
- <?php get_header(); ?>
- <div class="container">
- <article id="content" class="single" role="main">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <div class="entry-content">
- <div class="date">
- <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><?php the_time('n/j/Y'); ?></time>
- </div>
- <span class="vcard author"><span class="fn">David A. Windham</span></span>
- <?php $img_url = wp_get_attachment_image_src(get_post_thumbnail_id(),'thumbnail'); ?>
- <img itemprop="image" src="<?php echo $img_url[0];?>" alt="thumbnail" style="display:none"/>
- <h2 itemprop="name headline" class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'daw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if (wp_attachment_is_image($post->id)) {
- $att_image = wp_get_attachment_image_src( $post->id, "full");
- ?>
- <p class="attachment">
- <a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php the_title(); ?>">
- <img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>" class="attachment-medium" alt="<?php $post->post_excerpt; ?>" />
- </a>
- </p>
- <?php } ?>
- <?php the_content(); ?>
- <div class="clear"> </div>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'daw' ) . '</span> %title' ); ?></div>
- <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'daw' ) . '</span>' ); ?></div>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- </article>
- </div>
-
- <?php get_footer(); ?>
|