Skip to content
Snippets Groups Projects
Commit 98464684 authored by Alberto Siles's avatar Alberto Siles
Browse files

Issue #2543118: W3C validation errors

parent efcfef61
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,18 @@ function bootstrap_barrio_preprocess_html(&$variables) {
$variables['mobile_friendly'] = FALSE;
drupal_add_css(drupal_get_path('theme', 'bootstrap_barrio') . '/css/no-responsive.css', array('group' => CSS_DEFAULT, 'every_page' => TRUE));
}
$prefixes = array();
$namespaces = explode("\n", trim($variables['rdf_namespaces']));
foreach ($namespaces as $name) {
list($key,$url) = explode('=', $name, 2);
list($xml,$space) = explode(':',$key, 2);
$url = trim($url, '"');
if (!empty($space) && !empty($url)) {
$prefixes[] = $space . ': ' . $url;
}
}
$prefix = implode(" ", $prefixes);
$variables['rdf_namespaces'] = ' xmlns="http://www.w3.org/1999/xhtml" prefix="' . $prefix . '"';
}
/**
......
......@@ -7,7 +7,7 @@
?>
<!DOCTYPE html>
<html lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces;?>>
<head profile="<?php print $grddl_profile; ?>">
<head>
<meta charset="utf-8">
<?php if ($mobile_friendly): ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment