Changeset 42 for trunk/lib/CSS.inc.php
- Timestamp:
- Dec 18, 2005 12:16:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/CSS.inc.php
r41 r42 1 1 <?php 2 2 /** 3 * CSS.inc.css 3 * CSS.inc.css 4 4 * code by strangecode :: www.strangecode.com :: this document contains copyrighted information 5 5 * … … 13 13 // Include these style sheets. 14 14 var $_css_files = array('default' => array()); 15 15 16 16 // Cache style sheets? 17 17 var $_params = array( … … 19 19 'character_set' => 'utf-8', 20 20 ); 21 21 22 22 /** 23 23 * Set (or overwrite existing) parameters by passing an array of new parameters. … … 52 52 } 53 53 } 54 54 55 55 /** 56 56 * Add a file-path to the array of files to include as CSS. … … 64 64 { 65 65 if (!is_array($apps)) { 66 66 $apps = array($apps); 67 67 } 68 68 … … 103 103 sort($files_mtime, SORT_NUMERIC); 104 104 $latest_mtime = array_pop($files_mtime); 105 105 106 106 if ($this->_params['cache_css']) { 107 107 header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $latest_mtime) . ' GMT'); … … 114 114 header('Content-Type: text/css; charset=' . $this->_params['character_set']); 115 115 } 116 116 117 117 /** 118 118 * Include CSS files specified by setFile(). … … 130 130 return false; 131 131 } 132 132 133 133 foreach ($this->_css_files[$app] as $file) { 134 134 include $file; 135 135 } 136 136 } 137 137 138 138 } 139 139 ?>
Note: See TracChangeset
for help on using the changeset viewer.