$variables['language']->language, 'dir' => $variables['language']->dir, ); // Override existing RDF namespaces to use RDFa 1.1 namespace prefix bindings. if (function_exists('rdf_get_namespaces')) { $rdf = array('prefix' => array()); foreach (rdf_get_namespaces() as $prefix => $uri) { $rdf['prefix'][] = $prefix . ': ' . $uri; } if (!$rdf['prefix']) { $rdf = array(); } $variables['rdf_namespaces'] = drupal_attributes($rdf); } // BODY element attributes. $variables['body_attributes_array'] = array( 'role' => 'document', 'class' => &$variables['classes_array'], ); $variables['body_attributes_array'] += $variables['attributes_array']; // Navbar position. switch (bootstrap_setting('navbar_position')) { case 'fixed-top': $variables['body_attributes_array']['class'][] = 'navbar-is-fixed-top'; break; case 'fixed-bottom': $variables['body_attributes_array']['class'][] = 'navbar-is-fixed-bottom'; break; case 'static-top': $variables['body_attributes_array']['class'][] = 'navbar-is-static-top'; break; } } /** * Processes variables for the "html" theme hook. * * See template for list of available variables. * * @see html.tpl.php * * @ingroup theme_process */ function bootstrap_process_html(&$variables) { $variables['html_attributes'] = drupal_attributes($variables['html_attributes_array']); $variables['body_attributes'] = drupal_attributes($variables['body_attributes_array']); }