PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/springloaded/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 51 lines | 40 code | 11 blank | 0 comment | 3 complexity | b0570a9bbb1dcdd8c4710be3b41d06e4 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="single-content">
  3. <?php if (have_posts()) : ?>
  4. <?php while (have_posts()) : the_post(); ?>
  5. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  6. <div class="navigation">
  7. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  8. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  9. <div class="clear"></div>
  10. </div>
  11. <p class="post-date" title="<?php printf(__('%1$s at %2$s'), get_the_time(get_option('date_format')), get_the_time(get_option('time_format'))); ?>">
  12. <span class="date-day"><?php the_time('j') ?></span>
  13. <span class="date-month"><?php the_time('M') ?></span>
  14. </p>
  15. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
  16. <p class="metadata">
  17. <?php printf( __( 'Posted %1$s by %2$s in %3$s.' ),
  18. get_the_time( get_option( 'date_format' ) ),
  19. get_the_author(),
  20. get_the_category_list( ', ' )
  21. ); ?>
  22. <?php the_tags(__('Tagged: ', 'sandbox'), ", ", "."); ?>
  23. <span class="feedback"><?php comments_popup_link(__('Leave a Comment'), __('1 Comment'), __('% Comments')); ?></span><?php edit_post_link(__('Edit'), ' | ', ''); ?></p>
  24. <div class="entry">
  25. <?php the_content('<span class="more-link">'.__('Continue reading', 'springloaded').'</span>'); ?>
  26. <?php wp_link_pages('<p>','</p>') ?>
  27. </div>
  28. </div>
  29. <?php comments_template() ?>
  30. <?php endwhile; else : ?>
  31. <div <?php post_class(); ?>>
  32. <h2 class="center"><?php _e('Not Found'); ?></h2>
  33. <p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.'); ?></p>
  34. <?php include (TEMPLATEPATH . "/searchform.php"); ?>
  35. </div>
  36. <?php endif; ?>
  37. </div><!-- /content -->
  38. </div><!-- /main -->
  39. <?php get_sidebar() ?>
  40. <?php get_footer() ?>