Commit a097689f authored by Riccardo Padovani's avatar Riccardo Padovani

Loaded files for responsive website

parent 65571785
......@@ -63,7 +63,13 @@ 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(
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'
));
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment