-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-4.php
144 lines (106 loc) · 4.96 KB
/
header-4.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?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 ====-->
<!--======================================================
= ASM - GLOBAL DROPDOWN MENU =
=======================================================-->
<?php get_template_part( '_cyberize-modules/asm-dropdown-nav' ); ?>
<!--==== End of ASM - GLOBAL DROPDOWN MENU ====-->
<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=""> -->
<img src=" <?php the_field('site_logo', 'option') ?>" class="img-fluid" alt="">
</a>
<!-- THE HEADER SEACH FORM -->
<div id="header-search" class="mr-auto">
<?php //get_search_form(); ?>
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
<label>
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
<input type="search" class="search-field" placeholder=" Search Athletes or Universities"
value="<?php echo get_search_query() ?>" name="s"
title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
</label>
<input type="submit" class="search-submit"
value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
</form>
</div>
<!-- THE HEADER SEACH FORM END -->
<?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() );
// $logged_in_user_obj = wp_get_current_user();
// $user_nicename = $logged_in_user_obj->user_nicename;
// $user_profile_url = "/members/$user_nicename";
if ( is_user_logged_in() ) {
// echo '<a href="' . $user_profile_url . '">';
// echo '<span class="welcome-user">';
// echo "Welcome, " . $logged_in_user_name;
// echo '</span>';
// echo '</a>';
} else {
// echo 'Welcome, visitor!';
// echo do_shortcode('[user_profile_url]');
}
?>
<!-- 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> <!-- main-navigation Ends -->
<!-- Moose_Framework_2 NAVIGATION ENDS HERE -->
</header><!-- #masthead -->
<div id="content" class="site-content">