'."\n";
//Styles
if(!isset($_REQUEST['style']))
$style = '';
else
$style = $_REQUEST['style'];
if ($style != '') {
$GLOBALS['stylesheet'] = $style;
echo ''."\n";
} else {
$GLOBALS['stylesheet'] = get_option('of_alt_stylesheet');
if($GLOBALS['stylesheet'] != '')
echo ''."\n";
else
echo ''."\n";
}
// This prints out the custom css and specific styling options
of_head_css();
}
}
add_action('wp_head', 'optionsframework_wp_head');
/*-----------------------------------------------------------------------------------*/
/* Output CSS from standarized options */
/*-----------------------------------------------------------------------------------*/
function of_head_css() {
$shortname = get_option('of_shortname');
$output = '';
if ($body_color = get_option($shortname . '_body_background') ) {
$output .= "body {background:" . $body_color .";}\n";
}
if ($link_color = get_option($shortname .'_link_color') ) {
$output .= "a {color:" . $link_color .";}\n";
}
if ($link_hover_color = get_option($shortname .'_link_hover_color') ) {
$output .= "a:hover {color:" . $link_hover_color .";}\n";
}
$custom_css = get_option('of_custom_css');
if ($custom_css <> '') {
$output .= $custom_css . "\n";
}
// Output styles
if ($output <> '') {
$output = "\n\n";
echo $output;
}
}
/*-----------------------------------------------------------------------------------*/
/* Add Favicon
/*-----------------------------------------------------------------------------------*/
function childtheme_favicon() {
$shortname = get_option('of_shortname');
if (get_option($shortname . '_custom_favicon') != '') {
echo ''."\n";
}
else { ?>
"" )
echo stripslashes($output) . "\n";
}
add_action('wp_footer','childtheme_analytics');
?>