Tausend Dank! Ich hab einfach auf den value zu $deps vergessen...
Ad 1) Da mach ich derzeit eh schon. Und zwar so:
function get_ie_css() {
$if_ie_css = "\t";
$if_ie_css .= "<!--[if IE]>";
$if_ie_css .= "\n";
$endif_ie_css = "\t";
$endif_ie_css .= "<![endif]-->";
$endif_ie_css .= "\n";
$before_style_file = "\t";
$before_style_file .= "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen, projection\" href=\"";
$before_style_file .= get_bloginfo('template_directory');
$before_style_file_print = "\t";
$before_style_file_print .= "<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"";
$before_style_file_print .= get_bloginfo('template_directory');
$after_style_file = "\" />";
$after_style_file .= "\n";
$ie = $if_ie_css;
$ie .= $before_style_file;
$ie .= '/ui/blueprint/ie.css';
$ie .= $after_style_file;
$ie .= $endif_ie_css;
$ie_custom = $if_ie_css;
$ie_custom .= $before_style_file;
$ie_custom .= '/ui/ie-custom.css';
$ie_custom .= $after_style_file;
$ie_custom .= $endif_ie_css;
$content = $ie;
/* $content .= $ie_custom; */
echo apply_filters('get_ie_css', $content);
}
Alles anzeigen
Ich dachte nur, dass es irgendwie möglich wäre, dass in wp_enqueue_style unter zu bringen. Dabei geht´s mir um eine generelle Lösung. Bisher hab ich alle styles so wie im oben genannten Code eingebunden. Hintergrund ist/war, dass ich alle styles gleichzeitig an den Browser liefern wollte, da ich nicht wusste, dass wp_enqueue_style von selbst schon eine Warteschlange mit bringt. Jetzt stell ich gerade alles um und scheitere am Ie. Ich versteh schon, dass die Lösung ja nur für PlugIns und nicht für Themes gedacht ist, also nur Styles für den Adminbereich registriert, aber Ie da hinein zu bringen wäre trotzdem toll. Schließlich kann ich auch alle styles mit if(!is_admin()) nur fürs Theme definieren...