'; if (!$scope) echo ''; echo ''; }else{ echo'
'; } } function itx_header_styles(){ $halfwrap=$fullwrap=''; extract(itx_get_option('header')); $height=empty($height)?'':" height:$height;"; if (function_exists('register_default_headers')){ $bg=(empty($image))?get_header_image():$image; } else { if (!get_theme_mod('header_image')){ $headbg=itx_setting('head_bg',$head_bg); $bg=sprintf($headbg['url'],get_template_directory_uri()); } if (empty($bg)) $bg=$image; } $bg=(empty($bg))?'':"url($bg)"; $img="background:$bgcolor $bg $repeat $h_align $v_align;$height"; if ($scope==1) $fullwrap=$img; else $halfwrap=$img; if (itx_get_option('layout','wrapping')=='fixed') $maxw=itx_get_option('layout','wrap').'px'; else $maxw='98%'; echo " #headerwrap{ $fullwrap text-align: $text_align;} #header{ $halfwrap } #header .header {font-size: {$font_size};} #header .header a {color: $color;text-decoration: none;} #header .header a:hover {color: $hover_color;} #header img{max-width:$maxw;} #header .tagline {font-size: {$span_font_size};color: $span_color;}"; } add_action('itx_styles','itx_header_styles'); ?>