File "header.php"
Full Path: /home/mba/public_html/wp-content-20250804013034-20250807183448/themes/twentytwenty-child-theme/header.php
File size: 12.49 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Header file for the Twenty Twenty WordPress default theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Twenty_Twenty
* @since 1.0.0
*/
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Title-->
<?php
$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
?>
<?php if(is_author()){
$current_user = get_the_author_meta('display_name',$curauth->ID);
$user_description = get_the_author_meta('description',$curauth->ID);
$user_description_seo = get_the_author_meta('wpseo_metadesc',$curauth->ID);
?>
<?php
if(empty($user_description_seo)){
if(!empty($user_description)){ ?>
<meta name="description" content="<?php echo preg_replace(array('{<a[^>]*>}','{</a>}'),array('',''),$user_description); ?>" />
<?php }else{ ?>
<meta name="description" content="<?php echo 'View ' .$current_user. ' millionaire-business-articles.com. Here are the latest article written by '.$current_user; ?>" />
<?php }}else{
?>
<meta name="description" content="<?php echo preg_replace(array('{<a[^>]*>}','{</a>}'),array('',''),$user_description_seo); ?>" />
<?php
}}?>
<!-- Stylesheets-->
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/creator_dashboard_style.css" type="text/css" media="all" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DPKZ0PCTW7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DPKZ0PCTW7');
</script>
<?php wp_head(); ?>
<!-- end head -->
</head>
<body class="mobile_nav_class jl-has-sidebar">
<div class="options_layout_wrapper jl_clear_at jl_radius jl_none_box_styles jl_border_radiuss jl_en_day_night">
<div class="options_layout_container full_layout_enable_front">
<header class="header-wraper jl_header_magazine_style two_header_top_style header_layout_style3_custom jl_cus_top_share">
<div class="header_top_bar_wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="menu-primary-container navigation_wrapper">
<?php wp_nav_menu(array("menu"=>"top_menu","menu_class"=>"jl_main_menu","menu_id"=>"jl_top_menu")); ?>
</div>
<div class="jl_top_cus_social">
<div class="menu_mobile_share_wrapper">
<span class="jl_hfollow">Follow Us</span>
<ul class="social_icon_header_top jl_socialcolor custom-social">
<li>
<a rel="nofollow" class="facebook" href="https://www.facebook.com/Millionairebusinessarticles/" target="_blank"><i class="jli-facebook"></i></a>
</li>
<li>
<a rel="nofollow" class="twitter" href="https://twitter.com/millionairebusi" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/ fill="#565656"></svg></a>
</li>
<li>
<a rel="nofollow" class="instagram" href="https://www.instagram.com/millionairebusinessarticles/" target="_blank"><i class="jli-instagram"></i></a>
</li>
<li>
<a rel="nofollow" class="pinterest" href="https://www.pinterest.com/millionairebusinessarticles/" target="_blank"><i class="jli-pinterest"></i></a>
</li>
<li>
<a rel="nofollow" class="linkedin" href="https://www.linkedin.com/in/millionaire-business-articles" target="_blank"><i class="jli-linkedin"></i></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Start Main menu -->
<div class="jl_blank_nav"></div>
<div id="menu_wrapper" class="menu_wrapper jl_menu_sticky jl_stick">
<div class="container">
<div class="row">
<div class="main_menu col-md-12">
<div class="logo_small_wrapper_table">
<div class="logo_small_wrapper">
<!-- begin logo -->
<a class="logo_link" href="<?php echo site_url(); ?>"><img class="jl_logo_n" src="<?php echo get_stylesheet_directory_uri(); ?>/img/logo_w.png" alt="logo" /></a>
<!-- end logo -->
</div>
</div>
<div class="search_header_menu jl_nav_mobile">
<div class="menu_mobile_icons">
<div class="jlm_w"><span class="jlma"></span><span class="jlmb"></span><span class="jlmc"></span></div>
</div>
<div class="search_header_wrapper search_form_menu_personal_click"><i class="jli-search"></i></div>
</div>
<div class="menu-primary-container navigation_wrapper jl_cus_share_mnu">
<ul id="mainmenu" class="jl_main_menu">
<li>
<a href="<?php echo site_url('category/business/'); ?>">Business</a>
</li>
<li>
<a href="<?php echo site_url('category/finance/'); ?>">Finance</a>
</li>
<li>
<a href="<?php echo site_url('category/food/'); ?>">Food</a>
</li>
<li>
<a href="<?php echo site_url('category/health/'); ?>">Health</a>
</li>
<li>
<a href="<?php echo site_url('category/real-estate/'); ?>">Real Estate</a>
</li>
<li class="menu-item menu-item-has-children">
<a href="">
More
</a>
<ul class="sub-menu">
<li>
<a href="https://millionaire-business-articles.com/category/fashion/">Fashion</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</header>
<div id="content_nav" class="jl_mobile_nav_wrapper">
<div id="nav" class="jl_mobile_nav_inner">
<div class="menu_mobile_icons mobile_close_icons closed_menu">
<span class="jl_close_wapper"><span class="jl_close_1"></span><span class="jl_close_2"></span></span>
</div>
<ul id="mobile_menu_slide" class="menu_moble_slide hidden-lg">
<?php wp_nav_menu(array("menu"=>"top_menu","menu_class"=>"jl_main_menu","menu_id"=>"jl_top_menu")); ?>
</ul>
<ul id="jl_top_menu" class="jl_main_menu hui">
<?php
$categories = get_categories( array(
'orderby' => 'name',
'order' => 'ASC'
) );
foreach( $categories as $category ) {
echo '<li class="menu-ityy"><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>';
}
?>
</ul>
<div id="_about_us_widget-3" class="widget jellywp_about_us_widget">
<div class="widget_jl_wrapper about_widget_content">
<div class="jellywp_about_us_widget_wrapper">
<div class="social_icons_widget">
<ul class="social-icons-list-widget icons_about_widget_display">
<li>
<a href="https://www.facebook.com/Millionairebusinessarticles/" class="facebook" rel="nofollow" target="_blank"><i class="jli-facebook"></i></a>
</li>
<li>
<a href="https://twitter.com/millionairebusi" rel="nofollow" class="twitter" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" height="14px" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/ fill="#fff"></svg></a>
</li>
<li>
<a href="https://www.linkedin.com/in/millionaire-business-articles" rel="nofollow" class="linkedin" target="_blank"><i class="jli-linkedin"></i></a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="search_form_menu_personal">
<div class="menu_mobile_large_close">
<span class="jl_close_wapper search_form_menu_personal_click"><span class="jl_close_1"></span><span class="jl_close_2"></span></span>
</div>
<form method="get" class="searchform_theme" action="<?php echo site_url(); ?>">
<input type="text" placeholder="Search..." value="" name="s" class="search_btn" /><button type="submit" class="button"><i class="jli-search"></i></button>
</form>
</div>
<div class="mobile_menu_overlay"></div>