Changeset 42 for trunk/lib/CSS.inc.php


Ignore:
Timestamp:
Dec 18, 2005 12:16:03 AM (18 years ago)
Author:
scdev
Message:

detabbed all files ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/CSS.inc.php

    r41 r42  
    11<?php
    22/**
    3  * CSS.inc.css 
     3 * CSS.inc.css
    44 * code by strangecode :: www.strangecode.com :: this document contains copyrighted information
    55 *
     
    1313    // Include these style sheets.
    1414    var $_css_files = array('default' => array());
    15    
     15
    1616    // Cache style sheets?
    1717    var $_params = array(
     
    1919        'character_set' => 'utf-8',
    2020    );
    21    
     21
    2222    /**
    2323     * Set (or overwrite existing) parameters by passing an array of new parameters.
     
    5252        }
    5353    }
    54    
     54
    5555    /**
    5656     * Add a file-path to the array of files to include as CSS.
     
    6464    {
    6565        if (!is_array($apps)) {
    66             $apps = array($apps);
     66            $apps = array($apps);
    6767        }
    6868
     
    103103        sort($files_mtime, SORT_NUMERIC);
    104104        $latest_mtime = array_pop($files_mtime);
    105        
     105
    106106        if ($this->_params['cache_css']) {
    107107            header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $latest_mtime) . ' GMT');
     
    114114        header('Content-Type: text/css; charset=' . $this->_params['character_set']);
    115115    }
    116    
     116
    117117    /**
    118118     * Include CSS files specified by setFile().
     
    130130            return false;
    131131        }
    132        
     132
    133133        foreach ($this->_css_files[$app] as $file) {
    134134            include $file;
    135135        }
    136136    }
    137    
     137
    138138}
    139139?>
Note: See TracChangeset for help on using the changeset viewer.