From ed2dd97d974311a283f3f16acfa4c72243610fe4 Mon Sep 17 00:00:00 2001 From: nbm Date: Tue, 22 Nov 2005 14:16:39 +0000 Subject: [PATCH] Add requireCSSStandalone, which allows you to include some CSS styling for your template, but in the proper location. --- lib/templating/kt3template.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index 7dfaf60..e10bc15 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -19,6 +19,7 @@ class KTPage { var $js_resources = Array(); var $css_resources = Array(); var $js_standalone = Array(); + var $css_standalone = Array(); /** context-relevant information */ var $errStack = Array(); @@ -128,6 +129,14 @@ class KTPage { function getCSSResources() { return array_keys($this->css_resources); } + + function requireCSSStandalone($sCSS) { + $this->css_standalone[$sCSS] = 1; + } + + function getCSSStandalone() { + return array_keys($this->css_standalone); + } function setPageContents($contents) { $this->contents = $contents; } -- libgit2 0.21.4