Login   Register  
PHP Classes
elePHPant
Icontem

File: example.css.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of khjk  >  CSS Dispatcher  >  example.css.php  >  Download  
File: example.css.php
Role: Auxiliary script
Content type: text/plain
Description: templated CSS
Class: CSS Dispatcher
Compose CSS style sheets from multiple templates
Author: By
Last change:
Date: 5 years ago
Size: 455 bytes
 

Contents

Class file image Download
<?php /** @package CssDispatch */ ?>

/**
 * CSS Template example
 *
 * ¡WARNING!
 * If you use short tags ("«?=$variable »" instead of "«?php echo $variable »")
 * make sure that they are enabled in php.ini's short_open_tag directive.
 * You can enable it in runtime with ini_set("short_open_tag", "on")
 */

body { background: <?=$background ?>; }

.news {
    border: 1px solid <?=$border_color ?>;
}

.news #date { font-size: <?=$header_size ?>em; }