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/doccure-wp/wp-content/themes/doccure/template-parts/header/content.php
<?php
/**
 * Template part for header.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package doccure
 */
$header_type = doccure_get_option('header_type', 'static');
if($header_type) {
$header_type = doccure_get_option('header_type', 'static');
} else {
	$header_type =  'static';

 }
$header_layout = doccure_get_option('header-layout', 'layout-1');
 
if($header_layout) {
	$header_layout = doccure_get_option('header-layout', 'layout-1');

 } else {
	$header_layout =  'layout-1';

 }


if ($header_type == 'static') {
 	?>	
     <?php get_template_part( 'template-parts/header/layouts/' . $header_layout ); ?>  
<?php
  } else {

	$header_template = doccure_get_option('header_type_page_template');
	if (empty($header_template)) {
			return;
	}
	$post = get_post($header_template);
	?>
	<header class="doccure_header doccure-template doccure_header-template doccure-template-<?php echo esc_attr($header_template) ?> <?php echo esc_html(get_page_template_slug()); ?>">
			<div class="container">
					<div class="entry-content clearfix">
							<?php echo do_shortcode($post->post_content); ?>
					</div>
			</div>
	</header>
	<?php
}