????
Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/ |
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/index.php |
<?php /** * The div 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. * For example, it puts together the home page when no home.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package Wanderfuls WordPress Theme * @subpackage Templates */ get_header(); ?> <div id="content-wrap" class="container clr"> <?php tb_hook_primary_before(); ?> <div id="primary" class="content-area clr"> <?php tb_hook_content_before(); ?> <div id="content" class="site-content"> <?php tb_hook_content_top(); ?> <?php // Display posts if there are in fact posts to display if ( have_posts() ) : /*-----------------------------------------------------------------------------------*/ /* - Standard Post Type Posts (BLOG) /* - See framework/conditionals.php /* - Blog entries use partials/blog/blog-entry.php for their output /*-----------------------------------------------------------------------------------*/ if ( tb_is_blog_query() ) : ?> <div id="blog-entries" class="<?php tb_blog_wrap_classes(); ?>"> <?php // Define counter for clearing floats $tb_count = 0; ?> <?php // Start div loop while ( have_posts() ) : the_post(); ?> <?php // Add to counter $tb_count++; ?> <?php // Get blog entry layout get_template_part( 'partials/blog/blog-entry-layout' ); ?> <?php // Reset counter to clear floats if ( tb_blog_entry_columns() == $tb_count ) { $tb_count=0; } ?> <?php // End loop endwhile; ?> </div><!-- #blog-entries --> <?php // Display post pagination (next/prev - 1,2,3,4..) tb_blog_pagination(); ?> <?php /*-----------------------------------------------------------------------------------*/ /* - Custom post type archives display /* - All non standard post type entries use content-other.php for their output /*-----------------------------------------------------------------------------------*/ else : ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'partials/post-type/post-type-entry', get_post_type() ); ?> <?php endwhile; ?> <?php tb_pagination(); ?> <?php endif; ?> <?php // Show message because there aren't any posts else : ?> <article class="clr"><?php _e( 'No Posts found.', 'tb' ); ?></article> <?php endif; ?> <?php tb_hook_content_bottom(); ?> </div><!-- #content --> <?php tb_hook_content_after(); ?> </div><!-- #primary --> <?php tb_hook_primary_after(); ?> </div><!-- .container --> <?php get_footer(); ?>