HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/truelysell-wp/pet-grooming/wp-content/themes/truelysell/header-provider.php
<?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 truelysell
 */

?>
 
<!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">

	<?php wp_head(); ?>
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<?php 
	$current_user = wp_get_current_user();
	$user_id = get_current_user_id();
	$roles = $current_user->roles;
	$role = array_shift($roles);
if (in_array($role, array('administrator', 'admin', 'owner', 'seller', 'staff')))  { 
$custom_classes = array('provider-page'); 
  } else {
	$custom_classes = ''; 
  }
?>

<body <?php body_class($custom_classes); ?>>
<?php wp_body_open(); ?>
<div id="page" class="main-wrapper">
  

<?php 
if (in_array($role, array('administrator', 'admin', 'owner', 'seller')))  { 
	
	get_template_part( 'template-parts/header/header', 'style-provider' ); 
	
} else if (in_array($role, array('staff'))) {
	get_template_part( 'template-parts/header/header', 'style-staff' ); 
} ?>