PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 48 lines | 35 code | 13 blank | 0 comment | 3 complexity | 5b3e82a9f8c73679d70678873137f6d2 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 if (have_posts()) : ?>
  4. <?php while (have_posts()) : the_post(); ?>
  5. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  6. <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'))); ?>">
  7. <span class="date-day"><?php the_time('j') ?></span>
  8. <span class="date-month"><?php the_time('M') ?></span>
  9. </p>
  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. <p class="metadata">
  12. <?php printf(__('Posted by %1$s in %2$s.'), get_the_author(), get_the_category_list(', ')); ?>
  13. <?php the_tags(__('Tagged: ', 'sandbox'), ", ", "."); ?>
  14. <span class="feedback"><?php comments_popup_link(__('Leave a Comment'), __('1 Comment'), __('% Comments')); ?></span><?php edit_post_link('Edit', ' | ', ''); ?></p>
  15. <div class="entry">
  16. <?php the_content('<span class="more-link">'.__('Continue reading', 'springloaded').'</span>'); ?>
  17. <?php wp_link_pages('<p>','</p>') ?>
  18. </div>
  19. </div>
  20. <?php endwhile; ?>
  21. <div class="prev-next">
  22. <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries')); ?></div>
  23. <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;')); ?></div>
  24. </div>
  25. <?php else : ?>
  26. <div <?php post_class(); ?>>
  27. <h2 class="center"><?php _e('Not Found'); ?></h2>
  28. <p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.'); ?></p>
  29. <?php include (TEMPLATEPATH . "/searchform.php"); ?>
  30. </div>
  31. <?php endif; ?>
  32. </div><!-- /content -->
  33. </div><!-- /main -->
  34. <?php get_sidebar() ?>
  35. <?php get_footer() ?>