<?php// Box sizing plugin// Adds support for box-sizing in all browsers include IE down to version 6function box_sizing(&$property, $index){ if($property instanceof Property && $property->name === 'box-sizing'){ $property->add_prefixes(array('moz', 'webkit')); $property->map(function(&$value){ $value->add_comment('Modified by box-sizing plugin'); }); $htc_file = 'url(' . rtrim(dirname($_SERVER['SCRIPT_NAME']),'/') . '/plugins/box-sizing/box-sizing.htc)'; $htc_value = new Value('', array($htc_file)); $htc_value->add_comment('Modified by box-sizing plugin'); $htc = new Property('behaviour', array($htc_value)); $property->get_parent()->add($htc); }}$turbine->register_plugin('property', 5, 'box_sizing');?>