This repository has been archived by the owner on Sep 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
102 lines (93 loc) · 4.1 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Roda
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php if ( get_theme_mod('site_favicon') ) : ?>
<link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'roda' ); ?></a>
<?php if (get_theme_mod('slider_display')) : ?>
<?php echo roda_slider_template(); ?>
<?php endif; ?>
<div class="mobile-toggles">
<div class="sidebar-toggle" data-toggle="tooltip" data-placement="bottom" title="<?php echo __('Toggle the sidebar', 'roda'); ?>">
<i class="fa fa-angle-double-left"></i>
</div>
<?php if ( has_nav_menu( 'social' ) ) : ?>
<div class="social-toggle" data-toggle="tooltip" data-placement="bottom" title="<?php echo __('See my social profile', 'roda'); ?>">
<i class="fa fa-facebook"></i>
</div>
<?php endif; ?>
<?php if (get_theme_mod('slider_display')) : ?>
<div class="slider-toggle" data-toggle="tooltip" data-placement="bottom" title="<?php echo __('See my latest photos', 'roda'); ?>">
<i class="fa fa-file-image-o"></i>
</div>
<?php endif; ?>
</div>
<header id="masthead" class="site-header" role="banner">
<div class="container">
<div class="site-branding">
<?php if ( get_theme_mod('site_logo') ) : ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php else : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif; ?>
</div>
<nav id="site-navigation" class="main-navigation" role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
<nav class="mobile-nav"></nav>
</div>
</header><!-- #masthead -->
<?php if ( has_nav_menu( 'social' ) ) : ?>
<nav class="social-navigation clearfix">
<h2 class="social-title"><?php echo __('My social profile', 'roda'); ?></h2>
<div class="social-close"><i class="fa fa-close"></i></div>
<?php wp_nav_menu( array( 'theme_location' => 'social', 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>', 'container_class' => 'container', 'menu_class' => 'menu clearfix', 'fallback_cb' => false ) ); ?>
</nav>
<?php endif; ?>
<div class="svg-header">
<?php echo roda_header_svg(); ?>
</div>
<?php if ( is_home() && get_theme_mod('blog_display') ) : ?>
<section id="about" class="about-me">
<div class="container">
<?php if ( get_theme_mod('about_photo') ) : ?>
<div class="about-photo">
<?php echo '<img class="about-img" src="' . esc_url(get_theme_mod('about_photo')) . '">'; ?>
</div>
<?php endif; ?>
<?php if ( get_theme_mod('about_title') ) : ?>
<h2 class="about-title">
<?php echo html_entity_decode( esc_html( get_theme_mod('about_title') ) ); ?>
</h2>
<?php endif; ?>
<?php if ( get_theme_mod('about_text') ) : ?>
<div class="about-text">
<?php echo html_entity_decode( esc_html( get_theme_mod('about_text') ) ); ?>
</div>
<?php endif; ?>
</div>
</section>
<div class="svg-about">
<?php echo roda_header_svg(); ?>
</div>
<?php endif; ?>
<div id="content" class="site-content container">