PageRenderTime 65ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/inuit-types/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 96 lines | 47 code | 45 blank | 4 comment | 5 complexity | 39343361fa036dd950b12acfd2bc70a4 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Inuit Types
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <?php if (have_posts()) : ?>
  9. <?php while (have_posts()) : the_post(); ?>
  10. <div id="post-<?php the_ID(); ?>" class="single-post">
  11. <div id="header-about">
  12. <h1><?php the_title(); ?> <?php edit_post_link('<span class="edit-entry">' . __( 'Edit this entry', 'it' ) . '</span>'); ?></h1>
  13. </div>
  14. <div class="date-comments">
  15. <p class="fl">
  16. <em><?php _e( 'Posted on ', 'it' ); ?><?php the_time( get_option( "date_format" ) ); ?></em>
  17. <?php _e( 'by ', 'it' ); ?><em><?php the_author_posts_link(); ?></em>
  18. </p>
  19. <p class="fr"><span class="comments">
  20. <?php if ( comments_open() ) : ?>
  21. <a href="#comments"><?php comments_number('0', '1', '%'); ?></a>
  22. <?php endif; ?>
  23. </span></p>
  24. </div>
  25. <div class="clear"></div>
  26. <br/>
  27. <div class="entry">
  28. <?php if( get_option('inuitypes_single_post_image') && has_post_thumbnail() ): ?>
  29. <a href="<?php echo wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>"><?php the_post_thumbnail( 'one-column-feature' ); ?></a>
  30. <div class="fix"></div><br/>
  31. <?php endif; ?>
  32. <?php the_content('<span class="read-on">Read On...</span>'); ?>
  33. <?php wp_link_pages( 'before=<p class="page-link">' . __( 'Pages:', 'it' ) . '&after=</p>' ); ?>
  34. <?php the_tags('<div class="tags">' . __( 'Tagged: ', 'it' ) . '<em>', ', ', '</em></div>'); ?>
  35. <div class="categories"><?php _e( 'Posted in: ', 'it' ); ?><em><?php the_category(', ') ?></em></div>
  36. </div>
  37. <div id="nav-below" class="navigation">
  38. <div class="nav-previous"><?php previous_post_link( '%link', _x( '&larr;', 'Previous post link', 'it' ). ' %title' ); ?></div>
  39. <div class="nav-next"><?php next_post_link( '%link', '%title ' . _x( '&rarr;', 'Next post link', 'it' ) ); ?></div>
  40. </div><!-- #nav-below -->
  41. <div class="fix"></div>
  42. </div>
  43. <div class="fix"></div>
  44. <div id="comments">
  45. <?php comments_template(); ?>
  46. </div>
  47. <?php endwhile; ?>
  48. <?php endif; ?>
  49. </div><!-- Content -->
  50. <?php get_sidebar(); ?>
  51. <?php get_footer(); ?>