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

/blog/wp-content/themes/simpla/index.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 56 lines | 51 code | 5 blank | 0 comment | 8 complexity | 31dc2e9b24a4894a56eb40dbbe7f5eca 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. <?php is_tag(); ?>
  4. <?php if (have_posts()) :?>
  5. <?php $postCount=0; ?>
  6. <?php while (have_posts()) : the_post();?>
  7. <?php $postCount++;?>
  8. <div <?php post_class('entry entry-' . $postCount); ?> id="post-<?php the_ID(); ?>">
  9. <div class="entrytitle">
  10. <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>
  11. <h3><?php the_time(get_option('date_format')) ?></h3>
  12. </div>
  13. <div class="entrybody">
  14. <?php the_content('Read the rest of this entry &raquo;'); ?>
  15. <?php wp_link_pages(); ?>
  16. </div>
  17. <div class="entrymeta">
  18. <div class="postinfo">
  19. <span class="postedby">Posted by <?php the_author() ?></span><br />
  20. <?php if ( !is_page() ) { ?>
  21. <span class="filedto">Filed in <?php the_category(', ') ?></span><br />
  22. <?php the_tags('<span class="filedto">Tags: ', ', ', '</span><br />'); ?>
  23. <?php } ?>
  24. <span class="filedto"><?php edit_post_link('Edit', '', ''); ?></span>
  25. </div>
  26. <?php comments_popup_link('Leave a Comment &#187;', '1 Comment &#187;', '% Comments &#187;', 'commentslink'); ?>
  27. </div>
  28. </div>
  29. <div class="commentsblock">
  30. <?php comments_template(); ?>
  31. </div>
  32. <?php endwhile; ?>
  33. <?php if ( is_home() || is_archive() || is_search() ) : ?>
  34. <div class="navigation">
  35. <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  36. <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  37. </div>
  38. <?php elseif ( is_single() ) : ?>
  39. <div class="navigation">
  40. <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&laquo;', 'Previous post link', 'simpla' ) . '</span> %title' ); ?></div>
  41. <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&raquo;', 'Next post link', 'simpla' ) . '</span>' ); ?></div>
  42. </div>
  43. <?php endif; ?>
  44. <?php else : ?>
  45. <h2>Not Found</h2>
  46. <div class="entrybody">Sorry, but you are looking for something that isn't here.</div>
  47. <?php endif; ?>
  48. </div>
  49. <?php get_sidebar(); ?>
  50. <?php get_footer(); ?>