PHP Classes

File: example.css.php

Recommend this page to a friend!
  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: 14 years ago
Size: 455 bytes


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

 * CSS Template example
 * 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; }