PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 49 lines | 39 code | 10 blank | 0 comment | 14 complexity | 9d6124c2f6bc36ab002d081604ba7490 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 basename( $post->guid ); ?></a></div>
  10. <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
  11. <?php the_content(); ?>
  12. </div>
  13. <div class="entry-meta">
  14. <?php printf( __( 'Posted by %1$s on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>. Bookmark the <a href="%6$s" title="Permalink to %7$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%8$s" title="Comments RSS to %7$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'notesil' ),
  15. '<span class="author vcard"><a class="url fn n" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'notesil' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
  16. get_the_time( 'Y-m-d' ),
  17. get_the_time( 'H:i:sO' ),
  18. the_date( '', '', '', false ),
  19. get_the_time(),
  20. get_permalink(),
  21. the_title_attribute( 'echo=0' ),
  22. get_post_comments_feed_link() ); ?>
  23. <?php if ( ( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Comments and trackbacks open ?>
  24. <?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() ); ?>
  25. <?php elseif ( !( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Only trackbacks open ?>
  26. <?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() ); ?>
  27. <?php elseif ( ( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Only comments open ?>
  28. <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'notesil' ); ?>
  29. <?php elseif ( !( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
  30. <?php _e( 'Both comments and trackbacks are currently closed.', 'notesil' ); ?>
  31. <?php endif; ?>
  32. <?php edit_post_link( __( 'Edit', 'notesil' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
  33. </div>
  34. </div><!-- .post -->
  35. <?php comments_template(); ?>
  36. </div><!-- #content -->
  37. <?php get_sidebar(); ?>
  38. </div><!-- #container -->
  39. <?php get_footer(); ?>