Ver código fonte

! 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 anos atrás
pai
commit
2898f953db
1 arquivos alterados com 4 adições e 0 exclusões
  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>';
 }
 
 /**