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 }