function optionsframework_wp_head() { $shortname = get_option('of_shortname'); //Styles if (!isset($_REQUEST['style'])) { $style = ''; } else { $style = $_REQUEST['style']; } if ($style != '') { $GLOBALS['stylesheet'] = $style; echo '<link href="' . OF_DIRECTORY . '/styles/' . $GLOBALS['stylesheet'] . '.css" rel="stylesheet" type="text/css" />' . "\n"; } else { $GLOBALS['stylesheet'] = get_option('of_alt_stylesheet'); if ($GLOBALS['stylesheet'] != '') { echo '<link href="' . OF_DIRECTORY . '/styles/' . $GLOBALS['stylesheet'] . '" rel="stylesheet" type="text/css" />' . "\n"; } } // This prints out the custom css and specific styling options of_head_css(); }
function optionsframework_wp_head() { of_head_css(); }