| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/medicate/template-parts/header/ |
Upload File : |
<?php
/**
* Displays header widgets if assigned
*
* @package WordPress
* @subpackage pilelabs
* @since 1.0
* @version 1.0
*/
$pqf_options = get_option('pqf_options');
$row = "row no-gutters";
$soc_align = "";
$con_align = "";
$sticky = "";
$hide_top = "";
if(function_exists('get_field') && get_field('field_QnF1Ebstikey') != 'inherit' )
{
if(get_field('field_QnF1Ebstikey') == 'yes')
{
$sticky = 'pt-has-sticky';
}
else if (get_field('field_QnF1Ebstikey') == 'no')
{
$sticky = '';
}
}
else if(class_exists('ReduxFramework') && $pqf_options['sticky_header_enable'] == 'yes')
{
$sticky = 'pt-has-sticky';
}
if(isset($pqf_options['pt_top_header_layout']))
{
if($pqf_options['pt_top_header_layout'] == 'social-right')
{
$row = "row no-gutters flex-row-reverse";
$soc_align = "text-right";
$con_align = "";
}
if($pqf_options['pt_top_header_layout'] == 'social-left')
{
$row = "row no-gutters";
$soc_align = "";
$con_align = "text-right";
}
}
if ($pqf_options['top_header_enable'] == 'no')
{
$hide_top = "pt-topbar-hide";
}
if(isset($pqf_options['sidebar_logo']) && !empty($pqf_options['sidebar_logo']['url']))
{
$sidebar_logo = $pqf_options['sidebar_logo']['url'];
}
?>
<div class="pt-background-overlay"></div>
<div class="pt-sidebar">
<div class="pt-close-btn">
<a class="pt-close" href="javascript:void(0)">
<i class="ion-close-round"></i>
</a>
</div>
<div class="pt-sidebar-block mCustomScrollbar">
<div class="pt-sidebar-header">
<?php
if(!empty($sidebar_logo))
{
?>
<img src="<?php echo esc_url($sidebar_logo); ?>" class="pt-sidebar-logo" alt="<?php esc_attr_e('medicate-sidebar-logo','medicate'); ?>">
<?php } ?>
</div>
<div class="pt-sidebar-content">
<?php
if(isset($pqf_options['sidebar_desc']) && !empty($pqf_options['sidebar_desc']))
{
?>
<p><?php echo esc_html($pqf_options['sidebar_desc']); ?></p>
<?php
}
?>
</div>
<div class="pt-sidebars">
<?php dynamic_sidebar('pt_footer_6');
?>
</div>
<div class="pt-sidebar-contact">
<ul class="pt-contact">
<h2> Contact Info </h2>
<?php
if(!empty($pqf_options['address']))
{
?>
<li>
<i class="fa fa-map-marker"></i>
<span>
<?php echo esc_html($pqf_options['address']); ?>
</span>
</li>
<?php } ?>
<?php
if(!empty($pqf_options['phone']))
{
?>
<li>
<a href="tel:<?php echo str_replace(str_split('(),-" '), '',$pqf_options['phone']); ?>"><i class="fa fa-phone"></i>
<span><?php echo esc_html($pqf_options['phone']); ?></span>
</a>
</li>
<?php } ?>
<?php
if(!empty($pqf_options['email']))
{
?>
<li>
<a href="mailto:<?php echo esc_html($pqf_options['email']); ?>"><i class="fa fa-envelope"></i><span><?php echo esc_html($pqf_options['email']); ?></span></a>
</li>
<?php } ?>
</ul>
</div>
<div class="pt-sidebar-social">
<ul>
<?php
foreach ($pqf_options['social'] as $key => $value)
{
if(!empty($value))
{
?>
<li><a href="<?php echo esc_url($value); ?>"><i class="fab <?php echo esc_attr($key); ?>"></i></a></li>
<?php
}
}
?>
</ul>
</div>
</div>
</div>
<header id="pt-header" class="pt-header-style-5 <?php echo esc_attr($sticky); ?> <?php echo esc_attr($hide_top); ?>">
<div class="pt-header-diff-block">
<div class="row g-0">
<div class="col-lg-12">
<div class="pt-top-header ">
<div class="container-fluid p-0">
<?php
if(function_exists('get_field') && get_field('field_QnF1Ebs') != 'inherit')
{
$header_option = get_field('field_QnF1Ebs');
if($header_option == 'yes')
{
$top_header = get_field('key_pjroswas');
if ($top_header['top_header_options'] == 'social-left' || 'social-right')
{
get_template_part( 'template-parts/header/header', 'top' );
}
else{
get_template_part( 'template-parts/header/header', 'top' );
}
}
}
elseif(class_exists('ReduxFramework'))
{
if($pqf_options['top_header_enable'] == 'yes')
{
get_template_part( 'template-parts/header/header', 'top' );
}
}
?>
</div>
</div>
<div class="pt-bottom-header">
<div class="row g-0">
<div class="col-lg-12">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php medicate_display_logo(); ?>
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_class' => 'navbar-nav ml-auto',
'menu_id' => 'pt-main-menu',
'container_id' => 'pt-menu-contain',
'container_class' => 'pt-menu-contain',
) ); ?>
<?php endif; ?>
</div>
<div class="pt-header-info-box">
<div class="pt-menu-search-block">
<a href="javascript:void(0)" id="pt-seacrh-btn"><i class="ti-search"></i></a>
<div class="pt-search-form">
<?php get_search_form(); ?>
</div>
</div>
<?php
if ( class_exists( 'WooCommerce' ) )
{
if(isset($pqf_options['header_cart_enable']) && $pqf_options['header_cart_enable'] == 'yes' )
{
?>
<div class="pt-shop-btn">
<div class="pt-cart"><?php echo do_shortcode( '[medicate-mini-cart]' ); ?></div>
</div>
<?php
} } ?>
<div class="pt-toggle-btn">
<a href="javascript:void(0)" class='menu-toggle'>
<span>menu</span>
</a>
</div>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
</header>