Guest User

index.php

a guest
Mar 8th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="container_24 clearfix separator <?php echo of_get_option('blog_sidebar_pos') ?>">
  3. <div id="content" class="grid_15 <?php echo of_get_option('blog_sidebar_pos') ?>">
  4.  
  5. <?php include_once (TEMPLATEPATH . '/title.php');?>
  6.  
  7.  
  8. <?php
  9.  
  10. if (have_posts()) : while (have_posts()) : the_post();
  11.  
  12. // The following determines what the post format is and shows the correct file accordingly
  13. $format = get_post_format();
  14. get_template_part( 'includes/post-formats/'.$format );
  15.  
  16. if($format == '')
  17. get_template_part( 'includes/post-formats/standard' );
  18.  
  19. endwhile; else:
  20.  
  21. ?>
  22.  
  23. <div class="no-results">
  24. <?php echo '<p><strong>' . __('There has been an error.', 'theme1845') . '</strong></p>'; ?>
  25. <p><?php _e('We apologize for any inconvenience, please', 'theme1845'); ?> <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>"><?php _e('return to the home page', 'theme1845'); ?></a> <?php _e('or use the search form below.', 'theme1845'); ?></p>
  26. <?php get_search_form(); /* outputs the default Wordpress search form */ ?>
  27. </div><!--no-results-->
  28.  
  29. <?php endif; ?>
  30.  
  31.  
  32. <?php get_template_part('includes/post-formats/post-nav'); ?>
  33.  
  34. </div><!--#content-->
  35. <?php get_sidebar(); ?>
  36. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment