-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathheader.php
More file actions
40 lines (31 loc) · 795 Bytes
/
header.php
File metadata and controls
40 lines (31 loc) · 795 Bytes
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
<?php
/**
* The main header file.
*
* @package Lean
* @since 1.0.0
*/
use Lean\Load;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body id="wpbody" <?php body_class(); ?>>
<?php
do_action( 'lean/before_header' );
$logo = get_field( 'general_options_logo', 'options' );
Load::organism(
'header/header',
[
'website_title' => get_bloginfo( 'title' ),
'website_home_url' => home_url(),
'website_logo_id' => $logo ? $logo['ID'] : false,
]
);
do_action( 'lean/after_header' );