-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (34 loc) · 1.06 KB
/
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
<?php
/**
* Index Template
*
* Fallbaack for all the theme files
*
* @package Minilog
*/
get_header();
?>
<?php
if ( is_front_page() && is_home() ) {
get_template_part( 'archive', get_post_format() ); // Default homepage (blog / archive).
} elseif ( is_front_page() ) {
get_template_part( 'content', get_post_format() ); // If Static homepage.
} elseif ( is_home() ) {
get_template_part( 'archive', get_post_format() ); // Blog page (same as archive).
} elseif ( is_archive() ) {
get_template_part( 'archive', get_post_format() ); // Archive Page.
} elseif ( is_single() ) {
get_template_part( 'single', get_post_format() ); // Single Post.
} elseif ( is_search() ) {
get_template_part( 'search', get_post_format() ); // Search Page.
} elseif ( is_page() ) {
get_template_part( 'page', get_post_format() ); // Normal pages.
} elseif ( is_404() ) {
get_template_part( '404', get_post_format() ); // 404 pages.
} else {
get_template_part( 'content', get_post_format() ); // Everything else.
}
?>
<?php get_sidebar(); ?>
</div> <!-- /container-->
<?php get_footer(); ?>