PageRenderTime 43ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 59 lines | 39 code | 20 blank | 0 comment | 8 complexity | 5a80c7ec250a1cad32cf2c998a489f88 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="contentleft">
  4. <div class="postarea">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <div class="posttitle">
  7. <h3><?php the_title(); ?></h3>
  8. <div class="postauthor">
  9. <p><?php printf(__( 'Posted by <a href="%1$s">%2$s</a> on %3$s', 'structuretheme' ), get_author_posts_url( get_the_author_meta( 'ID' ) ), get_the_author(), get_the_time( 'F j, Y' ) ); ?> &middot; <a href="<?php the_permalink(); ?>#comments"><?php comments_number( __( 'Leave a Comment' ), __( '1 Comment' ), __( '% Comments' ) ); ?></a>&nbsp;<?php edit_post_link( __( '(Edit)' ), '', '' ); ?></p>
  10. </div>
  11. <?php if( st_option('single_feature') && is_single() && has_post_thumbnail() && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'structure-large') ) && $image[1] >= '640' ): ?>
  12. <div class="feature-image">
  13. <?php the_post_thumbnail( 'structure-large' ); ?>
  14. </div>
  15. <?php endif; ?>
  16. </div>
  17. <?php the_content(__('Read More'));?><div style="clear:both;"></div>
  18. <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'theme' ) . '&after=</div>'); ?>
  19. <div class="postmeta">
  20. <p><?php _e("Filed under", 'structuretheme'); ?> <?php the_category(', ') ?> <?php the_tags( '&middot; ' . __( 'Tagged with ', 'structuretheme' ) ) ?></p>
  21. </div>
  22. </div>
  23. <?php if ( is_single() ) : ?>
  24. <div id="nav-below" class="navigation single-navigation">
  25. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
  26. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div>
  27. </div><!-- #nav-below -->
  28. <?php endif; ?>
  29. <div class="postcomments">
  30. <?php comments_template('',true); ?>
  31. </div>
  32. <?php endwhile; else: ?>
  33. <p><?php _e("Sorry, no posts matched your criteria.", 'structuretheme'); ?></p>
  34. <?php endif; ?>
  35. </div>
  36. <?php get_sidebar( 'right' ); ?>
  37. </div>
  38. <!-- The main column ends -->
  39. <?php get_footer(); ?>