Advertisement
RodrigoCasttro

index.php

May 15th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="content" class="grid_17 <?php echo of_get_option('blog_sidebar_pos') ?>">
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  5. <header>
  6. <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  7. <?php if ($theme1319_post_meta=='') { ?>
  8. <div class="post-meta">
  9. <div class="fleft">Posted in: <?php the_category(', ') ?> | <time datetime="<?php the_time('Y-m-d\TH:i'); ?>"><?php the_time('F j, Y'); ?> at <?php the_time() ?></time> , by <?php the_author_posts_link() ?></div>
  10. <div class="fright"><?php comments_popup_link('No comments', 'One comment', '% comments', 'comments-link', 'Comments are closed'); ?></div>
  11. </div><!--.post-meta-->
  12. <?php } ?>
  13. </header>
  14. <?php $post_image_size = of_get_option('post_image_size'); ?>
  15. <?php if($post_image_size=='' || $post_image_size=='normal'){ ?>
  16. <?php if(has_post_thumbnail()) {
  17. echo '<a href="'; the_permalink(); echo '">';
  18. echo '<div class="featured-thumbnail"><div class="img-wrap">'; the_post_thumbnail(); echo '</div></div>';
  19. echo '</a>';
  20. }
  21. ?>
  22. <?php } else { ?>
  23. <?php if(has_post_thumbnail()) {
  24. echo '<a href="'; the_permalink(); echo '">';
  25. echo '<div class="featured-thumbnail large"><div class="img-wrap"><div class="f-thumb-wrap">'; the_post_thumbnail('post-thumbnail-xl'); echo '</div></div></div>';
  26. echo '</a>';
  27. }
  28. ?>
  29. <?php } ?>
  30.  
  31. <div class="post-content">
  32. <?php if ($theme1319_post_excerpt=='') { ?>
  33. <div class="excerpt"><?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,50);?></div>
  34. <?php } ?>
  35. <a href="<?php the_permalink() ?>" class="button">Leia mais...</a>
  36. </div>
  37. <footer>
  38. <?php the_tags('Tags: ', ', ', ''); ?> <?php edit_post_link('Edit', '', ''); ?>
  39. </footer>
  40. </article>
  41.  
  42. <?php endwhile; else: ?>
  43. <div class="no-results">
  44. <p><strong>There has been an error.</strong></p>
  45. <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
  46. <?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
  47. </div><!--noResults-->
  48. <?php endif; ?>
  49.  
  50. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  51. <nav class="oldernewer">
  52. <div class="older">
  53. <?php next_posts_link('&laquo; Older Entries') ?>
  54. </div><!--.older-->
  55. <div class="newer">
  56. <?php previous_posts_link('Newer Entries &raquo;') ?>
  57. </div><!--.newer-->
  58. </nav><!--.oldernewer-->
  59. <?php endif; ?>
  60.  
  61. </div><!--#content-->
  62. <?php get_sidebar(); ?>
  63. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement