| 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
*/
$sticky = '';
$pqf_options = get_option('pqf_options');
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';
}
?>
<div class="pt-background-overlay"></div>
<header id="pt-header" class="pt-header-default <?php echo esc_attr($sticky); ?>">
<div class="pt-top-header">
<div class="container">
<?php
if(function_exists('get_field') && get_field('field_QnF1Ebs') == 'yes' && get_field('field_QnF1Ebs') != 'inherit')
{
$header_option = get_field('field_QnF1Ebs');
if($header_option == 'yes')
{
get_template_part( 'template-parts/header/header', 'top' );
}
}
elseif(isset($pqf_options['top_header_enable']) && $pqf_options['top_header_enable'] == 'yes')
{
get_template_part( 'template-parts/header/header', 'top' );
}
?>
</div>
</div>
<div class="pt-bottom-header ">
<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">
<?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>
<?php
if(class_exists('ReduxFramework'))
{
?>
<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-btn-container">
<a href="#contact" class="pt-button">
<div class="pt-button-block">
<span class="pt-button-text">นัดหมายแพทย์</span>
<i class="ion ion-plus-round"></i>
</div>
</a>
</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>
<?php } ?>
</nav>
</div>
</div>
</div>
</div>
</header>