<?php header('Content-type: text/css'); ?>
<?php if(get_option("ocmx_ignore_colours") != "yes"): ?>

    <?php if(get_option("ocmx_header_color")) : ?>
		#header-container, .sub-menu{background: <?php echo get_option('ocmx_header_color');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_navigation_links")) : ?>
		.page-menu a{color: <?php echo get_option('ocmx_navigation_links');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_navigation_links_hover")) : ?>
		.page-menu a:hover, .page-menu .current_page_item a{color: <?php echo get_option('ocmx_navigation_links_hover');?>;}
	<?php endif; ?>
    
    <?php if(get_option("ocmx_navigation_hover")) : ?>
		.page-menu .current_page_item, .page-menu a:hover, input[type="button"], input[type="submit"] {background: <?php echo get_option('ocmx_navigation_hover');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_body_links")) : ?>
		.link-post-link a, .post a, #right-column a, .meta a{color: <?php echo get_option('ocmx_body_links');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_body_links_hover")) : ?>
		.link-post-link a:hover, .post a:hover, #right-column a:hover, .meta a:hover {color: <?php echo get_option('ocmx_body_links_hover');?>;}
	<?php endif; ?>
    
    <?php if(get_option("ocmx_widget_titles")) : ?>
		.widgettitle, .widgettitle a{color: <?php echo get_option('ocmx_widget_titles');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_footer_nav_links")) : ?>
		#footer a{color: <?php echo get_option('ocmx_footer_nav_links');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_footer_links_hover")) : ?>
		#footer-nav a:hover{color: <?php echo get_option('ocmx_footer_links_hover');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_footer_text")) : ?>
		#footer, .footer-text, #footer ul li.column ul li{color: <?php echo get_option('ocmx_footer_text');?>;}
	<?php endif; ?>
    
    <?php if(get_option("ocmx_footer_background")) : ?>
		#footer-container{background: <?php echo get_option('ocmx_footer_background');?>;}
	<?php endif; ?>
    
	<?php if(get_option("ocmx_border_color")) : ?>
		.post .post-image img{border-color: <?php echo get_option('ocmx_border_color');?>;}
	<?php endif; ?>

<?php endif;
if(get_option("ocmx_custom_css") != ""):
	echo get_option("ocmx_custom_css");
endif; 
if(ocmx_load_fonts() != '') echo ocmx_load_fonts();
