Commit ed2dd97d974311a283f3f16acfa4c72243610fe4

Authored by nbm
1 parent 0c64431c

Add requireCSSStandalone, which allows you to include some CSS styling

for your template, but in the proper location.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4110 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/templating/kt3template.inc.php
... ... @@ -19,6 +19,7 @@ class KTPage {
19 19 var $js_resources = Array();
20 20 var $css_resources = Array();
21 21 var $js_standalone = Array();
  22 + var $css_standalone = Array();
22 23  
23 24 /** context-relevant information */
24 25 var $errStack = Array();
... ... @@ -128,6 +129,14 @@ class KTPage {
128 129 function getCSSResources() {
129 130 return array_keys($this->css_resources);
130 131 }
  132 +
  133 + function requireCSSStandalone($sCSS) {
  134 + $this->css_standalone[$sCSS] = 1;
  135 + }
  136 +
  137 + function getCSSStandalone() {
  138 + return array_keys($this->css_standalone);
  139 + }
131 140  
132 141 function setPageContents($contents) { $this->contents = $contents; }
133 142  
... ...