forked from sajison/fwd-boilerplate-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
36 lines (33 loc) · 743 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
<?php
use FWD_Helper as FWD;
$template = new Template_Index;
$slug = $template->slug;
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<?php
// Header meta, scripts, and styles
FWD::preload( $slug, 'css' );
FWD::preload( $slug, 'js' );
FWD::the_layout( 'header' );
wp_enqueue_style( $slug );
?>
</head>
<body <?php body_class( $slug ); ?>>
<?php
// Body open meta and functions
FWD::the_layout( 'body-open' );
?>
<div id="page-wrapper" class="<?php echo $slug; ?>__wrapper">
<?php
the_content();
?>
</div>
<?php
// Footer meta and scripts
wp_enqueue_script( $slug );
FWD::the_component( null, 'meta/foot' );
?>
</body>
</html>