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

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 61 lines | 40 code | 21 blank | 0 comment | 4 complexity | b3e4defaecb91f647b9828dae92ae237 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="content">
  3. <div id="content-left">
  4. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  5. <div id="nav-above">
  6. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'enterprise' ) . '</span> %title' ); ?></div>
  7. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'enterprise' ) . '</span>' ); ?></div>
  8. </div>
  9. <div <?php post_class(); ?>>
  10. <div class="entry">
  11. <h1><?php the_title(); ?></h1>
  12. <div class="post-info">
  13. <p><span class="time"><?php the_time( get_option( 'date_format' ) ); ?></span> <span class="author"><?php _e("by", 'enterprise'); ?> <?php the_author_posts_link(); ?></span> <span class="post-comments"><a href="<?php the_permalink(); ?>#respond"><?php comments_number(__('Leave a Comment', 'enterprise'), __('1 Comment', 'enterprise'), __('% Comments', 'enterprise')); ?></a></span> <?php edit_post_link(__('(Edit)', 'enterprise'), '', ''); ?></p>
  14. </div>
  15. <?php the_content(__('Read more', 'enterprise'));?><div class="clear"></div>
  16. <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  17. <!--
  18. <?php trackback_rdf(); ?>
  19. -->
  20. </div>
  21. <div class="post-meta">
  22. <p>
  23. <span class="categories"><?php _e("Filed under", 'enterprise'); ?> <?php the_category(', ') ?></span>
  24. <?php the_tags( '<span class="tags">' . __( "Tagged with ", 'enterprise' ), ', ', '</span>' ) ?>
  25. </p>
  26. </div>
  27. </div>
  28. <?php if ( get_the_author_meta( 'description' ) != '' ) : ?>
  29. <div class="author-box">
  30. <p><?php echo get_avatar( get_the_author_email(), '70' ); ?><strong><?php _e("About", 'enterprise'); ?> <?php the_author(); ?></strong><br /><?php the_author_meta( 'description' ); ?></p>
  31. </div>
  32. <?php endif; ?>
  33. <?php endwhile; else: ?>
  34. <p><?php _e('Sorry, no posts matched your criteria.', 'enterprise'); ?></p><?php endif; ?>
  35. <p><?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page', 'enterprise'), __('Next Page &raquo;', 'enterprise')); ?></p>
  36. <?php comments_template('',true); ?>
  37. </div>
  38. <?php get_sidebar(); ?>
  39. </div>
  40. <?php get_footer(); ?>