Make WordPress Themes

source: fluida/1.5.0.2/index.php

Last change on this file was 87757, checked in by themedropbox, 8 years ago

New version of Fluida - 1.5.0.2

File size: 1.1 KB
Line 
1<?php
2/**
3 * The main template file.
4 *
5 * This is the most generic template file in a WordPress theme
6 * and one of the two required files for a theme (the other being style.css).
7 * It is used to display a page when nothing more specific matches a query.
8 * E.g., it puts together the home page when no home.php file exists.
9 *
10 * @package Fluida
11 */
12get_header();
13?>
14<div id="container" class="<?php echo fluida_get_layout_class(); ?>">
15        <main id="main" role="main" class="main">
16                <?php cryout_before_content_hook(); ?>
17
18                <?php if ( have_posts() ) : ?>
19
20                        <div id="content-masonry" class="content-masonry" <?php cryout_schema_microdata( 'blog' ); ?>>
21                                <?php /* Start the Loop */
22                                while ( have_posts() ) : the_post();
23                                        get_template_part( 'content/content', get_post_format() );
24                                endwhile;
25                                ?>
26                        </div> <!-- content-masonry -->
27                        <?php fluida_pagination(); ?>
28
29                <?php else :
30                        get_template_part( 'content/content', 'notfound' );
31                endif; ?>
32
33                <?php cryout_after_content_hook(); ?>
34        </main><!-- #main -->
35
36        <?php fluida_get_sidebar(); ?>
37</div><!-- #container -->
38
39<?php
40get_footer();
Note: See TracBrowser for help on using the repository browser.