-
Notifications
You must be signed in to change notification settings - Fork 14
/
header.php
76 lines (62 loc) · 2.66 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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 <?php body_class(); ?>>
<div class="page-wrapper">
<div class="header">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-menu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php if ( get_theme_mod( 'realia_bootstrap_general_logo' ) ) : ?>
<img src="<?php echo get_theme_mod( 'realia_bootstrap_general_logo' ); ?>" alt="<?php echo __( 'Home', 'realia-bootstrap' ); ?>">
<?php else : ?>
<?php bloginfo( 'name' ); ?>
<?php endif; ?>
</a>
<p class="navbar-text"><?php bloginfo( 'description' ); ?></p>
</div>
<?php $menu = wp_nav_menu( array(
'menu_class' => 'nav navbar-nav navbar-right collapse navbar-collapse',
'walker' => new Realia_Bootstrap_Menu_Walker(),
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
'fallback_cb' => false,
'echo' => false,
) ); ?>
<?php if ( ! empty( $menu ) ) : ?>
<?php echo $menu; ?>
<?php endif; ?>
</div><!-- /.container -->
</nav>
</div><!-- /.header -->
<div class="main">
<?php dynamic_sidebar( 'sidebar-top-fullwidth' ); ?>
<div class="container">
<?php get_sidebar( 'top' ); ?>
<?php if ( ! empty( $_SESSION['messages'] ) && is_array( $_SESSION['messages'] ) ) : ?>
<?php $_SESSION['messages'] = Realia_Utilities::array_unique_multidimensional( $_SESSION['messages'] );?>
<div class="alerts">
<?php foreach ( $_SESSION['messages'] as $message ) : ?>
<div class="alert alert-dismissible alert-<?php echo esc_attr( $message[0] ); ?>">
<div class="alert-inner">
<?php echo wp_kses( $message[1], wp_kses_allowed_html( 'post' ) ); ?>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><i class="pp pp-normal-circle-cross"></i></button>
</div><!-- /.alert-inner -->
</div><!-- /.alert -->
<?php endforeach; ?>
</div><!-- /.alerts -->
<?php unset( $_SESSION['messages'] ); ?>
<?php endif; ?>