-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
45 lines (38 loc) · 1.85 KB
/
front-page.php
File metadata and controls
45 lines (38 loc) · 1.85 KB
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
45
<?php
/**
* Front page template file
*
* The `front-page.php` template file is used to render your site's front page,
* whether the front page displays the blog posts index or a static page.
* The front page template takes precedence over the blog posts index (`home.php`) template.
* If the `front-page.php` file does not exist, WordPress will either use the `home.php` or
* `page.php` files depending on the setup in "Settings > Reading".
* If neither of those files exist, it will use the `index.php` file.
*
* 1. front-page.php : Used for both "your latest posts" or "a static page" as set
* in the front page displays section of "Settings > Reading".
* 2. home.php : If WordPress cannot find front-page.php and "your latest posts" is set
* in the front page displays section, it will look for home.php. Additionally,
* WordPress will look for this file when the posts page is set in the front page displays section.
* 3. page.php : When "front page" is set in the front page displays section.
* 4. index.php : When "your latest posts" is set in the front page displays section but home.php
* does not exist or when front page is set but page.php does not exist.
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page-display
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
get_header_hierarchical('front-page'); ?>
<div id="content" role="main">
<?php get_template_part_hierarchical('partials/loop'); ?>
</div>
<?php get_sidebar_hierarchical('front-page'); ?>
<?php get_footer_hierarchical('front-page'); ?>