-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
60 lines (55 loc) · 1.53 KB
/
header.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Base header
*
* @package Acato\WOO_Portal_Theme
* @subpackage Acato\WOO_Portal_Theme\Header
* @author Acato
*/
$site_title = get_bloginfo('name');
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php echo esc_html( $site_title ) ?></title>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0">
<meta
http-equiv="X-UA-Compatible"
content="ie=edge">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
do_action( 'wp_body_open' );
?>
<a
id="skip-to-content"
href="#main-content">
<?php echo esc_html__( 'Skip directly to content', 'woo-portal-theme' ); ?>
</a>
<div class="header">
<div class="container">
<a class="logo" href="<?php echo esc_url( get_bloginfo( 'url' ) ); ?>" title="<?php echo esc_html( get_bloginfo( 'description' ) ); ?>">
<?php $image = wp_get_attachment_image( cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_header_logo_id' ), 'medium' );
if ( ! empty( $image ) ) {
echo wp_kses_post( $image );
} else { ?>
<div class="header__title"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></div>
<?php } ?>
</a>
<div class="header-right">
<?php
$contact = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_contact_page' );
if ( ! empty( $contact ) ) {
?>
<a href="<?php echo esc_url( $contact ); ?>"><?php echo esc_html__( 'Contact', 'woo-portal-theme' ); ?></a>
<?php } ?>
</div>
</div>
</div>
<main
id="main-content"
class="page">