<?php

if(is_singular() && get_post_meta($post->ID, 'ghostpool_skin', true) == "Dark") { ?>

	<?php while (have_posts()) : the_post(); ?>
		<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style-dark.css" media="screen" />	
	<?php endwhile; ?>
	
<?php } elseif(is_singular() && get_post_meta($post->ID, 'ghostpool_skin', true) == "Light") { ?>

<?php } else { // Default Global Skin Settings ?>

	<?php if($_GET['skin'] == "dark" OR ($theme_skin == "Dark" && $_GET['skin'] == "")) { ?>
	
		<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style-dark.css" media="screen" />
	
	<?php } elseif($_GET['skin'] == "light" OR ($theme_skin == "Light" && $_GET['skin'] == "")) {} ?>
	
<?php } ?>