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
}