function dfd_stylecharger_return_header() { ?> <div id="header-container" class="<?php echo dfd_get_header_style(); ?> "> <?php get_template_part('templates/header/style', dfd_get_header_style_option()); ?> </div> <?php exit; }
function dfd_get_header_style() { $head_type = dfd_get_header_style_option(); $header_layout = dfd_get_header_layout(); return "header-style-{$head_type} header-layout-{$header_layout}"; }
<div id="header-container" class="<?php echo dfd_get_header_style(); ?> "> <?php get_template_part('templates/header/style', dfd_get_header_style_option()); ?> </div>