function wp_head() { $opt = _WSH()->option(); sh_theme_color_scheme(); ?> <style type="text/css"> <?php if (sh_set($opt, 'body_custom_font')) { echo sh_get_font_settings(array('body_font_size' => 'font-size', 'body_font_family' => 'font-family', 'body_font_style' => 'font-style', 'body_font_color' => 'color', 'body_line_height' => 'line-height'), 'body, p {', '}'); } if (sh_set($opt, 'use_custom_font')) { echo sh_get_font_settings(array('h1_font_size' => 'font-size', 'h1_font_family' => 'font-family', 'h1_font_style' => 'font-style', 'h1_font_color' => 'color', 'h1_line_height' => 'line-height'), 'h1 {', '}'); echo sh_get_font_settings(array('h2_font_size' => 'font-size', 'h2_font_family' => 'font-family', 'h2_font_style' => 'font-style', 'h2_font_color' => 'color', 'h2_line_height' => 'line-height'), 'h2 {', '}'); echo sh_get_font_settings(array('h3_font_size' => 'font-size', 'h3_font_family' => 'font-family', 'h3_font_style' => 'font-style', 'h3_font_color' => 'color', 'h3_line_height' => 'line-height'), 'h3 {', '}'); echo sh_get_font_settings(array('h4_font_size' => 'font-size', 'h4_font_family' => 'font-family', 'h4_font_style' => 'font-style', 'h4_font_color' => 'color', 'h4_line_height' => 'line-height'), 'h4 {', '}'); echo sh_get_font_settings(array('h5_font_size' => 'font-size', 'h5_font_family' => 'font-family', 'h5_font_style' => 'font-style', 'h5_font_color' => 'color', 'h5_line_height' => 'line-height'), 'h5 {', '}'); echo sh_get_font_settings(array('h6_font_size' => 'font-size', 'h6_font_family' => 'font-family', 'h6_font_style' => 'font-style', 'h6_font_color' => 'color', 'h6_line_height' => 'line-height'), 'h6 {', '}'); } echo sh_set($opt, 'header_css'); ?> </style> <?php }
function wp_head() { $opt = _WSH()->option(); $boxed = sh_set($opt, 'boxed_layout'); $boxed_style = $boxed && sh_set($opt, 'bg_boxed') ? ' body { background: url(' . sh_set($opt, 'bg_boxed') . ') repeat center center; }' : ''; if (is_page()) { $meta = _WSH()->get_meta(); //printr($meta); $boxed = sh_set($meta, 'boxed') ? true : $boxed; $boxed_style = $boxed && sh_set($meta, 'bg_boxed') ? ' body { background: url(' . sh_set($meta, 'bg_boxed') . ') repeat center center; }' : ''; } echo '<script type="text/javascript"> if( ajaxurl === undefined ) var ajaxurl = "' . admin_url('admin-ajax.php') . '";</script>'; ?> <style type="text/css"> <?php if (sh_set($opt, 'body_custom_font')) { echo sh_get_font_settings(array('body_font_size' => 'font-size', 'body_font_family' => 'font-family', 'body_font_style' => 'font-style', 'body_font_color' => 'color', 'body_line_height' => 'line-height'), 'body, p {', '}'); } if (sh_set($opt, 'use_custom_font')) { echo sh_get_font_settings(array('h1_font_size' => 'font-size', 'h1_font_family' => 'font-family', 'h1_font_style' => 'font-style', 'h1_font_color' => 'color', 'h1_line_height' => 'line-height'), 'h1 {', '}'); echo sh_get_font_settings(array('h2_font_size' => 'font-size', 'h2_font_family' => 'font-family', 'h2_font_style' => 'font-style', 'h2_font_color' => 'color', 'h2_line_height' => 'line-height'), 'h2 {', '}'); echo sh_get_font_settings(array('h3_font_size' => 'font-size', 'h3_font_family' => 'font-family', 'h3_font_style' => 'font-style', 'h3_font_color' => 'color', 'h3_line_height' => 'line-height'), 'h3 {', '}'); echo sh_get_font_settings(array('h4_font_size' => 'font-size', 'h4_font_family' => 'font-family', 'h4_font_style' => 'font-style', 'h4_font_color' => 'color', 'h4_line_height' => 'line-height'), 'h4 {', '}'); echo sh_get_font_settings(array('h5_font_size' => 'font-size', 'h5_font_family' => 'font-family', 'h5_font_style' => 'font-style', 'h5_font_color' => 'color', 'h5_line_height' => 'line-height'), 'h5 {', '}'); echo sh_get_font_settings(array('h6_font_size' => 'font-size', 'h6_font_family' => 'font-family', 'h6_font_style' => 'font-style', 'h6_font_color' => 'color', 'h6_line_height' => 'line-height'), 'h6 {', '}'); } echo $boxed_style; echo sh_set($opt, 'header_css'); ?> </style> <?php sh_theme_color_scheme(); ?> <?php if (sh_set($opt, 'header_js')) { ?> <script type="text/javascript"> <?php echo sh_set($opt, 'header_js'); ?> </script> <?php } ?> <?php }
function wp_head() { $options = _WSH()->option(); //printr($options); $custom_css = sh_set($options, 'header_css'); echo '<script type="text/javascript"> if( ajaxurl === undefined ) var ajaxurl = "' . admin_url('admin-ajax.php') . '";</script>'; ?> <style type="text/css"> <?php if (sh_set($options, 'body_custom_font')) { echo sh_get_font_settings(array('body_font_family' => 'font-family', 'body_font_color' => 'color'), 'body, p { ', ' }'); } if (sh_set($options, 'use_custom_font')) { echo sh_get_font_settings(array('h1_font_family' => 'font-family', 'h1_font_color' => 'color'), 'h1 { ', ' }'); echo sh_get_font_settings(array('h2_font_family' => 'font-family', 'h2_font_color' => 'color'), 'h2 { ', ' }'); echo sh_get_font_settings(array('h3_font_family' => 'font-family', 'h3_font_color' => 'color'), 'h3 { ', ' }'); echo sh_get_font_settings(array('h4_font_family' => 'font-family', 'h4_font_color' => 'color'), 'h4 { ', ' }'); echo sh_get_font_settings(array('h5_font_family' => 'font-family', 'h5_font_color' => 'color'), 'h5 { ', ' }'); echo sh_get_font_settings(array('h6_font_family' => 'font-family', 'h6_font_color' => 'color'), 'h6 { ', ' }'); } ?> <?php if ($banner_image = sh_set($options, 'subpages_banner')) { ?> .info-section-parallax-path { background: url("<?php echo esc_url($banner_image); ?> ") repeat fixed center top rgba(0, 0, 0, 0); } <?php } ?> <?php echo $custom_css; ?> </style> <?php }
?> <!-- Navigation --> <nav class="navbar fixed-enabled" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="fa fa-bars"></span> </button> <?php $logo_type = sh_set($theme_options, 'logo_type', 'image'); if ($logo_type == 'text') { //printr($theme_options); $LogoStyle = sh_get_font_settings(array('logo_font_size' => 'font-size', 'logo_font_face' => 'font-family', 'logo_font_style' => 'font-style', 'logo_color' => 'color'), ' style="', '"'); $Logo = '<span>' . sh_set($theme_options, 'logo_heading', get_bloginfo('name')) . '</span>'; } else { $height = get_custom_header()->height ? ' height="' . get_custom_header()->height . '"' : ''; $width = get_custom_header()->width ? ' width="' . get_custom_header()->width . '"' : ''; $LogoStyle = ''; $Logo = '<img src="' . get_header_image() . '"' . $height . $width . ' alt="' . get_bloginfo('name') . '" />'; } ?> <a class="navbar-brand h1 uppercase" href="<?php echo esc_url(home_url()); ?> " title="<?php bloginfo('name'); ?>