-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
64 lines (57 loc) · 2.49 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
<!DOCTYPE HTML>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<?php wp_head(); ?>
</head>
<body <?php body_class('is-preload'); ?>>
<!-- Wrapper -->
<div id="wrapper" class="fade-in">
<!-- Intro -->
<?php
if ( is_home() && (!empty( get_theme_mod( 'header_custom_title' ) ) || !empty( get_theme_mod( 'header_custom_description' ) ) ) ) :
?>
<div id="intro">
<h1><?php echo !empty( get_theme_mod( 'header_custom_title' ) ) ? get_theme_mod( 'header_custom_title' ) : '' ; ?></h1>
<p><?php echo !empty( get_theme_mod( 'header_custom_description' ) ) ? get_theme_mod( 'header_custom_description' ) : '' ; ?></p>
<ul class="actions">
<li><a href="#header" class="button icon solo fa-arrow-down scrolly">Continue</a></li>
</ul>
</div>
<?php endif; ?>
<!-- Header -->
<header id="header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">Massively</a>
</header>
<!-- Nav -->
<nav id="nav">
<?php
$args = array(
'theme_location' => 'mainmenu',
'container' => 'ul',
'menu_class' => 'links',
);
if (has_nav_menu('mainmenu')) {
wp_nav_menu($args);
} else {
echo '<ul class="links">
<li class="current-menu-item"><a href="">Home</a></li>
</ul>';
}
?>
<ul class="icons">
<?php if ( !empty( get_theme_mod('massively_fb_text') ) ) : ?>
<li><a href="http://<?php echo get_theme_mod('massively_fb_text'); ?>" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_twitter_text') ) ) : ?>
<li><a href="http://<?php echo get_theme_mod('massively_twitter_text'); ?>" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_ins_text') ) ) : ?>
<li><a href="http://<?php echo get_theme_mod('massively_ins_text'); ?>" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_git_text') ) ) : ?>
<li><a href="http://<?php echo get_theme_mod('massively_git_text'); ?>" class="icon fa-github"><span class="label">GitHub</span></a></li>
<?php endif; ?>
</ul>
</nav>