Login   Register  
PHP Classes
elePHPant
Icontem

File: INSTALL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Israel Viana  >  CSS Dispatcher  >  INSTALL  >  Download  
File: INSTALL
Role: Documentation
Content type: text/plain
Description: Installation instructions
Class: CSS Dispatcher
Compose CSS style sheets from multiple templates
Author: By
Last change:
Date: 2009-10-21 08:31
Size: 671 bytes
 

Contents

Class file image Download
Just include the files class.Css.php and class.CssDispatcher.php and you will be able to use the CssDispatcher.

Example:

<?php

include 'class.Css.php';
include 'class.CssDispatcher.php';

$estilos = new CssDispatcher();

//Creates a new template
$general = new Css('example.css.php');
//Assigns some variables
$general->background = '#eee';
$general->border_color = 'red';
$general->header_size = 2.1;

//Creates another template
$another = new Css('example2.css.php');
$another->bold = 'font-weight: bold';

//Adds the templates to the dispatcher
$estilos->add($general);
$estilos->add($another);

//Dispatch the styles
$estilos->render();

?>