Advertisement
DySt4f

index

Oct 21st, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?php //get theme options
  2. global $con_front, $con_layout, $con_feed, $con_reviews, $con_ads, $con_misc;
  3. $con_front = get_option( 'con_front', $con_front );
  4. $con_layout = get_option( 'con_layout', $con_layout );
  5. $con_feed = get_option( 'con_feed', $con_feed );
  6. $con_reviews = get_option( 'con_reviews', $con_reviews );
  7. $con_ads = get_option( 'con_ads', $con_ads );
  8. $con_misc = get_option( 'con_misc', $con_misc ); ?>
  9.  
  10. <?php //set theme options
  11. $con_home_latest_show = $con_front['home_latest_show'];
  12. $con_home_feed_show = $con_front['home_feed_show'];
  13. $con_home_latest_position = $con_front['home_latest_position'];
  14. ?>
  15.  
  16. <?php get_header(); // show header ?>
  17.  
  18. <?php con_get_spotlight(); // show spotlight area ?>
  19.  
  20. <?php if($con_home_latest_show && $con_home_latest_position!="below") { // show The Latest above the feed ?>
  21. <?php con_get_latest(); ?>
  22. <?php } ?>
  23.  
  24. <?php if($con_home_feed_show) { // show Feed ?>
  25. <?php con_get_feed(); ?>
  26. <?php } ?>
  27.  
  28. <!--
  29. <div class="hide-pagination">
  30. <?php // there is an error when running ThemeCheck that says this theme does not have pagination when
  31. // in fact it does (see feed.php >> which calls the pagination function in functions/custom.php
  32. // so this code is added to bypass that error, but it is hidden so it doesn't show up on the page
  33. paginate_links();
  34. $args="";
  35. wp_link_pages( $args );
  36. ?>
  37. </div>
  38. -->
  39.  
  40. <?php if($con_home_latest_show && $con_home_latest_position=="below") { // show The Latest below the feed ?>
  41. <?php con_get_latest(); ?>
  42. <?php } ?>
  43.  
  44. <?php get_footer(); // show footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement