-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
85 lines (85 loc) · 4.45 KB
/
header.php
File metadata and controls
85 lines (85 loc) · 4.45 KB
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
77
78
79
80
81
82
83
84
85
<?php get_template_part('head'); ?>
<?php wpbp_wrap_before(); ?>
<div id="wrap" role="document">
<section id="top-bar">
<div class="<?php wpbp_container_class(); ?>">
<div class="grid_8 mobile-center">
<div id="site-description">
<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>
</div>
</div>
<div class="grid_4 text-right mobile-center">
<?php if ( function_exists('of_get_option') ) : ?>
<ul id="social-links">
<?php if ( of_get_option('twitter_url') ) : ?>
<li>
<a href="<?php echo of_get_option('twitter_url'); ?>" target="_blank">
<i class="fa fa-twitter"></i>
</a>
</li>
<?php endif; ?>
<?php if ( of_get_option('facebook_url') ) : ?>
<li>
<a href="<?php echo of_get_option('facebook_url'); ?>" target="_blank">
<i class="fa fa-facebook"></i>
</a>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
</div>
</section>
<?php wpbp_header_before(); ?>
<header id="header" role="banner">
<?php wpbp_header_inside_before(); ?>
<div class="<?php wpbp_container_class(); ?>">
<div class="grid_4 mobile-center">
<h1 id="site-title">
<a class="valign" href="<?php echo home_url(); ?>/">
<?php if ( function_exists('of_get_option') && of_get_option('logo') ) : ?>
<img id="site-logo" src="<?php echo of_get_option('logo'); ?>" alt="<?php echo of_get_option('business_name') ? of_get_option('business_name') : get_bloginfo('name'); ?>" />
<?php else : ?>
<?php bloginfo('name'); ?>
<?php endif; ?>
</a>
</h1>
</div>
<div class="grid_8 text-right mobile-center">
<?php if ( function_exists('of_get_option') && of_get_option('tel') ) : ?>
<a id="site-tel" href="tel:<?php echo preg_replace("/[^0-9]/", "", of_get_option('tel')); ?>">
<i class="fa fa-phone"></i> <?php echo of_get_option('tel'); ?>
</a>
<?php endif; ?>
</div>
</div>
<?php wpbp_header_inside_after(); ?>
</header>
<?php if ( has_nav_menu('primary_navigation') ) : ?>
<nav id="main-nav" role="navigation">
<div class="<?php wpbp_container_class(); ?>">
<div class="grid_12">
<a class="menu-toggle" href="#menu-primary-navigation"><?php _e("Menu", 'convert'); ?></a>
<?php wp_nav_menu(array( 'theme_location' => 'primary_navigation' )); ?>
</div>
</div>
</nav>
<?php endif; ?>
<?php wpbp_header_after(); ?>
<section id="hero" style="<?php echo function_exists('of_get_option') && of_get_option('hero_cover') ? 'background-image: url(' . of_get_option('hero_cover') . ');' : ''; ?>);">
<div class="<?php wpbp_container_class(); ?>">
<?php if ( is_front_page() ) : ?>
<div class="grid_7">
<?php if ( function_exists('of_get_option') && of_get_option('front_page_hero') ) : ?>
<?php echo apply_filters('the_content', of_get_option('front_page_hero')); ?>
<?php endif; ?>
</div>
<?php else : ?>
<div class="grid_12">
<?php if ( function_exists('yoast_breadcrumb') ) : ?>
<?php yoast_breadcrumb('<div id="breadcrumbs">','</div>'); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</section>