| 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(isset($pqf_options['sticky_header_enable']) && $pqf_options['sticky_header_enable'])
{
$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";
}
$header_option = get_field('field_ATaJj057m');
//print_r($header_option);
?>
<header id="pt-header" class="pt-header-style-4 <?php echo esc_attr($hide_top); ?>">
<div class="pt-top-header">
<div class="container">
<?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="pt-header-infobox">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="pt-header-top-wrapper">
<div class="pt-site-logo">
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php medicate_display_logo(); ?>
</a>
</div>
<div class="pt-top-info-content">
<div class="pt-header-info">
<div class="pt-header-info-box address">
<div class="info-icon">
<div class="icon">
<i class="ti-location-pin"></i>
</div>
</div>
<div class="info-icon-content">
<h4><?php echo esc_html($pqf_options['location_text']);?></h4>
<p><?php echo esc_html($pqf_options['address']);?> </p>
</div>
</div>
<div class="pt-header-info-box">
<div class="info-icon">
<div class="icon">
<i class="ti-email"></i>
</div>
</div>
<div class="info-icon-content">
<h4><?php echo esc_html($pqf_options['email_text']);?></h4>
<p><?php echo esc_html($pqf_options['email']);?> </p>
</div>
</div>
<div class="pt-header-info-box">
<div class="info-icon">
<div class="icon">
<i class="ti-headphone"></i>
</div>
</div>
<div class="info-icon-content">
<h4><?php echo esc_html($pqf_options['phone_text']);?></h4>
<p> <?php echo esc_html($pqf_options['phone']); ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="pt-header-menu">
<div id="site-header-menu" class="site-header-menu">
<div class="container">
<div class="row">
<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">
<div id="pt-menu-contain" class="pt-menu-contain">
<?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>
<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>
</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 }
} ?>
<?php if ($pqf_options['header_action_enable'] == 'yes') { ?>
<div class="pt-btn-container">
<?php
if(isset($pqf_options['action_btn_url']) && !empty($pqf_options['action_btn_url']))
{
$url = $pqf_options['action_btn_url'];
}
else
{
$url = "#";
}
?>
<a href="<?php echo esc_url($url); ?>" class="pt-button">
<div class="pt-button-block">
<?php
if(isset($pqf_options['action_btn_text']) && !empty($pqf_options['action_btn_text']))
{
$text = $pqf_options['action_btn_text'];
}
else
{
$text = 'Appointment';
}
?>
<span class="pt-button-text"><?php echo esc_html($text); ?></span><i class="ion ion-plus-round"></i>
</div>
</a>
</div>
<?php } ?>
<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>