-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-2.php
110 lines (79 loc) · 3.34 KB
/
header-2.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
103
104
105
106
107
108
109
110
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cyberize
*/
?>
<!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="https://gmpg.org/xfn/11">
<!--=====================================
= FONTAWESOME PRO =
======================================-->
<!-- <link rel="icon" type="image/png" sizes="32x32" href="/wp-content/uploads/2018/02/Moose-32.png"> -->
<!-- <script src="https://kit.fontawesome.com/c8084101a0.js" crossorigin="anonymous"></script> -->
<!--===========================================
= CUSTOM ANALYTICS TAGS - HEAD =
============================================-->
<!--==== Base Tag ====-->
<?php the_field('before_ending_head_tag_default', 'option'); ?>
<!--==== Custom Conversion Tag ====-->
<?php the_field('before_ending_head_tag'); ?>
<!--==== End of CUSTOM ANALYTICS TAGS ====-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!--======================================================
= CUSTOM ANALYTICS TAGS - BODY TOP =
=======================================================-->
<!--==== Base Tag ====-->
<?php the_field('after_top_body_tag_default', 'option'); ?>
<!--==== Custom Conversion Tag ====-->
<?php the_field('after_top_body_tag'); ?>
<!--==== End of CUSTOM ANALYTICS TAGS - BODY TOP ====-->
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'cyberize' ); ?></a>
<header id="header-asm" class="site-header">
<!-- Moose_Framework_2 NAVIGATION GOES HERE -->
<section class="main-navigation">
<div id="main-navbar-asm" class="main-navbar navbar fixed-top">
<a class="navbar-logo" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<img src="/wp-content/uploads/logo.png" class="img-fluid" alt="">
</a>
<?php
// $athlete_name = bp_get_displayed_user_fullname();
// $athlete_email = bp_displayed_user_email();
$logged_in_user_name = bp_core_get_user_displayname( bp_loggedin_user_id() );
if ( is_user_logged_in() ) {
echo '<span class="welcome-user">';
echo "Welcome, " . $logged_in_user_name;
echo '</span>';
} else {
// echo 'Welcome, visitor!';
}
?>
<!-- THE HEADER MENU -->
<?php
wp_nav_menu( array(
'theme_location' => 'menu-1', // Defined when registering the menu
'menu_id' => 'primary-menu',
'container' => 'div',
'container_class' => 'main-nav pr-4',
'menu_class' => 'mx-auto', //CENTER ALIGN
// 'menu_class' => 'ml-auto', //RIGHT ALIGN
// 'menu_class' => 'mr-auto', //LEFT ALIGN
) );
?>
</div>
</section>
<!-- Moose_Framework_2 NAVIGATION ENDS HERE -->
</header><!-- #masthead -->
<div id="content" class="site-content">