-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
27 lines (27 loc) · 796 Bytes
/
Copy pathheader.php
File metadata and controls
27 lines (27 loc) · 796 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<?php wp_head(); ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
</head>
<?php
if (function_exists( 'is_amp_endpoint' ) && is_amp_endpoint()) {
$class = "amp";
}elseif (wp_is_mobile()) {
$class = "mobile";
}else{
$class = "desktop";
}
if (function_exists( 'is_amp_endpoint' ) && is_amp_endpoint()) {
?>
<body [class]="darkmode ? '<?php echo esc_attr( implode( ' ', get_body_class() ) ); ?> darkmode amp' : '<?php echo esc_attr( implode( ' ', get_body_class("amp") ) ); ?>'" <?php body_class("amp"); ?> >
<?php
}else{
?>
<body <?php body_class($class); ?> >
<?php
}
?>
<?php wp_body_open(); ?>