| Current Path : /home/zieirix/www/cache/gantry5/it_medical/compiled/yaml/ |
| Current File : /home/zieirix/www/cache/gantry5/it_medical/compiled/yaml/c9ee1d044eee2cd56121da6020e46c4d.yaml.php |
<?php
return [
'@class' => 'Gantry\\Component\\File\\CompiledYamlFile',
'filename' => '/home/zieirix/www/media/gantry5/engines/nucleus/particles/assets.yaml',
'modified' => 1644401436,
'data' => [
'name' => 'Custom CSS / JS',
'description' => 'Configure custom CSS and Javascript.',
'type' => 'atom',
'icon' => 'far fa-file-code',
'form' => [
'fields' => [
'enabled' => [
'type' => 'input.checkbox',
'label' => 'Enabled',
'description' => 'Globally enable CSS/JS particles.',
'default' => true
],
'css' => [
'type' => 'collection.list',
'array' => true,
'label' => 'CSS',
'description' => 'Add remove or modify custom CSS assets.',
'value' => 'name',
'ajax' => true,
'fields' => [
'.name' => [
'type' => 'input.text',
'label' => 'Name',
'skip' => true
],
'.location' => [
'type' => 'input.filepicker',
'label' => 'File Location',
'icon' => 'far fa-file-code',
'placeholder' => 'http://cdn1.remote/file.css',
'filter' => '\\.(css|less|scss|sass)$',
'root' => 'gantry-assets://'
],
'.inline' => [
'type' => 'textarea.textarea',
'label' => 'Inline CSS',
'description' => 'Adds inline CSS for quick snippets.'
],
'_info' => [
'type' => 'separator.note',
'class' => 'alert alert-info',
'content' => 'Only add your inline CSS code, the <style></style> tags will get automatically added for you.'
],
'.extra' => [
'type' => 'collection.keyvalue',
'label' => 'Tag attributes',
'key_placeholder' => 'Key (data-*, style, ...)',
'value_placeholder' => 'Value',
'exclude' => [
0 => 'rel',
1 => 'href',
2 => 'type'
]
],
'.priority' => [
'type' => 'input.number',
'label' => 'Load Priority',
'description' => 'Sets the load priority of the asset in the page. Value can be between 10 (first) and -10 (last). Default value is 0.',
'default' => 0,
'min' => -10,
'max' => 10
]
]
],
'javascript' => [
'type' => 'collection.list',
'array' => true,
'label' => 'Javascript',
'description' => 'Add remove or modify custom Javascript assets.',
'value' => 'name',
'ajax' => true,
'fields' => [
'.name' => [
'type' => 'input.text',
'label' => 'Name',
'skip' => true
],
'.location' => [
'type' => 'input.filepicker',
'label' => 'File Location',
'icon' => 'far fa-file-code',
'placeholder' => 'http://cdn1.remote/file.js',
'filter' => '\\.(jsx?|coffee)$',
'root' => 'gantry-assets://'
],
'.inline' => [
'type' => 'textarea.textarea',
'label' => 'Inline JavaScript',
'description' => 'Adds inline JavaScript for quick snippets.'
],
'_info' => [
'type' => 'separator.note',
'class' => 'alert alert-info',
'content' => 'Only add your inline JavaScript code, the <script></script> tags will get automatically added for you.'
],
'.in_footer' => [
'type' => 'input.checkbox',
'label' => 'Before </body>',
'description' => 'Whether you want the script to load at the end of the body tag or inside head',
'default' => false
],
'.extra' => [
'type' => 'collection.keyvalue',
'label' => 'Tag attributes',
'exclude' => [
0 => 'src',
1 => 'type'
]
],
'.priority' => [
'type' => 'input.number',
'label' => 'Load Priority',
'description' => 'Sets the load priority of the asset in the page. Value can be between 10 (first) and -10 (last). Default value is 0.',
'default' => 0,
'min' => -10,
'max' => 10
]
]
]
]
]
]
];