Subversion Repositories ZenDark

Rev

Rev 3 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
  /*
  * The main template file.
  *
  * This is the most generic template file in a WordPress theme
  * and one of the two required files for a theme (the other being style.css).
  * It is used to display a page when nothing more specific matches a query.
  * E.g., it puts together the home page when no home.php file exists.
  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  */

  get_header();
?>

<div id="content">

  <?php
    if (have_posts()) :
      zendark_content_nav('nav-above');
     
                        // Start the Loop
                        while (have_posts()) : the_post();
        get_template_part('content', false);
      endwhile;
      zendark_content_nav('nav-below');
    else :
  ?>
  <div>
                <header id="search-header">
                        <h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1>
                </header><!-- .entry-header -->
    <div id="search-content">
                        <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p>
                        <?php get_search_form(); ?>
                </div><!-- #search-content -->
        </div>
  <?php endif; ?>

</div><!-- #content -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>