/
index.php
44 lines (29 loc) · 1020 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* @package firmasite
*/
global $firmasite_settings;
get_header();
?>
<div id="primary" class="content-area clearfix <?php echo $firmasite_settings["layout_primary_class"]; ?>">
<?php if ( have_posts() ) : ?>
<?php do_action( 'open_content' ); ?>
<?php do_action( 'open_loop' ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Type-specific template for the content.
If you want to support Post-Format, i suggest customize loop files with switch()
*/
global $post;
get_template_part( 'templates/loop', $post->post_type );
?>
<?php endwhile; ?>
<?php do_action( 'close_loop' ); ?>
<?php do_action( 'close_content' ); ?>
<?php else : ?>
<?php get_template_part( 'templates/no-results', 'index' ); ?>
<?php endif; ?>
</div><!-- #primary .content-area -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>