content-single.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
  2. <?php do_action( 'foto_before_entry_singular' ); ?>
  3. <div class="primary col-18 last">
  4. <div class="post-content">
  5. <?php if( has_post_thumbnail() ) : ?>
  6. <figure class="entry-thumbnail">
  7. <?php $large_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); ?>
  8. <a class="fancyimg" href="<?php echo $large_image[0]; ?>">
  9. <?php the_post_thumbnail('foto-single-thumbnail', array( 'class' => 'photo thumbnail', 'alt' => get_the_title(), 'title' => get_the_title()));?>
  10. <span class="pop-up"><?php _e('Large Image', 'foto'); ?></span>
  11. </a>
  12. </figure>
  13. <?php endif; ?>
  14. <div class="entry-content">
  15. <p class="content-heading"><?php _e('Description', 'foto'); ?></p>
  16. <?php the_content(); ?>
  17. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'foto' ), 'after' => '</div>' ) ); ?>
  18. </div>
  19. </div><!-- end .post-content -->
  20. <?php
  21. // If comments are open, load up the comment template
  22. if ( comments_open() )
  23. comments_template( '', true );
  24. ?>
  25. </div><!-- end .primary -->
  26. <aside class="secondary col-6">
  27. <div class="entry-meta">
  28. <div class="content-heading"><?php _e('Entry Meta', 'foto'); ?></div>
  29. <?php foto_entry_meta(); ?>
  30. </div><!-- end entry-meta -->
  31. <?php do_action( 'foto_after_entry_meta' ); ?>
  32. </aside><!-- end .secondary -->
  33. <?php foto_content_nav( 'nav-below' ); ?>
  34. <?php do_action( 'foto_after_entry_singular' ); ?>
  35. </article><!-- #post-<?php the_ID(); ?> -->