Advertisement
Guest User

Last-All.php

a guest
May 14th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Home - Last Articles
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7.  
  8. <?php include 'feature.php' ; ?>
  9.  
  10. <!-- MAIN CONTENT -->
  11. <section id="main-container">
  12. <div class="row">
  13. <h1 class="hidden"><?php echo get_bloginfo('name'); ?></h1>
  14. <!-- Last Tweet -->
  15. <?php if( (get_option('bd_display_big_tweet')!='') && (get_option('bd_twitter_url')!='')): ?>
  16. <div class="block">
  17. <div class="inner">
  18. <div class="bigtweet">
  19. <div class="clear"></div>
  20. </div>
  21. </div>
  22. </div>
  23. <?php endif; ?>
  24. <div class="block">
  25. <div class="inner">
  26. <div id="chainsaw-digest-top">
  27. <p>
  28. <img src="/wp-content/themes/zine/images/sharpthought.png" />
  29. </p>
  30. <h1>If this is the sort of thing you enjoy, you should subscribe to our free, weekly, pulp-style eNewsletter called Chainsaw Digest.</h1>
  31. <p>
  32. <script type="text/javascript" src="http://forms.aweber.com/form/78/255012978.js"></script>
  33. </p>
  34. </div>
  35. </div>
  36. </div>
  37.  
  38. <?php if (have_posts()) : while (have_posts()) : the_post();?>
  39. <?php if (get_the_content()!=''): ?>
  40. <div class="block">
  41. <div class="inner">
  42. <?php the_content(); ?>
  43. </div>
  44. </div>
  45. <?php endif ; ?>
  46. <?php endwhile; endif; ?>
  47.  
  48. <div class="content">
  49. <?php if(get_option('bd_home_type')=='blog'): ?>
  50. <?php get_template_part('last', 'posts'); ?>
  51.  
  52. <?php elseif(get_option('bd_home_type')=='movie-reviews'): ?>
  53. <?php get_template_part('last', 'movie-reviews'); ?>
  54.  
  55. <?php elseif(get_option('bd_home_type')=='music-reviews'): ?>
  56. <?php get_template_part('last', 'music-reviews'); ?>
  57.  
  58. <?php elseif(get_option('bd_home_type')=='game-reviews'): ?>
  59. <?php get_template_part('last', 'game-reviews'); ?>
  60.  
  61. <?php elseif(get_option('bd_home_type')=='book-reviews'): ?>
  62. <?php get_template_part('last', 'book-reviews'); ?>
  63.  
  64. <?php else: ?>
  65. <?php get_template_part('last', 'all'); ?>
  66. <?php endif ; ?>
  67. </div>
  68. <?php get_sidebar(); ?>
  69. </div>
  70. </section>
  71. <!-- END MAIN CONTENT -->
  72.  
  73. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement