/**
 * Add a style block to the theme for the current link color.
 * This function is attached to the wp_head action hook.
 */
function dusktodawn_print_link_color_style()
{
    $options = dusktodawn_get_theme_options();
    $link_color = $options['link_color'];
    $default_options = dusktodawn_get_default_theme_options();
    // Don't do anything if the current link color is the default.
    if ($default_options['link_color'] == $link_color) {
        return;
    }
    ?>
	<style>
		a,
		.entry-title a:hover,
		.widget_flickr #flickr_badge_uber_wrapper a:hover,
		.widget_flickr #flickr_badge_uber_wrapper a:link,
		.widget_flickr #flickr_badge_uber_wrapper a:active,
		.widget_flickr #flickr_badge_uber_wrapper a:visited {
			color: <?php 
    echo $link_color;
    ?>
;
		}
		.entry-header,
		.right-sidebar .entry-header {
			border-color: <?php 
    echo $link_color;
    ?>
;
		}
	</style>
<?php 
}
/**
 * Add a style block to the theme for the current link color.
 * This function is attached to the wp_head action hook.
 */
function dusktodawn_print_link_color_style()
{
    $options = dusktodawn_get_theme_options();
    $link_color = $options['link_color'];
    $default_options = dusktodawn_get_default_theme_options();
    // Don't do anything if the current link color is the default.
    if ($default_options['link_color'] == $link_color) {
        return;
    }
    ?>
	<style>
		a,
		.entry-title a:hover,
		.widget_flickr #flickr_badge_uber_wrapper a:hover,
		.widget_flickr #flickr_badge_uber_wrapper a:link,
		.widget_flickr #flickr_badge_uber_wrapper a:active,
		.widget_flickr #flickr_badge_uber_wrapper a:visited,
		#infinite-footer .blog-info a,
		#infinite-footer .blog-credits a,
		#infinite-footer .blog-info a:hover,
		#infinite-footer .blog-info a:focus,
		#infinite-footer .blog-credits a:hover,
		#infinite-footer .blog-credits a:focus,
		#infinite-handle span,
		#infinite-handle span:before,
		#infinite-handle span:hover,
		#infinite-handle span:focus,
		#infinite-handle span:hover:before,
		#infinite-handle span:focus:before {
			color: <?php 
    echo $link_color;
    ?>
;
		}
		.entry-header,
		.right-sidebar .entry-header {
			border-color: <?php 
    echo $link_color;
    ?>
;
		}
	</style>
<?php 
}