PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/blog/wp-content/themes/modularity-lite/blog.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 53 lines | 43 code | 6 blank | 4 comment | 3 complexity | 8c1a7d89da6ccc3f5d2e07e61cf4f013 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 Modularity
  5. */
  6. ?>
  7. <div class="span-<?php modularity_sidebar_class(); ?>">
  8. <h3 class="sub"><?php _e( 'Latest', 'modularity' ); ?></h3>
  9. <?php if (have_posts()) : ?>
  10. <?php while (have_posts()) : the_post(); ?>
  11. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  12. <div class="content">
  13. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  14. <div class="entry">
  15. <?php the_content( __( 'Read the rest of this page &raquo;', 'modularity' ) ); ?>
  16. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'modularity' ), 'after' => '</div>' ) ); ?>
  17. </div>
  18. <div class="clear"></div>
  19. <p class="postmetadata alt quiet">
  20. <?php
  21. $tag_list = get_the_tag_list( '| Tags: ', ', ' );
  22. printf( __( '%1$s | Categories: %2$s %3$s | ', 'modularity' ),
  23. get_the_time( get_option( 'date_format' ) ),
  24. get_the_category_list( ', ' ),
  25. $tag_list
  26. );
  27. ?>
  28. <?php comments_popup_link( __( 'Leave A Comment &#187;', 'modularity' ), __( '1 Comment &#187;', 'modularity' ), __( '% Comments &#187;', 'modularity' ) ); ?>
  29. <?php edit_post_link( __( ' Edit', 'modularity'), '| ', '' ); ?>
  30. </p>
  31. </div>
  32. </div>
  33. <?php endwhile; ?>
  34. <div class="clear"></div>
  35. <div class="navigation">
  36. <div class="alignleft"><?php next_posts_link( __( '&laquo; Older Entries', 'modularity' ) ); ?></div>
  37. <div class="alignright"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'modularity' ) ); ?></div>
  38. </div>
  39. <?php else : ?>
  40. <h2 class="center"><?php _e( 'Not Found', 'modularity' ); ?></h2>
  41. <p class="center"><?php _e( 'Sorry, but you are looking for something that isn&rsquo;t here.', 'modularity' ); ?></p>
  42. <?php get_search_form(); ?>
  43. <?php endif; ?>
  44. </div>
  45. <?php get_sidebar(); ?>
  46. </div>
  47. <div class="double-border"></div>