소스 검색

! 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 10 년 전
부모
커밋
2898f953db
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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>';
 }
 
 /**