PageRenderTime 176ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/notesil/image.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 44 lines | 34 code | 10 blank | 0 comment | 15 complexity | ef8e5085d570d06e8a864373217a9bec MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <div id="container">
  3. <div id="content">
  4. <?php the_post(); ?>
  5. <h2 class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'notesil' ), get_the_title( $post->post_parent ) ) ); ?>" rev="attachment"><?php echo get_the_title( $post->post_parent ); ?></a></h2>
  6. <div id="post-<?php the_ID(); ?>" class="<?php notesil_post_class(); ?>">
  7. <h3 class="entry-title"><?php the_title(); ?></h3>
  8. <div class="entry-content">
  9. <div class="entry-attachment"><a href="<?php echo wp_get_attachment_url( $post->ID ); ?>" title="<?php echo esc_attr( get_the_title( $post->ID ) ); ?>" rel="attachment"><?php echo wp_get_attachment_image( $post->ID, array( 525, 525 ) ); ?></a></div>
  10. <div class="entry-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. </div>
  13. <div id="nav-images" class="navigation">
  14. <div class="nav-previous"><?php previous_image_link(); ?></div>
  15. <div class="nav-next"><?php next_image_link(); ?></div>
  16. </div>
  17. <div class="entry-meta">
  18. <?php if ( ( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Comments and trackbacks open ?>
  19. <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'notesil' ), get_trackback_url() ); ?>
  20. <?php elseif ( !( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Only trackbacks open ?>
  21. <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'notesil' ), get_trackback_url() ); ?>
  22. <?php elseif ( ( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Only comments open ?>
  23. <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'notesil' ); ?>
  24. <?php elseif ( !( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
  25. <?php _e( 'Both comments and trackbacks are currently closed.', 'notesil' ); ?>
  26. <?php endif; ?>
  27. <?php edit_post_link( __( 'Edit', 'notesil' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
  28. </div>
  29. </div><!-- .post -->
  30. <?php comments_template(); ?>
  31. </div><!-- #content -->
  32. <?php get_sidebar(); ?>
  33. </div><!-- #container -->
  34. <?php get_footer(); ?>