query_vars) && $wp->query_vars['apipp_style'] == 'default') { //use default; $defaultapippstyles= get_option("apipp_product_styles_default"); $amazonStylesToUse = $defaultapippstyles; if(get_option("apipp_product_styles")==''){update_option("apipp_product_styles",$amazonStylesToUse);} header("Status: 200"); header("Pragma: public"); header("Content-type: text/css"); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past print($amazonStylesToUse); exit; }elseif (array_key_exists('apipp_style', $wp->query_vars) && $wp->query_vars['apipp_style'] == 'custom'){ //their Styles $thereapippstyles = get_option("apipp_product_styles"); //the styles in the admin $amazonStylesToUse = $thereapippstyles; header("Status: 200"); header("Pragma: public"); header("Content-type: text/css"); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past print($amazonStylesToUse); exit; }else{ return; } } ?>