Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
valencia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
valencia
Commits
a097689f
Commit
a097689f
authored
Aug 05, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loaded files for responsive website
parent
65571785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
6 deletions
+43
-6
template.php
template.php
+43
-6
No files found.
template.php
View file @
a097689f
...
...
@@ -63,10 +63,16 @@ function valencia_preprocess_html( &$variables ) {
* }
* @return array Queued cascading stylesheets.
*/
drupal_add_css
(
'http://assets.ubuntu.com/sites/guidelines/css/latest/ubuntu-styles.css'
,
array
(
'type'
=>
'external'
,
'group'
=>
CSS_DEFAULT
,
'every_page'
=>
true
drupal_add_css
(
'http://assets.ubuntu.com/sites/guidelines/css/responsive/latest/ubuntu-styles.css'
,
array
(
'type'
=>
'external'
,
'group'
=>
CSS_DEFAULT
,
'every_page'
=>
true
));
drupal_add_css
(
'http://assets.ubuntu.com/sites/ubuntu/1160/u/css/styles.css'
,
array
(
'type'
=>
'external'
,
'group'
=>
CSS_DEFAULT
,
'every_page'
=>
true
));
/**
...
...
@@ -86,7 +92,6 @@ function valencia_preprocess_html( &$variables ) {
*
* @see drupal_get_js()
* @since 1.0.0
* @todo Add yui.min.js and core.js from Ubuntu assets
*
* @param string $data Optional. If given, the value depends on the $options or $options['type'] parameter.
* @param string|array $options {
...
...
@@ -106,7 +111,39 @@ function valencia_preprocess_html( &$variables ) {
* }
* @return array JavaScript file, settings, and inline code, including Drupal defaults.
*/
//function drupal_add_js($data, $options);
drupal_add_js
(
'http://assets.ubuntu.com/sites/ubuntu/1160/u/js/plugins/modernizr.2.7.1.js'
,
array
(
'type'
=>
'external'
,
'group'
=>
JS_LIBRARY
,
'every_page'
=>
'TRUE'
));
drupal_add_js
(
'http://assets.ubuntu.com/sites/ubuntu/1160/u/js/plugins/yui-combined.min.js'
,
array
(
'type'
=>
'external'
,
'group'
=>
JS_DEFAULT
,
'every_page'
=>
'TRUE'
,
'scope'
=>
'footer'
));
drupal_add_js
(
"if(!core){ var core = {}; } core.globalPrepend = 'body';"
,
array
(
'type'
=>
'inline'
,
'group'
=>
JS_DEFAULT
,
'every_page'
=>
'TRUE'
,
'scope'
=>
'footer'
));
drupal_add_js
(
'http://assets.ubuntu.com/sites/guidelines/js/responsive/core.js'
,
array
(
'type'
=>
'external'
,
'group'
=>
JS_THEME
,
'every_page'
=>
'TRUE'
,
'scope'
=>
'footer'
));
drupal_add_js
(
'http://assets.ubuntu.com/sites/ubuntu/1160/u/js/plugins/respond.min.js'
,
array
(
'type'
=>
'external'
,
'group'
=>
JS_THEME
,
'every_page'
=>
'TRUE'
,
'scope'
=>
'footer'
));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment