Advertisement
Guest User

index.php

a guest
Oct 8th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content-container"><!-- start content-container -->
  4.  
  5.  
  6. <div id="content"><!-- start content -->
  7.  
  8. <?php query_posts( 'posts_per_page=3' ); ?>
  9.  
  10. <?php if (have_posts()) : ?>
  11. <?php while (have_posts()) : the_post(); ?>
  12.  
  13. <div class="blog-entry"><!-- start blog entry -->
  14.  
  15. <div class="blog-date">
  16. <div id="date_holder">
  17. <div class="date_day"><a href="#"><?php the_time('j'); ?></a></div>
  18. <div class="date_suffix"><a href="#"><?php the_time('S'); ?></a></div>
  19. <div class="date_month"><a href="#"><?php the_time('M'); ?></a></div>
  20. <div class="date_year"><a href="#"><?php the_time('Y'); ?></a></div>
  21. </div>
  22. </div>
  23. <div class="blog-entry-top">
  24. </div>
  25. <div class="blog-entry-middle">
  26. <h2><!--<h2 class="entry-title">--><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  27.  
  28. <?php the_content(''); ?><!-- ??? main entry content? -->
  29.  
  30. <?php printf( __( 'This entry was posted in %1$s%2$s.', 'your-theme' ),
  31. get_the_category_list(', '),
  32. //get_the_tag_list( __( ' and tagged ', 'your-theme' ), ', ', '' ),
  33. get_permalink(),
  34. the_title_attribute('echo=0'),
  35. comments_rss() ) ?>
  36.  
  37. <?php edit_post_link( __( 'Edit', 'your-theme' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
  38. <!--<h2>HEADING 1</h2>
  39. <p>
  40. "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  41. </p>-->
  42. <div class="author-tags-holder"><!-- author / tags holder start -->
  43. <div class="blog-entry-author">
  44. Posted by: <a href="#"><?php _e('By ', 'your-theme'); ?></a>. Posted in <a href="#"><?php the_category(', ') ?></a>
  45. <a class="url fn n" href="<?php echo get_author_link( false, $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'your-theme' ), $authordata->display_name ); ?>"><?php the_author(); ?></a>
  46. </div>
  47. <div class="blog-entry-tags">
  48. <?php the_tags('Tags:', ', ', '<br />'); ?>
  49. </div>
  50. </div><!-- author / tags holder end -->
  51. </div>
  52.  
  53. <div class="comments">
  54. <!--<p>No comments. <a href="#">Make a comment</a></p>-->
  55.  
  56. <?php edit_post_link( __( 'Edit', 'your-theme' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  57. <p><?php comments_popup_link('No comments', 'One comment', '% comments', 'comments-link', 'Comments are closed'); ?></p>
  58.  
  59. </div>
  60.  
  61. <div class="blog-entry-bottom">
  62. </div>
  63.  
  64. </div><!-- end blog entry -->
  65.  
  66. <?php endwhile; ?>
  67.  
  68.  
  69. <!-- next and previous post links start -->
  70.  
  71. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  72. <div class="comments-next-prev-holder"><!-- comments next / prev holder start -->
  73. <!-- if statement for these? -->
  74. <div class="comments-next">
  75. <?php next_post('% <img class="img-prev" src="/images/right-arrow.png" height="7" width="8" border="0" alt="older posts"/>', '', 'yes') ?>
  76. </div>
  77. <div class="comments-previous">
  78. <?php previous_post('<img class="img-next" src="/images/left-arrow.png" height="7" width="8" border="0" alt="newer posts"/> %', '', 'yes') ?> </div>
  79. </div><!-- comments next / prev holder end -->
  80. <?php } ?>
  81.  
  82. <!-- next and previous post links end -->
  83.  
  84.  
  85. <?php else : ?>
  86.  
  87. <center><h2 class="entry-title">{ Nothing Found }</h2></center>
  88. <p>Sorry, but it isn't here.</p>
  89. <p><a href="<?php echo get_option('home'); ?>">Return to homepage</a></p>
  90.  
  91. <?php endif; ?>
  92.  
  93. </div><!-- end blog entry -->
  94.  
  95. </div><!-- end content -->
  96.  
  97.  
  98. <?php get_sidebar(); ?>
  99.  
  100. <?php get_footer(); ?>
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement