<style type="text/css">
body {
<?php $body_bg = of_get_option('body_bg', false );
if ($body_bg != 'false') { ?>
<?php if ($body_bg['image']) { ?>
background-image:url('<?php echo $body_bg['image']; ?>');
<?php } ?>
<?php if ($body_bg['color']) { ?>
background-color:<?php echo $body_bg['color']; ?>;
<?php } ?>
<?php if ($body_bg['repeat']) { ?>
background-repeat:<?php echo $body_bg['repeat']; ?>;
<?php } ?>
<?php if ($body_bg['attachment']) { ?>
background-attachment: <?php echo $body_bg['attachment']; ?>;
<?php } ?> 
<?php } ?>
<?php $body_typo = of_get_option('body_typo', false );
if ($body_typo != 'false') { ?>
<?php if ($body_typo['color']) { ?>
color:<?php echo $body_typo['color']; ?>;
<?php } ?>
<?php if ($body_typo['size']) { ?>
font-size:<?php echo $body_typo['size']; ?>;
<?php } ?>
<?php if ($body_typo['face']) { ?>
font-family:<?php echo $body_typo['face']; ?>;
<?php } ?>
<?php if ($body_typo['style']) { ?>
font-weight: <?php echo $body_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h1 {
<?php $h1_typo = of_get_option('h1_typo', false );
if ($h1_typo != 'false') { ?>
<?php if ($h1_typo['color']) { ?>
color:<?php echo $h1_typo['color']; ?>;
<?php } ?>
<?php if ($h1_typo['size']) { ?>
font-size:<?php echo $h1_typo['size']; ?>;
<?php } ?>
<?php if ($h1_typo['face']) { ?>
font-family:<?php echo $h1_typo['face']; ?>;
<?php } ?>
<?php if ($h1_typo['style']) { ?>
font-weight: <?php echo $h1_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h2 {
<?php $h2_typo = of_get_option('h2_typo', false );
if ($h2_typo != 'false') { ?>
<?php if ($h2_typo['color']) { ?>
color:<?php echo $h2_typo['color']; ?>;
<?php } ?>
<?php if ($h2_typo['size']) { ?>
font-size:<?php echo $h2_typo['size']; ?>;
<?php } ?>
<?php if ($h2_typo['face']) { ?>
font-family:<?php echo $h2_typo['face']; ?>;
<?php } ?>
<?php if ($h2_typo['style']) { ?>
font-weight: <?php echo $h2_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h3 {
<?php $h3_typo = of_get_option('h3_typo', false );
if ($h3_typo != 'false') { ?>
<?php if ($h3_typo['color']) { ?>
color:<?php echo $h3_typo['color']; ?>;
<?php } ?>
<?php if ($h3_typo['size']) { ?>
font-size:<?php echo $h3_typo['size']; ?>;
<?php } ?>
<?php if ($h3_typo['face']) { ?>
font-family:<?php echo $h3_typo['face']; ?>;
<?php } ?>
<?php if ($h3_typo['style']) { ?>
font-weight: <?php echo $h3_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h4 {
<?php $h4_typo = of_get_option('h4_typo', false );
if ($h4_typo != 'false') { ?>
<?php if ($h4_typo['color']) { ?>
color:<?php echo $h4_typo['color']; ?>;
<?php } ?>
<?php if ($h4_typo['size']) { ?>
font-size:<?php echo $h4_typo['size']; ?>;
<?php } ?>
<?php if ($h4_typo['face']) { ?>
font-family:<?php echo $h4_typo['face']; ?>;
<?php } ?>
<?php if ($h4_typo['style']) { ?>
font-weight: <?php echo $h4_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h5 {
<?php $h5_typo = of_get_option('h5_typo', false );
if ($h5_typo != 'false') { ?>
<?php if ($h5_typo['color']) { ?>
color:<?php echo $h5_typo['color']; ?>;
<?php } ?>
<?php if ($h5_typo['size']) { ?>
font-size:<?php echo $h5_typo['size']; ?>;
<?php } ?>
<?php if ($h5_typo['face']) { ?>
font-family:<?php echo $h5_typo['face']; ?>;
<?php } ?>
<?php if ($h5_typo['style']) { ?>
font-weight: <?php echo $h5_typo['style']; ?>;
<?php } ?>
<?php } ?>
}

h6 {
<?php $h6_typo = of_get_option('h6_typo', false );
if ($h6_typo != 'false') { ?>
<?php if ($h6_typo['color']) { ?>
color:<?php echo $h6_typo['color']; ?>;
<?php } ?>
<?php if ($h6_typo['size']) { ?>
font-size:<?php echo $h6_typo['size']; ?>;
<?php } ?>
<?php if ($h6_typo['face']) { ?>
font-family:<?php echo $h6_typo['face']; ?>;
<?php } ?>
<?php if ($h6_typo['style']) { ?>
font-weight: <?php echo $h6_typo['style']; ?>;
<?php } ?>
<?php } ?>
}
</style>