15 if (function_exists(
'assetic_init')) {
28 $_assetic =
new stdClass();
29 $_assetic->factory = $factory;
85 return current($urls);
101 if (!is_array($inputs)) {
102 $inputs = array_filter(array_map(
'trim', explode(
',', $inputs)));
105 if (!is_array($filters)) {
106 $filters = array_filter(array_map(
'trim', explode(
',', $filters)));
109 $coll = $_assetic->factory->createAsset($inputs, $filters,
$options);
111 $debug = isset(
$options[
'debug']) ?
$options[
'debug'] : $_assetic->factory->isDebug();
114 $one = $coll->getTargetPath();
119 foreach ($coll as $leaf) {
120 $many[] = $leaf->getTargetPath();
if(function_exists('assetic_init')) assetic_init(AssetFactory $factory)
Initializes the global Assetic object.
assetic_image($input, $filters=array(), array $options=array())
Returns an image URL.
assetic_javascripts($inputs=array(), $filters=array(), array $options=array())
Returns an array of javascript URLs.
assetic_stylesheets($inputs=array(), $filters=array(), array $options=array())
Returns an array of stylesheet URLs.
An object that can be used as either a string or array.
if(!is_array($argv)) $options
Create styles array
The data for the language used.
The asset factory creates asset objects.
_assetic_urls($inputs=array(), $filters=array(), array $options=array())
Returns an array of asset urls.