-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
83 lines (75 loc) · 2.75 KB
/
Copy pathheader.php
File metadata and controls
83 lines (75 loc) · 2.75 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
<!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( array('is-preload') ); ?>>
<!-- Wrapper -->
<div id="wrapper" class="fade-in">
<!-- Intro -->
<?php
$getCustomTitle = get_theme_mod( 'header_custom_title' );
$getCustomDesc = get_theme_mod( 'header_custom_description' );
if ( is_home() && ( !empty( $getCustomTitle ) || !empty( $getCustomDesc ) ) ) :
?>
<div id="intro">
<h1><?php echo !empty( $getCustomTitle ) ? wp_kses_post( $getCustomTitle ) : ''; ?></h1>
<p><?php echo !empty( $getCustomDesc ) ? wp_kses_post( $getCustomDesc ) : ''; ?></p>
<ul class="actions">
<li><a href="#header" class="button icon solo fa-arrow-down scrolly"><?php _e( 'Continue', 'massively' ); ?></a></li>
</ul>
</div>
<?php endif; ?>
<!-- Header -->
<header id="header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo"><?php bloginfo( 'name' ); ?></a>
</header>
<!-- Nav -->
<nav id="nav">
<?php
if ( has_nav_menu('mainmenu') ) {
$args = array(
'theme_location' => 'mainmenu',
'container' => 'ul',
'menu_class' => 'links',
);
wp_nav_menu($args);
} else {
echo '<ul class="links">
<li class="current-menu-item"><a href="">'. __( 'Home', 'massively' ) .'</a></li>
</ul>';
}
?>
<ul class="icons">
<?php if ( !empty( get_theme_mod('massively_fb_text') ) ) : ?>
<li>
<a href="<?php echo esc_url( get_theme_mod('massively_fb_text') ); ?>" class="icon fa-facebook">
<span class="label"><?php _e( 'Facebook', 'massively' ); ?></span>
</a>
</li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_twitter_text') ) ) : ?>
<li>
<a href="<?php echo esc_url( get_theme_mod('massively_twitter_text') ); ?>" class="icon fa-twitter">
<span class="label"><?php _e( 'Twitter', 'massively' ); ?></span>
</a>
</li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_ins_text') ) ) : ?>
<li>
<a href="<?php echo esc_url( get_theme_mod('massively_ins_text') ); ?>" class="icon fa-instagram">
<span class="label"><?php _e( 'Instagram', 'massively' ); ?></span>
</a>
</li>
<?php endif; ?>
<?php if ( !empty( get_theme_mod('massively_git_text') ) ) : ?>
<li>
<a href="<?php echo esc_url( get_theme_mod('massively_git_text') ); ?>" class="icon fa-github">
<span class="label"><?php _e( 'GitHub', 'massively' ); ?></span>
</a>
</li>
<?php endif; ?>
</ul>
</nav>