PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/depo-masthead/image.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 58 lines | 36 code | 22 blank | 0 comment | 6 complexity | c1c04832bd0687bdfdb46d509fcd7c5f MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <?php if (have_posts()) : while (have_posts()) : the_post();
  3. if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
  4. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  5. <p class="postmetadata"><?php the_tags('', ', ', '<br />'); ?></p>
  6. <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
  7. <small>On <strong><?php the_time(get_option('date_format')) ?></strong> at <strong><?php the_time() ?></strong></small>
  8. <div class="entry">
  9. <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'auto' ); ?></a></p>
  10. <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
  11. <div class="image-description"><?php if ( !empty($post->post_content) ) the_content(); ?></div>
  12. <?php edit_post_link(__('Edit this entry.', 'depo-masthead'), '<p>', '</p>'); ?>
  13. </div>
  14. </div>
  15. <div id="showcomments"><a href="#comments">&#9654; <?php comments_number(__('No Responses', 'depo-masthead'), __('One Response', 'depo-masthead'), __('% Responses', 'depo-masthead'));?></a></div>
  16. <div id="comments">
  17. <?php comments_template(); ?>
  18. </div>
  19. <div class="navigation attachment">
  20. <div class="previous">
  21. <div class="link">
  22. <span class="title image"><?php previous_image_link() ?></span>
  23. </div>
  24. </div>
  25. <div class="next">
  26. <div class="link">
  27. <span class="title image"><?php next_image_link() ?></span>
  28. </div>
  29. </div>
  30. <div class="clear"></div>
  31. </div>
  32. <?php endwhile; else: ?>
  33. <p><?php _e('Sorry, no posts matched your criteria.', 'depo-masthead'); ?></p>
  34. <?php endif; ?>
  35. <?php get_sidebar(); ?>
  36. <?php get_footer(); ?>