Browse Source

! A function to easily get CSS into the header (remember: HTML5, we don't need to specify the type as it defaults to text/css)

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
2898f953db
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Sources/Subs.php

+ 4 - 0
Sources/Subs.php

@@ -3339,6 +3339,10 @@ function template_css()
 	foreach ($context['css_files'] as $id => $file)
 		echo '
 	<link rel="stylesheet" type="text/css" href="', $file['filename'], '" />';
+
+	if (!empty($context['css_header']))
+		echo '
+	<style>', $context['css_header'], '</style>';
 }
 
 /**