Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function d_common_libraries_info() {
- global $conf;
- return [
- 'webcomponentsjs' => [
- 'name' => 'webcomponents',
- 'vendor url' => 'http://polymer-project.org',
- 'download url' => 'https://github.com/Polymer/polymer',
- 'version arguments' => [
- 'file' => 'webcomponents.js',
- 'pattern' => '/@version (\d\.\d\.\d)/',
- ],
- 'files' => [
- 'js' => [
- 'webcomponents.min.js' => [
- 'type' => 'file',
- 'scope' => 'header',
- 'group' => JS_LIBRARY,
- 'every_page' => TRUE,
- 'weight' => -100
- ],
- 'polymer_components' => [
- 'type' => 'inline',
- 'scope' => 'header',
- 'group' => JS_LIBRARY,
- 'every_page' => TRUE,
- 'weight' => 100,
- 'data' => <<<SCRIPT
- document.write('<link href="/{$conf['components_path']}/{$conf['components_file']}" rel="import" />');
- SCRIPT
- ]
- ],
- ],
- 'callbacks' => [
- // 'post-load' => ['_polymer_load_components']
- ],
- ],
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement